/* =========================================
   1. RESET & VARIABLES (New Green Theme)
   ========================================= */
:root {
    --primary: #0f172a;       
    --brand: #059669;         /* Darkened to Emerald 600 for Accessibility/Contrast */
    --brand-b2b: #2563eb;     
    --brand-hover: #047857;   /* Emerald 700 */
    --b2b-hover: #1d4ed8;
    --bg-body: #f8fafc;       
    --bg-card: #ffffff;
    --text-muted: #475569;    /* Darkened to Slate 600 for readability */
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 16px;
    --whatsapp: #25D366;
}

/* Accessibility Utility Class (Fixes "Form inputs without labels") */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-body); 
    color: var(--primary); 
    padding-bottom: 90px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* =========================================
   2. HEADER (Clean White)
   ========================================= */
.app-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 80px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.brand { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.brand span { color: var(--brand); }

.desktop-nav { display: none; gap: 30px; font-weight: 600; font-size: 0.95rem; }
/* New: Aligns SVG icon next to text */
.desktop-nav a { display: flex; align-items: center; gap: 8px; } 
.desktop-nav a:hover { color: var(--brand); }
.btn-nav-cta {
    background: var(--brand);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    transition: 0.2s;
}
.btn-nav-cta:hover { background: var(--brand-hover); color: white !important; }

/* =========================================
   3. MODERN HERO SECTION (Split Layout)
   ========================================= */
.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    /* CHANGED: Added 20px bottom padding for separation, reduced top padding */
    padding: 30px 20px 20px 20px; 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px; /* Tighter gap */
    align-items: center;
}
.hero-content { text-align: left; }

.badge-new {
    display: inline-block;
    background: #ecfdf5;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary);
}
.hero-content h1 span { color: var(--brand); }

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px; /* CHANGED: Reduced from 30px to pull buttons up */
    max-width: 500px;
}

.hero-btns { display: flex; gap: 15px; }

.btn-primary {
    background: var(--brand);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); }
/* Add this new B2B Button Style */
.btn-b2b {
    background: var(--brand-b2b);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn-b2b:hover { background: var(--b2b-hover); transform: translateY(-2px); }

/* B2B specific badges for cards */
.badge-b2b {
    background: #eff6ff;
    color: var(--brand-b2b);
    border: 1px solid #bfdbfe;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 5px;
}
.btn-outline {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* =========================================
   4. FEATURES SECTION (Cards)
   ========================================= */
/* =========================================
   4. FEATURES SECTION (Compact & Optimized)
   ========================================= */
.features-section {
    padding: 20px 20px; /* Reduced padding */
    max-width: 1200px;
    margin: 0 auto;
}
.section-title-center { text-align: center; margin-bottom: 20px; }
.section-title-center h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 5px; }
.section-title-center p { color: var(--text-muted); font-size: 0.9rem; }

.features-grid {
    display: grid;
    /* CHANGE: Forces 2 columns on mobile to save vertical space */
    grid-template-columns: 1fr 1fr; 
    gap: 12px; /* Tighter gap */
}

.feature-card {
    background: white;
    padding: 20px 15px; /* Compact padding */
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center; /* Center alignment looks better on small cards */
}
.f-icon {
    width: 40px; height: 40px; /* Smaller icon size */
    background: #ecfdf5;
    color: var(--brand);
    border-radius: 10px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 10px auto; /* Centered icon */
}
.feature-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; }
.feature-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }
/* =========================================
   5. CONTROLS & SHOP
   ========================================= */
.controls-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 18px 25px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: 0.3s;
}
.search-box:focus { border-color: var(--brand); box-shadow: 0 0 0 4px #ecfdf5; }

/* Find this in Section 5 of styles.css and REPLACE it */

/* =========================================
   REPLACE THIS IN SECTION 5 OF STYLES.CSS
   ========================================= */

.filter-scroll {
    display: flex;
    flex-direction: row;       /* Forces items into a single horizontal line */
    flex-wrap: nowrap;         /* CRITICAL: Prevents buttons from stacking or wrapping */
    overflow-x: auto;          /* Enables horizontal scrolling */
    overflow-y: hidden;        /* Locks vertical scroll */
    gap: 12px;                 /* Space between buttons */
    padding: 5px 2px 15px 2px; /* Bottom padding gives room for touch scroll */
    width: 100%;
    
    justify-content: flex-start; /* CRITICAL: Aligns items to the left so the first item ("All") is never hidden */
    align-items: center;
    
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    scrollbar-width: none;     /* Hide scrollbar on Firefox */
    touch-action: pan-x;       /* Improves swipe response on Android */
}

/* Hide scrollbar for Chrome/Safari/Edge */
.filter-scroll::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;           /* CRITICAL: Prevents the button from shrinking (squeezing) on small screens */
    white-space: nowrap;      /* CRITICAL: Prevents text inside the button from breaking into two lines */
    display: inline-flex;     /* Keeps icon and text aligned */
    align-items: center;
    justify-content: center;
    
    padding: 10px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip.active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
}

.chip:hover:not(.active) { 
    border-color: var(--brand); 
    color: var(--brand); 
}
/* =========================================
   6. PRODUCT GRID
   ========================================= */
/* =========================================
   6. PRODUCT GRID (Centered Layout)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.product-grid {
    display: flex;             /* Changed to Flex for better centering */
    flex-wrap: wrap;           /* Allows items to wrap to next line */
    justify-content: center;   /* CRITICAL: Centers items horizontally */
    gap: 30px;
    padding-bottom: 50px;
}

.product-card {
    width: 100%;               
    max-width: 300px;          /* Sets a nice fixed width for cards */
    flex: 1 1 280px;           /* Allows card to shrink/grow slightly */
    
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.3s;
    display: flex; flex-direction: column;
}

.product-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--brand); 
}

.card-img-box {
    width: 100%; padding-top: 65%; position: relative; background: #f1f5f9;
}
.card-img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.card-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }

.card-header-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.card-cat { font-size: 0.7rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.5px; }
.card-seller { font-size: 0.75rem; color: var(--text-muted); }

.card-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.price { font-size: 1.4rem; font-weight: 800; color: var(--primary); }

.status-badge { font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; background: #ecfdf5; color: var(--brand-hover); font-weight: 600; }
.status-badge.inc { background: #fef2f2; color: #ef4444; }

/* Actions */
.action-row { display: flex; gap: 10px; margin-top: auto; }
.qty-control { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-btn { background: #f8fafc; border: none; width: 35px; height: 40px; cursor: pointer; color: var(--primary); }
.qty-val { width: 30px; text-align: center; line-height: 40px; font-weight: 600; }

.btn-whatsapp {
    flex-grow: 1;
    background: var(--primary); /* Black button from image style */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-whatsapp:hover { background: var(--brand); }

/* =========================================
   7. FOOTER & MOBILE NAV
   ========================================= */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 60px 20px;
    margin-top: 60px;
    text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; font-size: 0.9rem; color: #94a3b8; }

.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; padding: 12px 0; z-index: 2000;
}
.nav-item { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: var(--text-muted); }
.nav-item.active { color: var(--brand); }
.nav-icon { font-size: 1.4rem; margin-bottom: 3px; }

  .center-text {
    text-align: center;
    font-weight: 600;
    margin: 16px 0;
  }

/* =========================================
   6. FORMS (ADD THIS SECTION)
   ========================================= */
.form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 24px; }

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fdfdfd;
}

.form-control:focus { 
    border-color: var(--accent); 
    background: #fff;
    outline: none; 
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background 0.2s;
    letter-spacing: 0.5px;
}

.btn-submit:hover { 
    background: var(--accent-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Mobile Tweaks for Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 25px;
        margin: 0 15px;
    }
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .mobile-nav { display: none; }
    .desktop-nav { display: flex; }
 /* REPLACED: Reduced top padding to 60px and bottom to 20px */
.hero-wrapper { grid-template-columns: 1.2fr 0.8fr; padding: 60px 20px 20px 20px; }
    .hero-content h1 { font-size: 3.5rem; }
    
    /* Center the filter buttons on desktop */
    .filter-scroll { justify-content: center; } 
    
    /* Note: We REMOVED the fixed grid columns here so the Flexbox centering works */
}
/* =========================================
   9. PRODUCT MODAL STYLES (New)
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-container {
    background: white;
    width: 90%; max-width: 1000px;
    height: 90vh; max-height: 800px;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-overlay.active .modal-container { transform: translateY(0); }

.modal-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 2rem;
    cursor: pointer; z-index: 10; color: #64748b;
}

.modal-grid { display: grid; grid-template-columns: 1fr; }

/* REPLACEMENT: Optimized Product Image Container */
.main-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Default Desktop Height */
    height: 450px !important; 
    border: 1px solid #f1f5f9;
}

/* Mobile Adjustments for Product View */
@media (max-width: 768px) {
    .main-image-wrapper {
        /* Fix: Smaller height on mobile so details are visible */
        height: 280px !important; 
    }
    
    /* Fix: Remove excessive padding on mobile text */
    .modal-info-col {
        padding: 15px 5px !important;
    }

    /* Fix: Make Title slightly smaller on mobile */
    #p-title {
        font-size: 1.4rem !important;
    }
}
.badge-overlay {
    position: absolute; top: 15px; right: 15px;
    background: #10b981; color: white;
    padding: 6px 12px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700;
}

.modal-thumbnails { display: flex; gap: 10px; }
.thumb { width: 50px; height: 50px; background: #e2e8f0; border-radius: 8px; cursor: pointer; }
.thumb.active { border: 2px solid #10b981; background: white; }

/* Info Column */
.modal-info-col { padding: 40px; overflow-y: auto; }

.m-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.m-cat-tag { background: #f1f5f9; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.m-social { font-size: 0.75rem; color: #94a3b8; display: flex; gap: 15px; }

#m-title { font-size: 1.8rem; font-weight: 800; color: #1e293b; margin-bottom: 15px; line-height: 1.2; }

.m-price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid #e2e8f0; }
.m-price { font-size: 2rem; font-weight: 800; color: #1e293b; }
.m-original { text-decoration: line-through; color: #94a3b8; font-size: 1.1rem; }
.m-discount { background: #dcfce7; color: #166534; padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }

.m-status-row { display: flex; gap: 40px; margin-bottom: 30px; }
.status-group label { display: block; font-size: 0.8rem; color: #64748b; margin-bottom: 5px; }
.pill-badge { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-weight: 600; font-size: 0.9rem; }
.pill-badge.success { background: #dcfce7; border-color: transparent; color: #166534; }

.m-section { margin-bottom: 30px; }
.m-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: #1e293b; }
.m-section p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

.m-specs li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.9rem; color: #475569; }

/* Seller Card */
.seller-card {
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px;
    display: flex; align-items: center; gap: 15px; margin-bottom: 30px;
}
.seller-avatar { width: 45px; height: 45px; background: #ffedd5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.seller-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.seller-info span { font-size: 0.75rem; color: #64748b; display: block; }
.seller-rating { color: #f59e0b; font-weight: 700; font-size: 0.8rem; margin-top: 4px; }
.seller-date { margin-left: auto; font-size: 0.7rem; color: #94a3b8; }

/* Actions */
.m-actions { display: flex; gap: 15px; position: sticky; bottom: 0; background: white; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.btn-modal-primary { flex: 2; background: #10b981; color: white; border: none; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; }
.btn-modal-primary:hover { background: #059669; }
.btn-modal-outline { flex: 1; background: white; border: 1px solid #e2e8f0; color: #1e293b; padding: 14px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Responsive Grid for Modal */
@media (min-width: 768px) {
    .modal-grid { grid-template-columns: 1fr 1fr; height: 100%; }
    .modal-image-col { height: 100%; position: sticky; top: 0; }
}
/* =========================================
   10. NEW HOME SECTIONS (Category & Testimonials)
   ========================================= */
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.section-header-row h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.btn-text { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; }



/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}
.testi-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.stars { color: #f59e0b; margin-bottom: 15px; font-size: 0.9rem; }
.testi-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.user-profile { display: flex; align-items: center; gap: 12px; }
.u-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQs3pioY9afTui8xf_Tan5QwIe3pYKbxWn75Q&usqp=CAU");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.u-info h4 { font-size: 0.9rem; font-weight: 700; }
.u-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Green CTA Footer */
.cta-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: 24px;
    margin: 40px 0;
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 10px; }
.cta-banner p { opacity: 0.9; margin-bottom: 25px; }

/* =========================================
   11. NEW REQUEST PAGE LAYOUT (Split)
   ========================================= */
.request-header { text-align: center; padding: 40px 20px; max-width: 700px; margin: 0 auto; }
.req-icon-circle { 
    width: 60px; height: 60px; background: #ecfdf5; color: var(--brand); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; margin: 0 auto 20px auto; 
}

.request-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Left: Form */
.req-form-box { background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border); }
.section-label { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Right: Sidebar */
.req-sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-box { background: white; padding: 25px; border-radius: 16px; border: 1px solid var(--border); }
.step-item { display: flex; gap: 15px; margin-bottom: 20px; }
.step-num { 
    min-width: 28px; height: 28px; background: #ecfdf5; color: var(--brand); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}
.step-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.step-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.recent-req-item { 
    background: #f8fafc; padding: 15px; border-radius: 12px; margin-bottom: 10px; 
    display: flex; justify-content: space-between; align-items: center;
}
.req-tag { font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.req-tag.active { background: #dcfce7; color: #166534; }
.req-tag.done { background: #e2e8f0; color: #64748b; }

@media (min-width: 900px) {
    .request-layout { grid-template-columns: 2fr 1fr; }
}
/* =========================================
   12. NEW CONTACT PAGE STYLES
   ========================================= */
.contact-header { text-align: center; padding: 50px 20px; max-width: 800px; margin: 0 auto; }
.contact-icon-circle { 
    width: 60px; height: 60px; background: #ecfdf5; color: var(--brand); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-size: 1.5rem; margin: 0 auto 20px auto; 
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
    padding-bottom: 60px;
}

/* Left Column: The Form */
.contact-form-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.form-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; color: var(--primary); }
.form-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 25px; }

/* Right Column: Info Sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }

.info-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }

.info-item { display: flex; gap: 15px; margin-bottom: 20px; }
.info-icon {
    min-width: 40px; height: 40px; 
    background: #f1f5f9; color: var(--brand); 
    border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem;
}
.info-content h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.info-content p, .info-content a { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; display: block; }
.info-content a:hover { color: var(--brand); }

/* Availability Badge */
.availability-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 15px;
    border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.status-dot { width: 10px; height: 10px; background: #10b981; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* FAQ Box */
.faq-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}
.btn-small-outline {
    display: inline-block;
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: 0.2s;
}
.btn-small-outline:hover { border-color: var(--brand); color: var(--brand); }

/* Desktop Grid Layout */
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: 2fr 1fr; padding: 0 20px 60px 20px;
    .filter-scroll { justify-content: center; } }
}
/* =========================================
   14. CARD ACTIONS (New Quantity & Button)
   ========================================= */
.card-actions {
    padding: 10px 15px 15px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto; /* Pushes to bottom */
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control-sm {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.qty-btn-sm {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
    transition: 0.2s;
}
.qty-btn-sm:hover { background: #e2e8f0; }

.qty-val-sm {
    width: 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-card-whatsapp {
    width: 100%;
    background: var(--brand);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.2s;
}
.btn-card-whatsapp:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
}
/* =========================================
   15. MODAL QUANTITY STYLES
   ========================================= */
.qty-control-md {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.qty-btn-md {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    transition: 0.2s;
}
.qty-btn-md:hover { background: #e2e8f0; color: var(--brand); }

.qty-val-md {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    line-height: 40px;
    background: white;
}
@media (min-width: 768px) {
    .filter-scroll { justify-content: center; }
}

/* =========================================
   16. LIVE DEALS & ANIMATION (Compact Version)
   ========================================= */
/* REPLACEMENT START: Live Deals High Visibility Mode */
.live-deals-section {
    /* Increased padding to stop it looking squeezed */
    padding: 40px 0 50px 0; 
    overflow: hidden;
    /* NEW: Subtle red gradient makes the section stand out visually */
    background: linear-gradient(to bottom, #ffffff 0%, #fff1f2 100%);
    margin-bottom: 30px;
    border-top: 1px solid #ffe4e6; /* Clean separation line */
}

.live-deals-section .section-title-center {
    margin-bottom: 20px; 
}

.live-deals-section .section-title-center h2 {
    font-size: 2rem; /* Slightly larger title for attention */
    margin-bottom: 8px;
}
/* ====================
   16. LIVE DEALS (Hybrid: Auto + Manual Scroll)
   ==================== */
.live-deals-section {
    padding: 40px 0 50px 0;
    background: linear-gradient(to bottom, #ffffff 0%, #fff1f2 100%);
    margin-bottom: 30px;
    border-top: 1px solid #ffe4e6;
}

.slider-container {
    width: 100%;
    /* ENABLE MANUAL SCROLL */
    overflow-x: auto; 
    position: relative;
    padding: 30px 0;
    
    /* UX: Smooth scroll behavior & hide scrollbars */
    scroll-behavior: auto; 
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    cursor: grab;
    
    /* Prevent text selection while dragging */
    user-select: none;
    -webkit-overflow-scrolling: touch; /* Momentum scroll on iOS */
}

/* Hide scrollbar for Chrome/Safari/Edge */
.slider-container::-webkit-scrollbar { 
    display: none; 
}

.slider-container:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    gap: 20px;
    /* Ensure track is wide enough for all items */
    width: max-content; 
    padding: 0 20px;
    /* REMOVED: animation: scroll ... (Now handled by JS) */
}

/* Deal Card (No changes needed, just ensure it stays fixed width) */
.deal-card {
    width: 220px; /* Fixed width is crucial for calculation */
    flex-shrink: 0;
    background: white;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.2s;
}
.deal-card:hover { transform: scale(1.02); }
/* Deal Card Styles */
.deal-card {
    width: 220px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
}

.deal-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.deal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.deal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deal-price-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.deal-price {
    color: #b91c1c;
    font-weight: 800;
    font-size: 1.1rem;
}

.deal-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Green Grab Deal Button */
.btn-grab-deal {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Green Gradient */
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-grab-deal:hover {
    transform: scale(1.05);
}

/* =========================================
   17. SPECIFIC FIX FOR FEATURES BANNER IMAGE
   ========================================= */
/* This specific selector ensures ONLY the image in the features section is affected */
/* =========================================
   17. FEATURES IMAGE OPTIMIZATION
   ========================================= */
.features-section .hero-image {
    display: none; /* OPTIMIZATION: Hidden on mobile to save huge vertical space */
    width: 100%;
    max-width: 900px;
    height: 300px;
    margin: 0 auto 30px auto;
    border-radius: 12px;
    overflow: hidden;
}

.features-section .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* DESKTOP RESTORATION: Show image & expand grid on large screens */
@media (min-width: 768px) {
    .features-section .hero-image { 
        display: block; /* Visible on Desktop */
    }
    .features-grid { 
        grid-template-columns: repeat(4, 1fr); /* 4 items in one row on desktop */
    } 
    .feature-card {
        padding: 30px; /* Restore comfortable padding on desktop */
        text-align: left;
    }
    .f-icon {
        margin: 0 0 20px 0; /* Left align icon on desktop */
    }
    .feature-card p { font-size: 0.9rem; }
}
/* =========================================
   APPEND TO BOTTOM: HERO SEARCH STYLES (OPTIMIZED)
   ========================================= */
.hero-search-container {
    position: relative;
    width: 100%;             /* FIX: Forces full width on mobile */
    max-width: 500px;        /* Slightly wider on desktop to fit long text */
    margin-bottom: 20px;
    z-index: 1001;
}

.hero-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50px;     /* FIX: Fully rounded looks better for search */
    padding: 8px 12px;       /* FIX: Reduced padding (was 16px) to give text more space */
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
}

.hero-input-wrapper:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px #ecfdf5;
}

.h-search-icon {
    font-size: 1.1rem;
    margin-right: 8px;       /* FIX: Reduced margin to save space */
    opacity: 0.5;
    flex-shrink: 0;          /* FIX: Prevents icon from squishing */
}

#heroSearchInput {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;       /* Default font size */
    color: var(--primary);
    background: transparent;
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FIX: Specific Mobile Optimization */
@media (max-width: 480px) {
    #heroSearchInput {
        font-size: 0.75rem;  /* Smaller font on mobile to fit more text */
        letter-spacing: -0.3px; /* Tighter spacing to fit long placeholder */
    }
    .hero-input-wrapper {
        padding: 6px 10px;   /* Even tighter padding on small screens */
    }
}

/* Dropdown Styles */
.hero-results-dropdown {
    position: absolute;
    top: 115%;               /* Pushed down slightly */
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.hero-results-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

/* Result Item Styles */
.h-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.1s;
}

.h-result-item:hover {
    background: #f8fafc;
}

.h-result-item:last-child {
    border-bottom: none;
}

.h-res-img {
    width: 40px;             /* Slightly smaller for compact look */
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.h-res-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;        /* Prevents text spill */
}

.h-res-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-res-price {
    font-size: 0.8rem;
    color: var(--brand);
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   18. NEW MARKET TOGGLE & CART UI
   ========================================= */

/* Navbar Cart Icon */
.cart-icon-wrap {
    position: relative;
    margin-left: 20px;
    cursor: pointer;
    color: var(--primary);
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Market Toggle Switch */
.market-toggle-container {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto 20px auto;
}
.market-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}
.market-btn.active {
    background: white;
    color: var(--brand);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Add To Cart Button Style */
.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}
.btn-add-cart:hover {
    background: var(--brand);
}
/* ====================
   19. CART DRAWER (Slide-out)
   ==================== */
.cart-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 4000;
    opacity: 0; pointer-events: none;
    transition: 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: 100%; max-width: 400px;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 4001;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.cart-overlay.open .cart-drawer { right: 0; }

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 1.2rem; font-weight: 800; }
.btn-close-cart { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.cart-body {
    flex: 1; overflow-y: auto; padding: 20px;
    background: #f8fafc;
}

.cart-item {
    background: white; border-radius: 12px; padding: 15px;
    border: 1px solid var(--border); margin-bottom: 15px;
    display: flex; gap: 15px; align-items: center;
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; display: block;}
.cart-item-price { font-size: 0.85rem; color: var(--text-muted); }

.cart-qty-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.btn-qty-mini { width: 24px; height: 24px; border: 1px solid var(--border); background: white; border-radius: 4px; cursor: pointer; }

.cart-footer {
    padding: 20px; border-top: 1px solid var(--border); background: white;
}
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; margin-bottom: 15px; }
.btn-checkout {
    width: 100%; background: var(--brand); color: white; padding: 14px;
    border-radius: 50px; font-weight: 700; border: none; cursor: pointer;
}
/* ====================
   20. QUANTITY CONTROLS (New)
   ==================== */
/* Small Control for Cards */
.card-action-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}
.qty-selector-sm {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    height: 40px;
    border: 1px solid var(--border);
}
.q-btn {
    width: 30px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}
.q-btn:hover { color: var(--brand); background: #e2e8f0; }
.q-val {
    width: 25px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}
/* Update Add Button to fit next to quantity */
.btn-add-cart.compact {
    flex: 1; /* Takes remaining space */
    padding: 0;
    height: 40px;
    font-size: 0.9rem;
}

/* Product Page Quantity */
.p-qty-wrapper {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}
.qty-label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
/* ====================
   FIX: HEADER ALIGNMENT
   ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Ensure cart icon is vertically centered */
.cart-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0; /* Reset margin since we use gap now */
    padding-top: 4px; /* Micro-adjustment for visual center */
}
/* =========================================
   CHECKOUT PAGE STYLES
   ========================================= */

/* Address Grid */
.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
@media(min-width: 768px) {
    .address-grid { grid-template-columns: 1fr 1fr; }
}

/* Address Card */
.address-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
}

.address-card:hover { border-color: #cbd5e1; background: #f8fafc; }

/* Selected State */
.address-card.selected {
    border-color: var(--brand);
    background: #ecfdf5;
    box-shadow: 0 0 0 1px var(--brand);
}
.address-card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.75rem; font-weight: 700;
    color: var(--brand);
    background: white;
    padding: 4px 8px; border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.addr-header { margin-bottom: 10px; }
.addr-name { font-weight: 800; font-size: 1.1rem; color: var(--primary); display: block; margin-bottom: 4px;}
.addr-tag { font-size: 0.75rem; background: #e2e8f0; padding: 2px 8px; border-radius: 4px; color: #64748b; font-weight: 600;}

.addr-text { font-size: 0.95rem; color: #64748b; line-height: 1.5; margin-bottom: 20px; }

.addr-actions {
    display: flex; gap: 15px; border-top: 1px solid #e2e8f0; padding-top: 15px; margin-top: auto;
}
.btn-addr-action {
    font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
    background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
    transition: 0.2s;
}
.btn-addr-action:hover { color: var(--brand); }
.btn-addr-action.delete:hover { color: #ef4444; }

/* Add Button */
.btn-add-new-addr {
    width: 100%;
    padding: 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.btn-add-new-addr:hover { border-color: var(--brand); color: var(--brand); background: #ecfdf5; }

/* Form Styles */
.form-card {
    background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border);
}
.checkout-form-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media(min-width: 768px) {
    .checkout-form-grid { grid-template-columns: 1fr 1fr; }
}
.full-width { grid-column: 1 / -1; }

.form-actions { display: flex; gap: 15px; margin-top: 30px; }
.btn-save-addr {
    flex: 2; background: var(--brand); color: white; border: none; padding: 14px;
    border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem;
}
.btn-cancel {
    flex: 1; background: white; border: 1px solid var(--border); padding: 14px;
    border-radius: 8px; font-weight: 600; cursor: pointer;
}

.checkout-footer-sticky {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    /* UX Fix: Modern glass effect */
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border); 
    /* UX Fix: Increased padding to add space under the button */
    padding: 15px 20px 25px 20px; 
    padding-bottom: calc(25px + env(safe-area-inset-bottom)); 
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08); 
    z-index: 1000;
}

.footer-content {
    max-width: 800px; 
    margin: 0 auto;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 15px;
}

/* Mobile Footer Optimization */
@media (max-width: 768px) {
    .checkout-footer-sticky {
        padding: 12px 15px;
    }
    
    .footer-content {
        flex-direction: column; /* Stack items vertically */
        align-items: stretch;   /* Full width */
        gap: 10px;
    }

    .selected-summary {
        text-align: center;
        font-size: 0.8rem;
        display: flex;
        justify-content: center;
        gap: 5px;
    }

    /* Fix: Make button big and clickable on mobile */
   /* Fix: Make button big and clickable on mobile */
/* Fix: Make button big and clickable on mobile */
    .btn-whatsapp-final {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 1.05rem;
    }
}

/* --- ADDED: Base Button Style for Desktop & Mobile --- */
.btn-whatsapp-final {
    background: var(--brand);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp-final:hover { background: #059669; transform: translateY(-2px); }
.btn-whatsapp-final.disabled {
    background: #cbd5e1; cursor: not-allowed; box-shadow: none; pointer-events: none;
}
/* =========================================
   PAYMENT UI STYLES
   ========================================= */

.section-title { font-size: 1.1rem; font-weight: 800; margin: 25px 0 15px 0; color: var(--primary); }

/* Summary Card */
.summary-card { background: white; padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-muted); }
.summary-row.total { font-weight: 800; color: var(--primary); font-size: 1.2rem; margin-top: 10px; }
.summary-row.discount { color: #16a34a; }
.summary-divider { height: 1px; background: var(--border); margin: 10px 0; }
.pay-note { font-size: 0.8rem; color: #94a3b8; margin-top: 10px; font-style: italic; }

/* Payment Option Cards */
.payment-options { display: flex; flex-direction: column; gap: 15px; }

.payment-card {
    display: flex; align-items: center; justify-content: space-between;
    background: white; border: 2px solid var(--border); border-radius: 12px;
    padding: 15px 20px; cursor: pointer; transition: 0.2s; position: relative;
}

/* Hide native radio button but keep functionality */
.payment-card input[type="radio"] { display: none; }

.p-card-content { flex: 1; }
.p-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.p-title { font-weight: 700; color: var(--primary); font-size: 1rem; }
.p-desc { font-size: 0.85rem; color: var(--text-muted); }

.p-check-icon {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1;
    color: white; display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

/* Selected State */
.payment-card:has(input:checked) {
    border-color: var(--brand); background: #f0fdf4;
}
.payment-card:has(input:checked) .p-check-icon {
    background: var(--brand); border-color: var(--brand);
}

/* Recommended Badge logic */
.payment-card.recommended { border-color: #fcd34d; }
.badge-discount {
    background: #16a34a; color: white; font-size: 0.7rem; font-weight: 800;
    padding: 3px 8px; border-radius: 4px; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }

/* QR Section */
.qr-section { margin-top: 30px; text-align: center; animation: slideDown 0.3s ease; }
.qr-box {
    background: white; border: 2px dashed var(--brand); border-radius: 16px;
    padding: 25px; display: inline-block; width: 100%; max-width: 320px;
}
.qr-box h4 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.qr-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.qr-box img { width: 180px; height: 180px; margin: 0 auto; display: block; mix-blend-mode: multiply; }

.timer-text { font-size: 0.8rem; color: #ef4444; font-weight: 600; margin-top: 15px; }

@keyframes slideDown { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: translateY(0); } }
/* =========================================
   ADVANCED PAYMENT UI
   ========================================= */

/* UPI Tabs */
.upi-tabs { display: flex; gap: 10px; margin-top: 25px; border-bottom: 2px solid var(--border); }
.upi-tab {
    background: none; border: none; padding: 10px 20px;
    font-weight: 600; color: var(--text-muted); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.upi-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.upi-content { padding: 20px 0; animation: fadeIn 0.3s ease; }

/* VPA Box */
.vpa-box { background: white; padding: 20px; border: 1px solid var(--border); border-radius: 12px; }
.vpa-input-group { display: flex; gap: 10px; margin-top: 10px; }
.vpa-input-group input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.btn-verify { background: var(--primary); color: white; border: none; padding: 0 20px; border-radius: 8px; cursor: pointer; }
.btn-pay-link { 
    display: block; text-align: center; background: #2563eb; color: white; 
    padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; 
}

/* Proof Section */
.proof-section { 
    margin-top: 20px; padding: 20px; 
    background: #f8fafc; border: 1px dashed var(--border); border-radius: 12px; 
}
.proof-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 15px; color: var(--primary); }

/* Animation Helper */
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
/* --- NEW: CENTERED QR & URGENT TIMER --- */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center */
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.qr-box {
    background: white;
    border: 2px dashed var(--brand); 
    border-radius: 24px; /* Softer rounded corners */
    padding: 30px;
    width: 100%;
    max-width: 340px; 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); /* Floating effect */
    text-align: center;
    position: relative;
    margin: 0 auto;
}

/* Eye-Catching Red Timer */
.payment-timer {
    background: #fff1f2; /* Light red/pink background */
    color: #e11d48;       /* Urgent Red text */
    font-size: 1.8rem;    /* Big readable numbers */
    font-weight: 800;
    font-family: 'Inter', monospace; /* Monospace keeps numbers from jumping */
    padding: 12px 25px;
    border-radius: 12px;
    margin-top: 25px;
    display: inline-block;
    border: 1px solid #ffe4e6;
    animation: pulse-red 2s infinite; /* Gentle heartbeat animation */
}

.timer-label {
    display: block;
    font-size: 0.75rem;
    color: #f43f5e;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.2); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); transform: scale(1); }
}
/* --- CUSTOMIZATION FIELDS --- */
.custom-field-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;
}
.custom-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
.custom-input-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.c-idx {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    width: 25px;
}
.c-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}
.c-input:focus {
    border-color: var(--brand-b2b);
    outline: none;
}