/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
.swiper-button-next.product-next-button,
.swiper-button-prev.product-prev-button {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-background, #402287);
    padding: 0.75rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    --swiper-navigation-size: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-button-next.product-next-button:hover,
.swiper-button-prev.product-prev-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.swiper-button-next.product-next-button {
    right: -0.5rem;
}

.swiper-button-prev.product-prev-button {
    left: -0.5rem;
}

.swiper-button-next.product-next-button::after,
.swiper-button-prev.product-prev-button::after {
    font-size: 20px;
    font-weight: bold;
}


.homepage-main-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.homepage-main-slider .swiper-pagination-bullet-active {
    background: var(--primary-background, #7d1d60);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

.homepage-main-slider__media {
    aspect-ratio: 3/1;
}

.homepage-side-menu {
    display: none;
}

.homepage-side-menu.is-open {
    display: flex !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-right: 1.5rem !important;
    max-height: 400px;
    overflow: hidden;
}

.homepage-side-menu.is-open nav {
    overflow-y: auto;
    max-height: calc(400px - 56px);
}

.homepage-side-menu nav::-webkit-scrollbar {
    width: 6px;
}

.homepage-side-menu nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.homepage-side-menu nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.homepage-side-menu nav::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.transition-all.duration-400 {
    transition-duration: 400ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-slider-video="1"] {
    background-color: #000;
    display: block;
}

.homepage-top-hero-section {
    --sqw-hero-header-clearance: calc(clamp(4.35rem, 5.6vw, 5.1rem) + 2.8rem);
    --sqw-hero-section-bottom-gap: clamp(0.9rem, 1.9vw, 1.45rem);
    --sqw-hero-viewport-height: 100vh;
    --sqw-hero-shell-border: color-mix(in srgb, #0f172a 12%, #ffffff 88%);
    --sqw-hero-shell-shadow: 0 32px 54px -44px rgba(15, 23, 42, 0.82);
    --sqw-hero-chip-bg: rgba(248, 250, 252, 0.88);
    --sqw-hero-chip-border: rgba(15, 23, 42, 0.16);
    --sqw-hero-chip-ink: #0f172a;
    background: linear-gradient(180deg, #eef2f7 0%, #ffffff 48%, #ffffff 100%);
    box-sizing: border-box;
    height: var(--sqw-hero-viewport-height);
    min-height: var(--sqw-hero-viewport-height);
    padding: var(--sqw-hero-header-clearance) 0 var(--sqw-hero-section-bottom-gap);
}

@supports (height: 100svh) {
    .homepage-top-hero-section {
        --sqw-hero-viewport-height: 100svh;
    }
}

@supports (height: 100dvh) {
    .homepage-top-hero-section {
        --sqw-hero-viewport-height: 100dvh;
    }
}

.homepage-top-hero-section__inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding-inline: clamp(0.8rem, 1.8vw, 1.8rem);
}

.homepage-top-hero-shell {
    position: relative;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--sqw-hero-shell-border);
    box-shadow: var(--sqw-hero-shell-shadow);
    background: #e2e8f0;
}

.homepage-top-hero-slider {
    box-sizing: border-box;
    width: 100%;
    height: clamp(0px, calc(var(--sqw-hero-viewport-height) - var(--sqw-hero-header-clearance) - var(--sqw-hero-section-bottom-gap)), 9999px);
}

.homepage-top-hero-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.homepage-top-hero-slider .swiper-slide {
    position: relative;
}

.homepage-top-hero-slider .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.homepage-top-hero-slider__arrow {
    width: clamp(2.6rem, 3vw, 3rem);
    height: clamp(2.6rem, 3vw, 3rem);
    border-radius: 0.92rem;
    border: 1px solid var(--sqw-hero-chip-border);
    background: var(--sqw-hero-chip-bg);
    color: var(--sqw-hero-chip-ink);
    box-shadow: 0 16px 24px -22px rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease, opacity 0.24s ease;
}

.homepage-top-hero-slider__arrow--prev {
    left: clamp(0.55rem, 1.4vw, 1rem);
}

.homepage-top-hero-slider__arrow--next {
    right: clamp(0.55rem, 1.4vw, 1rem);
}

.homepage-top-hero-slider__arrow:hover {
    transform: translateY(-50%) translateY(-1px);
    border-color: rgba(15, 23, 42, 0.26);
    background: rgba(255, 255, 255, 0.96);
}

.homepage-top-hero-slider__arrow:disabled {
    opacity: 0.38;
    cursor: default;
    transform: translateY(-50%);
}

.homepage-top-hero-progress-wrap {
    position: absolute;
    left: 50%;
    bottom: clamp(0.66rem, 1.8vw, 1.2rem);
    z-index: 1;
    transform: translateX(-50%);
    width: min(100%, 620px);
    padding: 0 0.8rem;
    pointer-events: none;
}

.homepage-top-hero-progress {
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(248, 250, 252, 0.74);
    box-shadow: 0 14px 24px -22px rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.homepage-top-hero-progress__inner {
    margin: 0 auto;
    width: min(100%, 356px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.62rem 0.44rem;
}

.homepage-top-hero-progress__value {
    font-size: clamp(0.78rem, 1vw, 0.94rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.03em;
    color: rgba(15, 23, 42, 0.9);
    font-variant-numeric: tabular-nums;
}

.homepage-top-hero-progress__track {
    position: relative;
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.homepage-top-hero-progress__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-background, #7d1d60) 58%, #0f172a 42%);
    transition: width 0.3s ease;
}

.homepage-product-tabs-section {
    --sqw-product-tabs-viewport-height: 100vh;
    --sqw-product-tabs-header-clearance: clamp(4.35rem, 5.6vw, 5.1rem);
    --sqw-product-tabs-block-start: clamp(2.4rem, 4vw, 3.5rem);
    --sqw-product-tabs-block-end: clamp(1.15rem, 2.2vw, 1.8rem);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-sizing: border-box;
    min-height: calc(var(--sqw-product-tabs-viewport-height) - var(--sqw-product-tabs-header-clearance));
    padding-block: var(--sqw-product-tabs-block-start) var(--sqw-product-tabs-block-end);
    scroll-margin-top: var(--sqw-product-tabs-header-clearance);
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

@supports (height: 100svh) {
    .homepage-product-tabs-section {
        --sqw-product-tabs-viewport-height: 100svh;
    }
}

@supports (height: 100dvh) {
    .homepage-product-tabs-section {
        --sqw-product-tabs-viewport-height: 100dvh;
    }
}

.homepage-product-tabs-section__inner {
    width: 100%;
    max-width: 100%;
    min-height: calc(var(--sqw-product-tabs-viewport-height) - var(--sqw-product-tabs-header-clearance) - var(--sqw-product-tabs-block-start) - var(--sqw-product-tabs-block-end));
    display: flex;
}

.homepage-product-tabs {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.homepage-product-tabs__header,
.homepage-product-tabs__tablist {
    flex: 0 0 auto;
}

.homepage-product-tabs__header {
    width: 100%;
    min-width: 0;
}

.homepage-product-tabs__title-wrap {
    min-width: 0;
}

.homepage-product-tabs__arrows {
    flex: 0 0 auto;
}

@media (min-width: 1024px) {
    /* Prevent right-edge drift on platforms where scrollbar width affects viewport math. */
    .homepage-product-tabs__arrows {
        margin-right: max(0px, calc(100vw - 100%));
    }
}

.homepage-product-tabs__panels {
    flex: 1 1 auto;
    min-height: 0;
}

.homepage-product-tabs__panel {
    min-height: 0;
}

.homepage-product-tabs__viewport {
    min-height: 0;
}

/* Keep product cards compact inside homepage tabs so the section fits in view */
.homepage-product-tabs-section .squarewoo-product-tabs-products > li.product {
    flex-basis: min(72%, 18.25rem);
}

.homepage-product-tabs-section .product-image-container {
    aspect-ratio: 4 / 5;
}

.homepage-product-tabs-section .product-image-container--style-2 {
    aspect-ratio: 4 / 5;
}

.homepage-product-tabs-section .product-card .p-5,
.homepage-product-tabs-section .product-card .p-4 {
    padding: 0.75rem 0.75rem 0.8rem;
}

.homepage-product-tabs-section .product-card .flex.justify-between.items-end,
.homepage-product-tabs-section .product-card .flex.justify-between.items-center,
.homepage-product-tabs-section .price-container {
    min-height: 42px;
}

.homepage-product-tabs-section .product-card-shell--style-2 {
    gap: 0.5rem;
}

.homepage-product-tabs-section .product-card-meta--style-2 {
    gap: 0.35rem;
}

.homepage-best-sellers-banner-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.homepage-best-sellers-banner-section .homepage-best-sellers-banner__panel {
    border: 1px solid #dce5f0;
    border-radius: 1.15rem;
    box-shadow: 0 30px 46px -34px rgba(15, 23, 42, 0.56);
    background: #eff5fb;
}

.homepage-best-sellers-banner-section .homepage-best-sellers-banner__overlay {
    background: linear-gradient(108deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.06) 44%, rgba(15, 23, 42, 0.32) 100%);
}


.homepage-best-sellers-banner-section .homepage-best-sellers-banner__title {
    color: var(--sqw-banner-title-color, #0f172a);
    font-size: clamp(var(--sqw-banner-title-mobile, 30px), 4.1vw, var(--sqw-banner-title-desktop, 64px));
    font-weight: var(--sqw-banner-title-weight, 600);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.homepage-best-sellers-banner-section .homepage-best-sellers-banner__button {
    background: linear-gradient(135deg, color-mix(in srgb, var(--sqw-banner-btn-bg, #7d1d60) 96%, #ffffff 4%) 0%, color-mix(in srgb, var(--sqw-banner-btn-bg, #7d1d60) 74%, #111827 26%) 100%);
    color: var(--sqw-banner-btn-color, #ffffff);
    font-size: var(--sqw-banner-btn-size, 15px);
    border: 1px solid transparent;
    border-radius: 0.9rem;
    box-shadow: 0 13px 18px -16px color-mix(in srgb, var(--sqw-banner-btn-bg, #7d1d60) 42%, transparent);
}

.homepage-best-sellers-banner-section .homepage-best-sellers-banner__button:hover {
    background: var(--sqw-banner-btn-hover-bg, #611648);
    border-color: rgba(255, 255, 255, 0.34);
    filter: saturate(1.04) brightness(1.03);
}

/* Homepage marquee between 2nd and 3rd banner product sections */
.homepage-between-banner-marquee {
    background: var(--sqw-between-marquee-bg, #111827);
    color: var(--sqw-between-marquee-text, #ffffff);
}

.homepage-between-banner-marquee__track {
    display: flex;
    width: max-content;
    animation: sqw-homepage-between-marquee var(--sqw-between-marquee-duration, 30s) linear infinite;
    will-change: transform;
}

.homepage-between-banner-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.8rem 0;
}

.homepage-between-banner-marquee__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    margin-inline: clamp(1.1rem, 2.2vw, 2.3rem);
    font-size: clamp(0.86rem, 1.12vw, 1.04rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-between-banner-marquee__item + .homepage-between-banner-marquee__item::before {
    content: "•";
    margin-inline-end: clamp(1.1rem, 2.2vw, 2.3rem);
    opacity: 0.62;
}

.homepage-between-banner-marquee:hover .homepage-between-banner-marquee__track {
    animation-play-state: paused;
}

@keyframes sqw-homepage-between-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Keep banner media column and product column at the same visual height on desktop */
@media (min-width: 1024px) {
    .homepage-banner-products-section__inner {
        align-items: stretch;
    }

    .homepage-banner-products-section__media-wrap {
        position: relative;
        height: 100%;
        min-height: 100%;
    }

    .homepage-banner-products-section__media-picture,
    .homepage-banner-products-section__media-placeholder {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .homepage-banner-products-section__media-image {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
}

.homepage-collection-section {
    padding: 3rem 0;
    background: #ffffff;
}

.homepage-collection-container {
    padding: 0 1rem;
}

.homepage-collection-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-end;
}

.homepage-collection-media-column {
    width: 100%;
}

.homepage-collection-media-wrap,
.homepage-collection-thumb-wrap,
.homepage-collection-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.homepage-collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.homepage-collection-media-wrap:hover .homepage-collection-image,
.homepage-collection-thumb-wrap:hover .homepage-collection-image {
    transform: scale(1.05);
}

.homepage-collection-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-collection-placeholder-text {
    color: #9ca3af;
    font-size: 1.125rem;
}

.homepage-collection-content-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.homepage-collection-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}

.homepage-collection-bottom {
    position: relative;
    display: block;
    min-height: 100%;
}

.float-spacer {
    float: left;
    width: 0;
    height: 12rem;
}

.homepage-collection-thumb-column {
    float: left;
    clear: left;
    width: 42%;
    margin-right: 1.5rem;
    margin-bottom: 0;
}

.homepage-collection-thumb-wrap {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.homepage-collection-copy {
    display: inline;
}

.homepage-collection-description {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    display: block;
    margin-bottom: 3.5rem;
}

.homepage-collection-cta-wrap {
    position: absolute;
    bottom: 0;
    left: calc(42% + 1.5rem);
    right: 0;
}

.homepage-collection-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 0;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.homepage-collection-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.homepage-collection-clear {
    clear: both;
}

@media (min-width: 640px) {
    .homepage-product-tabs-section .squarewoo-product-tabs-products > li.product {
        flex-basis: calc((100% - 0.9rem) / 2);
    }
}

@media (min-width: 1280px) {
    .float-spacer {
        height: 14rem !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .float-spacer {
        height: 8rem !important;
    }
}

@media (min-width: 1024px) {
    .homepage-product-tabs-section .squarewoo-product-tabs-products > li.product {
        flex-basis: calc((100% - 2.4rem) / 4);
    }

    .collection-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .collection-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .homepage-side-menu,
    .homepage-side-menu.is-open {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .homepage-product-tabs-section {
        --sqw-product-tabs-header-clearance: 4.25rem;
        --sqw-product-tabs-block-start: clamp(1.6rem, 5vw, 2.1rem);
        --sqw-product-tabs-block-end: max(0.9rem, env(safe-area-inset-bottom));
    }

    .homepage-product-tabs-section .squarewoo-product-tabs-products > li.product {
        flex-basis: min(68%, 15.2rem);
    }

    .homepage-product-tabs-section .product-image-container {
        aspect-ratio: 3 / 4;
    }

    .homepage-product-tabs-section .product-image-container--style-2 {
        aspect-ratio: 3 / 4;
    }

    .homepage-top-hero-section {
        --sqw-hero-header-clearance: calc(4.25rem + 0.4rem);
        --sqw-hero-section-bottom-gap: max(0.72rem, env(safe-area-inset-bottom));
    }

    .homepage-top-hero-section__inner {
        padding-inline: 0;
    }

    .homepage-top-hero-shell {
        border-radius: 0;
        border-left-width: 0;
        border-right-width: 0;
        box-shadow: none;
    }

    .homepage-main-slider__media {
        aspect-ratio: 1.5/1 !important;
    }

    .homepage-top-hero-progress-wrap {
        bottom: 0.52rem;
        width: min(100%, 430px);
        padding: 0 0.6rem;
    }

    .homepage-top-hero-progress__inner {
        width: min(100%, 290px);
        gap: 0.4rem;
        padding: 0.34rem 0.5rem 0.38rem;
    }

    .homepage-top-hero-progress__value {
        font-size: clamp(0.68rem, 3vw, 0.8rem);
    }

    .homepage-top-hero-progress__track {
        height: 2px;
    }

    .homepage-best-sellers-banner-section .homepage-best-sellers-banner__panel {
        border-radius: 0.95rem;
    }

    .homepage-between-banner-marquee__group {
        padding: 0.68rem 0;
    }

    .homepage-between-banner-marquee__item {
        margin-inline: 0.95rem;
        letter-spacing: 0.06em;
    }

    .homepage-banner-products-section__media-wrap {
        display: none !important;
    }

    .swiper-button-next.product-next-button,
    .swiper-button-prev.product-prev-button {
        width: 36px;
        height: 36px;
        padding: 0.375rem;
        --swiper-navigation-size: 16px;
        opacity: 0.85;
    }

    .swiper-button-next.product-next-button {
        right: 0.25rem;
    }

    .swiper-button-prev.product-prev-button {
        left: 0.25rem;
    }

    .swiper-button-next.product-next-button::after,
    .swiper-button-prev.product-prev-button::after {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-between-banner-marquee__track {
        animation: none !important;
        width: auto;
    }

    .homepage-between-banner-marquee__group[aria-hidden="true"] {
        display: none;
    }
}
