.product-mobile-handle, .product-mobile-action, .product-mobile-nav { display: none; }

@media (max-width: 1199px) {
    body:has(.product-row--desktop) {
        --product-mobile-collapsed: 230px;
        --product-mobile-top: calc(var(--product-stock, 0px) + var(--product-admin-visible, 0px));
    }
    html:has(body.product-mobile:not(.is-product-expanded)) { height: 100%; overflow: hidden; }
    body.product-mobile:not(.is-product-expanded) { height: 100dvh; overflow: hidden; }
    body.product-mobile { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    body.product-mobile.product-details-open, body.product-mobile.product-set-open { overflow: hidden; }
    body:has(.product-row--desktop) .bread-crumbs-wrapper { display: none; }
    body:has(.product-row--desktop) .header-stock { position: sticky; top: var(--product-admin-visible, 0px); z-index: 21; }
    body:has(.product-row--desktop) .main-header { position: fixed; top: var(--product-mobile-top); left: 0; width: 100%; margin: 0; z-index: 20; }
    body:has(.product-row--desktop) .main-header__primary { background: transparent; padding: 22px 0; }
    body:has(.product-row--desktop) .main-header__primary:before { display: none; }
    body:has(.product-row--desktop) .main-header__primary .container { padding: 0 20px; }
    body:has(.product-row--desktop) .main-header__logo { margin-right: auto; }
    body:has(.product-row--desktop) .main-header__logo .main-header__logo-link { width: 160px; }
    /* body:has(.product-row--desktop) .main-header__nav,
    body:has(.product-row--desktop) .main-header__buttons > :not(.burger-menu) { display: none; } */
    body:has(.product-row--desktop) .main-header__buttons .burger-menu { display: flex; }
    body:has(.product-row--desktop) .mega-pannel { max-height: calc(100dvh - var(--product-mobile-top) - var(--main-header-primary-height, 80px)); overflow-y: auto; }
    body.is-product-expanded .main-header { display: none; }
    body.product-mobile.product-set-open .main-header { filter: none; }
    .product-wrapper:has(.product-row--desktop) { overflow: visible; }
    .product-wrapper:has(.product-row--desktop) > .container { padding: 0; max-width: none; }
    .product-row.product-row--desktop { display: flex; flex-direction: column; gap: 0; margin: 0 0 32px; isolation: auto; }
    .product-row.product-row--desktop > .product-row__right { order: 0; width: 100%; min-width: 0; }
    .product-row.product-row--desktop > .product-row__left { order: 1; width: 100%; min-width: 0; }
    .product-row--desktop .product-labels,
    .product-row--desktop .product-gallery .product-gallery__nav,
    .product-row--desktop .product-gallery .swiper-button-prev,
    .product-row--desktop .product-gallery .swiper-button-next { display: none !important; }
    .product-row--desktop .product-gallery { width: 100%; max-width: 100%; min-width: 0; overflow: visible; touch-action: pan-y; }
    .product-row--desktop .product-gallery .swiper-wrapper { display: block; width: 100% !important; min-width: 0; gap: 0; transform: none !important; height: auto !important; }
    .product-row--desktop .product-gallery .swiper-slide { width: 100% !important; height: auto !important; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
    .product-row--desktop .product-gallery .swiper-slide:first-child { display: none; }
    .product-row--desktop .product-gallery .swiper-slide { max-width: 100%; margin: 0 !important; flex: none; }
    .product-row--desktop .product-gallery .swiper-slide .product-gallery__item { width: 100%; height: auto; aspect-ratio: 1 / 1.3; border-radius: 0; }
    .product-row--desktop .product-desktop-hero { display: block; position: relative; height: calc(100dvh - var(--product-mobile-top) - var(--product-mobile-collapsed) + 28px); min-height: 280px; }
    .product-row--desktop .product-desktop-hero img { width: 100%; height: 100%; object-fit: cover; }
    body.product-mobile:not(.is-product-expanded) .product-row__left { position: fixed; inset: var(--product-mobile-top) 0 calc(var(--product-mobile-collapsed) - 28px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; z-index: 1; }
    body.product-mobile:not(.is-product-expanded) .product-row__right { position: fixed; bottom: 0; left: 0; height: var(--product-mobile-collapsed); z-index: 10; }
    body.product-mobile:not(.is-product-expanded) .product-aside > :not(.product-mobile-handle):not(.product-aside__top) { display: none; }
    .product-row--desktop .product-aside { padding: 0 16px 20px; border-radius: 28px 28px 0 0; transform: none; will-change: auto; width: 100%; min-height: 100%; background: var(--color-beige-1); }
    .product-row--desktop .product-mobile-handle { display: block; width: 100%; height: 40px; position: relative; border: 0; background: transparent; touch-action: none; cursor: grab; }
    .product-mobile-handle:before { content: ''; position: absolute; width: 50px; height: 3px; border-radius: 3px; background: #d9d9d9; left: calc(50% - 25px); top: 8px; }
    .product-row--desktop .product-aside__top { padding: 0; margin: 0; touch-action: pan-x; }
    body.is-product-expanded .product-row--desktop .product-aside__top { touch-action: pan-y; }
    .product-row--desktop .product-aside__top:before, .product-row--desktop .added-favorite__border { display: none; }
    .product-row--desktop .product-aside__title { max-width: calc(100% - 36px); margin-bottom: 8px; }
    .product-row--desktop .product-aside__title h1 { font-size: 20px; line-height: 1.15; }
    .product-row--desktop .product-aside__top .added-favorite { width: 24px; height: 24px; }
    .product-row--desktop .product-prices__current { font-size: 20px; }
    .product-row--desktop .product-prices__old { font-size: 18px; }
    .product-row--desktop .product-aside > .aside-description, .product-row--desktop .product-aside > .aside-delivery { display: none; }
    .product-row--desktop .product-desktop-preview { display: flex; height: 260px; align-items: center; justify-content: center; padding: 12px; }
    .product-row--desktop .product-desktop-preview img { width: 65%; height: 100%; max-width: 300px; object-fit: contain; }
    .product-row--desktop .product-specifications .product-specifications__item { display: block; margin: 0 0 8px; }
    .product-row--desktop .product-specifications .product-specifications__item .product-specifications__top { display: none; }
    .product-row--desktop .product-specifications__content { max-width: none; }
    .product-row--desktop .product-specifications .select-element .select-element__current,
    .product-row--desktop .product-color-current { display: flex; align-items: center; width: 100%; height: 40px; padding: 6px 16px; border: 0; border-radius: 40px; background: #e9e8e4; color: inherit; font-size: 14px; }
    .product-row--desktop .product-color-current { gap: 10px; text-align: left; }
    .product-row--desktop .product-color-current:after { content: ''; width: 8px; height: 8px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin: -4px 4px 0 auto; }
    .product-row--desktop .product-color-current .product-sku__figure { display: block; position: relative; width: 26px; height: 26px; border-radius: 50%; background-color: currentColor; background-size: cover; flex-shrink: 0; }
    .product-row--desktop .product-specifications__list { display: none; padding: 10px; background: #e9e8e4; border-radius: 20px; margin-top: 6px; }
    .product-row--desktop .is-color-open .product-specifications__list { display: flex; }
    .product-row--desktop .product-specifications .select-element .select-element__pannel { top: calc(100% + 6px); border: 0; border-radius: 20px; background: #e9e8e4; padding: 8px; box-shadow: 0 4px 16px #0002; }
    .product-row--desktop .product-specifications .select-element__pannel .product-sku { min-height: 40px; height: auto; padding: 10px 16px; border-radius: 20px; font-size: 14px; }
    .product-row--desktop .product-specifications .select-element__pannel .product-sku:before { display: none; }
    .product-row--desktop .product-specifications .select-element__pannel .product-sku.is-active { background: #deddd8; }
    .product-row--desktop .product-specifications .select-element__pannel .product-sku .product-sku__name { padding: 0; }
    .product-row--desktop .product-desktop-extras { display: grid; gap: 8px; margin: 0 0 24px; }
    .product-row--desktop .product-set-button__open { display: flex; align-items: center; height: 40px; padding: 0 24px; border: 1px dashed var(--color-border); border-radius: 40px; background: transparent; color: inherit; text-align: left; font-size: 14px; }
    .product-row--desktop .product-set-button__remove { display: flex; align-items: center; background: transparent; color: inherit; }
    .product-row--desktop .product-mobile-nav { display: flex; justify-content: space-around; gap: 4px; padding: 8px; margin: 24px 0; background: #e9e8e4; border-radius: 40px; }
    .product-mobile-nav button { border: 0; background: transparent; color: inherit; padding: 10px 4px; font-size: 14px; }
    .product-row--desktop .aside-btns { margin: 0; }
    .product-row--desktop .aside-btns > div { display: none !important; }
    .product-row--desktop .aside-btns .js-buy_product_btn { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; line-height: 1; font-size: 14px; }
    .product-row--desktop .product-mobile-action { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--color-beige-1); }
    .product-row--desktop .product-mobile-action.is-past-product { visibility: hidden; pointer-events: none; }
    .product-mobile-action__button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0; border-radius: 40px; background: var(--color-yellow); color: var(--color-text); padding: 12px 16px; font-size: 16px; }
    .product-mobile-action__button:before { content: ''; width: 22px; height: 22px; background: url('../../../../assets/img/detail_plus.svg') center / contain no-repeat; }
    .product-mobile-action__button:disabled { opacity: .6; }
    .style-purple .product-mobile-action__button { background: var(--color-purple); color: white; }
    body.is-product-expanded .product-row--desktop { padding-top: 12px; }
    body.is-product-expanded .product-row__left { position: relative; padding: 0 16px; background: var(--color-beige-1); }
    body.is-product-expanded .product-row--desktop .product-desktop-hero { height: auto; aspect-ratio: 1 / 1.3; overflow: hidden; border-radius: 24px; margin-bottom: 16px; }
    body.is-product-expanded .product-row--desktop .product-desktop-hero img { position: absolute; inset: 0; }
    body.is-product-expanded .product-row--desktop .product-gallery .swiper-slide .product-gallery__item { border-radius: 24px; margin-bottom: 16px; }
    body.is-product-expanded .information-product { padding-inline: 16px; }

    .product-row--desktop .product-last-picture { display: block; position: relative; width: 100%; min-width: 0; max-width: 100%; min-height: 620px; aspect-ratio: 1 / 1.6; overflow: hidden; padding: 18px; background: var(--color-beige-1); }
    .product-last-picture__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .product-last-picture__card { position: absolute; bottom: 18px; left: 18px; right: 18px; padding: 24px; border-radius: 20px; background: #f5f5f3; display: flex; flex-direction: column-reverse; gap: 32px; }
    .product-last-picture__nav { display: flex; gap: 10px; }
    .product-last-picture__button { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 2px solid #dedede; border-radius: 50%; background: transparent; color: inherit; padding: 0; font-size: 16px; }
    .product-last-picture__button.is-active { border-color: #333; }
    .product-last-picture__texts { display: grid; }
    .product-last-picture__text { grid-area: 1 / 1; visibility: hidden; opacity: 0; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
    .product-last-picture__text.is-active { visibility: visible; opacity: 1; animation: product-mobile-text .4s ease; }
    @keyframes product-mobile-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    body.is-product-expanded .product-last-picture { border-radius: 24px; }

    .product-row.product-row--desktop > .product-details-track { display: none; }
    .product-row.product-row--desktop.is-details-open > .product-details-track { display: block; position: fixed; inset: 0; width: auto; background: #0009; z-index: 40; pointer-events: auto; }
    .product-details { position: absolute; bottom: 0; left: 0; width: 100%; max-height: calc(100dvh - var(--product-mobile-top) - 16px); background: var(--color-beige-1); border-radius: 28px 28px 0 0; overflow: hidden; display: flex; flex-direction: column; }
    .product-details__surface { padding: 24px 18px 16px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
    .product-details__content { padding-top: 8px; }
    .product-details__close { position: absolute; top: 16px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--color-beige-1); color: inherit; font-size: 28px; z-index: 1; }
    .product-details [hidden] { display: none !important; }
    .product-details__description { padding-right: 20px; font-size: 24px; line-height: 1.15; margin-bottom: 24px; }
    .product-details__text { font-size: 14px; line-height: 1.3; }
    .product-details__nav { display: flex; justify-content: space-around; gap: 2px; margin: 0 16px calc(16px + env(safe-area-inset-bottom)); padding: 8px; background: #e9e8e4; border-radius: 40px; flex-shrink: 0; }
    .product-details__nav button { border: 0; border-radius: 40px; padding: 11px 22px; font-size: 14px; background: transparent; color: inherit; }
    .product-details__nav button[aria-expanded="true"] { background: #deddd8; }
    .product-row.product-row--desktop.is-set-open > .product-row__right { z-index: auto; }
    .product-row--desktop.is-set-open { z-index: auto; }
    .product-set-backdrop { z-index: 40; background: #0009; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .product-row--desktop.is-set-open > .product-set-track { position: fixed; inset: auto 0 0; width: 100%; z-index: 41; }
    .product-row--desktop .product-set-card { position: relative; top: auto; max-height: calc(100dvh - var(--product-mobile-top) - 16px); overflow-y: auto; touch-action: pan-y; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
    body.product-mobile .main-header:has(.small-cart.is-open),
    body.product-mobile .main-header:has([data-side-pannel="small-cart"].is-open) { display: block; z-index: 1000; filter: none; pointer-events: auto; }
    body.product-mobile .side-pannel.small-cart,
    body.product-mobile .side-pannel[data-side-pannel="small-cart"] { z-index: 1001; }
    .product-set-card__image { height: 210px; }
    .product-set-card__title { font-size: 26px; }
    .product-set-card__buy { min-height: 50px; }
    .product-row--desktop button:focus-visible { outline: 2px solid var(--color-text) !important; outline-offset: 2px; }
    @media (prefers-reduced-motion: reduce) { .product-last-picture__text.is-active { animation: none; } }
}
