/* ============================================
   SERVEGURU — Global Styles
   Bharat Trading Corporation
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
    --primary: #02529C;
    --primary-light: #257ECF;
    --primary-dark: #013768;
    --secondary: #0F172A;
    --accent: #FFDE59;
    --accent-light: #FFE587;
    --bg-dark: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-light: #F1F5F9;
    --bg-glass: rgba(255,255,255,0.8);
    --border-glass: rgba(0,0,0,0.08);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #526075;
    --success: #10B981;
    --warning: #FFDE59;
    --danger: #EF4444;
    --gradient-primary: linear-gradient(135deg, #013768, #02529C);
    --gradient-hero: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF, #F8FAFC);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(1,55,104,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s ease;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); line-height: 1.8; }
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; color: #013768; font-weight: 800; }
.section-header p { max-width: 600px; margin: 0 auto; color: #334155; }
.section-divider {
    width: 60px; height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px; margin: 16px auto;
}

/* ── ServeGuru Brand Card & Icon Utilities ── */
.service-icon, .why-icon, .svc-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}
.service-icon img, .why-icon img, .svc-icon img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.service-highlight-card h3, .why-card h3, .why-card h4, .service-card h3 {
    color: #013768 !important;
    font-weight: 700 !important;
}

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* ── Glass Card ── */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition);
}
.glass-card:hover {
    border-color: rgba(1,55,104,0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; transition: all var(--transition); border: none;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary {
    background: var(--gradient-primary); color: #fff;
    box-shadow: 0 4px 15px rgba(1,55,104,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(1,55,104,0.5);
}
.btn-secondary {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary); color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-accent {
    background: var(--accent); color: #0F172A;
}
.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}
.btn-icon {
    width: 44px; height: 44px; padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-primary); font-size: 1.2rem;
    transition: all var(--transition);
}
.btn-icon:hover {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ── Navigation ── */
.main-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.main-nav.scrolled {
    padding: 10px 0;
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--border-glass);
    box-shadow: var(--shadow-md);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 800;
    color: var(--text-primary); font-size: 1.1rem;
}
.nav-logo-text h3 {
    font-size: 1.1rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-logo-text span { font-size: 0.7rem; color: var(--text-muted); display: block; letter-spacing: 1px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: all var(--transition); position: relative; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary); background: var(--bg-glass);
}
.nav-links a.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; background: var(--gradient-primary);
    border-radius: 2px;
}
.nav-cart {
    position: relative; padding: 8px 12px;
    color: var(--text-secondary); font-size: 1.2rem;
    cursor: pointer; transition: color var(--transition);
    background: none; border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-cart svg {
    display: block;
    width: 22px;
    height: 22px;
    transition: stroke var(--transition);
}
.nav-cart:hover { color: var(--primary); }
.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--accent); color: #0F172A;
    font-size: 0.65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.nav-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px;
}
.nav-hamburger span {
    width: 25px; height: 2px; background: var(--text-primary);
    border-radius: 2px; transition: all var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Footer ── */
/* ── Footer ── */
.main-footer {
    background: var(--bg-surface-light);
    border-top: 1px solid var(--border-glass);
    padding-top: 60px;
    color: var(--text-secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px; margin: 0 auto; padding: 0 20px 40px;
}
.footer-col h4 { 
    margin-bottom: 20px; 
    font-size: 1.05rem; 
    font-weight: 700;
    color: var(--text-primary); 
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}
.footer-col p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; transition: all var(--transition); }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--bg-surface); border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.1rem;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text-secondary); font-size: 0.9rem; }
.footer-contact-item span { font-size: 1.15rem; color: var(--primary); }
.footer-newsletter input {
    width: 100%; padding: 12px 16px; background: var(--bg-surface);
    border: 1px solid var(--border-glass); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.9rem; margin-bottom: 10px;
}
.footer-newsletter input:focus { border-color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 20px 0;
    text-align: center; font-size: 0.85rem; color: var(--text-muted);
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ── Form Elements ── */
.form-group { margin-bottom: 24px; }

/* Cart Sidebar */
.cart-sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cart-sidebar-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100vh;
    background: var(--bg-surface); z-index: 1001; box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-glass);
}
.cart-sidebar.active { right: 0; }

.cart-sidebar-header {
    padding: 20px; border-bottom: 1px solid var(--border-glass); display: flex;
    justify-content: space-between; align-items: center; background: rgba(241,245,249,0.95);
}
.cart-sidebar-header h3 { font-size: 1.2rem; color: var(--text-primary); margin: 0; }
.close-cart-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.close-cart-btn:hover { color: var(--danger); }

.cart-sidebar-body {
    flex: 1; overflow-y: auto; padding: 20px;
}
.cart-sidebar-body::-webkit-scrollbar { width: 6px; }
.cart-sidebar-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 10px; }

.cart-sidebar-footer {
    padding: 20px; border-top: 1px solid var(--border-glass); background: rgba(241,245,249,0.95);
}

.cart-item {
    display: flex; gap: 16px; margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cart-item-img {
    width: 70px; height: 70px; object-fit: contain; border-radius: 8px;
    background: rgba(0,0,0,0.04); border: 1px solid var(--border-glass);
}
.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-info h4 { font-size: 0.95rem; margin: 0 0 4px; color: var(--text-primary); line-height: 1.3; }
.cart-item-price { color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.cart-item-qty {
    display: flex; align-items: center; gap: 12px; margin-top: 8px;
    background: rgba(0,0,0,0.04); padding: 4px; border-radius: 6px; width: fit-content;
}
.cart-item-qty button {
    background: none; border: none; color: var(--text-primary); font-size: 1rem; width: 24px; height: 24px;
    cursor: pointer; border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.cart-item-qty button:hover { background: rgba(0,0,0,0.08); }
.cart-item-qty span { font-size: 0.9rem; font-weight: 500; min-width: 16px; text-align: center; }

.empty-cart { text-align: center; color: var(--text-muted); margin-top: 50px; font-size: 1.1rem; }

.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-secondary); font-size: 0.95rem; }
.cart-summary-row.total { font-weight: 700; color: var(--text-primary); font-size: 1.2rem; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,0.08); }

.checkout-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-method-card {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px;
    border: 1px solid var(--border-glass); background: rgba(0,0,0,0.02); cursor: pointer; transition: all 0.2s;
}
.payment-method-card:hover { background: rgba(0,0,0,0.04); }
.payment-method-card input[type="radio"] { accent-color: var(--primary); transform: scale(1.2); }
.upi-box { background: rgba(1,55,104,0.05); border: 1px solid rgba(1,55,104,0.2); padding: 16px; border-radius: 8px; margin-bottom: 20px; text-align: center; }

.form-group label {
    display: block; margin-bottom: 8px; font-size: 0.9rem;
    font-weight: 500; color: var(--text-secondary);
}
.form-control {
    width: 100%; padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.95rem;
    transition: all var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(1,55,104,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0A0B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 4px; display: none; }
.form-group.error .form-control { border-color: var(--danger); }
.form-group.error .form-error { display: block; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    border: 1.5px solid transparent;
}
.badge-primary { background: rgba(2,82,156,0.12); color: var(--primary); border-color: rgba(2,82,156,0.25); }
.badge-accent { background: rgba(255,222,89,0.12); color: #855f00; border-color: rgba(255,222,89,0.25); }
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); border-color: rgba(16,185,129,0.25); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); border-color: rgba(245,158,11,0.25); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); border-color: rgba(239,68,68,0.25); }
.badge-info { background: rgba(33,150,243,0.22); color: #2196F3; border-color: rgba(33,150,243,0.45); }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px); z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-surface); border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg); width: 100%; max-width: 600px;
    max-height: 90vh; overflow-y: auto;
    animation: modalIn 0.3s ease;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border-glass);
}
.modal-header h3 { font-size: 1.2rem; }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    color: var(--text-secondary); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-glass); display: flex; gap: 12px; justify-content: flex-end; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ── Toast Notification ── */
.toast-container {
    position: fixed;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 440px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 10px 16px 10px 12px;
    border-radius: 50px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    width: max-content;
    max-width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-message {
    color: #f8fafc;
    line-height: 1.3;
}
.toast-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.toast-success {
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.toast-warning {
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.18), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}
.toast-error, .toast-danger {
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.18), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast-error .toast-icon, .toast-danger .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.toast-info {
    border: 1px solid rgba(13, 148, 136, 0.45);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.18), 0 4px 12px rgba(0, 0, 0, 0.2);
}
.toast-info .toast-icon {
    background: rgba(13, 148, 136, 0.2);
    color: #2dd4bf;
}
.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 2px;
    margin-left: 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s ease;
}
.toast-close:hover {
    color: #ffffff;
}
@keyframes toastSlideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-16px) scale(0.94); }
}

/* ── Loading Spinner ── */
.spinner {
    width: 40px; height: 40px; border: 3px solid var(--border-glass);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.shimmer {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-light) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Scroll Animations ── */
[data-animate] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-in"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(-40px); }
[data-animate="slide-right"] { transform: translateX(40px); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate].animate-visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }

/* ── Back To Top ── */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-primary); color: #fff;
    border: none; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: all var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 10px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-muted); }
.breadcrumb .current { color: var(--primary); }

/* ── Page Header Banner ── */
.page-header {
    padding: 140px 0 60px;
    background: var(--gradient-hero);
    text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(1, 55, 104, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(2, 82, 156, 0.08) 0%, transparent 50%);
}
.page-header h1 { position: relative; margin-bottom: 8px; }
.page-header .breadcrumb { justify-content: center; position: relative; }

/* ── Star Rating ── */
.star-rating { display: flex; gap: 2px; color: var(--warning); font-size: 0.9rem; }
.star-rating .star-empty { color: var(--text-muted); }

/* ── Price Display ── */
.price-current { font-size: 1.5rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.price-original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.price-discount {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    background: rgba(0,200,83,0.15); color: var(--success);
    font-size: 0.8rem; font-weight: 600; margin-left: 8px;
}

/* ── Product Image Placeholder ── */
.product-img-placeholder {
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 800; color: var(--text-primary);
    font-family: var(--font-heading); text-transform: uppercase;
    position: relative; overflow: hidden;
}
.product-card-img { aspect-ratio: 1 / 1; width: 100%; height: auto; position: relative; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #ffffff; }
.product-card-img .product-img-placeholder { height: 100%; }
.product-card-real-img { width: 100%; height: 100%; object-fit: contain; background: #ffffff; padding: 10px; transition: transform 0.4s ease; }
.product-card:hover .product-card-real-img { transform: scale(1.08); }
.product-card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 10; }
.product-card-badges .badge { padding: 4px 10px; font-size: 0.68rem; border-radius: 4px; font-weight: 700; letter-spacing: 0.5px; border: none; }
.product-card-badges .badge-success { background: #013768 !important; color: #ffffff !important; box-shadow: 0 2px 8px rgba(1, 55, 104, 0.4); }
.product-card-badges .badge-accent { background: #02529C !important; color: #ffffff !important; box-shadow: 0 2px 8px rgba(2, 82, 156, 0.4); }
.product-img-placeholder::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.08) 50%, transparent 60%);
    animation: shimmerImg 3s infinite;
}
@keyframes shimmerImg { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed; bottom: 90px; right: 30px; z-index: 998;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all var(--transition); animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 25px rgba(37,211,102,0.6); }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.6); }
}

/* ── Mobile Bottom Navigation Bar Base Styles ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 10000;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.05);
    justify-content: space-around;
    align-items: center;
}
.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
    position: relative;
}
button.mobile-bottom-nav-item {
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}
.mobile-bottom-nav-item .icon {
    font-size: 1.3rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-bottom-nav-item .icon svg {
    display: block;
    width: 22px;
    height: 22px;
    transition: stroke 0.2s ease;
}
.mobile-bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}
.mobile-bottom-nav-item.active .icon {
    transform: translateY(-2px);
}
.mobile-bottom-nav-item .badge-count {
    position: absolute;
    top: 4px;
    right: 25%;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    body { padding-bottom: 75px !important; }
    .section { padding: 60px 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--bg-surface); flex-direction: column;
        padding: 80px 30px 30px; gap: 5px;
        transition: right var(--transition); z-index: 999;
        border-left: 1px solid var(--border-glass);
    }
    .nav-links.active { right: 0; }
    .nav-links a { width: 100%; padding: 12px 16px; }
    .nav-hamburger { display: flex; z-index: 1001; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .page-header { padding: 120px 0 40px; }

    /* ── Mobile Bottom Navigation Bar ── */
    .mobile-bottom-nav { display: flex !important; }
    .engineer-portal-body .mobile-bottom-nav {
        display: none !important;
    }
    /* Slide-up Cart Sidebar for Mobile */
    .cart-sidebar-overlay {
        z-index: 19999 !important;
    }
    .cart-sidebar {
        right: 0 !important;
        left: 0 !important;
        bottom: -100vh !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 85vh !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-top: 1px solid var(--border-glass);
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        z-index: 20000 !important;
    }
    .cart-sidebar.active {
        bottom: 0 !important;
    }
    .cart-sidebar-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 16px)) !important;
    }

    .back-to-top {
        bottom: 84px !important;
        right: 16px !important;
    }
    .whatsapp-float {
        bottom: 144px !important;
        right: 16px !important;
    }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .btn { padding: 10px 20px; font-size: 0.85rem; }
}


/* ── Zepto ADD Button Styling ── */
.product-qty-btn-container {
    margin-top: 15px;
    height: 38px;
    position: relative;
    width: 100%;
}
.zepto-add-btn {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.zepto-add-btn:hover {
    background: rgba(1, 55, 104, 0.05);
}
.zepto-qty-selector {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.zepto-qty-selector button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    width: 38px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.zepto-qty-selector button:hover {
    background: rgba(255, 255, 255, 0.15);
}
.zepto-qty-value {
    font-size: 0.95rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────
   📱 100% RESPONSIVE & SCROLLABLE MODALS (ALL PHONES & IPHONES)
   ───────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important; /* Above mobile bottom navigation bar */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
}

.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"],
.modal-overlay.active {
    display: flex !important;
}

.modal-card,
.modal {
    background: #ffffff !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    margin: auto !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Scrollbar styling inside modal */
.modal-card::-webkit-scrollbar,
.modal::-webkit-scrollbar {
    width: 6px;
}
.modal-card::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Compact rules for small phone viewports (< 480px) */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 12px 10px !important;
        align-items: flex-end !important; /* Sheet style on small mobile phones */
    }

    .modal-card,
    .modal {
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
        max-height: 88dvh !important;
        padding: 16px 14px !important;
    }

    #upiQrCodeImg {
        width: 135px !important;
        height: 135px !important;
    }

    #paymentModalAmount {
        font-size: 1.7rem !important;
    }

    #verifyPayBtn {
        font-size: 0.88rem !important;
        padding: 12px 10px !important;
    }
}

.engineer-app-body .whatsapp-float, .eng-app-page .whatsapp-float {
    display: none !important;
}
.engineer-app-body .eng-tab-view, .eng-app-page .eng-tab-view {
    padding-bottom: 120px !important;
}