/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #0f172a;       
    --brand: #3b82f6;         
    --brand-dark: #2563eb;
    --brand-light: #eff6ff;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    padding-top: 0 !important;
}

a { text-decoration: none; transition: 0.2s ease; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- 2. MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .container { padding-left: 15px; padding-right: 15px; }
    h1, .display-6 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    .navbar-brand .brand-main { font-size: 1.2rem; }
    .navbar-brand .brand-sub { font-size: 0.6rem; letter-spacing: 1px; }
    .col-6 { padding-left: 6px; padding-right: 6px; }
}

/* --- 3. PRODUCT CARD --- */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.img-box {
    position: relative;
    padding-top: 100%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: block; /* Important for independent linking */
}

.prod-img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%; max-height: 85%;
    object-fit: contain;
}

/* Badges & Overlays */
.badge-float { 
    position: absolute; top: 8px; left: 0; z-index: 2; 
    display: flex; flex-direction: column; gap: 4px; 
}
.badge-item { 
    font-size: 0.6rem; font-weight: 800; color: white; 
    padding: 3px 8px; border-top-right-radius: 6px; border-bottom-right-radius: 6px; 
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1); 
}
.bg-new { background: var(--accent-success); }
.bg-best { background: var(--accent-danger); }
.bg-service { background: var(--brand-dark); }
.bg-trend { background: var(--accent-warning); color: #000; }

.rating-float { 
    position: absolute; top: 8px; right: 8px; 
    background: rgba(255,255,255,0.95); border: 1px solid #e2e8f0; 
    padding: 2px 6px; border-radius: 4px; 
    font-size: 0.65rem; font-weight: 700; color: var(--text-main); 
    z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    display: flex; align-items: center; gap: 3px; 
}

.delivery-strip { 
    background: #ecfdf5; color: #166534; 
    font-size: 0.65rem; font-weight: 700; padding: 4px 8px; 
    border-bottom: 1px solid #f0f0f0; 
    display: flex; align-items: center; gap: 5px; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}

.card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.prod-title { 
    font-size: 0.9rem; font-weight: 700; color: var(--primary); 
    margin-bottom: 4px; line-height: 1.35; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; height: 2.7em; 
    text-decoration: none; /* Ensure title link looks clean */
}

.desc-highlight { 
    background: var(--bg-body); border-left: 2px solid var(--brand); 
    font-size: 0.7rem; color: var(--text-muted); 
    padding: 3px 6px; margin-bottom: 10px; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 
    overflow: hidden; line-height: 1.4; 
}

.price-row { 
    display: flex; align-items: baseline; flex-wrap: wrap; 
    gap: 6px; margin-bottom: 8px; line-height: 1; 
}
.price-real { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.price-mrp { font-size: 0.8rem; text-decoration: line-through; color: var(--text-muted); }
.price-off { 
    font-size: 0.65rem; font-weight: 700; color: #16a34a; 
    background: #dcfce7; padding: 2px 6px; border-radius: 4px; 
}

/* Button Row */
.btn-row { display: flex; gap: 8px; margin-top: auto; }

/* Mobile Tweaks */
@media (max-width: 576px) {
    .card-content { padding: 8px; }
    .prod-title { font-size: 0.8rem; height: 2.6em; }
    .price-real { font-size: 0.95rem; }
}

/* --- 4. SCROLLABLE CATEGORY BAR --- */
.scroll-bar-wrap {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 5px;
    padding-top: 5px;
}
.scroll-bar-wrap::-webkit-scrollbar { display: none; }

.cat-link { 
    display: inline-block; text-decoration: none; color: #333; 
    transition: transform 0.2s; cursor: pointer; min-width: 70px; vertical-align: top;
}
.cat-link:active { transform: scale(0.95); }

.cat-icon { 
    width: 45px; height: 45px; margin: 0 auto 6px; 
    background: white; border: 1px solid #f0f0f0; border-radius: 14px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.2s;
}
.cat-link.active .cat-icon { background: var(--primary) !important; color: white !important; border-color: var(--primary); }

/* --- 5. FOOTER & UTILS --- */
footer { background: #0b1120; color: #94a3b8; padding-top: 40px; margin-top: 40px; border-top: 1px solid #1e293b; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.header-icon { width: 32px; height: 32px; background: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-main); border: none; transition: 0.2s; font-size: 0.9rem; }
.page-container { max-width: 900px; margin: 20px auto; background: var(--bg-white); padding: 30px; border-radius: 16px; border: 1px solid var(--border-color); }
@media (max-width: 768px) { .page-container { padding: 20px; margin: 10px; } }

/* --- 6. CUSTOM TOAST NOTIFICATION (NUCLEAR OPTION) --- */
#toast-box {
    visibility: hidden; /* Use visibility for cleaner transition */
    min-width: 260px;
    background-color: #1e293b; /* Dark Navy */
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 14px 24px;
    position: fixed;
    z-index: 99999 !important; /* Force On Top */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

#toast-box.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* Slight bump up animation */
}

#toast-box i { color: #4ade80; font-size: 1.2rem; }

/* Mobile Toast Adjustment */
@media (max-width: 576px) {
    #toast-box {
        bottom: 80px !important; /* Above WhatsApp Button */
        width: 85%;
        font-size: 14px;
        padding: 12px;
    }
    #toast-box.show {
        bottom: 90px !important;
    }
}
/* --- CUSTOM TOAST NOTIFICATION (Fixed Position) --- */
#toast-box {
    visibility: hidden;
    min-width: 280px;
    margin: 0 auto;
    background-color: #1e293b; /* Default Dark */
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 14px 20px;
    position: fixed !important; /* Force Fixed Position */
    z-index: 999999 !important; /* Force On Top */
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

/* Show State */
#toast-box.show {
    visibility: visible;
    opacity: 1;
    bottom: 80px; /* Moves up slightly */
}

/* Success Type (Green) */
#toast-box.success i { color: #4ade80; }
#toast-box.success { border-bottom: 3px solid #4ade80; }

/* Error Type (Red) */
#toast-box.error i { color: #f87171; }
#toast-box.error { border-bottom: 3px solid #f87171; }

/* Mobile Adjustment */
@media (max-width: 576px) {
    #toast-box {
        min-width: auto;
        width: 90%; 
        bottom: 70px !important; /* Above bottom nav/buttons */
    }
    #toast-box.show {
        bottom: 90px !important;
    }
}
/* Add to style.css for better App feel */
* {
    -webkit-tap-highlight-color: transparent; /* Removes blue box on tap */
}
input, textarea, button, select, a {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* --- 7. NAVBAR & SEARCH MODAL (CONSOLIDATED FROM HEADER.PHP) --- */
.navbar { background: #ffffff; padding: 10px 0; box-shadow: 0 1px 10px rgba(0,0,0,0.04); position: sticky; top: 0; z-index: 1020; }
.brand-main { font-weight: 800; font-size: 1.35rem; color: var(--primary); letter-spacing: -0.5px; }
.brand-sub { font-size: 0.65rem; color: var(--brand); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; line-height: 1;}
.nav-link { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; margin: 0 8px; transition: 0.2s;}
.nav-link:hover, .nav-link.active { color: var(--brand); }

.nav-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; background: white; color: var(--primary); text-decoration: none; position: relative; transition: 0.2s; }
.nav-icon-btn:hover { background: var(--bg-body); }
.badge-count { position: absolute; top: -4px; right: -4px; background: var(--accent-danger); color: white; font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 20px; border: 2px solid #fff; }

.search-modal.modal-fullscreen-md-down .modal-content { border: none; border-radius: 0; background: #f8fafc; }
.app-search-header { background: #fff; padding: 15px; display: flex; align-items: center; gap: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.app-search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; background: #f1f5f9; border-radius: 12px; padding: 0 15px; border: 1px solid #e2e8f0; transition: 0.2s; }
.app-search-input-wrap:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.app-search-input-wrap input { width: 100%; border: none; background: transparent; padding: 12px 0; font-size: 15px; font-weight: 500; outline: none; margin-left: 10px; }
.search-cancel-btn { font-size: 14px; font-weight: 600; color: var(--text-muted); background: none; border: none; padding: 0; }
.search-results-container { padding: 15px; overflow-y: auto; height: calc(100vh - 70px); }
.section-title { font-size: 12px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.hover-bg-light:hover { background-color: #f1f5f9 !important; }

.search-results-container a { position: relative; z-index: 9999; pointer-events: auto !important; }
.offcanvas-end { transform: translateX(100%); }

/* --- 8. FOOTER SERVICES & WIDGETS (CONSOLIDATED FROM FOOTER.PHP) --- */
.footer-services { background: #0f172a; color: #cbd5f5; padding: 40px 0; font-size: 14px; }
.footer-services h5 { color: #ffffff; font-size: 16px; margin-bottom: 15px; }
.footer-services a { color: #cbd5f5; text-decoration: none; display: inline-block; margin: 3px 6px 3px 0; font-size: 13px; }
.footer-services a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* Dynamic Hide Nav state using body class instead of inline styles */
body.hide-nav header, body.hide-nav .navbar, body.hide-nav .top-bar, body.hide-nav .top-header { display: none !important; }
body.hide-nav .mobile-bottom-nav { display: none !important; }
body.hide-nav #bookingWidget { display: none !important; } 
body.hide-nav { padding-bottom: 0px !important; }
@media(max-width: 767px) { body.hide-nav { padding-bottom: 0px !important; } }
@media(max-width: 767px) { body:not(.hide-nav) { padding-bottom: 85px !important; } }

.hover-white { transition: 0.2s ease; }
.hover-white:hover { color: #fff !important; padding-left: 6px; }

.social-icon { 
    width: 38px; height: 38px; background: rgba(255,255,255,0.05); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: #94a3b8; text-decoration: none; 
    transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1);
}
.social-icon:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-4px); color: white; }

#bookingWidget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; font-family: 'Plus Jakarta Sans', sans-serif; }

.chat-fab { 
    height: 60px; padding: 0 28px; border-radius: 30px; 
    background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; 
    display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 20px; 
    border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.chat-fab:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4); }
.fab-text { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }

.chat-panel { 
    display: none; width: 380px; background: #ffffff; border-radius: 24px; 
    position: absolute; bottom: 85px; right: 0; overflow: hidden;
    transform-origin: bottom right; animation: chatPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
@keyframes chatPop { from { opacity: 0; transform: scale(0.8) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.chat-header { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.scrollable-body { padding: 24px; max-height: 480px; overflow-y: auto; scrollbar-width: thin; }
.chat-msg { background: #ffffff; color: #1e293b; padding: 16px 20px; border-radius: 20px; border-bottom-left-radius: 4px; font-size: 14px; display: inline-block; line-height: 1.6; border: 1px solid #f1f5f9;}

.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    display: flex; justify-content: space-around; align-items: center;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom)) 10px; 
    z-index: 9990;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: #64748b; font-size: 9px; font-weight: 700; flex: 1;
    padding: 4px 0; cursor: pointer; transition: all 0.2s ease;
    position: relative;
}

.nav-icon-wrap {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item i { font-size: 18px; transition: color 0.2s ease; }

.mobile-bottom-nav .nav-item.active-nav { color: #2563eb; }
.mobile-bottom-nav .nav-item.active-nav .nav-icon-wrap { transform: translateY(-2px); }
.mobile-bottom-nav .nav-item.active-nav i { color: #2563eb; }

.mobile-bottom-nav .nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scale(0);
    width: 4px; height: 4px; background-color: #2563eb; border-radius: 50%;
    transition: transform 0.2s ease;
}
.mobile-bottom-nav .nav-item.active-nav::after { transform: translateX(-50%) scale(1); }

@media(max-width: 767px) {
    #bookingWidget { 
        bottom: 80px; right: 15px; 
        width: auto; transform: none; display: block;
    }
    
    .chat-fab { 
        width: 54px; height: 54px; padding: 0; border-radius: 50%; 
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
    }
    
    .chat-fab .fab-text { display: block; font-size: 8px; font-weight: 800; line-height: 1; letter-spacing: 0px;} 
    .chat-fab i { font-size: 18px; margin: 0; }
    
    .chat-panel { width: calc(100vw - 30px); right: 0; bottom: 70px; transform-origin: bottom right; }
    .scrollable-body { max-height: 55vh; }
}

/* --- 9. PILL & MODERN CARD LAYOUTS (CONSOLIDATED FROM INDEX.PHP) --- */
:root {
    --bg-color: #fafafa;
    --card-bg: #ffffff;
    --primary-invert: #ffffff;
    --accent: #2563eb;
    --accent-green: #10b981;
    --radius-pill: 100px;
    --radius-card: 16px;
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.container-modern { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* Pill Category Strip */
.pill-nav-wrapper {
    background: var(--card-bg);
    border-bottom: 1px solid #f4f4f5;
    position: sticky;
    top: 55px; /* Navbar height compensation */
    z-index: 50;
    padding: 12px 0;
}

.pill-strip {
    display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; 
    -webkit-overflow-scrolling: touch; align-items: center; padding: 0 16px;
}
.pill-strip::-webkit-scrollbar { display: none; }

@media(min-width: 992px) { 
    .pill-strip { justify-content: center; flex-wrap: wrap; gap: 12px; } 
}

.cat-pill {
    display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px;
    background: #f4f4f5; border-radius: var(--radius-pill); flex-shrink: 0;
    color: var(--text-main); font-weight: 600; font-size: 13px; transition: 0.2s;
}
.cat-pill:hover { background: var(--text-main); color: var(--primary-invert); }

.cat-pill-icon {
    width: 28px; height: 28px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cat-pill-icon img { width: 18px; height: 18px; object-fit: contain; }
.cat-pill:hover .cat-pill-icon { background: rgba(255,255,255,0.2); }

/* Hero Banner & Trust Bar */
.hero-wrap { padding: 24px 16px 0 16px; }
.hero-carousel {
    border-radius: var(--radius-card); overflow: hidden;
    box-shadow: var(--shadow-float); position: relative;
}
.hero-carousel .carousel-item { width: 100%; position: relative; background: #e4e4e7; aspect-ratio: 1600 / 500; }
@supports not (aspect-ratio: 1600 / 500) { .hero-carousel .carousel-item { height: 0; padding-top: 31.25%; } }
.hero-carousel img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.carousel-indicators { bottom: 10px; gap: 6px; }
.carousel-indicators [data-bs-target] { width: 6px; height: 6px; border-radius: 50%; background-color: rgba(0,0,0,0.3); border: none; margin: 0; transition: 0.3s; }
.carousel-indicators .active { background-color: var(--primary); width: 20px; border-radius: 10px; }

/* Trust Bar */
.trust-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--card-bg); padding: 16px; border-radius: var(--radius-card);
    margin-top: 16px; box-shadow: var(--shadow-subtle); overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 24px;
}
.trust-bar::-webkit-scrollbar { display: none; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-main); }
.trust-item i { color: var(--accent); font-size: 16px; }

/* Sections */
.sec-wrapper { margin-top: 40px; margin-bottom: 50px; }
.sec-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e4e4e7;
}
.sec-title h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.sec-title span { color: var(--text-muted); font-size: 13px; font-weight: 500; display: block; margin-top: 4px; }

/* Horizontal Scroll */
.h-scroll { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 16px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > div { width: 160px; flex-shrink: 0; }
@media (min-width: 768px) { .h-scroll > div { width: 220px; } }

/* Grid Layout */
.grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .grid-layout { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .grid-layout { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Service Card UI */
.clean-card {
    background: var(--card-bg); border-radius: var(--radius-card); height: 100%;
    display: flex; flex-direction: column; overflow: hidden; position: relative;
    box-shadow: var(--shadow-subtle); border: 1px solid #f4f4f5; transition: 0.3s;
}
.clean-card:hover { box-shadow: var(--shadow-float); border-color: #e4e4e7; transform: translateY(-3px); }

.c-img-wrap { 
    position: relative; padding-top: 85%; background: #f8fafc; 
    border-bottom: 1px solid #f4f4f5; 
}
.c-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 75%; max-height: 75%; object-fit: contain; mix-blend-mode: multiply; transition: 0.4s;}
.clean-card:hover .c-img { transform: translate(-50%, -50%) scale(1.05); }

.c-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: var(--accent); color: var(--primary-invert);
    font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill);
    letter-spacing: 0.5px; text-transform: uppercase;
}
.c-rating {
    position: absolute; bottom: 12px; left: 12px; z-index: 2;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); border: 1px solid #e4e4e7;
    font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; display: flex; align-items: center; gap: 4px; color: var(--text-main);
}

.c-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.c-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 39px; }

.c-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;}
.c-price { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); }
.c-mrp { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

.c-btn-group { display: flex; gap: 8px; margin-top: auto; position: relative; z-index: 5; }

.btn-minimal {
    flex: 1; height: 42px; border-radius: 12px; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    background: #f4f4f5; color: var(--text-main); border: none; transition: 0.2s;
    white-space: nowrap; 
    padding: 0 4px;
    overflow: hidden;
}
.btn-minimal.dark { background: var(--primary); color: var(--primary-invert); }
.btn-minimal:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-icon { width: 42px; flex-basis: 42px; flex-shrink: 0; background: #f4f4f5; color: var(--text-main); padding: 0; }
.btn-icon:hover { background: var(--text-main); color: var(--primary-invert); }

.stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: ""; }

@media (max-width: 575px) {
    .container-modern { padding: 0 10px; }
    .grid-layout { gap: 8px; }
    
    .c-content { padding: 8px; }
    .c-title { font-size: 12px; height: 34px; margin-bottom: 6px; }
    .c-price { font-size: 15px; }
    .c-price-row { margin-bottom: 10px; gap: 4px; }
    
    .c-btn-group { gap: 4px; }
    .btn-minimal { 
        height: 32px; 
        font-size: 10px; 
        border-radius: 6px; 
        letter-spacing: -0.3px; 
        padding: 0 2px;
    }
    .btn-icon { 
        width: 30px; 
        flex-basis: 30px; 
        font-size: 12px;
    }
}

/* ==========================================================================
   PHASE 4 & 5: PAGE-SPECIFIC AND COMPONENT STYLE EXTRACTIONS
   ========================================================================== */

/* --- SERVICES PAGE --- */
.premium-mobile-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}
.quick-filter-scroll {
    overflow-x: auto; white-space: nowrap; padding: 14px 16px;
    display: flex; gap: 12px; scrollbar-width: none; align-items: center;
}
.quick-filter-scroll::-webkit-scrollbar { display: none; }
.quick-pill {
    display: inline-flex; align-items: center; padding: 10px 18px; 
    border: 1px solid var(--border-color); border-radius: 40px; 
    font-size: 13px; font-weight: 700; color: var(--primary); 
    background: var(--bg-white); transition: 0.3s ease; cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.quick-pill i { color: var(--text-muted); margin-right: 8px; font-size: 14px;}
.quick-pill:active { transform: scale(0.95); }
.quick-pill.active-cat {
    background: var(--brand-light); color: var(--brand); 
    border-color: #bfdbfe; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
.quick-pill.active-cat i { color: var(--brand); }
.uc-list { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.uc-card {
    background: var(--bg-white); border-radius: 24px;
    padding: 18px; box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03); transition: 0.3s ease;
    position: relative; overflow: hidden;
}
.uc-card:active { transform: scale(0.98); }
.uc-card-body { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;}
.uc-info { flex: 1; display: flex; flex-direction: column; }
.uc-rating { 
    background: #d1fae5; color: var(--accent-success); 
    font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; 
    display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-bottom: 10px;
}
.uc-rating-count { color: var(--text-muted); font-size: 10px; margin-left: 4px; font-weight: 600;}
.uc-title { font-size: 16px; font-weight: 800; color: var(--primary); line-height: 1.3; margin-bottom: 8px; }
.uc-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 12px; display: flex; align-items: baseline; gap: 4px;}
.uc-price-start { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;}
.uc-features { list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--text-muted); font-weight: 600;}
.uc-features li { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.uc-features li i { color: var(--brand); font-size: 12px; }
.uc-img-wrap { width: 120px; display: flex; flex-direction: column; align-items: center; position: relative;}
.uc-img { width: 120px; height: 120px; border-radius: 16px; object-fit: contain; background: #f8fafc; border: 1px solid var(--border-color); padding: 10px;}
.p-badge-home { position: absolute; top: -8px; left: -8px; background: linear-gradient(135deg, var(--brand), #1e40af); color: #fff; font-size: 9px; font-weight: 800; padding: 4px 8px; border-radius: 8px; box-shadow: 0 4px 10px rgba(37,99,235,0.3); letter-spacing: 0.5px;}
.uc-card-footer { margin-top: 20px; display: flex; gap: 12px;}
.btn-outline-add {
    flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px;
    background: #fff; border: 2px solid var(--border-color); color: var(--primary); 
    padding: 12px; border-radius: 12px; font-weight: 800; 
    font-size: 14px; transition: 0.3s ease; cursor: pointer;
}
.btn-outline-add:active { background: #f1f5f9; transform: scale(0.96); }
.uc-book-btn { 
    flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); 
    color: #fff; padding: 12px; border-radius: 12px; font-weight: 800; 
    font-size: 14px; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); transition: 0.3s ease;
}
.uc-book-btn:active { transform: scale(0.96); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2); }
.app-bottom-sheet { z-index: 10600 !important; border-radius: 28px 28px 0 0 !important; border: none; box-shadow: 0 -15px 40px rgba(0,0,0,0.12); display: flex; flex-direction: column;}
.sheet-drag-handle { width: 48px; height: 6px; background: #cbd5e1; border-radius: 10px; margin: 16px auto 0 auto; flex-shrink: 0;}
.app-bottom-sheet .offcanvas-header { padding: 20px 24px; border: none; flex-shrink: 0;}
.app-bottom-sheet .offcanvas-title { font-size: 20px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px;}
.cat-grid { 
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; 
    padding: 0 24px 24px 24px; overflow-y: auto; height: 100%; align-content: start;
}
.cat-grid-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px 12px; border-radius: 24px; border: 2px solid transparent;
    background: #f8fafc; text-align: center; gap: 12px; transition: 0.3s ease; text-decoration: none;
}
.cat-grid-item.active { background: var(--brand-light); border-color: var(--brand); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12); }
.cat-grid-item i { font-size: 28px; color: var(--text-muted); transition: 0.3s ease;}
.cat-grid-item.active i { color: var(--brand); transform: scale(1.1); }
.cat-grid-item span { font-size: 13px; font-weight: 800; color: var(--primary); line-height: 1.2;}
.app-bottom-sheet .list-group-item { border: none; padding: 18px 24px; font-size: 16px; font-weight: 700; color: var(--text-muted); border-radius: 16px; margin: 0 12px 8px 12px; transition: 0.3s ease;}
.app-bottom-sheet .list-group-item.active-item { background: var(--brand-light); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand);}
@media (min-width: 992px) {
    .uc-list { display: none; } 
    .dk-card { 
        display: flex; flex-direction: row; align-items: stretch; 
        background: var(--bg-white); border-radius: 24px; 
        box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); 
        margin-bottom: 24px; transition: 0.3s ease; overflow: hidden;
    }
    .dk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,0.1); }
    .dk-img-container { 
        width: 220px; background: #f8fafc; display: flex; align-items: center; justify-content: center; 
        padding: 24px; border-right: 1px solid var(--border-color); position: relative;
    }
    .dk-img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: 0.3s ease; }
    .dk-card:hover .dk-img { transform: scale(1.05); }
    .dk-info { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: center;}
    .dk-title { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1.3;}
    .dk-title:hover { color: var(--brand); }
    .dk-features { font-size: 14px; list-style: none; padding: 0; color: var(--text-muted); font-weight: 600; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;}
    .dk-features li { display: flex; align-items: center; gap: 8px; }
    .dk-features li i { color: var(--brand); font-size: 14px;}
    .dk-express { font-size: 12px; font-weight: 800; color: #b45309; background: #fef3c7; padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 16px;}
    .dk-actions { 
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        width: 240px; background: #fafaf9; padding: 24px; border-left: 1px dashed var(--border-color);
    }
    .dk-price { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1;}
    .dk-btn { width: 100%; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; cursor: pointer; border: none;}
    .dk-btn-add { background: #fff; color: var(--primary); border: 2px solid var(--border-color); margin-bottom: 12px;}
    .dk-btn-add:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand); }
    .dk-btn-book { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
    .dk-btn-book:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);}
    .dk-sidebar { background: var(--bg-white); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03);}
    .dk-filter-title { font-size: 15px; font-weight: 800; text-transform: uppercase; color: var(--primary); margin-bottom: 20px; letter-spacing: 0.5px; display: flex; align-items: center;}
    .dk-filter-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; transition: 0.3s ease; border: 1px solid transparent;}
    .dk-filter-link:hover { background: #f8fafc; color: var(--primary); border-color: var(--border-color);}
    .dk-filter-link.active { background: var(--brand-light); color: var(--brand); border-color: #bfdbfe; box-shadow: 0 4px 10px rgba(37,99,235,0.05);}
}

/* --- PRODUCTS PAGE --- */
.mobile-header {
    background: #fff; border-bottom: 1px solid #e0e0e0;
    position: sticky; top: 0; z-index: 1000;
    display: flex; flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mobile-actions { display: flex; height: 48px; border-bottom: 1px solid #f0f0f0; }
.m-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: #212121;
    border-right: 1px solid #f0f0f0; gap: 8px; cursor: pointer;
}
.m-action-btn:last-child { border-right: none; }
.mobile-cats {
    overflow-x: auto; white-space: nowrap; padding: 10px;
    display: flex; gap: 8px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.mobile-cats::-webkit-scrollbar { display: none; }
.fk-sidebar { background: #fff; min-height: 85vh; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.fk-sidebar-head { padding: 16px; font-size: 18px; font-weight: 500; border-bottom: 1px solid #f0f0f0; }
.fk-filter-sec { padding: 16px; border-bottom: 1px solid #f0f0f0; }
.fk-sec-title { font-size: 12px; font-weight: 600; color: #878787; text-transform: uppercase; margin-bottom: 12px; }
.fk-radio-link { display: flex; align-items: center; padding: 6px 0; font-size: 14px; color: #212121; cursor: pointer; }
.fk-radio-circle { width: 16px; height: 16px; border: 1px solid #878787; border-radius: 50%; margin-right: 10px; display: flex; align-items: center; justify-content: center; }
.fk-radio-link.active .fk-radio-circle { border-color: #2874f0; }
.fk-radio-link.active .fk-radio-circle::after { content: ""; width: 8px; height: 8px; background: #2874f0; border-radius: 50%; }
.mobile-grid-wrapper { display: block; }
.fk-card {
    background: #fff; display: flex; padding: 20px;
    border-bottom: 1px solid #f0f0f0; position: relative;
    text-decoration: none; color: inherit; transition: 0.15s ease-out;
}
.fk-card:hover { box-shadow: 0 3px 16px 0 rgba(0,0,0,0.1); z-index: 2; }
.fk-img-box { width: 180px; height: 180px; position: relative; flex-shrink: 0; }
.fk-img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 95%; max-height: 95%; object-fit: contain; }
.cond-badge { position: absolute; top: -5px; left: -5px; font-size: 9px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 4px; z-index: 2; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.badge-refurb { background: #7c3aed; } 
.badge-new { background: #388e3c; }
.fk-info { flex: 1; padding-left: 20px; display: flex; flex-direction: column; overflow: hidden; }
.fk-title { font-size: 17px; font-weight: 500; color: #212121; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-rating { background: #388e3c; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; display: inline-flex; align-items: center; gap: 3px; margin-bottom: 8px; width: fit-content; }
.fk-features { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #666; }
.fk-features li { margin-bottom: 3px; display: flex; align-items: center; }
.fk-features li::before { content: "•"; color: #c2c2c2; margin-right: 8px; }
.delivery-indicator { font-size: 13px; font-weight: 600; color: #388e3c; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.fk-price-col { width: 22%; min-width: 170px; padding-left: 20px; display: flex; flex-direction: column; border-left: 1px solid #f9f9f9; }
.fk-price { font-size: 22px; font-weight: 700; color: #212121; }
.fk-mrp { font-size: 13px; color: #878787; text-decoration: line-through; margin-left: 5px; }
.fk-off { font-size: 12px; color: #388e3c; font-weight: 700; margin-left: 5px; }
.fk-btn-row { display: flex; gap: 6px; margin-top: auto; }
.fk-btn { flex: 1; height: 38px; border: none; border-radius: 2px; font-size: 12px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; text-transform: uppercase; transition: 0.2s;}
.btn-cart { background: #ff9f00; }
.btn-buy { background: #fb641b; }

@media (max-width: 991px) {
    .fk-sidebar { display: none; }
    .main-content-bg { background-color: transparent !important; box-shadow: none !important; }
    .mobile-grid-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 4px;
    }
    .fk-card {
        padding: 10px;
        flex-direction: column;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        background: #fff;
        height: 100%;
        margin-bottom: 0;
    }
    .fk-img-box { 
        width: 100%; 
        height: 140px;
        margin-right: 0; 
        margin-bottom: 12px;
    }
    .fk-info { padding: 0; flex: 1; justify-content: space-between; }
    .fk-title { 
        font-size: 13px; 
        line-height: 1.3; 
        max-height: 34px; 
        white-space: normal; 
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical; 
        margin-bottom: 6px;
    }
    .fk-features { display: none; }
    .fk-rating { font-size: 10px; padding: 2px 5px; margin-bottom: 6px;}
    .fk-price-col { width: 100%; padding: 0; margin-top: auto; border-left: none; }
    .fk-price-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
    .fk-price { font-size: 16px; }
    .fk-mrp { font-size: 11px; margin-left: 0; }
    .fk-off { font-size: 10px; margin-left: 0; }
    .fk-btn-row { margin-top: 10px; gap: 5px; }
    .fk-btn { height: 34px; font-size: 11px; border-radius: 4px; }
    .btn-cart { width: 38px; flex: none; }
    .btn-buy { flex: 1; }
    .delivery-indicator { font-size: 10px; margin-top: 4px; display: none; }
    .cond-badge { top: 0; left: 0; border-radius: 0 0 6px 0; font-size: 8px;}
}

/* --- PRODUCT DETAILS PAGE --- */
.no-save-img {
    -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-drag: none;
    -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; pointer-events: auto; 
}
#imageLightbox {
    display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
#imageLightbox img { max-width: 95%; max-height: 90%; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 30px; font-weight: bold; cursor: pointer; }
#shareModal {
    display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); justify-content: center; align-items: center; backdrop-filter: blur(2px);
}
.share-modal-content { background: #fff; padding: 20px; border-radius: 8px; width: 90%; max-width: 320px; text-align: center; position: relative; }
.share-modal-close { position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 24px; color: #878787; line-height: 1; }
.share-icons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.share-icons a, .share-icons button { 
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: #fff; font-size: 20px; text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s;
}
.share-icons a:hover, .share-icons button:hover { transform: scale(1.1); }
.sh-wa { background: #25D366; } .sh-fb { background: #1877F2; } .sh-tw { background: #000000; } .sh-cp { background: #878787; }
.p-main-wrapper { 
    display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; max-width: 1440px; 
    margin: 20px auto 40px auto; position: relative; z-index: 1; 
}
.p-gallery-container { width: 40%; background: #fff; padding: 15px; position: sticky; top: 90px; align-self: flex-start; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 2; }
.p-main-view { height: 400px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 15px; cursor: zoom-in; }
.p-main-view img { max-height: 100%; max-width: 100%; object-fit: contain; }
.p-thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding-bottom: 5px; }
.p-thumb { width: 50px; height: 50px; border: 1px solid #f0f0f0; border-radius: 2px; cursor: pointer; padding: 2px; flex-shrink: 0; }
.p-thumb.active { border: 2px solid #2874f0; }
.p-info-container { width: calc(60% - 10px); background: #fff; padding: 24px; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 2; }
.p-breadcrumb { font-size: 12px; color: #878787; margin-bottom: 10px; }
.title-wrapper { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.p-title { font-size: 20px; font-weight: 500; color: #212121; line-height: 1.4; margin: 0; }
.btn-share { 
    background: #f1f3f6; border: none; width: 38px; height: 38px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: #212121; 
    cursor: pointer; flex-shrink: 0; transition: 0.2s; font-size: 16px;
}
.btn-share:hover { background: #e0e0e0; }
.p-price-row { display: flex; align-items: baseline; gap: 12px; margin: 15px 0 5px 0; flex-wrap: wrap;}
.p-price { font-size: 28px; font-weight: 600; color: #212121; }
.p-mrp { font-size: 16px; color: #878787; text-decoration: line-through; }
.p-disc { font-size: 16px; color: #388e3c; font-weight: 600; }
.p-policy-card { display: flex; gap: 10px; padding: 15px; background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; margin-bottom: 20px; }
.policy-item { flex: 1; text-align: center; font-size: 11px; color: #212121; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px;}
.policy-item i { font-size: 18px; color: #2874f0; }
.rich-desc-section { margin-top: 25px; border: 1px solid #f0f0f0; border-radius: 4px; overflow: hidden; }
.rich-desc-tab { padding: 15px 20px; background: #fafafa; border-bottom: 1px solid #f0f0f0; font-weight: 600; font-size: 16px; }
.rich-desc-content { padding: 20px; font-size: 14px; line-height: 1.6; color: #212121; }
.rich-desc-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rich-desc-content tr { border-bottom: 1px dotted #e0e0e0; }
.rich-desc-content td { padding: 12px 10px; vertical-align: top; }
.rich-desc-content td:first-child { color: #878787; width: 35%; font-weight: 400; }
.rich-desc-content td:last-child { color: #212121; font-weight: 500; }
.faq-section { margin-top: 30px; }
.faq-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.faq-question { padding: 15px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; background: #f8fafc; }
.faq-answer { padding: 15px; font-size: 14px; color: #475569; display: none; border-top: 1px solid #e0e0e0; }
.p-mobile-gallery-wrap { display: none; }
.p-sticky-footer { 
    display: flex; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1050; 
    background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding-bottom: env(safe-area-inset-bottom);
}
.p-sticky-footer .m-action-btn { flex: 1; height: 55px; border: none; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-transform: uppercase; cursor: pointer; transition: background 0.2s; text-decoration: none;}
.p-sticky-footer .m-cart { background: #fff; color: #212121; border-top: 1px solid #e0e0e0; }
.p-sticky-footer .m-buy { background: #fb641b; color: #fff; }

@media (max-width: 991px) {
    .p-main-wrapper { flex-direction: column; padding: 0; gap: 0; margin-bottom: 80px; margin-top: 0; }
    .p-gallery-container, .p-info-container { width: 100%; border-radius: 0; box-shadow: none; position: static; }
    .p-gallery-container { display: none; }
    .p-mobile-gallery-wrap { display: block; background: #fff; position: relative; border-bottom: 1px solid #f0f0f0; }
    .p-mobile-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 380px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .p-mobile-gallery::-webkit-scrollbar { display: none; }
    .m-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; cursor: zoom-in; }
    .m-slide img { max-height: 100%; max-width: 100%; object-fit: contain; }
    .gallery-indicators { position: absolute; bottom: 10px; left: 0; width: 100%; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
    .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.2); transition: 0.3s; }
    .dot.active { background: #2874f0; transform: scale(1.2); }
    .p-info-container { padding: 16px; background: #fff; margin-bottom: 0; }
    .p-title { font-size: 18px; line-height: 1.3;}
    .p-price-row { margin: 10px 0 5px 0; }
    .p-price { font-size: 24px; }
    .p-mrp { font-size: 14px; }
    .p-disc { font-size: 14px; }
    .rich-desc-content { padding: 15px; }
    .rich-desc-content td:first-child { width: 45%; font-size: 13px; }
    .rich-desc-content td:last-child { font-size: 13px; }
    .p-policy-card { padding: 12px; }
}

/* --- DASHBOARD STYLES --- */
.dash-container { min-height: 90vh; padding-bottom: 90px; }
.dash-card { background: white; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-bottom: 24px; }
.nav-pills .nav-link { color: #475569; font-weight: 600; padding: 12px; border: 1px solid #e2e8f0; background: #fff; margin-bottom: 8px; border-radius: 12px; }
.nav-pills .nav-link.active { background-color: var(--brand); color: white; border-color: var(--brand); }
.order-card { 
    background: #fff; 
    border-radius: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    margin-bottom: 20px; 
    border: 1px solid rgba(0,0,0,0.04); 
    overflow: hidden; 
    transition: all 0.3s ease; 
}
.order-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.card-header-click { 
    padding: 20px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #fff; 
    user-select: none; 
    -webkit-tap-highlight-color: transparent;
}
.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
    font-size: 1.2rem;
}
.status-badge { 
    font-size: 0.7rem; 
    padding: 6px 14px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.payment-badge { 
    font-size: 0.7rem; 
    padding: 5px 10px; 
    border-radius: 8px; 
    font-weight: 700; 
    display: inline-block; 
    letter-spacing: 0.3px;
}
.arrow-icon { 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    color: #adb5bd; 
    font-size: 1rem;
    background: #f8f9fa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-card:hover .arrow-icon {
    background: #e9ecef;
    color: #495057;
}
.arrow-icon.open { 
    transform: rotate(180deg); 
    background: #e0e7ff;
    color: #3b82f6; 
}
.details-container { 
    display: none; 
    border-top: 1px dashed #e2e8f0; 
    background-color: #fcfcfd; 
    animation: fadeSlideDown 0.3s ease-out; 
}
.otp-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 1px solid #ffda6a;
    border-radius: 16px;
}
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.msg-icon-box { width: 60px; height: 60px; line-height: 60px; border-radius: 50%; display: inline-block; margin-bottom: 15px; }
.step-progress { position: relative; padding-left: 45px; margin: 20px 0; }
.step-progress-item { position: relative; padding-bottom: 25px; }
.step-progress-item::before { 
    content: ''; position: absolute; left: -34px; top: 0; width: 2px; height: 100%; 
    background: #e2e8f0; z-index: 1; 
}
.step-progress-item:last-child::before { display: none; }
.step-icon { 
    position: absolute; left: -44px; top: -2px; width: 22px; height: 22px; 
    border-radius: 50%; background: #fff; border: 2px solid #e2e8f0; z-index: 2; 
    text-align: center; line-height: 18px; font-size: 10px; color: #fff;
}
.step-progress-item.active .step-icon { border-color: #10b981; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
.step-progress-item.active::before { background: #10b981; }
.step-title { font-weight: 700; font-size: 14px; color: #1e293b; }
.step-time { font-size: 12px; color: #64748b; margin-top: 2px; font-weight: 500;}

@media (max-width: 576px) {
    .card-header-click { padding: 16px; }
    .icon-circle { width: 48px; height: 48px; font-size: 1rem; }
    .fs-mobile-small { font-size: 0.8rem !important; }
}

/* --- CART PAGE --- */
.cart-product-link { text-decoration: none; color: inherit; display: flex; align-items: center; transition: 0.2s; }
.cart-product-link:hover { color: #2563eb; }
.qty-group { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.btn-qty { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #dee2e6; background: #fff; color: #333; border-radius: 8px; text-decoration: none; transition: 0.2s; }
.btn-qty:hover { background: #f8f9fa; border-color: #c1c9d0; }
.qty-display { font-weight: 600; min-width: 20px; text-align: center; }

/* --- CONTACT PAGE --- */
.contact-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.05;
}
.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.info-card:hover { transform: translateY(-10px); border-color: var(--brand); }
.info-card::after {
    content: ''; position: absolute; top: -50px; right: -50px; width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}
.modern-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 4px solid white;
    height: 400px;
}

/* --- CHECKOUT PAGE --- */
.checkout-card { background: white; border-radius: 16px; border: 1px solid #e2e8f0; padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.step-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; color: #0f172a; }
.step-badge { background: #0f172a; color: white; width: 28px; height: 28px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 14px; margin-right: 10px; }

/* --- SHIPPING ADDRESS PAGE --- */
.addr-list-item { 
    border: 1px solid #e2e8f0; border-radius: 10px; padding: 15px; margin-bottom: 12px; 
    background: white; position: relative; transition: 0.2s; 
}
.addr-list-item:hover { border-color: #cbd5e1; background: #f8fafc; }
.addr-list-item.default-item { border-color: #2563eb; background: #eff6ff; }
.addr-list-item.default-item::after { 
    content: "Default"; font-size: 0.6rem; font-weight: bold; background: #2563eb; 
    color: white; padding: 2px 6px; border-radius: 4px; position: absolute; top: 10px; right: 10px; 
}
.addr-list-item.selected { border-color: #2563eb; background: #eff6ff; }
.action-btn-dash { 
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; border: 1px solid #e2e8f0; transition: 0.2s; background: white; cursor: pointer;
}
.action-btn-dash:hover { background: #f1f5f9; }
.action-btn-dash.delete:hover { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.mobile-nav-dash { background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-top: 1px solid #e2e8f0; z-index: 1040; }
.mobile-nav-dash-link { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; color: #94a3b8; text-decoration: none; font-size: 0.75rem; font-weight: 600; }
.mobile-nav-dash-link i { font-size: 1.25rem; margin-bottom: 4px; }
.mobile-nav-dash-link.active { color: #2563eb; }

/* --- LOCAL SERVICE PAGE --- */
.hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 40px 20px; border-radius: 0 0 20px 20px; }
.hero-badge { background: rgba(59, 130, 246, 0.2); color: #60a5fa; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 15px; border: 1px solid rgba(59, 130, 246, 0.3); }
.main-img { border-radius: 12px; width: 100%; max-height: 350px; object-fit: contain; background: #fff; padding: 15px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); cursor: zoom-in; transition: 0.3s; }
.gal-thumb { width: 70px; height: 70px; object-fit: contain; background: #fff; padding: 4px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-shrink: 0;}
.gal-thumb:hover { border-color: #3b82f6; }
.content-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-top: -30px; position: relative; z-index: 10; }
.price-tag { font-size: 28px; font-weight: 800; color: #0f172a; }
.action-btn-local { background: #3b82f6; color: white; border: none; padding: 14px; width: 100%; border-radius: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 16px; transition: 0.2s;}

@media (max-width: 768px) {
    .hero-section { padding: 25px 15px; border-radius: 0 0 15px 15px; }
    .hero-section h1 { font-size: 1.6rem !important; }
    .hero-section p { font-size: 0.95rem !important; }
    .content-card { margin-top: -15px; padding: 15px; }
    .main-img { max-height: 250px; padding: 10px; }
    .price-tag { font-size: 24px; }
    .action-btn-local { padding: 12px; font-size: 15px; }
    .gal-thumb { width: 60px; height: 60px; }
}

/* --- COMPLETE PROFILE PAGE --- */
#stateField { background-color: #e9ecef; cursor: not-allowed; }
.ls-2 { letter-spacing: 2px; }
.step-progress-item.cancelled-step .step-icon { border-color: #dc3545 !important; background: #dc3545 !important; } 
.step-progress-item.cancelled-step::before { background: #dc3545 !important; }

/* --- REGISTER PAGE --- */
#regCard { 
    border: none; border-radius: 20px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); overflow: hidden;
}
.step-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 25px; }
.dot { height: 8px; width: 8px; background-color: #e9ecef; border-radius: 50%; transition: 0.3s; }
.dot.active { background-color: var(--brand); width: 24px; border-radius: 4px; }
#step2, #step3 { display: none; }
.btn-google-custom {
    background-color: #fff; border: 1px solid #dadce0; color: #3c4043;
    font-weight: 500; display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 12px; border-radius: 50px; transition: all .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); width: 100%;
}
.btn-google-custom:active { transform: scale(0.98); background-color: #f1f3f4; }
.btn-google-custom img { width: 20px; height: 20px; }
.pass-hint { font-size: 11px; color: #6c757d; margin-top: 4px; display: block; }
.pass-hint.valid { color: #198754; }
.pass-hint.invalid { color: #dc3545; }