* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
}

/* Green to Red (#e7000b) Color Override */
.bg-green-50 { background-color: rgba(231, 0, 11, 0.05) !important; }
.bg-green-100 { background-color: rgba(231, 0, 11, 0.1) !important; }
.bg-green-200 { background-color: rgba(231, 0, 11, 0.2) !important; }
.bg-green-300 { background-color: rgba(231, 0, 11, 0.3) !important; }
.bg-green-400 { background-color: rgba(231, 0, 11, 0.4) !important; }
.bg-green-500 { background-color: #e7000b !important; }
.bg-green-600 { background-color: #e7000b !important; }
.bg-green-700 { background-color: #cc000a !important; }
.text-green-200 { color: rgba(231, 0, 11, 0.2) !important; }
.text-green-500 { color: #e7000b !important; }
.text-green-50 { color: rgba(231, 0, 11, 0.05) !important; }
.text-green-600 { color: #e7000b !important; }
.text-green-700 { color: #cc000a !important; }
.border-green-200 { border-color: rgba(231, 0, 11, 0.2) !important; }
.border-green-500 { border-color: #e7000b !important; }
.hover\:bg-green-50:hover { background-color: rgba(231, 0, 11, 0.05) !important; }
.hover\:bg-green-600:hover { background-color: #e7000b !important; }
.hover\:bg-green-700:hover { background-color: #cc000a !important; }
.from-green-400 { --tw-gradient-from: rgba(231, 0, 11, 0.4) !important; }
.from-green-500 { --tw-gradient-from: #e7000b !important; }
.from-green-600 { --tw-gradient-from: #e7000b !important; }
.to-emerald-500 { --tw-gradient-to: #e7000b !important; }
.to-emerald-600 { --tw-gradient-to: #e7000b !important; }
.ring-green-500 { --tw-ring-color: #e7000b !important; }
.shadow-green-200 { --tw-shadow-color: rgba(231, 0, 11, 0.2) !important; }

/* Explicit online/offline indicator classes to avoid global green->red overrides */
.online-dot { background-color: #16a34a !important; /* emerald-600 */ }
.online-text { color: #16a34a !important; }
.online-bg { background-color: rgba(16,163,127,0.06) !important; }
.offline-dot { background-color: #ef4444 !important; /* red-500 */ }
.offline-text { color: #ef4444 !important; }

/* Explicit status classes for verified/completed and other status badges */
.status-verified { color: #16a34a !important; }
.status-verified-badge { background-color: rgba(16,163,127,0.06) !important; color: #16a34a !important; border-color: rgba(16,163,127,0.15) !important; }
.status-verified-border { border-color: rgba(16,163,127,0.15) !important; }

/* Verify button and icon helpers (explicit emerald green) */
.btn-verify { color: #16a34a !important; }
.btn-verify:hover { background-color: rgba(16,163,127,0.06) !important; }
.btn-verify-filled { background-color: #16a34a !important; color: #ffffff !important; border-color: rgba(16,163,127,0.15) !important; }
.btn-verify-filled:hover { background-color: #15803d !important; }
.icon-verify { color: #16a34a !important; }

/* Small check badge background for list thumbnails */
.badge-check-bg { background-color: rgba(16,163,127,0.12) !important; }

/* Left status bar for verified orders */
.status-verified-bar { background-color: #16a34a !important; }

/* Emoji styles for status indicators */
.status-emoji { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; margin-left: 8px; font-size: 12px; }
.emoji-happy { background-color: #16a34a !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(16,163,127,0.18); }
.emoji-sad { background-color: #ef4444 !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(239,68,68,0.18); }
.emoji-large { width: 28px !important; height: 28px !important; font-size: 14px !important; }


/* Ensure status badges and their emoji remain on the same line */
.status-pending, .status-verified, .status-rejected {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    vertical-align: middle;
}



/* .shadow-sm {
    z-index: 99;
} */

.voucher-card.selected {
    border-color: #e7000b !important;
    background: linear-gradient(135deg, #e7000b20, #e7000b20);
}

.voucher-card.popular {
    position: relative;
    overflow: visible;
}


#category-scroll-container{
    justify-content: center;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #e7000b, #ef4444);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}



@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qr-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}

.admin-sidebar-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255,255,255,0.38) rgba(255,255,255,0.10);
}

.admin-sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.32);
    border-radius: 999px;
    border: 2px solid rgba(15,23,42,0.25);
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.45);
}

/* Desktop collapse behavior when body has `admin-collapsed` class */
@media (min-width: 768px) {
    body.admin-collapsed #admin-sidebar-panel {
        transform: translateX(-16rem) !important; /* hide the 16rem (w-64) sidebar */
    }

    body.admin-collapsed #admin-main {
        margin-left: 0 !important; /* remove the md:ml-64 spacing */
    }

    /* Smooth transition for main content and sidebar */
    #admin-sidebar-panel, #admin-main {
        transition: transform 0.25s ease, margin-left 0.25s ease;
    }
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-verified { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

:root {
    --product-title-color: #111827;
    --product-title-hover-color: #e7000b;
    --product-badge-text-color: #ffffff;
    --product-price-color: #e7000b;
    --product-meta-color: #6b7280;
    --product-meta-label-color: #6b7280;
    --product-label-bg-color: #f3f4f6;
    --product-card-bg-color: #ffffff;
    --product-media-bg-color: #f9fafb;
    --product-card-border-color: #e5e7eb;
    --product-frame-bg-color: #ffffff;
    --product-card-radius: 22px;

    --product-title-size-mobile: 10px;
    --product-title-size-desktop: 14px;
    --product-badge-size-mobile: 7px;
    --product-badge-size-desktop: 12px;
    --product-price-size-mobile: 10px;
    --product-price-size-desktop: 14px;
    --product-meta-size-mobile: 7px;
    --product-meta-size-desktop: 11px;

    --product-card-weight: 400;
    --product-title-weight: 800;
    --product-badge-weight: 800;
    --product-price-weight: 800;
    --product-meta-weight: 600;
}

.product-card {
    transition: all 0.3s ease;
    font-family: var(--product-card-font, inherit);
    font-weight: var(--product-card-weight, 400);
}

.product-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-family: var(--product-title-font, var(--product-card-font, inherit)) !important;
    color: var(--product-title-color, #111827) !important;
    font-weight: var(--product-title-weight, 800) !important;
    font-size: var(--product-title-size-mobile, 11px) !important;
}

.product-card:hover .product-card-title {
    color: var(--product-title-hover-color, #e7000b) !important;
}

.product-card-price {
    font-family: var(--product-price-font, var(--product-card-font, inherit)) !important;
    color: var(--product-price-color, #e7000b) !important;
    font-weight: var(--product-price-weight, 800) !important;
    font-size: var(--product-price-size-mobile, 10px) !important;
}

.product-card-meta-label,
.product-card-category-badge {
    font-family: var(--product-meta-font, var(--product-card-font, inherit)) !important;
    font-weight: var(--product-meta-weight, 600) !important;
    font-size: var(--product-meta-size-mobile, 8px) !important;
}

.product-card-meta-label {
    color: var(--product-meta-label-color, var(--product-meta-color, #6b7280)) !important;
}

.product-card-category-badge {
    color: var(--product-meta-color, #6b7280) !important;
    background-color: var(--product-label-bg-color, #f3f4f6) !important;
    font-size: min(calc(var(--product-meta-size-mobile, 8px) - 1px), 6px) !important;
    padding: 1px 4px !important;
    letter-spacing: 0.04em !important;
}

:root[data-product-card-bg="1"] .product-card,
:root[data-product-card-bg="1"] .products-spotlight-section .product-card {
    background: var(--product-card-bg-color, #ffffff) !important;
}

:root[data-product-card-border="1"] .product-card {
    border: 1px solid var(--product-card-border-color, #e5e7eb) !important;
}

:root[data-product-card-radius="1"] .product-card,
:root[data-product-card-radius="1"] .products-spotlight-section .product-card {
    border-radius: var(--product-card-radius, 22px) !important;
}

.product-card-media {
    aspect-ratio: 3 / 3;
    background-color: #f9fafb;
}

.product-card-image-frame {
    background-color: #ffffff;
}

:root[data-product-media-bg="1"] .product-card-media,
:root[data-product-media-bg="1"] .products-spotlight-section .product-card .product-card-media {
    background: var(--product-media-bg-color, #f9fafb) !important;
    background-image: none !important;
}

:root[data-product-frame-bg="1"] .product-card-image-frame {
    background-color: var(--product-frame-bg-color, #ffffff) !important;
}

@media (min-width: 768px) {
    .product-card-media {
        aspect-ratio: 9 / 9;
    }

    .product-card-title {
        font-size: var(--product-title-size-desktop, 14px) !important;
    }

    .product-badge {
        font-size: var(--product-badge-size-desktop, 10px) !important;
    }

    .product-card-price {
        font-size: var(--product-price-size-desktop, 14px) !important;
    }

    .product-card-meta-label,
    .product-card-category-badge {
        font-size: var(--product-meta-size-desktop, 11px) !important;
    }
}

.product-card-image {
    object-fit: cover;
    object-position: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236,100,0,0.18); /* warm orange shadow on hover */
}

/* Popular products spotlight redesign */
.products-spotlight-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(251,188,5,0.14), rgba(251,188,5,0) 38%),
        radial-gradient(circle at 92% 90%, rgba(231,0,11,0.10), rgba(231,0,11,0) 35%),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 58%, #fffaf4 100%);
}

.products-spotlight-shell {
    position: relative;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,252,246,0.98));
    border: 1px solid rgba(236, 100, 0, 0.16);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.products-spotlight-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.products-spotlight-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b45309;
    font-weight: 800;
}

.products-spotlight-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.products-spotlight-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #e7000b);
    box-shadow: 0 8px 18px rgba(231, 0, 11, 0.28);
}

.products-spotlight-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.products-spotlight-section .product-card {
    position: relative;
    border-radius: 22px;
    border: none !important;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #fff7ed 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease,
        opacity 0.45s ease;
}

.products-spotlight-section .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: none;
    pointer-events: none;
}

.products-spotlight-section .product-card.product-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--card-delay, 0ms);
}

.products-spotlight-section .product-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: 0 18px 36px rgba(231, 0, 11, 0.16);
}

.products-spotlight-section .product-card .product-card-media {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 75%);
}

.products-spotlight-section .product-card .product-card-title {
    letter-spacing: 0.01em;
}

.products-spotlight-section .product-card .product-card-image {
    filter: saturate(1.06);
}

.product-badge {
    letter-spacing: 0.03em;
    font-family: var(--product-badge-font, var(--product-card-font, inherit)) !important;
    color: var(--product-badge-text-color, #ffffff) !important;
    font-weight: var(--product-badge-weight, 800) !important;
    font-size: var(--product-badge-size-mobile, 8px) !important;
}

.product-badge-deal {
    color: var(--product-badge-deal-text-color, #111827) !important;
}

.product-badge-hot {
    color: var(--product-badge-hot-text-color, var(--product-badge-text-color, #ffffff)) !important;
}

:root[data-product-badge-bg="1"] .product-badge {
    background: var(--product-badge-bg-color) !important;
    background-image: none !important;
}

.product-badge-deal {
    animation: productDealPulse 1.7s ease-in-out infinite;
}

.product-badge-hot {
    animation: productHotFloat 2.2s ease-in-out infinite;
}

.product-badge-new {
    animation: productNewShine 2.6s ease-in-out infinite;
}

@keyframes productDealPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes productHotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

@keyframes productNewShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

@media (max-width: 767px) {
    .products-spotlight-shell {
        padding: 14px;
        border-radius: 18px;
    }

    .products-spotlight-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 14px;
    }

    .products-spotlight-title {
        font-size: 1.1rem;
        gap: 8px;
    }

    .products-spotlight-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .products-spotlight-count {
        font-size: 11px;
        min-height: 30px;
        padding: 5px 10px;
    }

    .products-spotlight-section .product-card {
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .products-spotlight-section .product-card,
    .product-badge-deal,
    .product-badge-hot,
    .product-badge-new {
        animation: none !important;
        transition: none !important;
    }
}

/* Softer hover specifically for gift card slider items (less intense shading) */
.giftcard-slider .product-card:hover,
.swiper.giftcard-slider .product-card:hover,
#giftcard-grid .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(236,100,0,0.10); /* lighter orange shadow */
}

/* Arrow / action button inside product cards: default and hover (make orange on hover) */
.product-card .arrow-btn,
.product-card .btn-arrow,
.product-card .icon-arrow {
    transition: all 0.2s ease;
}

.product-card .arrow-btn i,
.product-card .btn-arrow i,
.product-card .icon-arrow i {
    color: inherit;
}

.product-card:hover .arrow-btn,
.product-card:hover .btn-arrow,
.product-card:hover .icon-arrow {
    background: linear-gradient(135deg, #ff7a00, #ff8f3d);
    color: white;
    box-shadow: 0 6px 18px rgba(255,122,0,0.22);
}

.product-card:hover .arrow-btn i,
.product-card:hover .btn-arrow i,
.product-card:hover .icon-arrow i {
    color: white;
}

/* Target the small rounded arrow button used in product cards (w-6 h-6 / md:w-8 md:h-8)
   Make it orange on product-card hover and ensure icon turns white */
.product-card .w-6.h-6 {
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover .w-6.h-6 {
    background: linear-gradient(135deg, #ff7a00, #ff8f3d);
    color: white;
    box-shadow: 0 6px 18px rgba(255,122,0,0.22);
}

.product-card:hover .w-6.h-6 i {
    color: white;
}

/* Override: replace the light green image hover background with a light red */
/* Targets elements that include the utility class `group-hover:bg-[#e7000b20]` and forces a red tint */
.product-card:hover [class*="group-hover:bg[#]e7000b20"],
.product-card:hover [class*="group-hover:bg-[#e7000b20]"] {
    background-color: rgba(231,0,11,0.12) !important; /* light red */
}

/* Reduce the overlay intensity for gift cards specifically */
.giftcard-slider .product-card:hover [class*="group-hover:bg[#]e7000b20"],
.swiper.giftcard-slider .product-card:hover [class*="group-hover:bg[#]e7000b20"],
#giftcard-grid .product-card:hover [class*="group-hover:bg[#]e7000b20"] {
    background-color: rgba(231,0,11,0.07) !important; /* subtler red overlay */
}

/* In case opacity variant is used on the bg color, also override background-color for the non-hover state when group is hovered */
.product-card:hover [class*="bg-gray-50"] {
    /* keep base background but subtle orange overlay handled above */
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #18153b3f;
}

.category-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.hero-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.glow-effect {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.why-card {
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.stat-card {
    background: linear-gradient(114deg, #08b1ff, #e7000b 100%);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
    z-index: 10;
}

.load-more-btn {
    background: linear-gradient(135deg, #e7000b, #e7000b);
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(231, 0, 11, 0.4);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #e7000b, #e7000b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Banner Slider Styles */
.banner-slider {
    position: relative;
    max-width: 1400px; /* Added max-width to control size on large screens */
    width: 95%;        /* Make it smaller than full width */
    height: 500px;     /* Reduced height for a more compact look */
    overflow: hidden;
    margin: 2rem auto 25px; /* Center the banner and add top margin */
    border-radius: 1rem; /* Add rounded corners for a modern feel */
}



/* Mobile */
@media (max-width: 768px) {
    .banner-slider {
        height: 200px; /* Reduced mobile height */
        margin: 1rem auto; /* Center on mobile */
    }
    
}


@media (max-width: 767px) {
    .banner-slide {
        
        background-size: cover !important;
    }
}





.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgb(0 0 0 / 45%) 50%, rgba(76, 29, 149, 0.6) 100%); */
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.banner-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    border: none;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.banner-arrow.prev {
    left: 20px;
}

.banner-arrow.next {
    right: 20px;
}

/* Banner Admin Styles */
.banner-preview {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
}

.banner-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.banner-preview:hover .banner-preview-overlay {
    opacity: 1;
}

/* Login Form Specific Styles */
#login-message.error {
    color: #ef4444; /* Red for errors */
}

#login-message.success {
    color: #e7000b; /* Red for status */
}

#login-form input[type="text"]:focus,
#login-form input[type="email"]:focus,
#login-form input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6; /* Blue for focus, matching Tailwind's focus-border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); /* Focus ring */
}

/* Navigation Login Button */
.nav-login-btn {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-login-btn:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.nav-login-btn i {
    font-size: 14px;
    margin-right: 4px;
}

@media (min-width: 768px) {
    .nav-login-btn i {
        font-size: 17px;
        margin-right: 7px;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 65px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Arial', sans-serif;
}

/* Greeting */
.chat-greeting {
    background: #ec9600;
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Close button styling */
.chat-greeting .chat-close {
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    position: relative;
    top: -2px;
}

/* Button loading state for OTP send */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}
.btn-loading .btn-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255,255,255,0.95);
}

/* Dark spinner variant for purple buttons */
.btn-loading.dark .btn-spinner {
    color: #ffffff;
}

/* Centered spinner variant: replace button content with centered spinner */
.btn-loading-centered {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}
.btn-loading-centered .btn-spinner-centered {
    font-size: 16px;
    margin: 0 !important;
}

/* Toggle Button */
.chat-toggle {
    background: #e7000b;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 12px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 2px 2px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

/* Hide Google Sign-In container and iframe (remove provider-injected UI) */
#google-signin-btn-container,
iframe[title="Sign in with Google Button"] {
    /* display: none !important;
    visibility: hidden !important; */
}


.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 0, 11, 0.6);
}

.chat-toggle i {
    font-size: 22px;
    animation: bounce 2s infinite;
}

.chat-text {
    font-size: 15px;
    font-weight: bold;
}

/* Dropdown Options */
.chat-options {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Individual Option */
.chat-option {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.chat-option i {
    font-size: 20px;
}

/* WhatsApp Style */
.chat-option.whatsapp {
    background: #25d366;
    color: white !important;
}
.chat-option.whatsapp:hover {
    background: #1ebe5c;
    color: white !important;
}

/* Viber Style */
.chat-option.viber {
    background: #7360F2;
    color: white !important;
}
.chat-option.viber:hover {
    background: #9c8cfb;
    color: white !important;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 57px;
        right: 20px;
    }

    .chat-toggle {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 25px;
    }
    .chat-toggle i {
        font-size: 18px;
    }
    .chat-text {
        font-size: 13px;
    }

    .chat-greeting {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    .chat-greeting .chat-close {
        font-size: 18px;
    }

    .chat-option {
        padding: 10px 14px;
        font-size: 13px;
    }
    .chat-option i {
        font-size: 18px;
    }
}







/* Video Section */

.video-box {
    position: relative;
    max-width: 169vh;
    height: 60vh;
    margin: 60px auto;
    border-radius: 14px;
    overflow: hidden;
}

/* Video stays fixed while scrolling */
.video-box video {
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    height: 55vh;
    object-fit: cover;
    z-index: -1;
    border-radius: 20px;
}

.video-box-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-box-play {
    text-align: center;
    color: #fff;
}

.play-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    color: #e53935;
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.play-text {
    font-size: 14px;
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
    .video-box {
        height: 220px;
        margin: 30px 15px;
    }

    .video-box video {
        height: 220px;
    }

    .play-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}


#giftcard-grid{
   margin-top: 20px;
    margin-bottom: 20px;
}

#subscription-grid{
    margin-top: 20px;
    margin-bottom: 40px;
}

#giftcard-grid .product-card,
#subscription-grid .product-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none !important;
}

#giftcard-grid .product-card:hover,
#subscription-grid .product-card:hover {
    box-shadow: none !important;
}



/* this is feedback section  */

/* 1. FONT & BASE SETUP */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.ks-google-section {
    font-family: 'Roboto', sans-serif;
    padding: 80px 0;
    background: #f8f9fa; /* Light gray background to make white cards pop */
    overflow: hidden; /* Clips everything outside the main container */
}

/* 2. HEADER CONTAINER (Fixed Width) */
.ks-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Limits the width of the section */
    margin: 0 auto 50px; /* Centers the header */
    padding: 0 20px;
}

.ks-header-left { display: flex; align-items: center; gap: 20px; }
.ks-rating-summary h1 { font-size: 26px; color: #202124; margin: 0; font-weight: 700; }
.ks-stars-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.ks-num { font-weight: 700; font-size: 20px; color: #202124; }
.ks-stars-main { color: #FFD700; letter-spacing: 2px; font-size: 18px; }
.ks-count { color: #70757a; font-size: 14px; }

.ks-review-btn {
    background: #101828;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s;
}

.ks-review-btn:hover { background: #101828; }

/* 3. SLIDER CONTAINER (Fixed Width - Not Full Screen) */
.ks-infinite-slider {
    max-width: 1200px; /* Matches header width */
    margin: 0 auto;    /* Centers the slider box */
    overflow: hidden;  /* Hides cards outside the 1200px area */
    position: relative;
}

.ks-slide-track {
    display: flex;
    /* (320px card + 20px margin) = 340px per box.
       12 boxes total (6 original + 6 clones) = 4080px width. */
    width: calc(340px * 12); 
    animation: ksInfiniteScroll 30s linear infinite;
}

/* Stops scroll on hover so users can read */
.ks-slide-track:hover { animation-play-state: paused; }

/* 4. BIGGER REVIEW CARD DESIGN */
.ks-card {
    width: 320px; /* Increased size */
    margin-right: 20px; /* Gap between cards */
    background: #ffffff;
    border: 1px solid #FFFF00;
    border-radius: 12px;
    padding: 25px; /* More padding inside */
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(60,64,67, 0.15);
    box-sizing: border-box;
}

.ks-card-top { display: flex; align-items: center; position: relative; margin-bottom: 15px; }
.ks-pfp { width: 44px; height: 44px; border-radius: 50%; margin-right: 12px; }
.ks-meta b { font-size: 15px; color: #202124; display: block; margin: 0; }
.ks-meta span { font-size: 12px; color: #70757a; }
.ks-g-small { position: absolute; top: 0; right: 0; width: 18px; opacity: 0.9; }

.ks-card-stars { color: #FFD700; font-size: 16px; margin-bottom: 10px; }
.ks-card p { 
    font-size: 14px; 
    line-height: 1.6; 
    color: #3c4043; 
    height: 68px; /* Room for about 3-4 lines of text */
    overflow: hidden; 
    margin: 0; 
}

/* 5. SEAMLESS ANIMATION MATH */
@keyframes ksInfiniteScroll {
    0% { transform: translateX(0); }
    100% { 
        /* Moves exactly 6 boxes (340px * 6 = 2040px) and resets.
           Because box 7 is a clone of box 1, the loop is invisible. */
        transform: translateX(calc(-340px * 6)); 
    }
}

/* 6. MOBILE RESPONSIVE */
@media (max-width: 1200px) {
    .ks-main-header, .ks-infinite-slider {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .ks-main-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}

/* Navbar Styles */
.navbar {
    background-color: rgba(12, 11, 11, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
}

.logo {
    width: 10rem;
    height: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-btn {
    padding: 0.5rem 1rem;
    background-color: #e7000b;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.store-btn:hover {
    background-color: #e7000b;
}

.store-btn i {
    margin-right: 0.375rem;
}

@media (min-width: 768px) {
    .logo {
        width: 8.75rem;
    }
    .nav-actions {
        gap: 1rem;
    }
    .store-btn {
        font-size: 1rem;
    }
    .store-btn i {
        margin-right: 0.5rem;
    }
}

/* Footer Styles */
.main-footer {
    background-color: #111827;
    color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: auto;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a, .footer-col p, .footer-col li {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}






/* New add css */
.slider-container {
    width: 100%;
    max-width: 1500px;
    height: 500px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

@media (max-width: 768px) {
    .slider-container {
        height: 180px;
        margin: 15px 16px;
        width: auto;
        border-radius: 1px;
    }
}


.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1);
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    /* display: block; */
    object-fit: cover;
}

@media (max-width: 768px) {
    .slide img {
        object-fit: contain;
        height: 100%;
    }
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Category Scroll Buttons */
.cat-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    z-index: 20;
    border: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.cat-scroll-btn:hover {
    background: #e7000b;
    color: white;
    border-color: #e7000b;
    transform: translateY(-50%) scale(1.1);
}

.cat-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.cat-scroll-btn.prev { left: 4px; }
.cat-scroll-btn.next { right: 4px; }

/* Hide scroll buttons on desktop */
@media (min-width: 768px) {
    .cat-scroll-btn {
        display: none;
    }
}


.warning-box {
    background-color: #ffe6e6; /* Light red background */
    border: 1px solid #FFFF00; /* Red border */
    color: #cc0000; /* Dark red text */
    padding: 15px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    animation: blink-pulse 2s infinite; /* 2 second loop */
        font-size: 11px;
    margin-bottom: 10px;
}

.warning-box p {
    color: #000000;
}
  

  /* The Animation Code */
  @keyframes blink-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; } /* Fades to 60% visibility */
    100% { opacity: 1; }
  }

/* Price box hover: show red border when voucher card hovered */
.price-box { transition: border-color 0.12s ease; }

/* Apply red border to entire voucher card on hover */
.voucher-card:hover { border-color: #dc2626 !important; }

/* Keep inner elements (price and select button) unchanged on hover */
.voucher-card:hover .price-box { border-color: transparent; }
.voucher-select-btn {
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    background: #ffffffcc;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 10px rgba(16,24,40,0.06);
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.voucher-select-btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 22px rgba(16,24,40,0.12);
}
.voucher-card:hover .voucher-select-btn { border-color: transparent !important; color: inherit !important; background: none !important; }
.voucher-select-btn[aria-pressed="true"] {
    background: linear-gradient(90deg, #e7000b, #ec9600);
    color: #ffffff;
    border-color: #00eb9a47;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.16);
}
.voucher-select-btn i { transition: transform 0.12s ease; }
.voucher-select-btn[aria-pressed="true"] i { transform: scale(0.98); }

/* ======================== ORDER TIMER STYLES ======================== */
/* Timer container animations */
@keyframes pulse-blue {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#order-timer-container {
    animation: slide-down 0.4s ease-out;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

#order-timer-display {
    animation: pulse-blue 2s ease-in-out infinite;
}

#timer-minutes,
#timer-seconds {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
}

#timer-progress-bar {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Status messages with fade-in animations */
#order-verified-message,
#order-rejected-message {
    animation: slide-down 0.4s ease-out;
}

@media (max-width: 640px) {
    #order-timer-display {
        gap: 8px;
    }
    
    #timer-minutes,
    #timer-seconds {
        font-size: 2.5rem;
    }
}

/* -------------------- Special Offers (Promotions) -------------------- */

.special-offers-popup {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.special-offers-popup.is-open {
    opacity: 1;
    pointer-events: auto;
}

.special-offers-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.special-offers-sheet {
    position: relative;
    width: min(92vw, 760px);
    margin: 12px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.special-offers-popup.is-open .special-offers-sheet {
    transform: translateY(0);
    opacity: 1;
}

.special-offers-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    border: none;
    background: var(--promo-toggle-bg, linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%));
    color: var(--promo-toggle-color, #ffffff);
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: var(--promo-toggle-shadow, 0 12px 26px rgba(15, 23, 42, 0.25));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.special-offers-toggle i,
.special-offers-toggle img {
    width: var(--promo-toggle-icon-size, 18px);
    height: var(--promo-toggle-icon-size, 18px);
    font-size: var(--promo-toggle-icon-size, 18px);
    object-fit: contain;
}

.special-offers-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--promo-toggle-shadow-hover, var(--promo-toggle-shadow, 0 16px 30px rgba(15, 23, 42, 0.28)));
    filter: var(--promo-toggle-filter-hover, brightness(1.03));
}

.special-offers-board {
    position: relative;
    --promo-header-icon-size: 22px;
    --promo-title-icon-size: 18px;
    --promo-feature-icon-size: 14px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 248, 248, 0) 100%),
        var(--special-offers-bg-image, none);
    background-size: cover, cover;
    background-position: center, center;
    width: 100%;
    max-width: 100%;
}

.special-offers-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 3;
}

.special-offers-close:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.special-offers-popup .special-offers-board {
    max-height: inherit;
    display: flex;
    flex-direction: column;
}

.special-offers-popup .special-offers-header-inner {
    padding-right: 32px;
}

.special-offers-popup .special-offers-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.special-offers-carousel-nav {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

.special-offers-popup .special-offers-carousel-nav.is-active {
    display: flex;
}

.special-offers-carousel-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.special-offers-carousel-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.special-offers-carousel-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.special-offers-header {
    padding: 8px 10px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 40%),
        linear-gradient(135deg, #6d28d9 0%, #4f46e5 45%, #312e81 100%);
}

.special-offers-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-right: 26px; /* space for close button */
    color: #ffffff;
}

.special-offers-header-icon {
    width: var(--promo-header-icon-size);
    height: var(--promo-header-icon-size);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    font-size: calc(var(--promo-header-icon-size) * 0.55);
}

.special-offers-header-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.special-offers-body {
    padding: 6px;
    background: rgb(0 0 0 / 0%);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.special-offers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
}

.special-offer-card {
    --promo-border: rgba(100, 116, 139, 0.45);
    --promo-top: linear-gradient(135deg, #64748b 0%, #475569 100%);
    --promo-cta: linear-gradient(135deg, #475569 0%, #0f172a 100%);

    position: relative;
    width: 100%;
    flex: 1 1 160px;
    max-width: 210px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--promo-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, #f8fafc 100%);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.special-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.special-offer-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 6px 5px 6px;
    background: var(--promo-top);
    color: #ffffff;
}


.special-offer-card-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.special-offer-card-label-icon {
    width: var(--promo-title-icon-size);
    height: var(--promo-title-icon-size);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    font-size: calc(var(--promo-title-icon-size) * 0.55);
}

.special-offer-card-label-text {
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.special-offer-card-badge {
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.55rem;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.special-offer-card-media {
    padding: 6px;
}

.special-offer-card-image {
    width: 100%;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
}

.special-offer-card-media {
    border-radius: 10px;
    overflow: hidden;
}

.special-offer-card-body {
    padding: 6px 8px 8px 8px;
    text-align: center;
}

.special-offer-card-desc {
    margin: 0 0 5px 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #0f172a;
}

.special-offer-features {
    list-style: none;
    padding: 0;
    margin: 0 0 6px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.special-offers-popup .special-offer-features {
    align-items: center;
    text-align: center;
}

.special-offers-popup .special-offer-feature {
    justify-content: center;
}

.special-offer-feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    color: #334155;
    font-weight: 700;
    font-size: 0.62rem;
}

.special-offer-feature-icon i,
.special-offer-card-label-icon i,
.special-offers-header-icon i {
    line-height: 1;
}

.special-offer-feature-icon {
    width: var(--promo-feature-icon-size);
    height: var(--promo-feature-icon-size);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.16);
    font-size: calc(var(--promo-feature-icon-size) * 0.55);
}

.special-offers-header-icon img,
.special-offer-card-label-icon img,
.special-offer-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.special-offer-card-cta {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 999px;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #ffffff;
    background: var(--promo-cta);
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.25s ease;
}

.special-offer-card-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
}

.promo-theme-gold {
    --promo-border: rgba(245, 158, 11, 0.65);
    --promo-top: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --promo-cta: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.promo-theme-teal {
    --promo-border: rgba(20, 184, 166, 0.65);
    --promo-top: linear-gradient(135deg, #0891b2 0%, #0ea5e9 100%);
    --promo-cta: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
}

.promo-theme-red {
    --promo-border: rgba(239, 68, 68, 0.65);
    --promo-top: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --promo-cta: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
}

.promo-theme-purple {
    --promo-border: rgba(139, 92, 246, 0.65);
    --promo-top: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
    --promo-cta: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.promo-theme-slate {
    --promo-border: rgba(100, 116, 139, 0.55);
    --promo-top: linear-gradient(135deg, #64748b 0%, #0f172a 100%);
    --promo-cta: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

@media (max-width: 767px) {
    .special-offers-sheet {
        width: min(96vw, 760px);
        margin: 8px;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
    }
    .special-offers-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        z-index: 8;
    }
    .special-offers-header {
        padding: 10px 44px 10px 10px;
    }
    .special-offers-popup .special-offers-header-inner {
        padding-right: 0;
    }
    .special-offers-header-title {
        font-size: 0.78rem;
    }
    .special-offer-card-image {
        height: 100%;
    }
    .special-offers-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        justify-items: stretch;
    }
    .special-offers-popup .special-offers-grid--carousel {
        --promo-carousel-gap: 8px;
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - (var(--promo-carousel-gap) * 2)) / 3);
        gap: var(--promo-carousel-gap);
        justify-content: start;
        justify-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 0 8px 0;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overscroll-behavior-x: contain;
    }
    .special-offers-popup .special-offers-grid--carousel::-webkit-scrollbar {
        display: none;
    }
    .special-offers-popup .special-offers-grid--carousel .special-offer-card {
        width: 100%;
        max-width: none;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .special-offer-card {
        width: auto;
        max-width: none;
        border-radius: 10px;
    }
    .special-offer-card-top {
        padding: 4px;
        gap: 2px;
    }
    .special-offer-card-label {
        gap: 3px;
    }
    .special-offer-card-label-icon {
        width: 14px;
        height: 14px;
        border-radius: 4px;
    }
    .special-offer-card-label-text {
        font-size: 0.6rem;
        line-height: 1.05;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .special-offer-card-badge {
        padding: 2px 4px;
        font-size: 0.5rem;
    }
    .special-offer-card-media {
        padding: 4px;
    }
    .special-offer-card-body {
        padding: 4px 5px 5px 5px;
    }
    .special-offer-card-desc {
        font-size: 0.6rem;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .special-offer-feature {
        font-size: 0.52rem;
        gap: 4px;
    }
    .special-offer-feature:nth-child(n+3) {
        display: none;
    }
    .special-offer-feature-icon {
        width: 12px;
        height: 12px;
    }
    .special-offer-card-cta {
        padding: 3px 6px;
        font-size: 0.64rem;
    }

}

@media (max-width: 520px) {
    .special-offers-board {
        max-width: 100%;
    }
    .special-offers-toggle {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
        font-size: 0.76rem;
    }
}

@media (min-width: 768px) {
    .special-offers-carousel-nav {
        display: none !important;
    }
}

/* Inline Special Offers (Homepage section) */
.special-offers-inline .special-offers-board {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%),
        var(--special-offers-bg-image, none);
}

/* Promotions admin compact layout fixes */
.promo-admin-compact .promo-inline-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.promo-admin-compact .promo-inline-actions > button {
    padding: 6px 8px;
    font-size: 11px;
}

.promo-admin-compact .promo-inline-actions > input[type="text"] {
    min-width: 0;
    flex: 1 1 160px;
}

.promo-admin-compact .promo-icon-stack button {
    padding: 6px 6px;
}

.promo-admin-compact .promo-icon-stack .promo-icon-upload-text {
    font-size: 10px;
}

@media (max-width: 768px) {
    .promo-admin-compact .promo-inline-actions > button {
        width: 100%;
        justify-content: center;
    }
}

.special-offers-inline .special-offers-header {
    padding: 18px 20px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 40%),
        linear-gradient(135deg, #6d28d9 0%, #4f46e5 45%, #312e81 100%);
}

.special-offers-inline .special-offers-header-inner {
    gap: 12px;
    padding-right: 0;
}

.special-offers-inline .special-offers-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 20px;
}

.special-offers-inline .special-offers-header-title {
    font-size: 1.6rem;
    line-height: 1.15;
}

.special-offers-inline .special-offers-body {
    padding: 16px;
    background: transparent;
}

.special-offers-inline .special-offers-grid {
    gap: 12px;
    justify-content: flex-start;
}

.special-offers-inline .special-offer-card {
    flex: 1 1 200px;
    max-width: 240px;
    border-radius: 18px;
    border: 2px solid var(--promo-border);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.special-offers-inline .special-offer-card-top {
    gap: 8px;
    padding: 8px 8px 7px 8px;
}

.special-offers-inline .special-offer-card-label-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    font-size: 13px;
}

.special-offers-inline .special-offer-card-label-text {
    font-size: 0.85rem;
    line-height: 1.15;
    font-weight: 700;
}

.special-offers-inline .special-offer-card-badge {
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 0.65rem;
}

.special-offers-inline .special-offer-card-media {
    padding: 8px;
}

.special-offers-inline .special-offer-card-image {
    height: 110px;
    border-radius: 14px;
    object-fit: contain;
}

.special-offers-inline .special-offer-card-body {
    padding: 8px 10px 10px 10px;
}

.special-offers-inline .special-offer-card-desc {
    font-size: 0.78rem;
    margin-bottom: 8px;
    text-align: left;
}

.special-offers-inline .special-offer-feature {
    font-size: 0.72rem;
}

.special-offers-inline .special-offer-card-cta {
    padding: 7px 10px;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .special-offers-inline .special-offers-header-title {
        font-size: 1rem;
    }
    .special-offers-inline .special-offers-body {
        padding: 8px;
    }
    .special-offers-inline .special-offers-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        justify-content: stretch;
    }
    .special-offers-inline .special-offer-card {
        width: auto;
        max-width: none;
        border-radius: 10px;
        border-width: 1.5px;
        box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
    }
    .special-offers-inline .special-offer-card-top {
        padding: 4px;
        gap: 3px;
    }
    .special-offers-inline .special-offer-card-label-icon {
        width: 13px;
        height: 13px;
        border-radius: 4px;
        font-size: 8px;
    }
    .special-offers-inline .special-offer-card-label-text {
        font-size: 0.55rem;
        line-height: 1.05;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .special-offers-inline .special-offer-card-badge {
        padding: 1px 4px;
        font-size: 0.45rem;
    }
    .special-offers-inline .special-offer-card-media {
        padding: 3px;
    }
    .special-offers-inline .special-offer-card-body {
        padding: 3px 4px 4px 4px;
    }
    .special-offers-inline .special-offer-card-desc {
        font-size: 0.53rem;
        margin-bottom: 3px;
        line-height: 1.15;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .special-offers-inline .special-offer-features {
        margin: 0 0 3px 0;
        gap: 2px;
        align-items: center;
        text-align: center;
    }
    .special-offers-inline .special-offer-feature {
        font-size: 0.48rem;
        gap: 2px;
        justify-content: center;
    }
    .special-offers-inline .special-offer-feature:nth-child(n+2) {
        display: none;
    }
    .special-offers-inline .special-offer-feature-icon {
        width: 10px;
        height: 10px;
    }
    .special-offers-inline .special-offer-card-cta {
        padding: 3px 5px;
        font-size: 0.56rem;
        line-height: 1.1;
    }
    .special-offers-inline .special-offer-card-image {
        height: 100%;
    }
}
