@source "../../node_modules/flowbite";
@plugin "flowbite/plugin";


.hero-slider .swiper-wrapper,
.progress-categories-slide-carousel .swiper-wrapper {
    width: 100%;
    height: max-content;
    padding-bottom: 64px;
    -webkit-transition-timing-function: linear;
    transition-timing-function: linear;
    position: relative;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #0d9488 !important;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


.nav-for-slider .swiper-slide {
    height: auto;
    width: auto;
    cursor: pointer;

}

.swiper-wrapper {
    height: auto;
    padding-bottom: 0 !important;

}

.nav-for-slider .swiper-slide img {
    border: 2px solid transparent;
}

.nav-for-slider .swiper-slide-thumb-active img {

    border-color: #0d9488;
}

.grecaptcha-badge {
    display: none;
}

html {
    scroll-behavior: smooth;
}

/* Swiper details and bounds containment */
.main-slide-carousel {
    overflow: hidden;
}

.product-main-img {
    width: 100% !important;
    height: 100% !important;
}

.nav-for-slider-mobile,
.nav-for-slider-desktop {
    max-height: 100px;
    overflow: hidden;
}

.thumbs-slide {
    width: 72px !important;
    height: 72px !important;
}

.thumbs-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: border-color 0.2s ease-in-out;
}

[x-cloak] {
    display: none !important;
}

/* =========================================================
   Mobile Global Spacing — ensures content is NEVER hidden
   behind the fixed header (84px + 12px gap = 96px from top)
   or the floating bottom bar (~74px + 12px = 86px from bottom)
   ========================================================= */
.mobile-main-content {
    padding-top: 0;
    padding-bottom: 24px;
}

/* On mobile views, push the inner page sections down so they are not covered by the fixed header,
   while letting their background color extend fully to the top of the viewport. */
@media (max-width: 1023px) {

    main.mobile-main-content>section:not(.product-details-section),
    main.mobile-main-content>div>section:not(.product-details-section),
    main.mobile-main-content>div>div>section:not(.product-details-section) {
        padding-top: calc(116px + env(safe-area-inset-top)) !important;
    }

    main.mobile-main-content>section.product-details-section,
    section.product-details-section,
    .sp-page-content.product-details-section {
        padding-top: 0px !important;
    }
}

@media (min-width: 1024px) {

    /* On desktop: offset main sections to account for sticky nav/categories menu */
    main.mobile-main-content>section,
    main.mobile-main-content>div>section,
    main.mobile-main-content>div>div>section {
        padding-top: 192px !important;
    }

    /* On desktop: no floating capsules, reset to zero */
    .mobile-main-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    footer.mobile-has-bottom-bar {
        padding-bottom: 0 !important;
    }
}

/* =========================================================
   sp-page-content — Unified top offset for ALL storefront
   pages so content never hides behind the fixed header.
   Use this class on the root <section> or <main> of any page.
   ========================================================= */

/* Mobile: floating capsule header ~84px + announcement bar ~32px + gap */
.sp-page-content {
    padding-top: calc(116px + env(safe-area-inset-top));
    padding-bottom: 80px;
}

/* Desktop: announcement bar 32px + main nav ~72px + categories bar ~44px = ~148px
   Add breathing room → 196px total */
@media (min-width: 1024px) {
    .sp-page-content {
        padding-top: 192px;
        padding-bottom: 40px;
    }
}

/* Product card image placeholder — prevents layout shift before image loads */
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

.dark .product-img-wrapper {
    background-color: #374151;
}

.product-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: img-shimmer 1.5s infinite;
}

.dark .product-img-wrapper::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 100%);
}

.product-img-wrapper img {
    position: relative;
    z-index: 1;
}

.product-img-wrapper img.lazy-loaded-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
}

.product-img-wrapper img.prod-placeholder-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

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

    100% {
        transform: translateX(100%);
    }
}


/* Theme-Based Mobile Header Capsule */
.mobile-header-capsule {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    z-index: 9999;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    padding: 8px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Only show the mobile floating header on mobile, hide on desktop */
@media (min-width: 1024px) {

    .mobile-header-capsule,
    .dark .mobile-header-capsule {
        display: none !important;
    }
}

.dark .mobile-header-capsule {
    background-color: rgba(15, 18, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Theme-Based Mobile Bottom Navigation Capsule */
.mobile-bottom-bar-capsule {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 20px;
    padding: 8px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dark .mobile-bottom-bar-capsule {
    background-color: rgba(15, 18, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Only show the mobile bottom bar on mobile, hide on desktop */
@media (min-width: 1024px) {

    .mobile-bottom-bar-capsule,
    .mobile-add-to-cart-capsule {
        display: none !important;
    }
}

/* Theme-Based Mobile Add to Cart Capsule */
.mobile-add-to-cart-capsule {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    /* Perfectly sits above the bottom bar with gap */
    left: 16px;
    right: 16px;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;
    padding: 15px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dark .mobile-add-to-cart-capsule {
    background-color: rgba(15, 18, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Theme-Based Quantity Selector Capsule */
.qty-selector-capsule {
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 2px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1f2937;
}

.qty-selector-capsule button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.qty-selector-capsule span {
    padding: 0 8px;
    font-weight: 700;
    font-size: 14px;
}

.dark .qty-selector-capsule {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dark .qty-selector-capsule button {
    color: #9ca3af;
}

.qty-selector-capsule button:hover {
    color: #111827;
}

.dark .qty-selector-capsule button:hover {
    color: #ffffff;
}

/* Theme-Based Mobile Search Overlay & Dropdown */
.mobile-search-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background-color: #ffffff;
    border-radius: 20px;
    z-index: 20;
    height: 100%;
    width: 100%;
}

.dark .mobile-search-overlay {
    background-color: #0f121d;
}

.mobile-search-input {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.04);
    color: #1f2937;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.dark .mobile-search-input {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-dropdown {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    max-height: 280px;
    overflow-y: auto;
}

.dark .mobile-search-dropdown {
    background-color: #0f121d;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

nav[aria-label="Breadcrumb"] ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

nav[aria-label="Breadcrumb"] ol li {
    display: inline-flex;
    align-items: center;
}

nav[aria-label="Breadcrumb"] a,
nav[aria-label="Breadcrumb"] span {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 9999px !important;
    color: #4b5563 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
}

.dark nav[aria-label="Breadcrumb"] a,
.dark nav[aria-label="Breadcrumb"] span {
    background-color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d1d5db !important;
    box-shadow: none !important;
}

nav[aria-label="Breadcrumb"] a:hover {
    color: #0d9488 !important;
    border-color: rgba(13, 148, 136, 0.3) !important;
}

.dark nav[aria-label="Breadcrumb"] a:hover {
    color: #2dd4bf !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
}

nav[aria-label="Breadcrumb"] svg {
    margin: 0 !important;
}

nav[aria-label="Breadcrumb"] li>div>svg,
nav[aria-label="Breadcrumb"] li>svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    padding: 8px !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 9999px !important;
    color: #9ca3af !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.dark nav[aria-label="Breadcrumb"] li>div>svg,
.dark nav[aria-label="Breadcrumb"] li>svg {
    background-color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #6b7280 !important;
    box-shadow: none !important;
}

nav[aria-label="Breadcrumb"] li>div {
    display: inline-flex;
    align-items: center;
    gap: 8px !important;
}

nav[aria-label="Breadcrumb"] a svg {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-right: 8px !important;
    margin-top: 0 !important;
}

/* Horizontal scrollable breadcrumbs on mobile */
@media (max-width: 1023px) {
    nav[aria-label="Breadcrumb"] {
        max-width: 100%;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px;
    }

    nav[aria-label="Breadcrumb"]::-webkit-scrollbar {
        display: none !important;
    }

    nav[aria-label="Breadcrumb"] {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    nav[aria-label="Breadcrumb"] ol {
        flex-wrap: nowrap !important;
        display: inline-flex !important;
    }

    nav[aria-label="Breadcrumb"] li {
        flex-shrink: 0 !important;
        display: inline-flex !important;
    }
}

/* Theme-Based SVG Icons inside categories lists */
.flex-shrink-0 svg,
[id="Categories"] svg,
.swiper-slide svg {
    stroke: currentColor;
}

.dark .flex-shrink-0 svg,
.dark [id="Categories"] svg,
.dark .swiper-slide svg {
    stroke: currentColor;
}

/* Fly to Cart Animation Particle & Cart Bounce Effect */
.fly-to-cart-particle .particle-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.5), 0 0 15px rgba(20, 184, 166, 0.8);
    position: relative;
    border: 2px solid #ffffff;
}

.fly-to-cart-particle .particle-plus {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 800;
    font-size: 9px;
    border-radius: 9999px;
    padding: 1px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes cartBounceAnimation {
    0% { transform: scale(1); }
    30% { transform: scale(1.35) rotate(-6deg); }
    60% { transform: scale(0.88) rotate(4deg); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-bounce-pulse {
    animation: cartBounceAnimation 0.5s ease-in-out !important;
}