/* Small supporting labels only; keep established headings and body sizes. */
@media (max-width: 1024px) {
    body .catalogue-merch-badges > span,
    body .zl-product-badges > span { font-size: 11px !important; line-height: 1.3; padding: 6px 9px !important; letter-spacing: .025em !important; }
    body .catalogue-merch-badges { flex-wrap: wrap; gap: 5px; }
    body .zl-product-shape,
    body .zl-product-card__details > p { font-size: 11px !important; line-height: 1.45; }
    body .zl-swatches > span,
    body .zl-price del { font-size: 12px !important; }
    body .zl-active-filters a,
    body .zl-pagination-progress { font-size: 12px; }
    body .vp-cart-meta span,
    body .vp-cart-item-label,
    body .vp-cart-secure,
    body .vp-cart-benefits span { font-size: 12px; line-height: 1.5; }
    body .vp-cart-summary-total small { font-size: 11px; line-height: 1.5; }
    body .vp-product-page .vp-whatsapp-copy small { font-size: 12px; line-height: 1.5; }
    body .vp-product-page .vp-sunglasses-rx-actions a { font-size: 12px; }
    body .vp-product-page .vp-measurement-value { font-size: 11px; }
    body .product-cart-wrap:not(.small) .product-badges.product-badges-position span.hot > .vp-ar-tryon,
    body .zl-product-card.product-cart-wrap .product-badges.product-badges-position span.hot > .vp-ar-tryon,
    body.vp-product-detail-active .vp-product-page .vp-related .zl-product-card.product-cart-wrap:not(.small) .product-badges.product-badges-position span.hot > .vp-ar-tryon {
        font-size: 11px !important;
        min-height: 29px !important;
    }
}

/* Keep complete cookie labels on consistent button rows. */
body .vp-consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .vp-consent__actions > button {
    min-width: 0; min-height: 44px; padding: 9px 8px;
    font-size: 13px; line-height: 1.4; white-space: nowrap;
}
@media (max-width: 600px) {
    body .vp-consent__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .vp-consent__actions > .vp-consent__accept { grid-column: 1 / -1; }
}

/* A narrow buying panel gets a full-width WhatsApp action below its copy. */
.vp-buy-panel { container-type: inline-size; container-name: product-buy; }
body .vp-whatsapp-order-row a { white-space: nowrap; justify-content: center; flex-shrink: 0; }
body .vp-whatsapp-order-row a svg { flex-shrink: 0; }
@container product-buy (max-width: 460px) {
    body .vp-whatsapp-order-row { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
    body .vp-whatsapp-order-row a { grid-column: 1 / -1; min-height: 42px; font-size: 13px; }
}
@media (max-width: 600px) {
    body .vp-whatsapp-order-row { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
    body .vp-whatsapp-order-row a { grid-column: 1 / -1; min-height: 42px; font-size: 13px; }
}

/* Badge priority applies only to landing and catalogue cards. */
.vp-catalogue-layout-toolbar { display: none; }
@media (max-width: 767.98px) {
    .vp-priority-badges .vp-secondary-badge { display: none !important; }
    .is-mobile-single-view .vp-priority-badges .vp-secondary-badge { display: inline-flex !important; }
    .zl-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .zl-product-grid.is-mobile-single-view { grid-template-columns: minmax(0, 1fr) !important; }
    .vp-catalogue-layout-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
    .homepage-product-stack .vp-mobile-product-toolbar { display: grid; width: 34px; height: 34px; }
    .vp-catalogue-layout-toolbar .vp-mobile-layout-toggle,
    .homepage-product-stack .vp-mobile-layout-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #d7d2ff; border-radius: 8px; background: #f1efff; color: #4b38ee; }
    .vp-mobile-layout-toggle:focus-visible { outline: 2px solid #4b38ee; outline-offset: 3px; }
    .vp-mobile-layout-toggle__glyph { display: grid; width: 16px; height: 14px; grid-template-columns: 1fr 1fr; gap: 3px; }
    .vp-mobile-layout-toggle__glyph i { display: block; border: 1.7px solid currentColor; border-radius: 2px; }
    .vp-mobile-layout-toggle[data-layout="single"] .vp-mobile-layout-toggle__glyph { grid-template-columns: 1fr; width: 11px; }
    .vp-mobile-layout-toggle[data-layout="single"] .vp-mobile-layout-toggle__glyph i:last-child { display: none; }
    .homepage-product-stack .homepage-product-carousel.is-mobile-two-view > .homepage-product-slide { flex: 0 0 50% !important; }
    .homepage-product-stack .homepage-product-carousel.is-mobile-single-view > .homepage-product-slide { flex: 0 0 91% !important; }
}

/* Currency and amount are one unit; old prices may occupy their own row. */
body .product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
body .product-price > span,
body .vp-cart-price > strong,
body .vp-cart-price > del,
body .vp-cart-summary-row > strong,
body .vp-cart-summary-total > strong { white-space: nowrap; }
body .vp-cart-price { flex-wrap: wrap; gap: 4px 8px; }
body .vp-cart-summary-total { flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
body .vp-cart-summary-total > small { flex-basis: 100%; color: #777e89; font-size: 11px; line-height: 1.5; }

/* Preserve the complete category artwork at its natural aspect ratio. */
.zl-category-banner picture { display: block; }
.zl-category-banner img { display: block; width: 100%; height: auto; object-fit: contain; }

/* Compact category introduction and integrated catalogue controls. */
body .zl-category-heading { padding: 22px 6px 24px; text-align: left; }
body .zl-category-heading h1 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -.02em; }
body .zl-category-heading p { max-width: 760px; margin: 10px 0 0; font-size: 15px; line-height: 1.6; }
.vp-layout-icon-single { display: none; }
@media (max-width: 1024px) {
    body .zl-category-heading { padding: 20px 6px; }
    body .zl-category-heading h1 { font-size: 23px; }
    body .zl-category-heading p { margin-top: 8px; font-size: 14px; line-height: 1.55; }
    body .zl-catalogue-bar { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0; }
    body .zl-catalogue-bar > div:first-child { display: contents; }
    body .zl-catalogue-bar .zl-sort { order: 1; flex: 1 1 0; min-width: 0; max-width: none; }
    body .zl-sort summary { min-height: 48px; padding: 0 6px; border: 0; border-radius: 0; gap: 7px; }
    body .zl-sort summary > span { display: none; }
    body .zl-sort summary > strong { font-size: 14px; white-space: nowrap; }
    body .zl-sort summary > i { margin-left: 2px; margin-right: auto; }
    body .zl-catalogue-bar .zl-filter-trigger { order: 2; min-height: 48px; padding: 0 8px; border: 0; background: white; font-size: 14px; gap: 8px; }
    body .zl-catalogue-bar .vp-catalogue-layout-toolbar { display: flex; order: 3; margin: 0; padding-left: 8px; border-left: 1px solid #e5e5e8; }
    body .vp-catalogue-layout-toolbar .vp-mobile-layout-toggle { width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: #242424; box-shadow: none; }
    body .vp-catalogue-layout-toolbar .vp-mobile-layout-toggle:hover { background: #f5f4f8; }
    body .vp-catalogue-layout-toolbar .vp-mobile-layout-toggle:focus-visible { outline: 2px solid #4b38ee; outline-offset: -3px; }
    .vp-mobile-layout-toggle[data-layout="single"] .vp-layout-icon-grid { display: none; }
    .vp-mobile-layout-toggle[data-layout="single"] .vp-layout-icon-single { display: block; }
    body .zl-catalogue-bar .zl-result-count { order: 4; flex-basis: 100%; padding: 11px 6px; border-top: 1px solid #e5e5e8; font-size: 13px; }
    body .zl-result-count strong { font-size: inherit; }
}

/* Layout selection is a phone-only control on every product listing. */
body .vp-mobile-layout-toggle,
body .vp-mobile-layout-toggle:hover,
body .vp-mobile-layout-toggle:active,
body .vp-mobile-layout-toggle:focus-visible {
    width: 44px !important; height: 44px !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; color: #242424 !important;
    box-shadow: none !important; transform: none !important;
    -webkit-tap-highlight-color: transparent;
}
body .vp-mobile-layout-toggle:focus-visible { outline: 2px solid #4b38ee !important; outline-offset: -3px; }
@media (max-width: 767.98px) {
    body .vp-mobile-product-toolbar { width: 44px; height: 44px; }
}
@media (min-width: 768px) {
    body .vp-catalogue-layout-toolbar,
    body .vp-mobile-product-toolbar,
    body .vp-mobile-layout-toggle { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .vp-priority-badges .vp-secondary-badge { display: none !important; }
}
