/* ═══════════════════════════════════════════════════════════════
   SoukBuzz - متجر سوق باز (Version 2.0)
   Modern Moroccan E-commerce Store Stylesheet
   Designed for High Conversion & Premium UX
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. Design Tokens & Variables
   ───────────────────────────────────────────────────────────────── */
:root {
    /* Colors - Brand Identity (Moroccan Nights + Gold + Trust) */
    --color-primary: #1B4B5A;
    /* Deep Teal Blue (Professional/Trust) */
    --color-primary-dark: #143D4A;
    /* Darker Shade for Interactions */
    --color-secondary: #C08B3E;
    /* Moroccan Gold (Premium/Value) */
    --color-secondary-dark: #A5732A;
    /* Darker Gold */
    --color-accent: #E63946;
    /* Red for Urgent Actions (Sale/Badges) */
    --color-whatsapp: #25D366;
    /* Official WhatsApp Green */
    --color-whatsapp-dark: #128C7E;
    /* Darker WhatsApp Green */

    /* Neutrals */
    --color-dark: #1D1D1F;
    /* Almost Black for Text */
    --color-heading: #1B4B5A;
    /* Headings Color */
    --color-gray: #6C757D;
    /* Subtitles/Hints */
    --color-light-gray: #E9ECEF;
    /* Borders/Dividers */
    --color-bg: #F8F9FA;
    /* Soft Background */
    --color-white: #FFFFFF;
    /* Cards/Containers */
    --color-card-bg: #FFFFFF;
    /* Card Background */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1B4B5A 0%, #2D6A7A 100%);
    --gradient-gold: linear-gradient(135deg, #C08B3E 0%, #D4AF37 100%);
    --gradient-primary: linear-gradient(135deg, #1B4B5A 0%, #2980B9 100%);

    /* Typography */
    --font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --font-heading: 'Tajawal', sans-serif;
    --font-size-base: 1rem;
    /* 16px */
    --font-size-sm: 0.875rem;
    /* 14px */

    /* Spacing & Layout */
    --container-max: 1200px;
    --container-padding: 1rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows (Purpose: Depth & Hierarchy) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(27, 75, 90, 0.08);
    /* Colored Shadow */
    --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────────────────────────────
   2. Base Reset & Global Styles
   ───────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hidden {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   3. Header Styling
   ───────────────────────────────────────────────────────────────── */
.header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.header.header-scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--color-primary);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    text-align: center;
}

.header-top-content {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-top-content span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo img {
    height: 60px;
    /* Optimal size */
    transition: var(--transition-fast);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3.5rem;
    /* Space for icon */
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--color-bg);
}

.search-bar input:focus {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(27, 75, 90, 0.1);
}

.search-bar button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-bar button:hover {
    background: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    background: rgba(27, 75, 90, 0.05);
}

.btn-contact:hover {
    background: rgba(27, 75, 90, 0.1);
}

.nav-categories {
    border-top: 1px solid var(--color-light-gray);
    overflow-x: auto;
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.nav-categories::-webkit-scrollbar {
    display: none;
}

.nav-list {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    white-space: nowrap;
}

.nav-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--color-gray);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item.active,
.nav-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────
   4. Hero Section
   ───────────────────────────────────────────────────────────────── */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .highlight {
    color: var(--color-secondary);
    /* Gold */
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(192, 139, 62, 0.4);
    transition: var(--transition-base);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 139, 62, 0.5);
    background: var(--color-secondary-dark);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────
   5. Trust Bar & Trust Badges
   ───────────────────────────────────────────────────────────────── */
.trust-bar {
    background: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.trust-bar-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

.trust-icon {
    font-size: 1.5rem;
    background: rgba(27, 75, 90, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ─────────────────────────────────────────────────────────────────
   6. Sections & Titles
   ───────────────────────────────────────────────────────────────── */
.section {
    padding: 3rem 0;
}

.section-alt {
    background-color: white;
    /* Alternate background for contrast */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all {
    color: var(--color-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.view-all:hover {
    gap: 0.8rem;
    /* Slide effect */
}

/* ─────────────────────────────────────────────────────────────────
   7. Product Grid & Cards
   ───────────────────────────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Old product card styles replaced by Temu-style below */

/* ─────────────────────────────────────────────────────────────────
   7. Temu-Style Product Card (v3.0)
   ───────────────────────────────────────────────────────────────── */
.product-card {
    background: white;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid #E5E7EB;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #D1D5DB;
}

/* Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f9f9f9;
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Badges (Temu Style: Small tags) */
.product-badges {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 2;
    width: 100%;
}

.badge {
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    width: max-content;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 0;
}

.badge-sale {
    background: #E63946;
}

.badge-new {
    background: #1B4B5A;
}

/* Product Info */
.product-info {
    padding: 0.6rem 0.8rem;
    /* Compact padding */
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex-grow: 1;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
    height: 2.6em;
    /* 2 lines max */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.2rem;
}

/* Price Row */
.temu-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom if content is short */
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-dark);
}

.current-price small {
    font-size: 0.7rem;
    font-weight: 600;
}

.old-price {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-decoration: line-through;
}

/* Cart Button */
.temu-cart-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--color-dark);
}

.temu-cart-btn:hover {
    background: var(--color-dark);
    color: white;
}

.temu-cart-btn svg {
    width: 14px;
    height: 14px;
}

/* Meta Row (Rating + Sold) */
.temu-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--color-gray);
    flex-wrap: wrap;
}

.temu-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.temu-rating .stars {
    color: var(--color-dark);
    /* Black stars like Temu? Or Gold? Temu uses Black stars usually */
}

.temu-rating .star-full,
.temu-rating .star-half {
    color: var(--color-dark);
}

.temu-sold {
    color: var(--color-gray);
}

/* Trust Badge (Pay on Delivery) */
.temu-badge-row {
    margin-top: 0.4rem;
}

.temu-badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #7C3AED;
    /* Purple like Temu's Star Seller logic */
    background: #F3E8FF;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #E9D5FF;
}

.temu-stock-alert {
    color: #DC2626;
    font-size: 0.65rem;
    font-weight: 600;
    margin-right: auto;
}


/* ─────────────────────────────────────────────────────────────────
   8. Product Landing Page
   ───────────────────────────────────────────────────────────────── */
.product-page {
    padding: 2rem 0;
}

.breadcrumb {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-sep {
    opacity: 0.5;
}

.breadcrumb a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.breadcrumb-active {
    color: var(--color-primary);
    font-weight: 600;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--color-light-gray);
    position: relative;
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.main-image:hover .zoom-hint {
    opacity: 1;
}

.thumbnail-list {
    display: flex;
    gap: 0.8rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Details Section */
.product-details {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.product-badges-landing {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-title-large {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
}

.product-price-large {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-light-gray);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.product-price-large .price-current {
    font-size: 2.5rem;
}

.quantity-section {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 0.3rem;
    box-shadow: var(--shadow-sm);
}

.qty-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.qty-btn:hover {
    background: var(--color-bg);
}

.qty-input {
    width: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    background: transparent;
}

.total-price {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Big Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-base);
    animation: pulse-green 2s infinite;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.purchase-section {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-buy-now {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d4973a 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    box-shadow: 0 4px 18px rgba(192, 139, 62, 0.35);
    transition: var(--transition-base);
    animation: pulse-buy 2s infinite;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(192, 139, 62, 0.5);
    filter: brightness(1.08);
}

@keyframes pulse-buy {
    0% {
        box-shadow: 0 0 0 0 rgba(192, 139, 62, 0.45);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(192, 139, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(192, 139, 62, 0);
    }
}

.action-row {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--color-gray);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: white;
}

/* Trust Badges on Product Page */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px dashed var(--color-light-gray);
    padding-top: 1.5rem;
}

.trust-badge {
    text-align: center;
}

.trust-badge-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.trust-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.trust-badge-text small {
    font-weight: normal;
    color: var(--color-gray);
}

/* ─────────────────────────────────────────────────────────────────
   9. Footer
   ───────────────────────────────────────────────────────────────── */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    /* Make logo white */
    width: 120px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-secondary);
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-secondary);
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a:hover {
    color: var(--color-secondary);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────
   10. Floating Elements & Utilities
   ───────────────────────────────────────────────────────────────── */

.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.wa-float svg {
    margin-top: 14px;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    z-index: 9998;
    transition: var(--transition-fast);
}

.scroll-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top:hover {
    background: var(--color-secondary);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success .toast-icon {
    color: var(--color-whatsapp);
}

.toast.error .toast-icon {
    color: var(--color-accent);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: var(--color-accent);
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.btn-reset {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--color-secondary);
    color: white;
    border-radius: var(--radius-full);
}

/* Animation Classes */
.animate-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* No-JS Fallback: show cards even if IntersectionObserver fails */
.no-js .animate-card,
noscript~.animate-card {
    opacity: 1 !important;
    transform: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   12. Star Ratings
   ───────────────────────────────────────────────────────────────── */
.card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.stars {
    display: inline-flex;
    gap: 1px;
}

.star {
    font-size: 0.85rem;
    line-height: 1;
}

.star-full {
    color: #F59E0B;
}

.star-half {
    color: #F59E0B;
    opacity: 0.6;
}

.star-empty {
    color: #D1D5DB;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.sold-count {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Product Page Rating */
.product-rating-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.product-stars .star {
    font-size: 1.2rem;
}

.rating-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.sold-badge {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    color: #E65100;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────
   13. Stock Indicator
   ───────────────────────────────────────────────────────────────── */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.3rem;
    padding: 0.2rem 0;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s infinite;
}

.stock-low .stock-dot {
    background-color: #F59E0B;
}

.stock-low {
    color: #B45309;
}

.stock-critical .stock-dot {
    background-color: var(--color-accent);
}

.stock-critical {
    color: var(--color-accent);
}

.stock-available .stock-dot {
    background-color: var(--color-whatsapp);
    animation: none;
}

.stock-available {
    color: #059669;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Large Stock for Product Page */
.stock-indicator-large {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.stock-indicator-large.stock-low {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}

.stock-indicator-large.stock-critical {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.stock-indicator-large.stock-available {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.stock-bar {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.stock-low .stock-bar-fill {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.stock-critical .stock-bar-fill {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

/* ─────────────────────────────────────────────────────────────────
   14. Size & Color Selectors
   ───────────────────────────────────────────────────────────────── */
.product-options {
    padding: 1rem 0;
    border-top: 1px solid var(--color-light-gray);
}

.option-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--color-dark);
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-light-gray);
    background: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--color-dark);
    font-family: var(--font-family);
}

.size-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.size-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: 2px solid var(--color-light-gray);
    outline-offset: 2px;
}

.color-btn:hover {
    outline-color: var(--color-gray);
    transform: scale(1.1);
}

.color-btn.active {
    outline-color: var(--color-primary);
    outline-width: 3px;
    transform: scale(1.1);
}

.selected-color-name {
    display: block;
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────────
   15. Countdown Timer
   ───────────────────────────────────────────────────────────────── */
.deals-countdown {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #FEF2F2, #FFF1F2);
    border: 1px solid #FECACA;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
}

.cd-block {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}

.cd-num {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}

.cd-label {
    font-size: 0.55rem;
    color: var(--color-gray);
    font-weight: 400;
}

.cd-sep {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-top: -8px;
}

/* ─────────────────────────────────────────────────────────────────
   16. Order Modal
   ───────────────────────────────────────────────────────────────── */
.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-modal-overlay.active {
    opacity: 1;
}

.order-modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-float);
}

.order-modal-overlay.active .order-modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-light-gray);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 1;
}

.modal-close:hover {
    background: var(--color-accent);
    color: white;
}

.modal-product-summary {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-light-gray);
    margin-bottom: 1rem;
}

.modal-product-summary img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.modal-product-summary h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--color-dark);
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-current-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.modal-old-price {
    text-decoration: line-through;
    color: var(--color-gray);
    font-size: 0.85rem;
}

.modal-discount {
    background: var(--color-accent);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.modal-qty {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 0.3rem;
}

.free-shipping-badge {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.3rem;
    display: inline-block;
}

.shipping-note {
    font-size: 0.72rem;
    color: var(--color-gray);
    margin-top: 0.3rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--color-dark);
}

.required {
    color: var(--color-accent);
}

.modal-field input,
.modal-field select,
.modal-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: var(--transition-fast);
    background: var(--color-white);
    color: var(--color-dark);
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 75, 90, 0.1);
}

.modal-payment-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: #065F46;
    margin: 1rem 0;
}

.btn-submit-order {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-submit-order:hover {
    background: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-submit-order:active {
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────────
   17. Improved Toast
   ───────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────
   11. Responsive Styles
   ───────────────────────────────────────────────────────────────── */


/* === Tablet (max-width: 992px) === */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .section {
        padding: 2rem 0;
    }
}

/* === Mobile (max-width: 768px) === */
@media (max-width: 768px) {

    /* ── Header: Keep horizontal, compact ── */
    .header-top {
        display: none;
        /* Hide top bar on mobile to save space */
    }

    .header-main {
        padding: 0.5rem 0;
    }

    .header-content {
        flex-direction: row;
        /* Keep horizontal! */
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    .logo img {
        height: 36px;
        /* Much smaller logo */
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        /* Full width below logo */
        max-width: 100%;
    }

    .search-bar input {
        padding: 0.5rem 0.8rem 0.5rem 2.8rem;
        font-size: 0.85rem;
    }

    .search-bar button {
        width: 28px;
        height: 28px;
    }

    .search-bar button svg {
        width: 14px;
        height: 14px;
    }

    .btn-contact {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-contact span:last-child {
        display: none;
        /* Hide "تواصل معنا" text, show icon only */
    }

    /* ── Nav Categories: smaller ── */
    .nav-list {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .nav-item {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }

    /* ── Hero: compact ── */
    .hero {
        padding: 2rem 0;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-cta {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* ── Trust Bar: horizontal scroll ── */
    .trust-bar {
        padding: 0.8rem 0;
        margin-bottom: 1rem;
    }

    .trust-bar-content {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 0 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .trust-bar-content::-webkit-scrollbar {
        display: none;
    }

    .trust-item {
        flex-shrink: 0;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .trust-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .trust-icon svg {
        width: 16px;
        height: 16px;
    }

    /* ── Sections: tighter ── */
    .section {
        padding: 1.5rem 0;
    }

    .section-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .section-title svg {
        width: 20px;
        height: 20px;
    }

    .view-all {
        font-size: 0.85rem;
    }

    /* ── Product Grid: 2 columns, compact ── */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-info {
        padding: 0.8rem;
        gap: 0.3rem;
    }

    .product-category {
        font-size: 0.7rem;
    }

    .product-name a {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 1rem;
    }

    .old-price {
        font-size: 0.75rem;
    }

    .discount-percent {
        font-size: 0.65rem;
    }

    .card-actions {
        margin-top: 0.5rem;
    }

    .product-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
        border-radius: var(--radius-sm);
    }

    .btn-wa-mini {
        width: 36px;
        font-size: 1rem;
    }

    /* ── Product Page: compact ── */
    .product-page {
        padding: 1rem 0;
    }

    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .product-details {
        padding: 1.2rem;
    }

    .product-title-large {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .product-price-large {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .product-price-large .price-current {
        font-size: 1.8rem;
    }

    .quantity-section {
        padding: 1rem;
        gap: 1rem;
    }

    .btn-whatsapp {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .trust-badges {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .trust-badge-icon {
        font-size: 1.2rem;
    }

    .trust-badge-icon svg {
        width: 24px;
        height: 24px;
    }

    .trust-badge-text {
        font-size: 0.75rem;
    }

    /* ── Footer: compact ── */
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 0.5rem;
        width: 80px;
    }

    .footer h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }



    .scroll-top {
        width: 38px;
        height: 38px;
        bottom: 20px;
        left: 20px;
    }

    .scroll-top svg {
        width: 18px;
        height: 18px;
    }
}

/* === Small Mobile (max-width: 380px) === */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.8rem;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .action-row {
        flex-direction: column;
    }

    .logo img {
        height: 30px;
    }

    .section-title {
        font-size: 1rem;
    }

    /* New components mobile */
    .deals-countdown {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .cd-num {
        font-size: 0.9rem;
    }

    .cd-block {
        min-width: 28px;
    }

    .order-modal {
        padding: 1rem;
        border-radius: var(--radius-md);
        max-height: 95vh;
    }

    .modal-product-summary img {
        width: 60px;
        height: 60px;
    }

    .size-btn {
        min-width: 38px;
        height: 38px;
        font-size: 0.8rem;
    }

    .color-btn {
        width: 34px;
        height: 34px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* ─────────────────────────────────────────────────────────────────
   Product Video
   ───────────────────────────────────────────────────────────────── */
.product-video {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.product-video iframe,
.product-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.product-video.hidden {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────
   Sticky Mobile Buy Bar
   ───────────────────────────────────────────────────────────────── */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    /* Hidden on desktop by default */
}

.sticky-buy-bar.visible {
    transform: translateY(0);
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 0;
}

.sticky-product-info img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.sticky-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.sticky-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.sticky-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sticky-buy-bar {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}



/* ─────────────────────────────────────────────────────────────────
   Cookie Consent Banner
   ───────────────────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.5;
    min-width: 200px;
}

.cookie-banner a {
    color: #60a5fa;
}

.cookie-accept {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   Stock Indicator Badge
   ───────────────────────────────────────────────────────────────── */
.stock-low {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FEF9C3;
    color: #92400E;
    border: 1px solid #FDE68A;
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stock-out {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stock-ok {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* ─────────────────────────────────────────────────────────────────
   Countdown Timer
   ───────────────────────────────────────────────────────────────── */
.deal-countdown {
    background: linear-gradient(135deg, #E63946, #b71c1c);
    color: white;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.deal-countdown .label {
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.countdown-timer span {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 30px;
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────
   Exit Intent Popup
   ───────────────────────────────────────────────────────────────── */
.exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.exit-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.exit-popup {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.exit-overlay.show .exit-popup {
    transform: scale(1);
}

.exit-popup .close-btn {
    position: absolute;
    top: 12px;
    left: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #94a3b8;
}

.exit-popup .big-emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.exit-popup h2 {
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.exit-popup p {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.exit-popup .code-box {
    background: #f1f5f9;
    border: 2px dashed var(--color-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ─────────────────────────────────────────────────────────────────
   Customer Reviews
   ───────────────────────────────────────────────────────────────── */
.product-reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.review-card {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
}

.review-author {
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-badge {
    color: #10B981;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.review-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.review-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.review-img:hover {
    transform: scale(1.05);
}