/* css/style.css - Premium Modern Tech Theme for MAF TRADING */

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

:root {
    --primary: #00AEEF; /* Teal/Cyan from logo */
    --primary-hover: #008ec3;
    --secondary: #8DC63F; /* Lime Green from logo */
    --secondary-hover: #73a433;
    --accent: #ED1C24; /* Red-Orange from logo */
    --accent-hover: #c4141a;
    --dark-slate: #0D0E12; /* Match logo background */
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08); /* Premium shadow */
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --logo-gradient: linear-gradient(90deg, #8DC63F 0%, #00AEEF 35%, #ED1C24 70%, #FFF200 100%);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pre-set background on html to kill white flash before body CSS resolves */
html {
    background-color: #F8FAFC;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: pageEnter 0.28s ease both;
}

/* Page entry fade-in — fires on every page load/refresh */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Page-exit overlay — JS fades this in before navigating */
#page-transition-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-light);
    opacity: 0;
    pointer-events: none;
    z-index: 99999;
    transition: opacity 0.22s ease;
}
#page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Announcement Bar */
.top-bar {
    background-color: #1a252f;
    color: #94A3B8;
    font-size: 0.8rem;
    padding: 6px 0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-info span {
    margin-right: 15px;
}
.top-bar-info i {
    color: var(--accent);
    margin-right: 5px;
}

/* Header */
header {
    background-color: var(--dark-slate);
    border-bottom: 3px solid;
    border-image: var(--logo-gradient) 1;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}
.logo-container img {
    height: 48px;
    object-fit: contain;
}

/* Navigation Links (Centered) */
.header-nav-center {
    display: flex;
    list-style: none;
    gap: 30px;
}
.header-nav-center a {
    color: #E2E8F0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.header-nav-center a:hover, .header-nav-center a.active {
    color: var(--accent);
}
.header-nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}
.header-nav-center a:hover::after, .header-nav-center a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}
.action-item {
    position: relative;
    font-size: 1.35rem;
    color: #E2E8F0;
    cursor: pointer;
    transition: var(--transition);
}
.action-item:hover {
    color: var(--accent);
}
.action-item .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
}

/* Search Area Hidden / Show in Shop */
.search-form {
    display: flex;
    max-width: 320px;
    position: relative;
}
.search-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 15px;
    padding-right: 40px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.85rem;
    width: 200px;
    transition: var(--transition);
}
.search-form input::placeholder {
    color: #94A3B8;
}
.search-form input:focus {
    width: 250px;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}
.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #E2E8F0;
    cursor: pointer;
}

/* Hide legacy Nav Menu */
.nav-menu {
    display: none;
}

/* Hero Section */
.hero {
    background-color: var(--dark-slate);
    color: var(--bg-white);
    padding: 60px 0 100px; /* Space for overlay card */
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}
.hero-content {
    max-width: 580px;
}
.hero-content h1 {
    font-size: 3.5rem;
    color: var(--bg-white);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-content h1 .highlight {
    color: var(--accent);
}
.hero-content p {
    font-size: 1.05rem;
    color: #94A3B8;
    margin-bottom: 35px;
}
.hero-image-container {
    text-align: center;
}
.hero-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: var(--primary);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--primary-hover);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--border-color);
}
.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary);
}

/* Features Overlay Card */
.features-overlay {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-top: -60px; /* Overlaps hero section */
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature-icon-wrapper {
    font-size: 2.2rem;
    color: var(--accent);
    background-color: rgba(255, 107, 0, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-text h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2px;
}
.feature-text p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Category Grid with Pastel backgrounds */
.category-showcase {
    margin-top: 60px;
    margin-bottom: 60px;
}
.category-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.category-pastel-card {
    border-radius: var(--radius-md);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.category-pastel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.category-pastel-img {
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}
.category-pastel-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Dynamic colors for category pastel backgrounds */
.bg-pastel-1 { background-color: #EEF2F6; } /* Light Blue */
.bg-pastel-2 { background-color: #FDF2F2; } /* Light Red */
.bg-pastel-3 { background-color: #ECFDF5; } /* Light Green */
.bg-pastel-4 { background-color: #FFFBEB; } /* Light Yellow */
.bg-pastel-5 { background-color: #F5F3FF; } /* Light Purple */

/* Section Title */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 1.8rem;
    position: relative;
    color: var(--dark-slate);
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--logo-gradient);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Product Cards & Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 50px;
}
.product-card {
    background-color: var(--bg-white);
    border-radius: 4px;
    border: 1px solid #f2f2f2;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    padding: 10px;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.badge-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto !important;
    background-color: #FDF2E9 !important;
    color: #F68B1E !important;
    font-weight: 700;
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
    border-radius: 2px !important;
    z-index: 10;
}
.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #fff;
    overflow: hidden;
}
.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: var(--transition);
}
.product-card:hover .product-image-container img {
    transform: scale(1.03);
}
.product-info {
    padding: 8px 0 0 0 !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left !important;
}
.product-brand {
    display: none !important; /* Hide brand like Jumia */
}
.product-name {
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    font-weight: 400 !important;
    color: var(--text-dark) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em !important;
    line-height: 1.4 !important;
    text-align: left !important;
}
.product-name a {
    color: var(--text-dark) !important;
    text-decoration: none;
}
.product-name a:hover {
    color: var(--primary) !important;
}
.product-rating {
    display: none !important; /* Hide ratings like Jumia */
}
.product-price-row {
    display: flex;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: auto;
    margin-bottom: 0px;
    gap: 2px !important;
}
.price {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}
.price-compare {
    text-decoration: line-through;
    color: #757575 !important;
    font-size: 0.78rem !important;
}
.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}
.product-card:hover .product-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}
.hover-icon-btn {
    background: white;
    color: var(--text-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}
.hover-icon-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent);
    color: white;
}
.card-actions {
    display: none; /* Hide old button container entirely */
}

/* Why Shop With Us */
.why-us {
    background-color: var(--bg-white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.why-us-item {
    text-align: center;
}
.why-us-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}
.why-us-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.why-us-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    margin-bottom: 60px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.testimonial-rating {
    color: #F59E0B;
    margin-bottom: 15px;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.testimonial-author {
    font-weight: 600;
    color: var(--dark-slate);
}

/* Newsletter Section */
.newsletter {
    background-color: var(--dark-slate);
    color: var(--bg-white);
    padding: 60px 0;
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: 60px;
}
.newsletter h2 {
    color: var(--bg-white);
    margin-bottom: 10px;
}
.newsletter p {
    color: #94A3B8;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-md);
    outline: none;
}
.newsletter-form .btn {
    border-radius: var(--radius-md);
}

/* Footer styling */
footer {
    background-color: #08090C;
    color: #94A3B8;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 4px solid;
    border-image: var(--logo-gradient) 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo img {
    height: 45px;
    margin-bottom: 15px;
}
.footer-heading {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}
.payment-icons img {
    height: 30px;
    opacity: 0.75;
}

/* Mobile Sticky Bottom Nav */
.mobile-sticky-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.mobile-sticky-nav .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}
.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--accent);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
    }
    .logo-container {
        text-align: center;
    }
    .header-nav-center {
        justify-content: center;
    }
    .header-actions {
        justify-content: center;
    }
    .features-overlay {
        margin-top: -30px;
        grid-template-columns: 1fr;
    }
}

/* Special Offers Section */
.special-offers-container {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}
.special-offers-header {
    background-color: #0c111d; /* Very dark slate-black bar */
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.special-offers-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}
.special-offers-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.special-offers-timer .ends-lbl {
    color: #F97316; /* Orange label */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.special-offers-timer .time-box {
    background-color: #EF4444; /* Red-orange highlighted block */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.special-offers-header .view-all-link {
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 500;
}
.special-offers-header .view-all-link:hover {
    color: white;
}
.special-offers-split-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2px;
    background-color: var(--border-color); /* Acts as divider line */
}
.special-offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 20px;
    background-color: var(--bg-white);
}
.special-offers-ad-banner {
    position: relative;
    background-color: #f8fafc;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 20px;
    overflow: hidden;
    min-height: 380px;
}
.special-offers-ad-banner .ad-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(13, 14, 18, 0.06);
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}
.special-offers-ad-banner .ad-slides-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.special-offers-ad-banner .ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    z-index: 1;
}
.special-offers-ad-banner .ad-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}
.special-offers-ad-banner .ad-img-box {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: white;
    border-radius: var(--radius-sm);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.special-offers-ad-banner .ad-img-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.special-offers-ad-banner .ad-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.special-offers-ad-banner .ad-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    justify-content: flex-end;
}
.special-offers-ad-banner .ad-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.8px;
}
.special-offers-ad-banner .ad-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}
.special-offers-ad-banner .ad-title:hover {
    color: var(--primary);
}
.special-offers-ad-banner .ad-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}
.special-offers-ad-banner .ad-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #10B981;
}
.special-offers-ad-banner .ad-compare {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
}
.special-offers-ad-banner .ad-btn {
    display: block;
    text-align: center;
    background-color: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    transition: var(--transition);
}
.special-offers-ad-banner .ad-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}
.special-offers-ad-banner .ad-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    z-index: 10;
}
.special-offers-ad-banner .ad-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}
.special-offers-ad-banner .ad-dot.active {
    background-color: var(--primary);
    width: 14px;
    border-radius: 3px;
}
.special-offer-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
}
.special-offer-img-box {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 5px;
    transition: var(--transition);
}
.special-offer-card:hover .special-offer-img-box {
    transform: scale(1.05);
}
.special-offer-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.special-offer-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.special-offer-price-row .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #10B981; /* Green price */
}
.special-offer-price-row .compare {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--text-muted);
}
.special-offer-card-title {
    font-size: 0.82rem;
    color: #2563EB; /* Blue link color */
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.2em;
}
.special-offer-card-title:hover {
    text-decoration: underline;
}

/* Horizontal Gradient Promo Banner */
.gradient-promo-banner {
    background: linear-gradient(135deg, #4F46E5 0%, #D946EF 100%);
    border-radius: var(--radius-md);
    padding: 40px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
}
.promo-discount-col {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 20px;
}
.promo-discount-col .percent {
    font-size: 4rem;
    font-weight: 800;
    color: #FBBF24; /* Golden yellow */
    line-height: 1;
}
.promo-discount-col .lbl {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
}
.promo-discount-col .sub {
    font-size: 0.85rem;
    opacity: 0.8;
}
.promo-text-col h3 {
    color: white;
    font-size: 1.7rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.promo-text-col p {
    font-size: 0.92rem;
    opacity: 0.9;
    line-height: 1.6;
}
.promo-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.promo-price-col .compare {
    font-size: 1.15rem;
    text-decoration: line-through;
    opacity: 0.75;
}
.promo-price-col .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FBBF24;
    margin-top: 2px;
    margin-bottom: 15px;
}

/* Media Queries Custom Overrides */
@media (max-width: 992px) {
    .special-offers-split-layout {
        grid-template-columns: 1fr;
    }
    .special-offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .special-offers-ad-banner {
        border-left: none;
        border-top: 1px solid var(--border-color);
        min-height: auto;
    }
    .gradient-promo-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .promo-discount-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 0;
        padding-bottom: 20px;
    }
    .promo-price-col {
        align-items: center;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .special-offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .special-offers-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Details Page Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.main-img-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding-top: 100%; /* 1:1 square ratio */
    background-color: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.main-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.main-img-container:hover img {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 380px;
}

.gallery-thumbs .thumb {
    width: 76px;
    height: 76px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover {
    border-color: var(--accent);
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--dark-slate) 0%, #1a252f 100%);
    border-radius: var(--radius-md);
    padding: 60px 40px;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,0,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-hero p {
    color: #94A3B8;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-slate);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background-color: rgba(255, 107, 0, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.05rem;
    color: var(--dark-slate);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.whatsapp-card {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border-radius: var(--radius-md);
    padding: 30px;
    color: white;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-card h3 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.whatsapp-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

.whatsapp-card .btn-wa {
    background-color: #25D366;
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-card .btn-wa:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.map-container {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* User Account & Dashboard Styles */
.account-layout {
    display: grid;
    grid-template-columns: 0.9fr 2.1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.account-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.order-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

.order-history-table th,
.order-history-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-history-table th {
    background-color: var(--bg-light);
    color: var(--dark-slate);
    font-weight: 700;
}

.order-history-table tr:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-badge.completed {
    background-color: #D1FAE5;
    color: #059669;
}

.status-badge.cancelled {
    background-color: #FEE2E2;
    color: #DC2626;
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Checkout Page Layout & Styles */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.checkout-form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.checkout-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.checkout-section:hover {
    box-shadow: var(--shadow-md);
}

.checkout-section h3 {
    font-size: 1.15rem;
    color: var(--dark-slate);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section h3 i {
    color: var(--primary);
}

.checkout-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.checkout-section label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkout-section input[type="text"],
.checkout-section input[type="email"],
.checkout-section input[type="tel"],
.checkout-section textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.checkout-section input:focus,
.checkout-section textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

/* Delivery Option Cards */
.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.delivery-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.delivery-card:hover {
    border-color: var(--primary);
    background-color: rgba(0, 174, 239, 0.02);
}

.delivery-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--primary);
}

.delivery-card-content h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.delivery-card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.delivery-card-content .price-lbl {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    color: var(--accent);
}

.delivery-card.active {
    border-color: var(--primary);
    background-color: rgba(0, 174, 239, 0.05);
}

/* Payment Option Cards */
.payment-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.payment-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.payment-card:hover {
    border-color: var(--primary);
    background-color: rgba(0, 174, 239, 0.02);
}

.payment-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-card input[type="radio"] {
    accent-color: var(--primary);
}

.payment-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-card-icons {
    display: flex;
    gap: 8px;
    font-size: 1.4rem;
    color: var(--text-muted);
}

.payment-card.active {
    border-color: var(--primary);
    background-color: rgba(0, 174, 239, 0.05);
}

/* Checkout Review Panel */
.checkout-review-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.checkout-review-items::-webkit-scrollbar {
    width: 6px;
}

.checkout-review-items::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.checkout-review-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

.review-item-row {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: #fff;
    padding: 4px;
}

.review-item-details {
    flex-grow: 1;
}

.review-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-item-qty {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .delivery-options-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Menu Styles */
.account-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    box-shadow: var(--shadow-sm);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
    outline: none;
}

.menu-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.menu-item.active {
    background-color: rgba(0, 174, 239, 0.08);
    color: var(--primary);
}

.menu-item.danger-item {
    color: #DC2626;
}

.menu-item.danger-item:hover {
    background-color: #FEE2E2;
}

.menu-item.danger-item.active {
    background-color: #FEE2E2;
}

/* Admin Layout & Sidebar Styles */
.admin-layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 230px;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
}

.admin-sidebar > div {
    text-align: center;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding-bottom: 10px !important;
}

.admin-sidebar img {
    max-height: 40px;
    width: auto;
}

.admin-sidebar h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    cursor: pointer;
}

.admin-nav li a:hover {
    color: var(--primary);
    background-color: var(--bg-light);
    transform: translateX(4px);
}

.admin-nav li a.active {
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-bottom: none;
    border-radius: var(--radius-sm);
    background-color: rgba(0, 174, 239, 0.08);
}

/* Admin Topbar & Advanced Search Styles */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.admin-search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    gap: 8px;
    width: 320px;
    position: relative;
    transition: all 0.25s ease;
}

.admin-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
    width: 380px;
}

.admin-search-wrapper i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: var(--text-dark);
    width: 100%;
}

.admin-search-wrapper .search-hint {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    pointer-events: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-light);
    transform: scale(1.05);
}

.admin-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
}

.admin-profile-badge i {
    font-size: 1rem;
    color: var(--primary);
}
/* Global Admin Dark Theme styling — comprehensive overrides */
body.dark-theme {
    --bg-light: #0d1117;
    --bg-white: #161b22;
    --text-dark: #f0f6fc;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --dark-slate: #f0f6fc;
    background-color: #0d1117;
    color: #f0f6fc;
}
body.dark-theme .admin-sidebar {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
    border-right-color: #30363d !important;
}
body.dark-theme .admin-sidebar h3 {
    color: #f0f6fc !important;
    border-bottom-color: #30363d !important;
}
body.dark-theme .admin-nav li a {
    color: #8b949e !important;
}
body.dark-theme .admin-nav li a:hover {
    background-color: #21262d !important;
    color: var(--primary) !important;
}
body.dark-theme .admin-nav li a.active {
    background-color: rgba(0,174,239,0.15) !important;
    color: var(--primary) !important;
}
body.dark-theme .admin-content {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
}
body.dark-theme .admin-topbar {
    background-color: #161b22 !important;
    border-bottom-color: #30363d !important;
    box-shadow: none;
}
body.dark-theme .admin-header h2,
body.dark-theme .admin-header h3,
body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5 {
    color: #f0f6fc !important;
}
body.dark-theme .admin-stat-card {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}
body.dark-theme .admin-stat-card h4 {
    color: #8b949e !important;
}
body.dark-theme .admin-stat-card .value {
    color: #f0f6fc !important;
}
body.dark-theme .admin-table {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}
body.dark-theme .admin-table th {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
    border-bottom-color: #30363d !important;
}
body.dark-theme .admin-table td {
    color: #f0f6fc !important;
    border-bottom-color: #30363d !important;
}
body.dark-theme .admin-table tr:hover {
    background-color: rgba(33, 38, 45, 0.5) !important;
}
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}
body.dark-theme label {
    color: #f0f6fc !important;
}
body.dark-theme p, body.dark-theme span:not(.badge):not(.btn) {
    color: #8b949e;
}
body.dark-theme .form-group label {
    color: #f0f6fc !important;
}
body.dark-theme [style*="background-color: white"],
body.dark-theme [style*="background-color:#fff"],
body.dark-theme [style*="background-color: #fff"] {
    background-color: #161b22 !important;
    color: #f0f6fc !important;
}
body.dark-theme [style*="background-color: #f8fafc"] {
    background-color: #0d1117 !important;
}
body.dark-theme [style*="background-color: var(--bg-white)"] {
    background-color: #161b22 !important;
}
body.dark-theme [style*="background-color: var(--bg-light)"] {
    background-color: #0d1117 !important;
}
body.dark-theme .action-btn {
    color: #f0f6fc !important;
}

/* Main Admin Content Area */
.admin-content {
    flex: 1 1 0;
    min-width: 0;
    padding: 40px;
    background-color: var(--bg-light);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h2 {
    font-size: 1.6rem;
    color: var(--dark-slate);
    font-weight: 700;
}

/* Admin Analytics Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.admin-stat-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.admin-stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.admin-stat-card.alert {
    border-left: 4px solid #EF4444;
}

.admin-stat-card.alert .value {
    color: #EF4444;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--bg-light);
    color: var(--dark-slate);
    font-weight: 700;
}

.admin-table tr:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

/* Action buttons inside Admin tables */
.action-btn-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.action-btn-edit {
    background-color: rgba(0, 174, 239, 0.08);
    color: var(--primary);
}

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

.action-btn-delete {
    background-color: #FEE2E2;
    color: #EF4444;
}

.action-btn-delete:hover {
    background-color: #EF4444;
    color: white;
}

/* Form Styles for Products Admin */
.admin-content form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-content form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-content form input[type="text"],
.admin-content form input[type="number"],
.admin-content form select,
.admin-content form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--bg-light);
    transition: var(--transition);
    outline: none;
}

.admin-content form input[type="text"]:focus,
.admin-content form input[type="number"]:focus,
.admin-content form select:focus,
.admin-content form textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .admin-sidebar {
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 15px 15px;
        gap: 12px;
        height: auto;
    }
    .admin-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
    .admin-nav li {
        flex-shrink: 0;
    }
    .admin-nav li a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .admin-nav li a.active {
        border-left: none;
        border-bottom: 3px solid var(--primary);
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .admin-content {
        padding: 20px 15px;
        height: auto;
        overflow-y: visible;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .virtual-card {
        height: 160px;
        padding: 15px;
    }
    .virtual-card-number {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }
}
@media (max-width: 576px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Prevent layout boundary breakout and horizontal scrolling globally */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Product Details Responsiveness Fixes */
.detail-info, .detail-gallery, .specs-table {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}
@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .detail-gallery {
        padding: 15px !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .detail-info {
        padding: 20px !important;
        width: 100% !important;
    }
    .main-img-container {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        padding-top: 80% !important;
    }
    .gallery-thumbs {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    .gallery-thumbs .thumb {
        width: 60px !important;
        height: 60px !important;
    }
    /* Specs table block transformation for mobile */
    .specs-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .specs-table tbody, .specs-table tr, .specs-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .specs-table tr {
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
    }
    .specs-table td {
        border-bottom: none !important;
        padding: 4px 0 !important;
    }
    .spec-label {
        font-weight: 700 !important;
        color: var(--primary) !important;
    }
}
@media (max-width: 576px) {
    .container {
        padding: 0 12px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    /* Product details title layout wrapping & centering */
    .container > div[style*="display: flex; justify-content: space-between"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .container > div[style*="display: flex; justify-content: space-between"] div[style*="display: flex"] {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .container h1 {
        font-size: 1.4rem !important;
        text-align: center !important;
    }
    /* Right buy box padding and internal elements */
    .detail-info {
        padding: 15px !important;
        text-align: center !important;
    }
    .detail-info div[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
        justify-content: center !important;
        display: flex !important;
    }
    .detail-info div[style*="margin-bottom: 25px"] {
        text-align: center !important;
    }
    .detail-info div[style*="background-color: #F8FAFC"] {
        padding: 15px 10px !important;
    }
    .detail-info div[style*="background-color: #F8FAFC"] ul {
        align-items: center !important;
    }
    /* Ensure form and button selectors wrap and center */
    .detail-info form div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .detail-info form div[style*="display: flex"] > div {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    .detail-info form .qty-selector {
        width: 120px !important;
        display: flex;
        justify-content: space-between;
        margin-top: 5px !important;
    }
    .detail-info form .qty-selector .qty-input {
        flex-grow: 1;
        text-align: center;
    }
    .detail-info form .btn {
        width: 100% !important;
        justify-content: center;
    }
    .detail-info form a.btn-outline {
        width: 100% !important;
        margin-left: 0 !important;
    }
    /* Description box padding scaling & centering */
    .container > div[style*="margin-top: 50px"] {
        margin-top: 30px !important;
        padding: 20px 15px !important;
        text-align: center !important;
    }
    .container > div[style*="margin-top: 50px"] h2 {
        margin: 0 auto 20px !important;
        text-align: center !important;
    }
    .container > div[style*="margin-top: 50px"] h3 {
        text-align: center !important;
    }
    .container > div[style*="margin-top: 50px"] p {
        text-align: center !important;
        word-break: break-word !important;
    }
}

/* Cart Product Layout Size Correction */
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-product-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3px;
    flex-shrink: 0;
}

/* Jumia-style account page and responsive images overrides for mobile devices */
@media (max-width: 768px) {
    /* Account layout changes */
    .account-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }
    
    /* Login and registration portal */
    .account-hero {
        padding: 25px 15px !important;
        text-align: center !important;
    }
    .account-hero h1 {
        font-size: 1.6rem !important;
    }
    .account-hero p {
        font-size: 0.85rem !important;
    }
    .contact-card {
        padding: 20px 15px !important;
        text-align: center !important;
    }
    .contact-card h2 {
        font-size: 1.25rem !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }
    .contact-form {
        text-align: left !important;
    }
    .contact-form label {
        font-size: 0.85rem !important;
    }
    .contact-form input, 
    .contact-form textarea {
        padding: 10px !important;
        font-size: 0.88rem !important;
    }
    
    /* Center profile details card */
    .account-layout > div:first-child {
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Account Sidebar Menu & Panels Visibility switching on mobile */
    .account-layout {
        grid-template-columns: 1fr !important;
        position: relative !important;
    }
    /* Hide active tab container when in menu mode (default) */
    .account-layout:not(.show-tab) > div:last-child {
        display: none !important;
    }
    /* Show active tab container when show-tab is active */
    .account-layout.show-tab > div:last-child {
        display: block !important;
        width: 100% !important;
    }
    /* Hide sidebar menu list when show-tab is active */
    .account-layout.show-tab > div:first-child {
        display: none !important;
    }
    /* Keep menu list clean vertical stack Jumia-style */
    .account-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        padding: 15px !important;
    }
    .menu-item {
        padding: 12px 15px !important;
        font-size: 0.92rem !important;
        justify-content: flex-start !important;
        text-align: left !important;
        flex-direction: row !important;
        gap: 10px !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-sm) !important;
    }
    .menu-item i {
        font-size: 1rem !important;
    }
    .mobile-back-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100% !important;
        margin-bottom: 15px !important;
        padding: 10px !important;
        font-size: 0.9rem !important;
        background-color: var(--bg-light) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-sm) !important;
        color: var(--text-dark) !important;
    }
    
    /* Order History Table to Cards conversion */
    .order-history-table {
        display: block !important;
    }
    .order-history-table thead {
        display: none !important;
    }
    .order-history-table tbody, 
    .order-history-table tr, 
    .order-history-table td {
        display: block !important;
        width: 100% !important;
    }
    .order-history-table tr {
        border: 1px solid var(--border-color) !important;
        border-radius: var(--radius-sm) !important;
        margin-bottom: 12px !important;
        padding: 10px !important;
        background-color: var(--bg-white) !important;
    }
    .order-history-table td {
        border: none !important;
        padding: 6px 0 !important;
        font-size: 0.85rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .order-history-table td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: var(--text-muted) !important;
        margin-right: 10px !important;
    }
    
    /* Tab panes inner padding */
    .tab-pane .contact-card {
        padding: 20px 15px !important;
    }
    .tab-pane h3 {
        font-size: 1.15rem !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* General image fixes on mobile devices */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Product grid card images sizing & fit */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }
    .product-card {
        padding: 10px !important;
    }
    .product-image-container {
        height: 140px !important;
    }
    .product-image-container img {
        padding: 5px !important;
        max-height: 100% !important;
    }
    .product-info {
        padding: 8px 4px 4px !important;
        text-align: left !important;
    }
    .product-name {
        font-size: 0.82rem !important;
        height: 34px !important;
        overflow: hidden;
        text-align: left !important;
    }
    .product-brand {
        display: none !important;
    }
    .product-price-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
    }
    .product-price-row .price {
        font-size: 0.95rem !important;
    }
    .product-price-row .price-compare {
        font-size: 0.75rem !important;
    }
    .product-rating {
        display: none !important;
    }
    
    /* Special offers split layouts */
    .special-offers-split-layout {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .special-offers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .special-offer-card {
        padding: 10px !important;
    }
    .special-offer-img-box {
        height: 110px !important;
    }
    .special-offer-card-title {
        font-size: 0.8rem !important;
    }
}

/* Jumia-style account dashboard styling classes */
.account-menu-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 16px 5px;
    border-top: 1px solid var(--border-color);
}
.account-menu-group-title:first-child {
    border-top: none;
    padding-top: 5px;
}
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.overview-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.overview-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-slate);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.overview-card-content {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
}
.overview-card-action {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}
.overview-card-action:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .account-menu-group-title {
        text-align: center !important;
        padding: 10px 5px 2px !important;
    }
    .slideable-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 5px !important;
        scrollbar-width: none;
    }
    .slideable-grid::-webkit-scrollbar {
        display: none;
    }
    .slideable-grid .product-card,
    .slideable-grid .special-offer-card {
        flex: 0 0 150px !important;
        scroll-snap-align: start !important;
        margin: 0 !important;
    }
}

/* Custom Cart Quantity Adjuster Styles */
.qty-adjuster {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    height: 36px;
    background-color: #fff;
    max-width: 120px;
}
.qty-btn {
    border: none;
    background: none;
    width: 32px;
    height: 100%;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background-color: #f1f5f9;
}
.qty-input {
    border: none !important;
    border-left: 1px solid var(--border-color) !important;
    border-right: 1px solid var(--border-color) !important;
    width: 44px;
    height: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: none;
    outline: none;
}
/* Hide number input spinner arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    background-color: #0f172a;
    color: #f8fafc;
}
body.dark-mode header,
body.dark-mode footer,
body.dark-mode .product-card,
body.dark-mode .contact-card,
body.dark-mode .cart-summary,
body.dark-mode .why-us,
body.dark-mode .mobile-sticky-nav,
body.dark-mode #whatsapp-chat-popup {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .product-name,
body.dark-mode .product-name a,
body.dark-mode .footer-heading,
body.dark-mode .filter-title {
    color: #f8fafc !important;
}
body.dark-mode .price {
    color: #f8fafc !important;
}
body.dark-mode .special-offer-card {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .special-offer-img-box {
    background-color: #0f172a !important;
}
body.dark-mode .special-offer-card-title {
    color: #60a5fa !important;
}
body.dark-mode .special-offer-price-row .price {
    color: #34d399 !important;
}
body.dark-mode .qty-adjuster {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}
body.dark-mode .section-title {
    color: #f8fafc !important;
}
body.dark-mode label {
    color: #f8fafc !important;
}
body.dark-mode p {
    color: #94a3b8;
}

/* Floating Actions CSS */
#back-to-top-btn {
    position: fixed;
    bottom: 85px;
    left: 25px;
    z-index: 999;
    background-color: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
#back-to-top-btn:hover {
    transform: scale(1.1);
}
#floating-cart-btn {
    position: fixed;
    bottom: 155px;
    right: 25px;
    z-index: 999;
    background-color: var(--accent);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    text-decoration: none;
}
#floating-cart-btn:hover {
    transform: scale(1.1);
}

/* Admin Dark Mode Overrides */
body.dark-mode {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-mode .admin-sidebar {
    background-color: #1e293b !important;
    border-bottom-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .admin-sidebar h3 {
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}
body.dark-mode .admin-nav li a {
    color: #94a3b8 !important;
}
body.dark-mode .admin-nav li a:hover {
    color: var(--primary) !important;
    background-color: #334155 !important;
}
body.dark-mode .admin-nav li a.active {
    color: var(--primary) !important;
    background-color: rgba(0, 174, 239, 0.15) !important;
}
body.dark-mode .admin-content {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-mode .admin-header h2,
body.dark-mode .admin-header h3 {
    color: #f8fafc !important;
}
body.dark-mode .stat-card,
body.dark-mode .contact-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .stat-card h4,
body.dark-mode .stat-card p,
body.dark-mode .stat-card span {
    color: #94a3b8 !important;
}
body.dark-mode .admin-table {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode .admin-table th {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-bottom-color: #334155 !important;
}
body.dark-mode .admin-table td {
    border-bottom-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}



/* Hero Slider Styles — matches categories conveyor-belt technique */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 20px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.05);
}

/* The inner overflow clip container */
.hero-slider-wrapper > div:first-child {
    height: 100%;
}

/* The flex track */
.hero-slider {
    display: flex;
    height: 100%;
    will-change: transform;
}

/* Each individual slide */
.hero-slide {
    flex-shrink: 0;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dots overlay */
.hero-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}

.hero-slider-dot.active {
    background-color: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* ============================================================
   CENTER STAGE SHOWCASE — 16:9 Animated Product Spotlight
   Loop: 9.1s × 4 slides = 36.4s total cycle (each slide 9.1s)
   ============================================================ */

/* 16:9 frame container */
.center-stage-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 22px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 0 40px rgba(0,174,239,0.15),
        0 20px 60px rgba(0,0,0,0.5);
    background: #060a12;
    flex-shrink: 0;
    isolation: isolate;
}

/* CRT scanline overlay — subtle depth */
.cs-scanline {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0.06) 4px
    );
}

/* Cinematic corner brackets */
.cs-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    z-index: 31;
    pointer-events: none;
}
.cs-corner-tl { top: 10px; left: 10px;
    border-top: 2px solid rgba(255,255,255,0.55);
    border-left: 2px solid rgba(255,255,255,0.55); }
.cs-corner-tr { top: 10px; right: 10px;
    border-top: 2px solid rgba(255,255,255,0.55);
    border-right: 2px solid rgba(255,255,255,0.55); }
.cs-corner-bl { bottom: 10px; left: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.55);
    border-left: 2px solid rgba(255,255,255,0.55); }
.cs-corner-br { bottom: 10px; right: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.55);
    border-right: 2px solid rgba(255,255,255,0.55); }

/* Individual slide */
.cs-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    animation-duration: 36.4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

/* Background layer */
.cs-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 12s ease;
}

/* Spotlight cone from top-center */
.cs-spotlight {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 130%;
    background: radial-gradient(ellipse at top center,
        rgba(255,255,255,0.07) 0%,
        transparent 65%);
    z-index: 1;
    pointer-events: none;
    animation: cs-spotlight-pulse 3s ease-in-out infinite alternate;
}
@keyframes cs-spotlight-pulse {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

/* Ambient orb */
.cs-orb {
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    z-index: 1;
    pointer-events: none;
    animation: cs-orb-float 6s ease-in-out infinite alternate;
}
@keyframes cs-orb-float {
    from { transform: scale(0.9) translateY(0); }
    to   { transform: scale(1.1) translateY(-8px); }
}

/* Content layer */
.cs-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 16px;
    animation-duration: 36.4s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

/* Badge chip */
.cs-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 4px;
}

/* Icon ring — center stage focal point */
.cs-icon-ring {
    width: clamp(52px, 10%, 70px);
    height: clamp(52px, 10%, 70px);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: #fff;
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.04),
        0 0 30px rgba(255,255,255,0.12);
    animation: cs-icon-pulse 2.3s ease-in-out infinite alternate;
    margin-bottom: 4px;
}
@keyframes cs-icon-pulse {
    from { box-shadow: 0 0 0 6px rgba(255,255,255,0.04), 0 0 18px rgba(255,255,255,0.08); transform: scale(1); }
    to   { box-shadow: 0 0 0 10px rgba(255,255,255,0.08), 0 0 40px rgba(255,255,255,0.22); transform: scale(1.06); }
}

/* Product label */
.cs-label {
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    line-height: 1.2;
}

/* Sub-tagline */
.cs-tagline {
    font-size: clamp(0.55rem, 1.4vw, 0.78rem);
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* CTA button */
.cs-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: #fff;
    font-size: clamp(0.6rem, 1.3vw, 0.75rem);
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background 0.25s, transform 0.25s;
}
.cs-cta:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.04);
    color: #fff;
}

/* Progress bar */
.cs-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 25;
}
.cs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    animation: cs-progress 36.4s linear infinite;
    transform-origin: left;
}
@keyframes cs-progress {
    0%   { width: 0%; }
    100% { width: 100%; }
}

/* Slide indicators */
.cs-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 26;
}
.cs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    animation-duration: 36.4s;
    animation-timing-function: step-start;
    animation-iteration-count: infinite;
}

/* ---- KEYFRAME TIMINGS ----
   4 slides × 9.1s each = 36.4s total
   Each slide: 0→fade-in 0.63s, hold 7.68s, fade-out 0.79s
   As percentages of 36.4s:
     Slide 1: 0%–25%   (0–9.1s)
     Slide 2: 25%–50%  (9.1–18.2s)
     Slide 3: 50%–75%  (18.2–27.3s)
     Slide 4: 75%–100% (27.3–36.4s)
   Fade-in = 1.74% of cycle | Hold = 20.65% | Fade-out = 2.61%
   --------------------------------- */

/* --- Slide visibility keyframes --- */
@keyframes cs-show-1 {
    0%         { opacity: 0; z-index: 5; }
    1.74%      { opacity: 1; z-index: 5; }
    22.83%     { opacity: 1; z-index: 5; }
    25%        { opacity: 0; z-index: 1; }
    25.01%     { opacity: 0; z-index: 1; }
    100%       { opacity: 0; z-index: 1; }
}
@keyframes cs-show-2 {
    0%         { opacity: 0; z-index: 1; }
    24.99%     { opacity: 0; z-index: 1; }
    25%        { opacity: 0; z-index: 5; }
    26.74%     { opacity: 1; z-index: 5; }
    47.83%     { opacity: 1; z-index: 5; }
    50%        { opacity: 0; z-index: 1; }
    100%       { opacity: 0; z-index: 1; }
}
@keyframes cs-show-3 {
    0%         { opacity: 0; z-index: 1; }
    49.99%     { opacity: 0; z-index: 1; }
    50%        { opacity: 0; z-index: 5; }
    51.74%     { opacity: 1; z-index: 5; }
    72.83%     { opacity: 1; z-index: 5; }
    75%        { opacity: 0; z-index: 1; }
    100%       { opacity: 0; z-index: 1; }
}
@keyframes cs-show-4 {
    0%         { opacity: 0; z-index: 1; }
    74.99%     { opacity: 0; z-index: 1; }
    75%        { opacity: 0; z-index: 5; }
    76.74%     { opacity: 1; z-index: 5; }
    97.83%     { opacity: 1; z-index: 5; }
    100%       { opacity: 0; z-index: 1; }
}

/* --- Content scale-up keyframes (center stage effect) --- */
@keyframes cs-content-1 {
    0%    { opacity: 0; transform: scale(0.82) translateY(10px); }
    2%    { opacity: 1; transform: scale(1)    translateY(0); }
    23%   { opacity: 1; transform: scale(1.04) translateY(-3px); }
    25%   { opacity: 0; transform: scale(1.08) translateY(-5px); }
    100%  { opacity: 0; }
}
@keyframes cs-content-2 {
    0%    { opacity: 0; }
    25%   { opacity: 0; transform: scale(0.82) translateY(10px); }
    27%   { opacity: 1; transform: scale(1)    translateY(0); }
    48%   { opacity: 1; transform: scale(1.04) translateY(-3px); }
    50%   { opacity: 0; transform: scale(1.08) translateY(-5px); }
    100%  { opacity: 0; }
}
@keyframes cs-content-3 {
    0%    { opacity: 0; }
    50%   { opacity: 0; transform: scale(0.82) translateY(10px); }
    52%   { opacity: 1; transform: scale(1)    translateY(0); }
    73%   { opacity: 1; transform: scale(1.04) translateY(-3px); }
    75%   { opacity: 0; transform: scale(1.08) translateY(-5px); }
    100%  { opacity: 0; }
}
@keyframes cs-content-4 {
    0%    { opacity: 0; }
    75%   { opacity: 0; transform: scale(0.82) translateY(10px); }
    77%   { opacity: 1; transform: scale(1)    translateY(0); }
    98%   { opacity: 1; transform: scale(1.04) translateY(-3px); }
    100%  { opacity: 0; transform: scale(1.08) translateY(-5px); }
}

/* --- BG subtle zoom --- */
@keyframes cs-bg-zoom-1 {
    0%  { transform: scale(1); }   25% { transform: scale(1.06); }
    26% { transform: scale(1); }  100% { transform: scale(1); }
}
@keyframes cs-bg-zoom-2 {
    0%  { transform: scale(1); }   25% { transform: scale(1); }
    26% { transform: scale(1); }   50% { transform: scale(1.06); }
    51% { transform: scale(1); }  100% { transform: scale(1); }
}
@keyframes cs-bg-zoom-3 {
    0%  { transform: scale(1); }   50% { transform: scale(1); }
    51% { transform: scale(1); }   75% { transform: scale(1.06); }
    76% { transform: scale(1); }  100% { transform: scale(1); }
}
@keyframes cs-bg-zoom-4 {
    0%  { transform: scale(1); }   75% { transform: scale(1); }
    76% { transform: scale(1); }  100% { transform: scale(1.06); }
}

/* --- Dot active indicator keyframes --- */
@keyframes cs-dot-1 {
    0%, 25%   { background: #fff; width: 16px; border-radius: 3px; }
    25.01%    { background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
    100%      { background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
}
@keyframes cs-dot-2 {
    0%, 24.99%  { background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
    25%, 50%    { background: #fff; width: 16px; border-radius: 3px; }
    50.01%, 100%{ background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
}
@keyframes cs-dot-3 {
    0%, 49.99%  { background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
    50%, 75%    { background: #fff; width: 16px; border-radius: 3px; }
    75.01%, 100%{ background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
}
@keyframes cs-dot-4 {
    0%, 74.99%  { background: rgba(255,255,255,0.3); width: 6px; border-radius: 50%; }
    75%, 100%   { background: #fff; width: 16px; border-radius: 3px; }
}

/* --- Apply animations --- */
.cs-slide-1 { animation-name: cs-show-1; }
.cs-slide-2 { animation-name: cs-show-2; }
.cs-slide-3 { animation-name: cs-show-3; }
.cs-slide-4 { animation-name: cs-show-4; }

.cs-slide-1 .cs-content { animation-name: cs-content-1; }
.cs-slide-2 .cs-content { animation-name: cs-content-2; }
.cs-slide-3 .cs-content { animation-name: cs-content-3; }
.cs-slide-4 .cs-content { animation-name: cs-content-4; }

.cs-slide-1 .cs-bg { animation: cs-bg-zoom-1 36.4s ease infinite; }
.cs-slide-2 .cs-bg { animation: cs-bg-zoom-2 36.4s ease infinite; }
.cs-slide-3 .cs-bg { animation: cs-bg-zoom-3 36.4s ease infinite; }
.cs-slide-4 .cs-bg { animation: cs-bg-zoom-4 36.4s ease infinite; }

.cs-dot-1 { animation-name: cs-dot-1; }
.cs-dot-2 { animation-name: cs-dot-2; }
.cs-dot-3 { animation-name: cs-dot-3; }
.cs-dot-4 { animation-name: cs-dot-4; }

/* Ensure first slide is visible at start (no delay) */
.cs-slide-1 { animation-delay: 0s; }
.cs-slide-2 { animation-delay: 0s; }
.cs-slide-3 { animation-delay: 0s; }
.cs-slide-4 { animation-delay: 0s; }

/* Dark mode compatibility */
body.dark-mode .center-stage-frame {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 0 50px rgba(0,174,239,0.2),
        0 20px 60px rgba(0,0,0,0.7);
}

/* Responsive — hero-grid stacks on mobile, frame goes full width */
@media (max-width: 768px) {
    .center-stage-frame {
        margin-top: 16px;
        border-radius: 8px;
    }
    .cs-icon-ring { width: 44px; height: 44px; font-size: 1.2rem; }
}
