/* ==========================================================================
   Sivakasi Direct Wholesale Fireworks - Luxury & Festive Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette - Light Luxury Mode */
    --bg-dark: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-subtle: #F1F5F9;
    --bg-glass: rgba(255, 255, 255, 0.88);
    --bg-glass-strong: rgba(255, 255, 255, 0.96);
    --border-color: var(--primary-border);
    --border-subtle: #E2E8F0;
    
    /* Primary & Festive Brand Colors */
    --primary: #7C3AED;
    --primary-hover: #6D28D9;
    --primary-light: rgba(124, 58, 237, 0.08);
    --primary-border: rgba(124, 58, 237, 0.25);
    
    --gold: #F59E0B;
    --gold-light: rgba(245, 158, 11, 0.12);
    --gold-border: rgba(245, 158, 11, 0.35);
    
    --ruby: #EF4444;
    --ruby-light: rgba(239, 68, 68, 0.1);
    
    --flame: #FF6B00;
    --flame-light: rgba(255, 107, 0, 0.1);
    
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.12);
    --info: #3B82F6;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Typography Colors */
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-heading: #0F172A;
    --text-inverse: #FFFFFF;
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 4px 20px rgba(124, 58, 237, 0.25);
    --shadow-glow-strong: 0 8px 32px rgba(124, 58, 237, 0.42);
    --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.28);
    
    /* Fonts & Radii - Clean Traditional & Decent Default Font Stack */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dark Mode Palette - Deep Obsidian & Midnight Glow
   ========================================================================== */
[data-theme="dark"] {
    --bg-dark: #080A10;
    --bg-card: #101422;
    --bg-card-subtle: #171C30;
    --bg-glass: rgba(16, 20, 34, 0.88);
    --bg-glass-strong: rgba(16, 20, 34, 0.96);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --primary-light: rgba(124, 58, 237, 0.22);
    --primary-border: rgba(124, 58, 237, 0.45);
    
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-heading: #FFFFFF;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 4px 24px rgba(124, 58, 237, 0.45);
    --shadow-glow-strong: 0 8px 36px rgba(124, 58, 237, 0.65);
    --shadow-gold: 0 4px 24px rgba(245, 158, 11, 0.35);
}

/* Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, var(--primary-light) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--gold-light) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(0, 0, 0, 0.01) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.festive-gold-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   1. Running Legal Marquee Top Ticker
   ========================================================================== */
.legal-marquee-bar {
    background: linear-gradient(90deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    color: #F8FAFC;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 110;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.legal-marquee-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.legal-marquee-content {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    animation: marqueeScroll 35s linear infinite;
}

.legal-marquee-bar:hover .legal-marquee-content {
    animation-play-state: paused;
}

.marquee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #000000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   2. Ultra-Modern Sticky Glass Navbar
   ========================================================================== */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.35rem;
    box-shadow: var(--shadow-glow);
    animation: sparkPulse 3s infinite ease-in-out;
}

@keyframes sparkPulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-glow); }
    50% { transform: scale(1.05); box-shadow: var(--shadow-glow-strong); }
}

.brand-name-box {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.nav-search-bar {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-input {
    width: 100%;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.2rem 0.65rem 2.6rem;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.nav-search-input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.nav-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.cart-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    position: relative;
}

.cart-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.cart-count-badge {
    background: var(--gold);
    color: #000000;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* ==========================================================================
   3. Festive Hero Showcase with Fireworks Canvas
   ========================================================================== */
.hero-festive-section {
    position: relative;
    padding: 4.5rem 1.5rem 4rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, var(--primary-light) 0%, transparent 70%);
    border-bottom: 1px solid var(--border-subtle);
}

#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.hero-inner-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-gold);
    animation: fadeInDown 0.6s ease;
}

.hero-main-heading {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-subtitle-desc {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-strong);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cta-primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-strong);
}

.cta-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #25D366;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cta-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
    background: #22BF5B;
}

/* ==========================================================================
   4. Trust Highlights Grid
   ========================================================================== */
.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.trust-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.15rem;
}

.trust-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   5. Catalog Controls, View Switcher & Category Tabs
   ========================================================================== */
.catalog-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.catalog-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.catalog-title-group h2 {
    font-size: 1.85rem;
    font-weight: 900;
}

.catalog-title-group p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.catalog-view-toggles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.category-dropdown-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.55rem 1.2rem;
    color: var(--text-heading);
    font-size: 0.85rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.category-dropdown-filter:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.view-mode-btn-group {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    display: flex;
    gap: 0.25rem;
}

.view-mode-btn {
    border: none;
    background: transparent;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.view-mode-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

/* Category Tabs Carousel */
.category-tabs-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    scrollbar-width: thin;
}

.category-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   6. Grouped Grid View Layout & Cards
   ========================================================================== */
.category-grid-section {
    margin-bottom: 3.5rem;
}

.category-section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-section-heading {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-heading);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-section-count {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-border);
    box-shadow: var(--shadow-glow);
}

.product-card.in-cart {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.discount-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--ruby), #DC2626);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.featured-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: #000000;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.product-image-container {
    width: 100%;
    height: 190px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.45;
    flex: 1;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.discount-price {
    font-size: 1.28rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
}

.original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.card-qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.4rem;
}

.card-stepper-btn {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-stepper-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.card-stepper-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-stepper-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}

.card-stepper-price {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==========================================================================
   7. Grouped Wholesale Table Order Sheet View
   ========================================================================== */
.premium-category-block {
    margin-bottom: 3rem;
}

.premium-category-badge-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 0.7rem 1.6rem 0.7rem 1.4rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow);
}

.premium-category-list-card {
    background: var(--bg-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-subtle);
    border-top: none;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.premium-table-headers {
    display: grid;
    grid-template-columns: 70px 1fr 130px 140px 130px;
    background: var(--bg-card-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-table-row {
    display: grid;
    grid-template-columns: 70px 1fr 130px 140px 130px;
    align-items: center;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s ease;
}

.premium-table-row:last-child {
    border-bottom: none;
}

.premium-table-row:hover {
    background: var(--bg-card-subtle);
}

.premium-product-name {
    font-weight: 800;
    color: var(--text-heading);
    font-size: 0.92rem;
    line-height: 1.35;
}

.premium-product-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.premium-price-original {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.premium-price-discount {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
}

.premium-qty-box {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.3rem;
}

.premium-qty-btn {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.premium-qty-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.premium-qty-val {
    min-width: 32px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-heading);
}

.premium-row-total-val {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-heading);
    text-align: right;
    padding-right: 0.5rem;
    font-family: var(--font-heading);
}

/* ==========================================================================
   8. Why Buy From Us & Statutory Legal Notice Section
   ========================================================================== */
.why-us-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.section-title-centered {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title-centered h2 {
    font-size: 2.2rem;
    font-weight: 900;
}

.section-title-centered p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.legal-compliance-showcase {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.legal-icon-shield {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.legal-notice-heading {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-notice-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   9. Floating Order Action Bar
   ========================================================================== */
.floating-order-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-full);
    padding: 0.65rem 1.5rem 0.65rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-glow-strong);
    z-index: 99;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-order-bar.visible {
    transform: translateX(-50%) translateY(0);
}

.floating-summary-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.floating-item-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-heading);
}

.floating-total-box {
    display: flex;
    flex-direction: column;
}

.floating-amount {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.floating-savings {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--success);
}

.floating-checkout-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.floating-checkout-btn:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-glow-strong);
}

/* ==========================================================================
   10. Slide-Over Cart Drawer
   ========================================================================== */
.cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}

.cart-drawer-panel.active {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-drawer-close {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-drawer-close:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.cart-drawer-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-heading);
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.2rem;
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card-subtle);
}

.cart-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.cart-breakdown-row.total {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-heading);
    border-top: 1px dashed var(--border-subtle);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}

.cart-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    margin-top: 1rem;
    transition: var(--transition);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

/* ==========================================================================
   11. Checkout & Quotation Generator Page Layout
   ========================================================================== */
.checkout-view-container {
    max-width: 1100px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
}

.checkout-grid-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: flex-start;
}

.checkout-card-pane {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.checkout-pane-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-heading);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.summary-receipt-card {
    background: var(--bg-card-subtle);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.receipt-item-row.total-due {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary);
    border-top: 2px solid var(--border-subtle);
    padding-top: 0.85rem;
    margin-top: 0.85rem;
}

.order-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: none;
    padding: 1.05rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    margin-top: 1.25rem;
    transition: var(--transition);
}

.order-submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

.whatsapp-quote-submit-btn {
    width: 100%;
    background: #25D366;
    color: #FFFFFF;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    margin-top: 1.25rem;
    transition: var(--transition);
}

.whatsapp-quote-submit-btn:hover {
    background: #22BF5B;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.pdf-estimate-btn {
    width: 100%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-glow);
    margin-top: 0.75rem;
    transition: var(--transition);
}

.pdf-estimate-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   12. Order Success & Booking Confirmation Screen
   ========================================================================== */
.success-card-box {
    max-width: 680px;
    margin: 3.5rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.success-badge-icon {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

/* ==========================================================================
   12.5 Site Main Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
}

.footer-brand-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.1rem;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.footer-contact-icon {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.footer-admin-link:hover {
    color: var(--primary);
    border-color: var(--primary-border);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   13. Admin Portal & Login Styling
   ========================================================================== */
.admin-body {
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at 50% 30%, var(--primary-light) 0%, transparent 70%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

/* Admin Dashboard Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-subtle);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
    text-decoration: none;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 2.5rem;
    overflow-y: auto;
    background: var(--bg-dark);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Primary Action Buttons */
.cart-trigger {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}

.cart-trigger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.checkout-btn.booking {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    box-shadow: var(--shadow-glow);
}

.checkout-btn.booking:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.checkout-btn.whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.checkout-btn.whatsapp:hover {
    background: #22BF5B;
    transform: translateY(-2px);
}

/* Stats KPI Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.8rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-heading);
    font-family: var(--font-heading);
    line-height: 1.15;
}

/* Tables & Badges */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.table-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-card-subtle);
}

.table-header-row h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    background: var(--bg-card-subtle);
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--bg-card-subtle);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.completed { background: var(--success-light); color: var(--success); }
.badge.pending { background: var(--gold-light); color: var(--gold); }
.badge.contacted { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.badge.cancelled { background: var(--ruby-light); color: var(--danger); }

/* Action Buttons */
.action-btn {
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    font-family: inherit;
}

.action-btn.edit { color: var(--primary); }
.action-btn.edit:hover { background: var(--primary-light); border-color: var(--primary-border); }

.action-btn.delete { color: var(--danger); }
.action-btn.delete:hover { background: var(--ruby-light); border-color: var(--danger); }

.action-btn.pdf { color: #DC2626; }
.action-btn.pdf:hover { background: rgba(220, 38, 38, 0.1); border-color: #DC2626; }

/* Settings Pane */
.settings-pane {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Theme Mode Switcher Cards */
.theme-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0 1.5rem;
}

.theme-mode-card {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-mode-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-mode-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.theme-mode-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.theme-mode-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
}

.theme-mode-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Theme Personalizer Swatches */
.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.5rem;
}

.color-swatch-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: var(--transition);
}

.color-swatch-btn:hover, .color-swatch-btn.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.color-swatch-circle {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 900;
}

.color-swatch-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-heading);
}

.live-preview-box {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.discount-badge-large {
    background: linear-gradient(135deg, var(--ruby), #DC2626);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Modal Popup & Overlay */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.25s ease;
    padding: 1.75rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
}

.cart-close-btn {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.cart-close-btn:hover {
    background: var(--ruby-light);
    color: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* ==========================================================================
   15. Keyframe Animations
   ========================================================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   16. Comprehensive Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .checkout-grid-layout {
        grid-template-columns: 1fr;
    }
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
}

@media (max-width: 768px) {
    .nav-search-bar {
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem;
    }
    .product-card {
        border-radius: var(--radius-md);
    }
    .product-image-container {
        height: 135px;
        padding: 0;
    }
    .discount-tag {
        top: 0.4rem;
        left: 0.4rem;
        font-size: 0.58rem;
        padding: 0.15rem 0.4rem;
    }
    .featured-tag {
        top: 0.4rem;
        right: 0.4rem;
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
    .product-info {
        padding: 0.65rem;
    }
    .product-category {
        font-size: 0.62rem;
        margin-bottom: 0.15rem;
    }
    .product-name {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2rem;
    }
    .product-description {
        font-size: 0.68rem;
        margin-bottom: 0.45rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-price-row {
        gap: 0.35rem;
        margin-bottom: 0.55rem;
    }
    .discount-price {
        font-size: 0.98rem;
    }
    .original-price {
        font-size: 0.72rem;
    }
    .add-to-cart-btn {
        padding: 0.45rem 0.5rem;
        font-size: 0.74rem;
        border-radius: var(--radius-sm);
        gap: 0.35rem;
    }
    .card-qty-stepper {
        padding: 0.15rem 0.25rem;
        border-radius: var(--radius-sm);
    }
    .card-stepper-btn {
        width: 26px;
        height: 26px;
        font-size: 0.95rem;
        border-radius: 4px;
    }
    .card-stepper-val {
        font-size: 0.78rem;
    }
    .card-stepper-price {
        font-size: 0.65rem;
    }
    .premium-table-headers {
        display: none;
    }
    .premium-table-row {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .floating-order-bar {
        width: calc(100% - 2rem);
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
    }
    .floating-checkout-btn {
        padding: 0.65rem 1.25rem;
    }
    .legal-compliance-showcase {
        flex-direction: column;
        padding: 1.5rem;
    }
}
