:root {
    /* --- BRAND THEME --- */
    --primary: #092e20;       /* Deep Bottle Green */
    --primary-dark: #022c22;
    --accent: #fadadd;        /* Baby Pink */
    --accent-light: #fff0f5;  
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-border: #e2e8f0;
    --text-dark: #1e293b;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow: 0 4px 15px -3px rgba(0,0,0,0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; background: var(--gray-light); color: var(--text-dark);
}

/* --- GLOBAL CURSOR & TOUCH FIXES --- */
button, .btn, a, input, select, .card, .menu-toggle, .nav-item, .cust-link, .product-card-cust, .erp-card, .folder-card, .address-card, .sip-card { 
    cursor: pointer !important; 
    touch-action: manipulation;
}
button > *, .btn > *, .nav-item > * { pointer-events: none; }

.hidden { display: none !important; }

/* BTNS */
.btn-primary {
    background: var(--primary); color: var(--accent); border: none;
    padding: 12px 16px; border-radius: 6px; width: 100%;
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.btn-primary:active { transform: translateY(2px); background: var(--primary-dark); }
.btn-small { padding: 8px 15px; font-size: 0.8rem; border-radius: 4px; border: none; color: white; cursor: pointer; font-weight: 600; }

/* UI */
.customer-body { background: var(--accent-light); padding-bottom: 120px; padding-top: 75px; } /* Increased bottom padding for footer */
.customer-header { background: var(--accent); height: 75px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.brand-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); text-transform: uppercase; }

/* LOGIN & FORMS */
.login-card { background: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; text-align: center; border-top: 8px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 20px auto; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-col { flex: 1; position: relative; }
.form-col input, .form-col select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }

/* EYE ICON */
.password-wrapper { position: relative; }
.eye-icon { position: absolute; right: 15px; top: 14px; color: #666; cursor: pointer; z-index: 10; pointer-events: auto; }

/* FOOTER */
.app-footer { background: var(--primary); color: var(--accent); padding: 20px; text-align: center; margin-top: 40px; border-top: 4px solid var(--accent); }
.footer-links a { color: white; text-decoration: none; margin: 0 10px; font-size: 0.9rem; border-bottom: 1px dotted rgba(255,255,255,0.5); }

/* POLICIES */
.policy-container { max-width: 800px; margin: 20px auto; padding: 20px; }
.policy-section { background: white; padding: 20px; margin-bottom: 15px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.policy-section h3 { color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 5px; margin-top: 0; }

/* BANNERS */
.banner-wrapper { position: relative; margin-bottom: 10px; }
.banner-overlay-btn { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: white; color: var(--primary); padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; z-index: 10; pointer-events: auto; box-shadow: 0 2px 5px rgba(0,0,0,0.3); border: 2px solid var(--primary); }

/* PRODUCT CARD (FIXED) */
.product-card-cust { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid white; display: flex; flex-direction: column; }
.product-card-cust img { width: 100%; height: 160px; object-fit: cover; }
.product-info-cust { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--white); border-top: 1px solid var(--gray-border); display: flex; justify-content: space-around; padding: 8px 0; z-index: 2000; box-shadow: 0 -4px 15px rgba(0,0,0,0.05); }
.nav-item { text-align: center; color: #94a3b8; flex: 1; display: flex; flex-direction: column; align-items: center; }
.nav-item.active { color: var(--primary) !important; transform: translateY(-2px); }

/* SIDEBAR */
.cust-sidebar { position: fixed; top: 0; left: -280px; width: 260px; height: 100%; background: var(--white); z-index: 4000; transition: left 0.3s ease-in-out; box-shadow: 5px 0 20px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.cust-sidebar.open { left: 0; }
.cust-link { padding: 16px 20px; color: var(--primary); text-decoration: none; border-bottom: 1px solid #fce7f3; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.cust-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 3999; display: none; }
.cust-overlay.open { display: block; }

/* TOAST */
#toast-container { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 90%; max-width: 300px; pointer-events: none; }
.toast { background: #333; color: white; padding: 12px 20px; border-radius: 30px; margin-bottom: 10px; font-size: 0.9rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); pointer-events: auto; text-align: center; }

/* TABLE RESPONSIVENESS */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
@media (max-width: 600px) {
    div[style*="overflow-x:auto"] { overflow-x: scroll; -webkit-overflow-scrolling: touch; }
    .data-table th, .data-table td { white-space: nowrap; padding: 8px; }
    
    /* Fix SIP Modal overflow on small screens */
    .modal-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}