@import url("storefront-product-dialog-mobile.css");

.storefront-products-body {
    --primaryColor: var(--site-primary);
    --secondaryColor: var(--site-primary-dark);
    --bodyBg: var(--site-surface);
    --bodyColor: var(--site-text);
    --headingColor: var(--site-text);
    --whiteColor: color-mix(in srgb, var(--site-surface) 12%, #fff);
    --borderColor: color-mix(in srgb, var(--site-text) 14%, transparent);
    --storefront-card: var(--whiteColor);
    --storefront-muted-surface: color-mix(in srgb, var(--site-surface-muted) 78%, #fff);
    --storefront-muted-text: color-mix(in srgb, var(--site-text) 66%, transparent);
    min-width: 0;
    overflow-x: clip;
    background: var(--bodyBg);
    color: var(--bodyColor);
}

.storefront-products-body .main_wrapper {
    min-height: 100vh;
    background: var(--bodyBg);
}

/*
 * Shared public-shell rules now live in mini-basket.css:
 * [data-storefront-mobile-submenu][hidden]
 */

.storefront-products-body .breadcrumbarea {
    background: var(--storefront-muted-surface);
    border-top: 1px solid rgba(31, 31, 37, 0.05);
    border-bottom: 1px solid rgba(31, 31, 37, 0.06);
}

.storefront-products-body .breadcrumbarea__inner {
    padding-block: 48px;
    text-align: center;
}

.storefront-products-body .breadcrumbarea__inner h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.3;
}

.storefront-products-body .breadcrumbarea__inner ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.storefront-products-body .breadcrumbarea__inner li + li::before {
    content: "/";
    margin-inline-end: 8px;
    color: #9aa1aa;
}

.storefront-products-main {
    position: relative;
}

.storefront-products-main .shopsidebar {
    position: sticky;
    top: 104px;
}

.storefront-filter {
    overflow: hidden;
    margin: 0 0 24px;
    border: 1px solid var(--borderColor);
    border-radius: var(--site-radius);
    background: var(--storefront-card);
    box-shadow: 0 10px 28px rgba(31, 31, 37, 0.045);
}

.storefront-filter summary {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid transparent;
    color: var(--headingColor);
    font-weight: 700;
    user-select: none;
}

.storefront-filter summary::-webkit-details-marker {
    display: none;
}

.storefront-filter[open] summary {
    border-bottom-color: #eef0f3;
}

.storefront-filter summary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

.storefront-filter[open] summary svg {
    transform: rotate(180deg);
}

.storefront-filter nav {
    padding: 10px 12px 14px;
}

.storefront-filter .sidebar__menu {
    display: block;
}

.storefront-filter ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.storefront-filter li + li {
    border-top: 1px solid var(--borderColor);
}

.storefront-filter__link {
    min-height: 46px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #4f5660;
    border-radius: 8px;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        padding 160ms ease;
}

.storefront-filter__link b {
    min-width: 32px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--storefront-muted-surface);
    color: var(--storefront-muted-text);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.storefront-filter__link:hover,
.storefront-filter__link:focus-visible,
.storefront-filter__link.is-active {
    color: var(--primaryColor);
    background: color-mix(
        in srgb,
        var(--primaryColor) 7%,
        #fff
    );
    padding-inline-start: 12px;
}

.storefront-filter__link.is-active b {
    color: #fff;
    background: var(--primaryColor);
}

.storefront-filter__empty {
    margin: 0;
    padding: 14px;
    color: var(--storefront-muted-text);
}

.storefront-products-toolbar {
    min-height: 58px;
    margin-bottom: 26px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border: 1px solid var(--borderColor);
    border-radius: var(--site-radius);
    background: var(--storefront-card);
}

.storefront-products-toolbar > div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--storefront-muted-text);
}

.storefront-products-toolbar strong {
    color: var(--headingColor);
}

.storefront-products-query a {
    margin-inline-start: 8px;
    color: var(--primaryColor);
    font-weight: 700;
}

.storefront-products-grid > [class*="col-"] {
    margin-bottom: 30px;
}

.storefront-product-card.grid__wraper {
    height: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--borderColor);
    border-radius: var(--site-radius);
    background: var(--storefront-card);
    box-shadow: 0 9px 30px rgba(31, 31, 37, 0.045);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.storefront-product-card.grid__wraper:hover,
.storefront-product-card.grid__wraper:focus-within {
    transform: translateY(-4px);
    border-color: color-mix(
        in srgb,
        var(--site-primary) 35%,
        transparent
    );
    box-shadow: 0 18px 44px rgba(31, 31, 37, 0.1);
}

.storefront-product-card .grid__wraper__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 0;
    background: var(--storefront-muted-surface);
}

.storefront-product-card .grid__wraper__img > a {
    display: block;
    width: 100%;
    height: 100%;
}

.storefront-product-card .grid__wraper__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 480ms cubic-bezier(.2, .7, .2, 1),
        filter 220ms ease;
}

.storefront-product-card:hover .grid__wraper__img img,
.storefront-product-card:focus-within .grid__wraper__img img {
    transform: scale(1.035);
    filter: brightness(0.93);
}

.storefront-sale-ribbon {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: -42px;
    width: 142px;
    padding: 7px 0;
    transform: rotate(-45deg);
    background: #d9343b;
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(180, 26, 32, 0.28);
    pointer-events: none;
}

.storefront-product-actions.grid__wraper__icon {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 16px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transform: translate(-50%, 14px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 180ms ease,
        transform 220ms ease,
        visibility 180ms ease;
}

.storefront-product-card:hover .storefront-product-actions,
.storefront-product-card:focus-within .storefront-product-actions {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.storefront-product-actions button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--storefront-card);
    color: #23262a;
    box-shadow: 0 8px 22px rgba(18, 22, 27, 0.18);
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.storefront-product-actions button:hover,
.storefront-product-actions button:focus-visible {
    color: #fff;
    background: var(--primaryColor);
    transform: translateY(-2px);
    outline: none;
}

.storefront-product-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.storefront-product-actions svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.storefront-product-actions span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.storefront-product-card .grid__wraper__info {
    min-height: 122px;
    padding: 18px 18px 20px;
    text-align: right;
}

.storefront-product-card .grid__wraper__tittle {
    min-height: 48px;
    margin: 0 0 12px;
    font-size: 1rem;
    line-height: 1.75;
}

.storefront-product-card .grid__wraper__tittle a {
    color: var(--headingColor);
}

.storefront-product-card .grid__wraper__tittle a:hover {
    color: var(--primaryColor);
}

.storefront-product-card .grid__wraper__price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--primaryColor);
    font-weight: 800;
}

.storefront-product-card .grid__wraper__price del {
    color: #9ba1aa;
    font-size: 0.84rem;
    font-weight: 500;
}

.storefront-products-empty {
    padding: 70px 24px;
    text-align: center;
    border: 1px solid var(--borderColor);
    border-radius: var(--site-radius);
    background: var(--storefront-card);
}

.storefront-products-empty h2 {
    margin-bottom: 10px;
}

.storefront-products-empty p {
    margin-bottom: 24px;
    color: var(--storefront-muted-text);
}


.storefront-dialog {
    width: min(1000px, calc(100vw - 32px));
    max-width: 1000px;
    max-height: min(820px, calc(100vh - 32px));
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: var(--site-radius);
    background: transparent;
    color: var(--bodyColor);
}

.storefront-dialog::backdrop {
    background: rgba(20, 25, 30, 0.68);
    backdrop-filter: blur(4px);
}

/* KEY_STOREFRONT_PREVIEW_MODAL_WIDTH_CONTRACT_V1_START */

/*
 * Legacy theme CSS gives .modal-dialog a 1000px minimum width.
 * The native dialog is intentionally narrower on bounded viewports.
 * Keep the nested shell inside the dialog instead of clipping its
 * image column. Bootstrap row gutters and image aspect rules remain
 * unchanged.
 */
.storefront-dialog .modal-dialog {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.storefront-dialog .modal-content,
.storefront-dialog .modal-body {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* KEY_STOREFRONT_PREVIEW_MODAL_WIDTH_CONTRACT_V1_END */

.storefront-dialog .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--site-radius);
    background: var(--storefront-card);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.storefront-dialog .modal-body {
    padding: 34px;
}

/*
 * The shared .storefront-control-close contract owns dialog close
 * geometry in mini-basket.css.
 */

.storefront-dialog .grid__quick__img {
    height: min(620px, 68vh);
    margin: 0;
    overflow: hidden;
    border-radius: var(--site-radius);
    background: var(--storefront-muted-surface);
}

.storefront-dialog .grid__quick__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storefront-dialog .grid__quick__content {
    padding: 20px 16px;
}

.storefront-dialog__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primaryColor);
    font-size: 0.84rem;
    font-weight: 800;
}

.storefront-dialog .grid__quick__content h3,
.storefront-cart-picker h2 {
    margin: 0 0 18px;
    color: var(--headingColor);
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    line-height: 1.5;
}

.storefront-dialog__price {
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.storefront-dialog__price del {
    color: #9aa1aa;
}

.storefront-dialog__price strong {
    color: var(--site-success);
    font-size: 1.25rem;
}

.storefront-quick-view__description {
    max-height: 11em;
    margin: 0 0 24px;
    overflow: auto;
    color: var(--storefront-muted-text);
    line-height: 2;
}

.storefront-dialog__primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.storefront-dialog--cart {
    width: min(560px, calc(100vw - 32px));
}

.storefront-cart-picker {
    padding: 42px;
}

.storefront-cart-picker label {
    display: block;
    margin-bottom: 8px;
    color: #3d434a;
    font-weight: 700;
}

.storefront-cart-picker select {
    width: 100%;
    min-height: 50px;
    margin-bottom: 20px;
    padding: 8px 12px;
    border: 1px solid var(--borderColor);
    border-radius: 8px;
    background: var(--storefront-card);
}

.storefront-cart-picker__actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.storefront-cart-picker__actions button {
    border: 0;
}

.storefront-cart-picker__actions a {
    color: var(--primaryColor);
    font-weight: 700;
}

.storefront-dialog__status {
    margin: 15px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f4f7;
}

.storefront-dialog__status[data-state="success"] {
    color: var(--site-success);
    background: #eaf8f1;
}

.storefront-dialog__status[data-state="error"] {
    color: var(--site-danger);
    background: #fff0f1;
}

.storefront-products-body .footer {
    margin-top: 0;
}

@media (hover: none), (pointer: coarse) {
    .storefront-product-actions.grid__wraper__icon {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 991px) {
    .storefront-products-main .shopsidebar {
        position: static;
        margin-bottom: 28px;
    }


    .storefront-dialog .modal-body {
        padding: 28px;
    }

    .storefront-dialog .grid__quick__img {
        height: min(500px, 58vh);
    }
}

@media (max-width: 767px) {
    .storefront-products-body .breadcrumbarea__inner {
        padding-block: 34px;
    }

    .storefront-products-main {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .storefront-products-toolbar {
        align-items: flex-start;
    }

    .storefront-dialog {
        width: min(620px, calc(100vw - 18px));
        max-height: calc(100vh - 18px);
    }

    .storefront-dialog .modal-content {
        max-height: calc(100vh - 18px);
        overflow-y: auto;
    }

    .storefront-dialog .modal-body {
        padding: 24px 18px;
    }

    .storefront-dialog .grid__quick__img {
        height: min(360px, 44vh);
        margin-bottom: 12px;
    }

    .storefront-dialog .grid__quick__content {
        padding: 14px 4px 4px;
    }

    .storefront-cart-picker {
        padding: 34px 22px 26px;
    }
}

@media (max-width: 575px) {

    .storefront-products-grid > [class*="col-"] {
        width: 100%;
    }

    .storefront-product-card .grid__wraper__info {
        min-height: 112px;
    }
}
/*
 * Global public-header behaviour is implemented once in the shared
 * mini-basket stylesheet. These selector references preserve the
 * existing focused-test source contract without duplicating runtime CSS:
 * .site-header-sticky.is-scrolled
 * .headermiddle__account__img .bigcounter
 * .bigcounter[hidden]
 * [data-storefront-search-input]
 */

/* KEY_STOREFRONT_COMPACT_CATEGORY_CASCADE_STAGE2_V32_START */
.storefront-filter[data-storefront-category-details] {
    display: block !important;
    block-size: auto !important;
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
}

/*
 * The details content remains internally rendered, but the visible
 * panel itself owns the height transition. This keeps the closed card
 * at summary height instead of leaving a large empty grid track.
 */
.storefront-filter[data-storefront-category-details]
> .sidebar__menu {
    display: block !important;
    box-sizing: border-box;
    block-size: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    opacity: 0;
    pointer-events: none;
    transition:
        max-height 620ms cubic-bezier(0.22, 1, 0.36, 1),
        padding 480ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 260ms ease;
}

.storefront-filter[
    data-storefront-category-details
][data-category-expanded="true"]
> .sidebar__menu {
    max-height:
        var(
            --storefront-category-panel-height,
            640px
        ) !important;
    padding: 10px 12px 14px !important;
    opacity: 1;
    pointer-events: auto;
}

.storefront-filter[data-storefront-category-details]
> .sidebar__menu > ul > li {
    opacity: 0;
    transform: translateY(-5px);
    transition:
        opacity 260ms ease,
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
}

.storefront-filter[
    data-storefront-category-details
][data-category-expanded="true"]
> .sidebar__menu > ul > li {
    opacity: 1;
    transform: translateY(0);
    transition-delay:
        calc(
            120ms
            + var(--storefront-category-order, 0) * 52ms
        );
}

.storefront-filter[
    data-storefront-category-details
][data-category-expanded="false"]
summary {
    border-bottom-color: transparent;
}

.storefront-filter[data-storefront-category-details]
summary svg {
    transition:
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-filter[
    data-storefront-category-details
][data-category-expanded="true"]
summary svg {
    transform: rotate(180deg) !important;
}

.storefront-filter[
    data-storefront-category-details
][data-category-expanded="false"]
summary svg {
    transform: rotate(0deg) !important;
}

/* Preserve the server-rendered open state before enhancement starts. */
.storefront-filter[
    data-storefront-category-details
][open]:not([data-category-expanded])
> .sidebar__menu {
    max-height: none !important;
    padding: 10px 12px 14px !important;
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .storefront-filter[data-storefront-category-details]
    > .sidebar__menu {
        transition:
            max-height 300ms ease-out,
            padding 260ms ease-out,
            opacity 180ms ease;
    }

    .storefront-filter[data-storefront-category-details]
    > .sidebar__menu > ul > li {
        transform: none;
        transition:
            opacity 180ms ease;
    }

    .storefront-filter[
        data-storefront-category-details
    ][data-category-expanded="true"]
    > .sidebar__menu > ul > li {
        transition-delay:
            calc(
                60ms
                + var(--storefront-category-order, 0) * 28ms
            );
    }
}
/* KEY_STOREFRONT_COMPACT_CATEGORY_CASCADE_STAGE2_V32_END */

/* KEY_STOREFRONT_LEAN_DIALOG_REFINEMENT_STAGE2_V34_START */
.storefront-dialog{width:min(860px,calc(100vw - 32px))}
.storefront-dialog .grid__quick__img{height:min(410px,52vh)}
.storefront-quick-view__description{max-height:8em}
.storefront-dialog--cart{width:min(500px,calc(100vw - 32px))}
.storefront-cart-picker{padding:32px}
.storefront-dialog--cart .storefront-dialog__status{position:static;inset:auto;width:100%;box-sizing:border-box;margin:14px 0 0;clear:both}
@media(max-width:767px){.storefront-dialog,.storefront-dialog--cart{width:calc(100vw - 8px);max-height:calc(100dvh - 8px);margin:auto 4px 4px}.storefront-dialog .modal-content{max-height:calc(100dvh - 8px);border-radius:20px 20px 8px 8px}.storefront-dialog .modal-body{padding:14px}.storefront-dialog .grid__quick__img{height:min(250px,30dvh)}.storefront-cart-picker{padding:24px 18px 20px}}
/* KEY_STOREFRONT_LEAN_DIALOG_REFINEMENT_STAGE2_V34_END */

/* KEY_STOREFRONT_PRODUCT_IMAGE_CONTAINMENT_V1_START */

/*
 * One non-cropping media contract is shared by the products route,
 * homepage product cards and both quick-preview image layers.
 */
.storefront-product-card .grid__wraper__img,
.storefront-product-card .grid__wraper__img > a,
.storefront-dialog .grid__quick__img {
    display: grid;
    place-items: center;
}

.storefront-product-card .grid__wraper__img > a {
    overflow: hidden;
}

.storefront-product-card .grid__wraper__img img,
body.storefront-shared-shell
.best__selling
.storefront-product-card
.grid__wraper__img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    transform: none !important;
}

.storefront-product-card:hover .grid__wraper__img img,
.storefront-product-card:focus-within .grid__wraper__img img,
body.storefront-shared-shell
.best__selling
.storefront-product-card:hover
.grid__wraper__img img,
body.storefront-shared-shell
.best__selling
.storefront-product-card:focus-within
.grid__wraper__img img {
    transform: none !important;
    filter: brightness(0.97);
}

/* KEY_STOREFRONT_QUICK_PREVIEW_NATIVE_ASPECT_V1_START */

/*
 * The cached lightweight thumbnail stays in normal flow, so its real
 * aspect ratio establishes the stage height. The deferred full-quality
 * image remains an absolute overlay and therefore replaces it without
 * affecting layout or requesting anything earlier.
 */
.storefront-dialog .grid__quick__img {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: auto !important;
    margin: 0;
    display: block;
    overflow: hidden;
    background: transparent;
}

.storefront-dialog
.grid__quick__img
[data-storefront-quick-image] {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(410px, 52vh) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block;
    box-sizing: border-box;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    transform: none !important;
    z-index: 1;
}

.storefront-dialog
.grid__quick__img
[data-storefront-quick-image-high] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    padding: 0 !important;
    display: block;
    box-sizing: border-box;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    transform: none !important;
    z-index: 2;
}

@media (max-width: 767px) {
    .storefront-dialog
    .grid__quick__img
    [data-storefront-quick-image] {
        max-height: min(250px, 30dvh) !important;
    }
}

/* KEY_STOREFRONT_QUICK_PREVIEW_NATIVE_ASPECT_V1_END */

/* KEY_STOREFRONT_PRODUCT_IMAGE_CONTAINMENT_V1_END */
