/**
 * BOGO Landing Page - Modern iOS-Inspired Design
 * Circular product images with beautiful pricing cards
 */

/* ========================================
   GLOBAL RESET & VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FEE2E2;
    --accent: #EF4444;
    
    --white: #FFFFFF;
    --bg-main: #F9FAFB;
    --bg-card: #FFFFFF;
    
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* ========================================
   BOGO HEADER
   ======================================== */
.bogo-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.bogo-logo img {
    height: 48px;
    width: auto;
}

.bogo-offer-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.badge-text {
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.badge-discount {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}


/* ========================================
   HERO SECTION - 3 COLUMN LAYOUT
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
    padding: var(--space-10) 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(239, 68, 68, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(220, 38, 38, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.3fr;
    gap: var(--space-8);
    align-items: center;
}

/* Left - Large BOGO Logo */
.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.hero-bogo-logo-large {
    width: 100%;
    height: auto;
    max-width: 850px;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.4));
    animation: smoothLogoFloat 6s ease-in-out infinite;
}

@keyframes smoothLogoFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-12px);
    }
}

/* Middle - Campaign Info */
.hero-middle {
    text-align: center;
}

.campaign-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.campaign-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    font-weight: 600;
}

.campaign-period i {
    font-size: 1.2rem;
}

.campaign-locations {
    margin-bottom: var(--space-5);
}

.campaign-locations i {
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
    display: block;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.locations-list span {
    font-size: 0.95rem;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
}

.campaign-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-badge .stat-number {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-badge .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Right - 3 Row Carousel */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    overflow: hidden;
}

.carousel-row {
    display: flex;
    gap: var(--space-3);
    animation: scrollRow 25s linear infinite;
    width: fit-content;
}

.carousel-row:nth-child(2) {
    animation-duration: 30s;
    animation-direction: reverse;
}

.carousel-row:nth-child(3) {
    animation-duration: 28s;
}

.carousel-row:hover {
    animation-play-state: paused;
}

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

.hero-product-card {
    flex-shrink: 0;
    width: 140px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    overflow: hidden;
}

.hero-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-product-image {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-2);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero-product-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.hero-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.hero-product-card:hover .hero-product-image img {
    transform: scale(1.1);
}

.hero-product-info {
    text-align: center;
}

.hero-product-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    text-align: center;
    padding: 0 2px;
}

.hero-product-save {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    display: inline-block;
}


/* ========================================
   HOW BOGO WORKS SECTION - COMPACT
   ======================================== */
.how-bogo-works {
    padding: var(--space-8) 0;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.how-bogo-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.how-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.how-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.how-max-qty {
    text-align: center;
    font-size: 0.95rem;
    color: white;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-6);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    position: relative;
}

.step-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.08);
    border: 1px solid #FEE2E2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.step-card[data-step="1"] { animation-delay: 0.1s; }
.step-card[data-step="2"] { animation-delay: 0.2s; }
.step-card[data-step="3"] { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 36px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.step-number {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    border: 3px solid var(--white);
    z-index: 2;
}

.step-icon-wrapper {
    position: relative;
    margin: var(--space-3) auto var(--space-3);
    width: fit-content;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #DC2626;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
}

/* Desktop: step-content-mobile wrapper should be invisible */
.step-content-mobile {
    display: contents; /* On desktop, wrapper is transparent */
}

.step-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    border-radius: var(--radius-full);
    opacity: 0;
    animation: glowPulse 2s ease-in-out infinite;
}

.step-card:hover .step-glow {
    opacity: 1;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.step-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.step-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -48px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #DC2626, #FEE2E2);
    transform: translateY(-50%);
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #DC2626;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    animation: arrowSlide 2s ease-in-out infinite;
}

@keyframes arrowSlide {
    0%, 100% { right: -6px; opacity: 1; }
    50% { right: 0px; opacity: 0.5; }
}

.step-card[data-step="3"] .step-connector {
    display: none;
}

/* BOGO Example Animation - Compact & Wide */
.bogo-example {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, #FFF5F5 0%, #FEE2E2 100%);
    border-radius: var(--radius-lg);
    border: 2px solid #FECACA;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Desktop: Items row is transparent wrapper */
.example-items-row {
    display: contents; /* On desktop, wrapper is invisible */
}

.bogo-example::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1" fill="%23DC2626" opacity="0.1"/></svg>');
    background-size: 40px 40px;
    pointer-events: none;
}

.example-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #FEE2E2;
    animation: itemFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
    min-width: 120px;
}

.example-item.item-1 {
    animation-delay: 0s;
}

.example-item.item-2 {
    animation-delay: 0.5s;
}

@keyframes itemFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.example-product-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-1);
    border: 2px solid #FECACA;
    overflow: hidden;
    position: relative;
}

.example-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example-product-image i {
    font-size: 2rem;
    color: #DC2626;
}

.example-product-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 auto var(--space-1);
    text-align: center;
    line-height: 1.2;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-price {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.price-value {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #DC2626;
}

.price-value.original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2px;
    animation: strikethrough 1s ease-in-out 1s backwards;
}

@keyframes strikethrough {
    from { text-decoration: none; opacity: 1; }
    to { text-decoration: line-through; opacity: 0.6; }
}

.price-value.discounted {
    animation: priceReveal 0.6s ease-out 1.5s backwards;
}

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

.example-plus,
.example-equals {
    font-size: 1.5rem;
    color: #DC2626;
    font-weight: 900;
    animation: symbolPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes symbolPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.example-total {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
    animation: totalReveal 0.6s ease-out 2s backwards, totalGlow 2s ease-in-out 2.5s infinite;
    position: relative;
    z-index: 1;
    min-width: 140px;
    overflow: hidden;
}

@keyframes totalReveal {
    from { transform: scale(0) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes totalGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 12px 32px rgba(220, 38, 38, 0.6); }
}

/* Confetti animation around the savings */
.savings-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.confetti-particle {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    animation: confettiFall 3s ease-in-out infinite;
}

.confetti-particle:nth-child(1) {
    top: -10px;
    left: 10%;
    animation-delay: 0s;
}

.confetti-particle:nth-child(2) {
    top: -10px;
    left: 30%;
    animation-delay: 0.5s;
}

.confetti-particle:nth-child(3) {
    top: -10px;
    right: 30%;
    animation-delay: 1s;
}

.confetti-particle:nth-child(4) {
    top: -10px;
    right: 10%;
    animation-delay: 1.5s;
}

.confetti-particle:nth-child(5) {
    top: 50%;
    left: -15px;
    animation-delay: 0.7s;
}

.confetti-particle:nth-child(6) {
    top: 50%;
    right: -15px;
    animation-delay: 1.2s;
}

@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 1;
        transform: translateY(20px) rotate(180deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(40px) rotate(360deg) scale(0.5);
    }
}

.total-details-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.total-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: var(--space-1);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}


/* ========================================
   SEARCH & FILTER BAR
   ======================================== */
.search-filter-bar {
    background: var(--white);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-main);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.filter-wrapper {
    display: flex;
    gap: var(--space-2);
}

.category-filter,
.sort-filter {
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-primary);
}

.category-filter:hover,
.sort-filter:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

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


/* ========================================
   PRODUCTS COUNT BAR
   ======================================== */
.products-count-bar {
    padding: var(--space-3) var(--space-6);
    background: var(--bg-main);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}


/* ========================================
   PRODUCTS CONTAINER & GRID
   ======================================== */
.products-container {
    padding: var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}


/* ========================================
   PRODUCT CARD - Red Theme with Better Differentiation
   ======================================== */
.product-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #FEE2E2;
    position: relative;
    overflow: visible;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC2626, #EF4444, #F87171, #EF4444, #DC2626);
    background-size: 200% 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #DC2626, #EF4444, #F87171);
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.2), 0 10px 20px rgba(220, 38, 38, 0.15);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 1;
    animation: shimmerMove 2s ease-in-out infinite;
}

.product-card:hover::after {
    opacity: 1;
}

@keyframes shimmerMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}


/* Product Image Container - Modern 3D Effect */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-backdrop {
    position: absolute;
    inset: 10%;
    background: linear-gradient(135deg, #FEE2E2 0%, #FFF5F5 50%, #FECACA 100%);
    border-radius: var(--radius-2xl);
    opacity: 0.6;
    filter: blur(20px);
    transition: all 0.5s ease;
}

.image-frame {
    position: relative;
    width: 85%;
    height: 85%;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.12), 
                0 4px 16px rgba(0, 0, 0, 0.08),
                inset 0 0 0 1px rgba(220, 38, 38, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, transparent 50%, rgba(220, 38, 38, 0.03) 100%);
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .image-frame::before {
    opacity: 1;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.product-card:hover .image-backdrop {
    opacity: 0.9;
    filter: blur(30px);
    transform: scale(1.1);
}

.product-card:hover .image-frame {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 48px rgba(220, 38, 38, 0.18), 
                0 6px 24px rgba(0, 0, 0, 0.12),
                inset 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.product-card:hover .image-frame img {
    transform: scale(1.05);
}

/* Discount Badge - Floating Modern Style */
.discount-badge-float {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 10;
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(-8deg); }
}

.badge-inner {
    position: relative;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.5), 
                0 4px 16px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--white);
    z-index: 2;
}

.badge-glow-effect {
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, transparent 70%);
    border-radius: var(--radius-full);
    animation: badgeGlow 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes badgeGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.badge-percent {
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-off {
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.95;
    text-transform: uppercase;
}

/* Animated Gradient Border */
.card-border-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #DC2626, #EF4444, #F87171, #EF4444, #DC2626);
    background-size: 300% 100%;
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.product-card:hover .card-border-glow {
    opacity: 1;
}


/* Product Info Section */
.product-info-section {
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-4);
}

.product-category-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.product-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}


/* ========================================
   GLASSMORPHISM PRICING PANEL - Premium Design
   ======================================== */
.pricing-glass-panel {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid rgba(220, 38, 38, 0.1);
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-top: var(--space-5);
    transition: all 0.4s ease;
}

.product-card:hover .pricing-glass-panel {
    background: linear-gradient(135deg, rgba(255, 245, 245, 1) 0%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: 0 6px 32px rgba(220, 38, 38, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Pricing Rows */
.pricing-row {
    margin-bottom: var(--space-3);
}

.original-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-3);
}

.price-label-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price-original {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #DC2626;
}

/* BOGO Split Display - Side by Side Items */
.bogo-split {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 50%, #FEE2E2 100%);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.split-item {
    flex: 1;
    text-align: center;
    background: var(--white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
}

.split-item.highlight {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(220, 38, 38, 0.3);
}

.split-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.split-price {
    display: block;
    font-size: 0.95rem;
    font-weight: 900;
    color: #DC2626;
}

.plus-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Pricing Divider */
.pricing-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #DC2626 50%, transparent 100%);
    margin: var(--space-4) 0;
    opacity: 0.3;
}

/* Total Price Row */
.total-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-total {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SAVINGS BANNER - Premium Highlight
   ======================================== */
.savings-banner {
    width: 100%;
    margin-top: var(--space-5);
    padding: var(--space-4);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4), 
                0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card:hover .savings-banner {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5), 
                0 6px 20px rgba(0, 0, 0, 0.25);
}

.savings-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.savings-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.savings-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: var(--space-1);
}

.savings-amount {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.savings-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: savingsShine 3s ease-in-out infinite;
}

@keyframes savingsShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* MRP Row */
.mrp-row .mrp-price {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

/* BOGO Row - Highlighted with Red Theme */
.bogo-row {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    padding: var(--space-3) var(--space-4);
    margin: var(--space-2) calc(var(--space-5) * -1);
    border-left: 4px solid #DC2626;
    position: relative;
    overflow: hidden;
}

.bogo-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bogo-row .price-label {
    color: #B91C1C;
    font-weight: 700;
}

.bogo-row .bogo-price {
    color: #DC2626;
    font-size: 1.3rem;
    font-weight: 900;
}

/* Total Row - Emphasized with Red Theme */
.total-row {
    margin-top: var(--space-2);
    padding-top: var(--space-4);
    border-top: 2px dashed #FEE2E2;
}

.total-row .price-label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

.total-row .total-price {
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Savings Tag - Red Rounded Rectangle */
.savings-tag {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.savings-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.product-card:hover .savings-tag::before {
    left: 100%;
}

.savings-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .savings-tag::after {
    opacity: 1;
}

.savings-tag i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}


/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
.loading-state {
    text-align: center;
    padding: var(--space-12);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-secondary);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    color: var(--border);
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 768px) {
    .bogo-header {
        padding: var(--space-3) var(--space-4);
    }
    
    .bogo-logo img {
        height: 40px;
    }
    
    .badge-text {
        font-size: 0.9rem;
    }
    
    .badge-discount {
        font-size: 1.1rem;
    }
    
    /* How BOGO Works - Tablet */
    .how-bogo-works {
        padding: var(--space-6) 0;
    }
    
    .how-title {
        font-size: 1.75rem;
    }
    
    .how-max-qty {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }
    
    .steps-container {
        gap: var(--space-3);
        margin-bottom: var(--space-5);
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .step-description {
        font-size: 0.8rem;
    }
    
    .bogo-example {
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .example-product-image {
        width: 60px;
        height: 60px;
    }
    
    .example-product-name {
        font-size: 0.7rem;
    }
    
    .search-filter-bar {
        flex-direction: column;
        padding: var(--space-3) var(--space-4);
    }
    
    .search-wrapper {
    width: 100%;
}

    .filter-wrapper {
    width: 100%;
        justify-content: stretch;
    }
    
    .category-filter,
    .sort-filter {
        flex: 1;
    }
    
    .products-container {
        padding: var(--space-4);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-4);
    }
    
    .product-card {
        padding: var(--space-5);
    }
    
    .product-image-circle {
        width: 120px;
        height: 120px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .bogo-header {
        padding: var(--space-2) var(--space-3);
    }
    
    .bogo-logo img {
        height: 32px;
    }
    
    .bogo-offer-badge {
        padding: var(--space-2) var(--space-4);
    }
    
    .badge-text {
        font-size: 0.8rem;
    }
    
    .badge-discount {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: var(--space-6) 0;
    }
    
    .hero-container {
        padding: 0 var(--space-3);
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .hero-left {
        order: 1;
        padding: 0;
    }
    
    .hero-bogo-logo-large {
        max-width: 100%;
    }
    
    .hero-middle {
        order: 2;
    }
    
    .campaign-details {
        padding: var(--space-4);
    }
    
    .campaign-period {
        font-size: 0.9rem;
        margin-bottom: var(--space-3);
    }
    
    .campaign-period i {
        font-size: 1rem;
    }
    
    .locations-list span {
    font-size: 0.85rem;
        padding: var(--space-2);
    }
    
    .stat-badge {
        padding: var(--space-2) var(--space-4);
    }
    
    .stat-badge .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-badge .stat-label {
        font-size: 0.7rem;
    }
    
    .hero-right {
        order: 3;
        gap: var(--space-2);
    }
    
    .hero-product-card {
        width: 120px;
    }
    
    .hero-product-image {
        width: 55px;
        height: 55px;
    }
    
    .hero-product-image img {
        padding: 6px;
    }
    
    .hero-product-name {
        font-size: 0.65rem;
    }
    
    .hero-product-save {
        font-size: 0.7rem;
    }
    
    /* How BOGO Works - Ultra Compact Modern Mobile */
    .how-bogo-works {
        padding: var(--space-6) 0;
        background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
    }
    
    .how-container {
        padding: 0 var(--space-3);
        max-width: 100%;
    }
    
    .how-title {
        font-size: 1.4rem;
        margin-bottom: var(--space-1);
        font-weight: 900;
        background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .how-max-qty {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: var(--space-4);
    }
    
    /* Steps - Horizontal 3 Column Grid on Mobile */
    .steps-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
        margin-bottom: var(--space-5);
    }
    
    .step-card {
        padding: var(--space-2);
        border-radius: var(--radius-lg);
    display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F5 100%);
        box-shadow: 0 2px 12px rgba(220, 38, 38, 0.08);
        border: 1px solid #FEE2E2;
    }
    
    .step-card:hover {
        transform: none;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-number {
        position: static;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        flex-shrink: 0;
        transform: none;
        border-width: 2px;
        margin-bottom: var(--space-2);
    }
    
    .step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
        margin-bottom: var(--space-2);
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
    font-size: 1.1rem;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
        border: 1px solid rgba(220, 38, 38, 0.2);
    }
    
    .step-glow {
        display: none;
    }
    
    .step-content-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .step-title {
        font-size: 0.7rem;
        margin-bottom: var(--space-1);
        line-height: 1.2;
    font-weight: 800;
        color: var(--text-primary);
    }
    
    .step-description {
        font-size: 0.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
        color: var(--text-secondary);
    }
    
    /* BOGO Example - Modern Card Layout for Mobile */
    .bogo-example {
    display: flex;
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-5);
        background: var(--white);
        border-radius: var(--radius-2xl);
        box-shadow: 0 8px 32px rgba(220, 38, 38, 0.12);
        border: 2px solid #FEE2E2;
    }
    
    .bogo-example::before {
        display: none; /* Remove pattern on mobile */
    }
    
    /* Product Cards - Side by Side */
    .example-item {
        flex: 1;
        max-width: none;
        padding: var(--space-3);
        border-radius: var(--radius-lg);
        animation: none;
        background: linear-gradient(135deg, #FFF5F5 0%, #FEE2E2 100%);
        border: 1px solid #FECACA;
    }
    
    .example-product-image {
        width: 80px;
        height: 80px;
        margin: 0 auto var(--space-2);
        border-radius: var(--radius-lg);
    background: var(--white);
}

    .example-product-image i {
        font-size: 1.8rem;
    }
    
    .example-product-name {
        font-size: 0.8rem;
        min-height: auto;
        line-height: 1.3;
        margin-bottom: var(--space-2);
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .example-price {
        background: var(--white);
        padding: var(--space-2);
        border-radius: var(--radius-md);
    }
    
    .price-label {
        font-size: 0.7rem;
        margin-bottom: var(--space-1);
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .price-value {
        font-size: 1rem;
        font-weight: 900;
        color: #DC2626;
    }
    
    .price-value.original {
        font-size: 0.85rem;
        color: var(--text-muted);
    }
    
    /* Items Row Container - Mobile Layout */
    .example-items-row {
    display: flex;
        gap: var(--space-2);
    align-items: center;
        position: relative;
    }
    
    /* Plus/Equals - Styled Circles */
    .example-plus,
    .example-equals {
        font-size: 1.3rem;
        flex-shrink: 0;
        margin: 0;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
    width: 40px;
    height: 40px;
        background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
        border-radius: var(--radius-full);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        animation: none;
        font-weight: 900;
    }
    
    .example-plus {
        margin: 0 calc(var(--space-2) * -1);
        z-index: 2;
        position: relative;
    }
    
    .example-equals {
        align-self: stretch;
        margin: var(--space-2) auto;
    }
    
    /* Total Savings Card - Full Width */
    .example-total {
        flex: none;
        width: 100%;
        max-width: none;
        padding: var(--space-4);
        border-radius: var(--radius-xl);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .confetti-particle {
        font-size: 1rem;
    }
    
    .total-details-centered {
        text-align: center;
    }
    
    .total-label {
        font-size: 0.85rem;
        margin-bottom: var(--space-1);
    }
    
    .total-value {
        font-size: 1.5rem;
    }
    
    .search-filter-bar {
        padding: var(--space-2) var(--space-3);
    }
    
    .search-input {
    font-size: 0.9rem;
        padding: var(--space-2) var(--space-3) var(--space-2) var(--space-8);
    }
    
    .search-icon {
        left: var(--space-3);
        font-size: 0.9rem;
    }
    
    .category-filter,
    .sort-filter {
        padding: var(--space-2) var(--space-3);
        font-size: 0.85rem;
    }
    
    .products-count-bar {
        padding: var(--space-2) var(--space-3);
        font-size: 0.85rem;
    }
    
    .products-container {
        padding: var(--space-2);
    }
    
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-1);
        padding: 0 var(--space-2);
    }
    
    .product-card {
        padding: var(--space-1);
        border-radius: var(--radius-lg);
        flex: 1 1 calc(33.333% - var(--space-1));
        min-width: 0;
        max-width: calc(33.333% - var(--space-1));
    }
    
    /* Ensure full-width elements span all width */
    .mix-match-card,
    .category-carousel-container {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    
    .product-card:hover {
        transform: none; /* Disable hover transform on mobile */
    }
    
    .card-border-glow {
        display: none; /* Disable animated border on mobile */
    }
    
    /* Product Image - Compact Mobile */
    .product-image-container {
        margin-bottom: var(--space-1);
    }
    
    .image-frame {
        width: 92%;
        height: 92%;
        padding: var(--space-1);
        border-radius: var(--radius-lg);
    }
    
    .image-frame::before {
        display: none; /* Disable overlay on mobile */
    }
    
    .product-card:hover .image-frame {
        transform: none; /* Disable hover transform */
    }
    
    .product-card:hover .image-backdrop {
        transform: none;
        opacity: 0.6;
    }
    
    .product-card:hover .image-frame img {
        transform: none;
    }
    
    .image-backdrop {
        filter: blur(10px);
        inset: 15%;
    }
    
    /* Discount Badge - Extra Small on Mobile */
    .discount-badge-float {
        top: -6px;
        right: -6px;
        animation: none; /* Disable float animation on mobile */
    }
    
    .badge-inner {
    width: 40px;
    height: 40px;
        border-width: 2px;
    }
    
    .badge-percent {
        font-size: 0.7rem;
        margin-bottom: 1px;
    }
    
    .badge-off {
        font-size: 0.45rem;
    }
    
    .badge-glow-effect {
        display: none; /* Hide glow on mobile for cleaner look */
    }
    
    /* Product Info - Compact */
    .product-category-pill {
        font-size: 0.5rem;
        padding: 1px var(--space-1);
        margin-bottom: var(--space-1);
        letter-spacing: 0.03em;
    }
    
    .product-title {
        font-size: 0.7rem;
        min-height: 2.1em;
        margin-bottom: 0;
        line-height: 1.2;
    font-weight: 700;
    }
    
    /* Pricing Panel - Ultra Compact */
    .pricing-glass-panel {
        padding: var(--space-1);
        margin-top: var(--space-1);
        border-radius: var(--radius-md);
    }
    
    .original-price-row {
        padding-bottom: var(--space-1);
    }
    
    .price-label-text {
        font-size: 0.5rem;
}

.price-original {
        font-size: 0.65rem;
    }
    
    .bogo-split {
        padding: var(--space-1);
        gap: 2px;
        margin-bottom: var(--space-1);
        border-radius: var(--radius-md);
    }
    
    .split-item {
        padding: 2px var(--space-1);
        border-radius: 4px;
    }
    
    .split-label {
        font-size: 0.48rem;
        margin-bottom: 1px;
        letter-spacing: 0;
    }
    
    .split-price {
        font-size: 0.65rem;
        font-weight: 800;
    }
    
    .plus-icon {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    }
    
    .pricing-divider {
        margin: var(--space-1) 0;
        height: 1px;
    }
    
    .total-price-row {
        padding-top: var(--space-1);
    }
    
    .price-total {
        font-size: 0.8rem;
    }
    
    /* Savings Banner - Compact Mobile */
    .savings-banner {
        padding: var(--space-1) var(--space-2);
        margin-top: var(--space-1);
        gap: var(--space-1);
        border-radius: var(--radius-md);
    }
    
    .product-card:hover .savings-banner {
        transform: none; /* Disable hover transform */
    }
    
    .savings-icon-wrapper {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        border-width: 1.5px;
    }
    
    .savings-label {
        font-size: 0.5rem;
        margin-bottom: 1px;
        letter-spacing: 0.05em;
    }
    
    .savings-amount {
        font-size: 0.85rem;
        font-weight: 900;
    }
    
    .savings-shine {
        display: none; /* Disable shine animation on mobile */
    }
    
    .savings-tag {
        font-size: 0.85rem;
        padding: var(--space-2) var(--space-3);
    }
    
    .savings-tag i {
    font-size: 0.9rem;
}

    .pricing-card {
        padding: var(--space-2);
        margin-top: var(--space-2);
    }
    
    .price-row {
        padding: var(--space-1) 0;
    }
    
    .price-label {
        font-size: 0.65rem;
    }
    
    .price-value {
        font-size: 0.75rem;
    }
    
    .bogo-row {
        padding: var(--space-2);
        margin: var(--space-1) calc(var(--space-2) * -1);
    }
    
    .bogo-row .bogo-price {
    font-size: 0.85rem;
    }
    
    .total-row .price-label {
        font-size: 0.75rem;
    }
    
    .total-row .total-price {
        font-size: 0.95rem;
    }
    
    .savings-tag {
        font-size: 0.65rem;
        padding: var(--space-2);
        margin-top: var(--space-2);
    }
    
    .savings-tag i {
        font-size: 0.75rem;
    }
}


/* ========================================
   CATEGORY CAROUSELS - STUNNING Red Gradient Design
   ======================================== */
.category-carousel-container {
    grid-column: 1 / -1;
    width: 100%;
    padding: var(--space-8) 0;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 20%, #DC2626 40%, #EF4444 60%, #DC2626 80%, #B91C1C 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-radius: var(--radius-3xl);
    margin: var(--space-6) 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(220, 38, 38, 0.5), 
                0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.category-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 45%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 55%, 
        transparent 100%);
    animation: carouselShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes carouselShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Carousel Header */
.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-6) var(--space-5) var(--space-6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-5);
}

.carousel-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.carousel-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    /* No animation for cleaner UI */
}

.carousel-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.carousel-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    gap: var(--space-3);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.carousel-btn.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.carousel-btn i {
    font-size: 1.1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel Track */
.carousel-track-container {
    padding: 0 var(--space-6);
    position: relative;
}

.carousel-track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: var(--space-2) 0;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-full);
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Carousel Product Cards */
.carousel-product-card {
    flex: 0 0 200px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
    border: 1px solid #FEE2E2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.carousel-product-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.2);
    border-color: #DC2626;
}

.carousel-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: var(--space-3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #FFF5F5 0%, #FEE2E2 100%);
}

.carousel-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-2);
    transition: transform 0.3s ease;
}

.carousel-product-card:hover .carousel-product-image img {
    transform: scale(1.1);
}

.carousel-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: var(--white);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.carousel-product-info {
    text-align: center;
}

.carousel-product-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.carousel-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-radius: var(--radius-md);
}

.carousel-price-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.carousel-price-value {
    font-size: 0.9rem;
    font-weight: 900;
    color: #DC2626;
}

/* Mobile Carousel Optimizations */
@media (max-width: 480px) {
    .category-carousel-container {
        padding: var(--space-5) 0;
        margin: var(--space-4) 0;
        border-radius: var(--radius-2xl);
        border-width: 2px;
    }
    
    .carousel-header {
        flex-direction: row; /* Keep on same line */
        gap: var(--space-2);
        padding: 0 var(--space-3) var(--space-4) var(--space-3);
        align-items: center;
        justify-content: space-between;
    }
    
    .carousel-header-content {
        flex: 1;
        flex-wrap: nowrap;
        gap: var(--space-2);
        min-width: 0; /* Allow shrinking */
    }
    
    .carousel-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .carousel-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .carousel-badge {
        font-size: 0.65rem;
        padding: var(--space-1) var(--space-2);
        flex-shrink: 0;
    }
    
    .carousel-controls {
        flex-shrink: 0;
        justify-content: center;
        gap: var(--space-4);
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .carousel-track-container {
        padding: 0 var(--space-3);
    }
    
    .carousel-product-card {
        flex: 0 0 140px;
        padding: var(--space-2);
    }
    
    .carousel-product-image {
        margin-bottom: var(--space-2);
    }
    
    .carousel-discount-badge {
        font-size: 0.6rem;
        padding: 2px var(--space-1);
        top: 6px;
        right: 6px;
    }
    
    .carousel-product-title {
        font-size: 0.7rem;
        min-height: 2.1em;
        margin-bottom: var(--space-1);
    }
    
    .carousel-product-price {
        padding: var(--space-1);
        gap: var(--space-1);
    }
    
    .carousel-price-label {
        font-size: 0.6rem;
    }
    
    .carousel-price-value {
        font-size: 0.75rem;
    }
    
    .carousel-track::-webkit-scrollbar {
        height: 6px;
    }
    
    .carousel-track::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.15);
    }
    
    .carousel-track::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
    }
}

/* ========================================
   SMOOTH ANIMATIONS
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .product-card {
        animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }
    
    .product-card:nth-child(1) { animation-delay: 0.05s; }
    .product-card:nth-child(2) { animation-delay: 0.1s; }
    .product-card:nth-child(3) { animation-delay: 0.15s; }
    .product-card:nth-child(4) { animation-delay: 0.2s; }
    .product-card:nth-child(5) { animation-delay: 0.25s; }
    .product-card:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   MIX & MATCH CARDS - Compact Horizontal Design
   ======================================== */
.mix-match-card {
    grid-column: 1 / -1; /* Take full width - no gaps */
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #EF4444 100%);
    background-size: 200% 200%;
    animation: gradientShiftRed 8s ease infinite;
    border-radius: var(--radius-3xl);
    padding: var(--space-5);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.4),
                0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-height: 140px;
}

.mix-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(220, 38, 38, 0.5),
                0 8px 24px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mix-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 100%);
    animation: mixMatchShine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mixMatchShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gradientShiftRed {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Left Section - Badge */
.mix-match-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
}

.mix-match-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.mix-match-badge i {
    font-size: 0.75rem;
    animation: rotateIcon 3s ease-in-out infinite;
}

@keyframes rotateIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.mix-match-smart-title {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 900;
    margin: 4px 0 2px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.mix-match-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.7rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Center Section - Auto-Scrolling Carousel */
.mix-match-center {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: var(--space-2) 0;
}

.mix-match-carousel {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    position: relative;
    height: 140px;
    width: max-content;
    animation: scrollLeft 15s linear infinite;
}

.mix-match-carousel:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.mix-match-product-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    min-width: 120px;
}

.mix-match-product-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: relative;
}

.mix-match-product-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(239, 68, 68, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mix-match-product-slide:hover .mix-match-product-image::before {
    opacity: 1;
}

.mix-match-product-slide:hover .mix-match-product-image {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25),
                0 3px 10px rgba(220, 38, 38, 0.2);
}

.mix-match-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.mix-match-product-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    text-align: center;
    line-height: 1.3;
    max-width: 100px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right Section - Compact Pricing */
.mix-match-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.mix-match-price-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.price-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.price-amt {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--text-primary);
    white-space: nowrap;
}

.price-item.highlight .price-label {
    color: var(--red-600);
}

.price-item.highlight .price-amt {
    color: var(--red-600);
    font-size: 0.95rem;
}

.price-item.total .price-label {
    color: var(--text-primary);
    font-weight: 800;
}

.price-item.total .price-amt {
    color: var(--red-600);
    font-size: 1rem;
}

.plus-sign,
.equals-sign {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-muted);
    padding: 0 2px;
}

.mix-match-save-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.mix-match-save-badge i {
    font-size: 0.7rem;
    /* Removed pulse animation for cleaner UI */
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mix-match-card {
        grid-column: 1 / -1; /* Full width - no gaps */
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        min-height: auto;
        gap: var(--space-3);
    }
    
    .mix-match-left {
        flex-direction: column;
        align-items: flex-start;
    width: 100%;
        gap: 6px;
    }
    
    .mix-match-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .mix-match-smart-title {
        font-size: 0.9rem;
        margin: 3px 0;
    }
    
    .mix-match-subtitle {
        font-size: 0.7rem;
    }
    
    .mix-match-center {
        padding: var(--space-1) 0;
    }
    
    .mix-match-carousel {
        gap: var(--space-2);
        height: 110px;
        animation: scrollLeft 12s linear infinite; /* Faster on mobile */
    }
    
    .mix-match-product-slide {
        gap: var(--space-1);
        min-width: 90px;
    }
    
    .mix-match-product-image {
        width: 60px;
        height: 60px;
        padding: 4px;
        border-width: 2px;
    }
    
    .mix-match-product-title {
        font-size: 0.6rem;
        max-width: 85px;
        line-height: 1.2;
    }
    
    .mix-match-right {
        align-items: stretch;
        width: 100%;
    }
    
    .mix-match-price-compact {
        justify-content: space-between;
        width: 100%;
        padding: 10px 14px;
    }
    
    .price-label {
        font-size: 0.65rem;
    }
    
    .price-amt {
        font-size: 0.85rem;
    }
    
    .price-item.highlight .price-amt {
        font-size: 0.95rem;
    }
    
    .price-item.total .price-amt {
        font-size: 1rem;
    }
    
    .mix-match-save-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
        justify-content: center;
    }
}

/* ========================================
   STICKY GLASSMORPHISM FOOTER (Mobile Only)
   ======================================== */
.sticky-footer {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1),
                0 -4px 16px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.sticky-footer.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Scan Product Button (Left Side - Primary) */
.scan-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex: 1;
    max-width: 100%;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.scan-product-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.scan-product-btn:hover::before {
    transform: translateX(100%);
}

.scan-product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.scan-product-btn:active {
    transform: translateY(-1px);
}

.scan-product-btn i {
    font-size: 1.3rem;
    animation: barcodeGlow 2s ease-in-out infinite;
}

@keyframes barcodeGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    }
}

.scan-product-btn span {
    font-family: var(--font-display);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Scroll to Top Button (Right Side - Prominent & Visible) */
.scroll-to-top-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.9) 0%, 
        rgba(185, 28, 28, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5),
                0 3px 10px rgba(0, 0, 0, 0.3),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-btn-small:hover {
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 1) 0%, 
        rgba(220, 38, 38, 1) 100%);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.6),
                0 6px 16px rgba(0, 0, 0, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.scroll-to-top-btn-small:active {
    transform: translateY(-3px);
}

.scroll-to-top-btn-small i {
    font-size: 1.5rem;
    font-weight: 900;
    animation: bounceUp 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.scroll-to-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.95) 0%, 
        rgba(185, 28, 28, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.scroll-to-top-btn:hover::before {
    transform: translateX(100%);
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.5),
                0 6px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4),
                0 3px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn i {
    font-size: 1.2rem;
    animation: bounceUp 2s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.scroll-to-top-btn span {
    font-family: var(--font-display);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile Optimizations for Footer */
@media (max-width: 768px) {
    .sticky-footer {
        display: flex; /* Show on mobile */
        padding: var(--space-2) var(--space-3);
        gap: var(--space-2);
    }
    
    .scan-product-btn {
        padding: var(--space-3) var(--space-4);
        font-size: 0.85rem;
    }
    
    .scan-product-btn i {
        font-size: 1.1rem;
    }
    
    .scroll-to-top-btn-small {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }
    
    .scroll-to-top-btn-small i {
        font-size: 1.3rem;
    }
}

/* ========================================
   BARCODE SCANNER POPUP
   ======================================== */
.barcode-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fadeIn 0.3s ease;
}

.barcode-popup.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.barcode-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: var(--radius-3xl);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3),
                0 12px 24px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.barcode-popup-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.barcode-popup-close:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: rotate(90deg);
}

.barcode-popup-close i {
    font-size: 1.2rem;
}

/* Scanner View */
.scanner-view {
    padding: var(--space-6);
}

.scanner-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.scanner-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
    animation: barcodeGlow 2s ease-in-out infinite;
}

.scanner-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.scanner-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.scanner-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

/* Html5-qrcode container */
#barcodeVideo {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Html5-qrcode creates video element */
#barcodeVideo video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: var(--radius-2xl);
}

/* Center the scanning box (qrbox) vertically */
#barcodeVideo #qr-shaded-region {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Style the scanning border */
#barcodeVideo #qr-shaded-region > div {
    border: 3px solid rgba(220, 38, 38, 0.8) !important;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.5) !important;
}

/* On-screen alert animations for mobile debugging */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Legacy video element support */
.scanner-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
    justify-content: center;
}

.scanner-line {
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% {
        transform: translateY(-100px);
    }
    50% {
        transform: translateY(100px);
    }
}

.scanner-actions {
    display: flex;
    gap: var(--space-3);
}

.manual-entry-btn {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
}

.manual-entry-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.manual-entry-btn i {
    font-size: 1.1rem;
}

/* Manual Entry View */
.manual-entry-view {
    padding: var(--space-6);
}

.manual-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.manual-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.manual-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.manual-barcode-input {
    width: 100%;
    padding: var(--space-4);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border: 3px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    transition: all 0.3s ease;
}

.manual-barcode-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.check-product-btn {
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-xl);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    transition: all 0.3s ease;
}

.check-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

.check-product-btn i {
    font-size: 1.2rem;
}

.back-to-scan-btn {
    width: 100%;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
}

.back-to-scan-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* Result View */
.result-view {
    padding: var(--space-6);
}

.result-success {
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    color: #10B981;
    margin-bottom: var(--space-3);
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.result-success h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.product-info {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-info img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius-xl);
}

.product-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.result-pricing {
    text-align: left;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    border-radius: var(--radius-lg);
    background: var(--bg-main);
}

.price-row span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.price-row strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.price-row.highlight {
    background: rgba(239, 68, 68, 0.1);
}

.price-row.highlight strong {
    color: var(--primary);
}

.price-row.total {
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid var(--primary);
    margin-top: var(--space-3);
}

.price-row.total strong {
    font-size: 1.3rem;
    color: var(--primary);
}

.savings-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.savings-badge i {
    font-size: 1.2rem;
}

/* Error Result */
.result-error {
    text-align: center;
}

.error-icon {
    font-size: 5rem;
    color: #EF4444;
    margin-bottom: var(--space-3);
    animation: shake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.result-error h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.result-error p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile Optimizations for Popup */
@media (max-width: 768px) {
    .barcode-popup-content {
        max-width: 95%;
        border-radius: var(--radius-2xl);
    }
    
    .scanner-view,
    .manual-entry-view,
    .result-view {
        padding: var(--space-4);
    }
    
    .scanner-header h3,
    .manual-header h3 {
        font-size: 1.5rem;
    }
    
    .result-success h3,
    .result-error h3 {
        font-size: 1.6rem;
    }
    
    .product-info img {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   ONLINE SHOPPING WIDGET - ULTRA MODERN
   ======================================== */
.online-shopping-widget {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.8rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFA726 100%);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(255, 107, 107, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Animated glow effect */
.widget-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.online-shopping-widget:hover .widget-glow-effect {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Shimmer effect */
.online-shopping-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

.online-shopping-widget:hover::before {
    left: 100%;
}

.online-shopping-widget:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(255, 107, 107, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 30px rgba(255, 138, 83, 0.6);
}

.online-shopping-widget:active {
    transform: translateY(-1px) scale(1.01);
}

/* Icon wrapper with pulse */
.widget-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.online-shopping-widget:hover .widget-icon {
    transform: rotate(10deg) scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

.widget-icon i {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulse animation */
.widget-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Content */
.widget-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-subtitle {
    font-size: 0.8rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.3;
}

/* Arrow */
.widget-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.online-shopping-widget:hover .widget-arrow {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

.widget-arrow i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.online-shopping-widget:hover .widget-arrow i {
    transform: translateX(2px);
}

/* ========================================
   BOGO-THEMED COMPACT FOOTER
   ======================================== */
.modern-footer {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 50%, #991B1B 100%);
    color: white;
    padding: 2rem 1.5rem 1rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* BOGO Pattern Background */
.modern-footer::before {
    content: 'BOGO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    opacity: 0.03;
    letter-spacing: 0.2em;
    pointer-events: none;
    font-family: var(--font-display);
}

/* Animated BOGO badge border */
.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #FCD34D 0%, 
        #FBBF24 25%, 
        #F59E0B 50%, 
        #FBBF24 75%, 
        #FCD34D 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo {
    max-width: 140px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Social Widgets Grid */
.social-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

/* Modern Social Cards */
.social-card {
    background: white;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* Social Card Header */
.social-card-header {
    display: flex;
    align-items: center;
}

.social-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

/* Social Avatar */
.social-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    padding: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.facebook-avatar {
    background: #1877F2;
}

.instagram-avatar {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

/* Social Info */
.social-info {
    flex: 1;
    min-width: 0;
}

.social-name-verified {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-username {
    font-size: 0.95rem;
    font-weight: 700;
    color: #262626;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verified-badge {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.social-handle {
    font-size: 0.75rem;
    color: #8e8e8e;
    margin: 0.2rem 0 0 0;
    line-height: 1.2;
}

/* Social Stats */
.social-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.7rem 0.8rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: #262626;
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
}

/* Social Follow Buttons */
.social-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.facebook-btn {
    background: #1877F2;
}

.facebook-btn:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}

.social-follow-btn:active {
    transform: translateY(0);
}

.social-follow-btn i {
    font-size: 1.1rem;
}

.social-follow-btn span {
    font-weight: 700;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0.3rem 0;
    line-height: 1.5;
}

.footer-bogo-notice {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bogo-notice::before {
    content: '🎁';
    font-size: 1rem;
}

/* Mobile Responsive - Widget & Footer */
@media (max-width: 768px) {
    .online-shopping-widget {
        margin-top: 1.2rem;
        padding: 1rem 1.3rem;
        gap: 1rem;
    }
    
    .widget-icon {
        width: 50px;
        height: 50px;
    }
    
    .widget-icon i {
        font-size: 1.4rem;
    }
    
    .widget-pulse {
        width: 50px;
        height: 50px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .widget-subtitle {
        font-size: 0.75rem;
    }
    
    .widget-arrow {
        width: 32px;
        height: 32px;
    }
    
    .modern-footer {
        padding: 1.5rem 1rem 0.8rem;
        margin-top: 3rem;
    }
    
    .modern-footer::before {
        font-size: 8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-logo {
        max-width: 120px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-heading {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
    
    .social-widgets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .social-card {
        padding: 0.9rem 1rem;
        gap: 0.8rem;
    }
    
    .social-avatar {
        width: 48px;
        height: 48px;
    }
    
    .social-username {
        font-size: 0.9rem;
    }
    
    .social-handle {
        font-size: 0.7rem;
    }
    
    .social-stats {
        padding: 0.6rem;
    }
    
    .stat-value {
        font-size: 0.95rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .stat-divider {
        height: 20px;
    }
    
    .social-follow-btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    
    .social-follow-btn i {
        font-size: 1rem;
    }
    
    .verified-badge {
        width: 14px;
        height: 14px;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    .footer-bogo-notice {
        font-size: 0.7rem !important;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
