/*
 * Global Main Stylesheet
 * Design System Customizations
 */

/* Prevent any horizontal scrollbar across the entire page */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

/* ============================================================
   Premium Custom Scrollbar
   ============================================================ */

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    border-radius: 999px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ef4444, #f97316);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Desktop nav vertical divider between menu items */
.nav-divider {
    width: 1px;
    height: 16px;
    background: #e2e8f0;
    margin: 0 2px;
    flex-shrink: 0;
    align-self: center;
}

/* Mobile search bar slide-down */
.mob-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mob-search-bar.is-open {
    max-height: 2000px; /* Allow space for results */
    overflow: visible;
}

/* Hide scrollbar for horizontal scrolling elements */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Line clamp for product titles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure body doesn't conflict with backdrop rendering */
body {
    background-color: #f8f9fa;
}

/* Error page Specific fixes */
.bg-mesh {
    background-image:
        radial-gradient(at 40% 20%, rgba(239, 68, 68, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(127, 29, 29, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(220, 38, 38, 0.1) 0px, transparent 50%);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ef4444, #f97316, #ef4444);
    z-index: -1;
    filter: blur(15px);
    opacity: 0.3;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* Error page grid background */
.bg-grid-slate-100 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='%23f1f5f9'%3E%3Cpath d='M0 .5H31.5V32'/%3E%3C/svg%3E");
}

/* ============================================================
   Mobile Menu Overlay
   ============================================================ */
.mob-overlay {
    display: none;
    /* hidden until JS opens it        */
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.mob-overlay.is-open {
    opacity: 1;
}

/* ============================================================
   Mobile Drawer Panel
   ============================================================ */
.mob-drawer {
    display: none;
    /* hidden until JS opens it        */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 300px;
    background: #fff;
    z-index: 10000; /* Extremely high for mobile menu overlay */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
}

.mob-drawer.is-open {
    transform: translateX(0);
}

/* Fallback icon when no logo URL is set (bx-chip) */
.mob-drawer__icon {
    font-size: 28px;
    color: #ef4444;
}

/* Cart/icon wrapper that carries the badge */
.mob-footer-icon-wrap {
    position: relative;
    display: inline-block;
}

/* Drawer Header row */
.mob-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.mob-drawer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mob-drawer__logo img {
    height: 28px;
    width: auto;
}

.mob-drawer__logo-text {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Close button */
.mob-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #64748b;
    font-size: 26px;
    line-height: 1;
    border-radius: 8px;
    transition: color 0.2s;
}

.mob-drawer__close:hover {
    color: #0f172a;
}

/* Drawer body scroll area */
.mob-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Accordion item wrapper */
.mob-accordion {
    margin-bottom: 6px;
}

/* Accordion trigger button */
.mob-accordion__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.mob-accordion__btn:hover {
    background: #f1f5f9;
    color: #ef4444;
}

.mob-accordion__btn i {
    font-size: 18px;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.mob-accordion__btn.is-open i {
    transform: rotate(180deg);
}

/* Accordion content */
.mob-accordion__content {
    display: none;
    padding: 8px 14px 6px 24px;
    border-left: 2px solid #f1f5f9;
    margin: 4px 0 4px 14px;
}

.mob-accordion__content.is-open {
    display: block;
}

.mob-accordion__content a {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.mob-accordion__content a:hover {
    color: #ef4444;
}

.mob-accordion__content a.mob-see-all {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    margin-top: 4px;
}

/* Regular (non-accordion) nav link in drawer */
.mob-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    font-weight: 700;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    margin-bottom: 6px;
    transition: background 0.2s, color 0.2s;
}

.mob-nav-link:hover {
    background: #f1f5f9;
    color: #ef4444;
}

/* Deal highlight link */
.mob-deal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #fff5f5;
    font-weight: 700;
    font-size: 13px;
    color: #ef4444;
    text-decoration: none;
    transition: background 0.2s;
}

.mob-deal-link:hover {
    background: #fee2e2;
}

.mob-deal-link i {
    font-size: 18px;
}

.mob-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 16px 0;
}

/* Drawer Footer */
.mob-drawer__footer {
    border-top: 1px solid #f1f5f9;
    padding: 16px 24px;
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.mob-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: color 0.2s;
    position: relative;
}

.mob-footer-link:hover {
    color: #ef4444;
}

.mob-footer-link i {
    font-size: 22px;
}

/* ============================================================
   Category Navigation (Desktop & Mobile)
   ============================================================ */

/* Mobile Accordion Premium Nesting */
.mob-accordion__content {
    padding: 10px 15px 25px 15px;
}

.mob-accordion__content a {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    padding: 10px 0;
    font-size: 14px;
}

/* 2nd & 3rd Level Specifics */
.mob-accordion__content .border-brand-50 {
    margin-top: 5px;
}

.mob-accordion__content a.text-brand-600 {
    /* 2nd level header */
    padding-bottom: 5px;
}

.mob-accordion__content a.text-slate-500 {
    /* 3rd level items */
    padding: 8px 0 8px 10px;
}

/* Desktop Dropdown Premium Styles */
.group-dropdown:hover>.absolute {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

.group-dropdown>.absolute {
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Bridge the gap to prevent closing on hover movement */
.group-dropdown>.absolute::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.group-dropdown-sub:hover>.absolute {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
}

.group-dropdown-sub>.absolute {
    transform: translateX(10px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism utility if not using Tailwind's */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hide scrollbar utility */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.mob-footer-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ============================================================
   Premium Hero Slider Core Styles
   ============================================================ */

/* Fraction Pagination (E-commerce Style) */
.hero-slider-fraction {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    letter-spacing: 0px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-slider-fraction {
        bottom: 24px;
        right: 24px;
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* Hide Default Swiper Arrows */
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    display: none !important;
}

/* Slider Controls (Premium Black Semi-Transparent Style) */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--theme-brand-500, #ef4444) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

.hero-slider .swiper-button-next i,
.hero-slider .swiper-button-prev i {
    transition: transform 0.3s;
}

/* Inner Image Hover Border Definition */
.hero-slider .swiper-slide .premium-slider-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slider .group\/slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Fix overlay so it respects tailwind rounded classes */
.hero-slider .inner-border-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.hero-slider .group\/slide-link:hover .inner-border-overlay {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.02), transparent 20%);
}

.popcat-slider {
    padding: 20px 0 !important;
    margin: -20px 0 !important;
}

.popcat-slider .swiper-slide {
    height: auto;
}


.popcat-wrapper .swiper-button-lock {
    display: none !important;
}

.popcat-wrapper .swiper-button-disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.popcat-wrapper .swiper-button-next::after,
.popcat-wrapper .swiper-button-prev::after {
    display: none !important;
}

/* ============================================================
   Swiper Pagination Premium Styles
   ============================================================ */
.swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    background: #cbd5e1 !important;
    opacity: 1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 999px !important;
}

.swiper-pagination-bullet-active {
    width: 18px !important;
    background: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

.main-product-swiper:hover .swiper-button-next-custom,
.main-product-swiper:hover .swiper-button-prev-custom {
    opacity: 1 !important;
}

/* ============================================================
   Premium Select2 High-End Design System
   ============================================================ */

/* Main Container & Selection */
.select2-container--default .select2-selection--single {
    background-color: #f8fafc !important;
    /* bg-slate-50 */
    border: 2px solid #f8fafc !important;
    /* border-slate-50 */
    border-radius: 1rem !important;
    /* rounded-2xl (16px) */
    height: auto !important;
    padding: 12px 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    outline: none !important;
}

/* Focused State */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #ef4444 !important;
    /* focus:border-brand-500 */
    background-color: #ffffff !important;
    /* focus:bg-white */
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05) !important;
}

/* Text Render */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #334155 !important;
    /* text-slate-700 */
    font-size: 0.875rem !important;
    /* text-sm */
    font-weight: 700 !important;
    /* font-bold */
    padding-left: 0 !important;
    line-height: 1.25rem !important;
}

/* Default Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    /* text-slate-400 */
}

/* Remove Default Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

/* Morphing Chevron-to-X Icon for Select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow::after,
.select2-container--default .select2-selection--single .select2-selection__arrow::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: #94a3b8;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    top: 50%;
    left: 50%;
}

/* Closed State: Chevron (V shape) */
.select2-container--default .select2-selection--single .select2-selection__arrow::before {
    transform: translate(-90%, -50%) rotate(45deg);
}

.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    transform: translate(-10%, -50%) rotate(-45deg);
}

/* Opened State: X (Closing icon) */
.select2-container--open .select2-selection--single .select2-selection__arrow::before {
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #ef4444;
    width: 12px;
}

.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: #ef4444;
    width: 12px;
}

/* Hover state on selection */
.select2-container--default:hover .select2-selection--single .select2-selection__arrow::after,
.select2-container--default:hover .select2-selection--single .select2-selection__arrow::before {
    background-color: #64748b;
}

/* Dropdown Container */
.select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    /* border-slate-100 */
    border-radius: 1rem !important;
    /* rounded-2xl */
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
    overflow: hidden !important;
    margin-top: 8px !important;
    z-index: 10001 !important;
}

/* Search Box Inside Dropdown */
.select2-search--dropdown {
    padding: 12px !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: #f8fafc !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 0.75rem !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    outline: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #ef4444 !important;
    background-color: #fff !important;
}

/* Results / List */
.select2-results__options {
    max-height: 250px !important;
    padding: 6px !important;
}

/* Individual Option */
.select2-results__option {
    padding: 10px 14px !important;
    border-radius: 0.75rem !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    margin-bottom: 2px !important;
}

/* Hover & Selected States */
.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #fef2f2 !important;
    /* Light brand background */
    color: #ef4444 !important;
    /* brand-500 */
}

.select2-results__option[aria-selected=true] {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Custom Scrollbar for Select2 */
.select2-results__options::-webkit-scrollbar {
    width: 4px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Search Results Styling */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 1.5rem 1.5rem;
    margin-top: 0;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    z-index: 200; /* Higher than header siblings */
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    border: 1px solid #e2e8f0;
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container.active input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.search-container input {
    height: 48px !important;
}

/* Fix mobile icon alignment */
#search-container-mobile .bx-search {
    position: relative;
    top: 2px;
}

/* Mobile Search Results */
#mob-search-bar .search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 200;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   Product Favorites Animations
   ============================================================ */
@keyframes ping-once {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-ping-once {
    animation: ping-once 0.5s cubic-bezier(0, 0, 0.2, 1);
}

/* Payment Method Selection Styling */
.payment-method-radio:checked ~ div {
    border-color: var(--brand-500, #EF4444) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.payment-method-radio:checked ~ div .payment-check-badge {
    background-color: var(--brand-500, #EF4444) !important;
    border-color: var(--brand-500, #EF4444) !important;
}

.payment-method-radio:checked ~ div .payment-check-badge i {
    opacity: 1 !important;
}

:root {
    --brand-500: #EF4444;
}

/* ============================================================
   Skeleton Loader (Shimmer Effect) & CLS Prevention
   ============================================================ */

/* Global Swiper Loading State */
.swiper:not(.swiper-initialized) {
    overflow: hidden !important;
}

.swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
}

/* 1. Hero Slider Skeleton & CLS Fix */
.hero-slider:not(.swiper-initialized) {
    aspect-ratio: 2/1; /* Mobile default */
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 2s infinite linear;
    border-radius: 0 0 1rem 1rem;
    box-shadow: none !important;
    border: none !important;
}

@media (min-width: 768px) {
    .hero-slider:not(.swiper-initialized) {
        aspect-ratio: 4.5/1; /* Desktop default */
    }
}

.hero-slider:not(.swiper-initialized) .swiper-wrapper {
    opacity: 0;
}

/* 2. Popular Categories Skeleton & Widths */
.popcat-slider:not(.swiper-initialized) .swiper-slide {
    width: 50% !important;
    flex-shrink: 0 !important;
}

.popcat-slider:not(.swiper-initialized) .swiper-slide .aspect-\[1\.4\/1\] {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    position: relative;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.popcat-slider:not(.swiper-initialized) .swiper-slide .aspect-\[1\.4\/1\] > * {
    opacity: 0;
}

@media (min-width: 640px) {
    .popcat-slider:not(.swiper-initialized) .swiper-slide { width: 33.333% !important; }
}
@media (min-width: 1024px) {
    .popcat-slider:not(.swiper-initialized) .swiper-slide { width: 20% !important; }
}
@media (min-width: 1280px) {
    .popcat-slider:not(.swiper-initialized) .swiper-slide { width: 16.666% !important; }
}

/* 3. Product Card Skeleton & Widths */
.js-standard-product-slider:not(.swiper-initialized) .swiper-slide {
    width: 50% !important;
    flex-shrink: 0 !important;
}

.js-standard-product-slider:not(.swiper-initialized) .swiper-slide .product-card-img-container {
    background: #f1f5f9;
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.js-standard-product-slider:not(.swiper-initialized) .swiper-slide .product-card-img-container > *,
.js-standard-product-slider:not(.swiper-initialized) .swiper-slide .product-card-title,
.js-standard-product-slider:not(.swiper-initialized) .swiper-slide .product-card-price {
    opacity: 0;
}

.js-standard-product-slider:not(.swiper-initialized) .swiper-slide .product-card {
    border-color: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 640px) {
    .js-standard-product-slider:not(.swiper-initialized) .swiper-slide { width: 33.333% !important; }
}
@media (min-width: 768px) {
    .js-standard-product-slider:not(.swiper-initialized) .swiper-slide { width: 25% !important; }
}
@media (min-width: 1024px) {
    .js-standard-product-slider:not(.swiper-initialized) .swiper-slide { width: 20% !important; }
}
@media (min-width: 1280px) {
    .js-standard-product-slider:not(.swiper-initialized) .swiper-slide { width: 16.666% !important; }
}

/* Common Slide Content Transitions */
.swiper-slide {
    transition: opacity 0.5s ease-out;
}

.swiper:not(.swiper-initialized) .swiper-slide {
    opacity: 0.8; /* Show skeleton faintly */
}

/* ============================================================
   Premium Top Bar Progress Loader
   ============================================================ */
.top-bar-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    z-index: 10000;
    transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.4s ease-in-out;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5), 0 0 5px rgba(249, 115, 22, 0.3);
}

.top-bar-progress::after {
    content: '';
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: skewX(-30deg);
}
