/**
 * Acme audit fixes — additive overrides (does not replace theme CSS).
 * Scoped to avoid disturbing desktop layouts for About, Custom Order, Gallery, Blogs.
 */

/* ========== Mobile search bar — always visible (Figma Home 1 second row) ========== */
@media (max-width: 743px) {
    .acme-header__search {
        display: block !important;
        padding-bottom: 0.75rem !important;
    }

    .acme-header__search-toggle {
        display: none !important;
    }
}

/* ========== Homepage blogs — D2: title 2 lines + ellipsis (all viewports) ========== */
.cms-index-index .acme-home-blog__title,
.cms-page-view.cms-home .acme-home-blog__title,
.acme-home-blog__title-link .acme-home-blog__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* ========== Homepage: blog excerpt (Read More styling unchanged in acme-home.css) ========== */
.acme-home-blog__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .acme-home-blog__excerpt {
        -webkit-line-clamp: 3;
    }
}

/* ========== Homepage carousels — mobile only (desktop uses acme-home.css grids) ========== */
@media (max-width: 743px) {
    .acme-home-carousel {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .acme-home-carousel::-webkit-scrollbar {
        display: none;
    }

    .acme-home-carousel > .acme-product-card,
    .acme-home-carousel > .item.product,
    .acme-home-carousel > .acme-home-blog {
        scroll-snap-align: start;
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }

    .acme-home-products__grid.acme-home-carousel,
    .acme-home-blogs__grid.acme-home-carousel {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1rem !important;
        overflow-x: auto !important;
    }
}

/* Best Selling cards — 16px radius (homepage + similar only; beat home.css `.item.product`) */
.cms-index-index .acme-home-products .acme-product-card,
.cms-index-index .acme-home-products__grid > .item.product.acme-product-card,
.acme-product-card--home {
    border-radius: 16px !important;
    overflow: hidden;
}

/* Trust pills — small phones */
@media (max-width: 430px) {
    body.cms-index-index .acme-home-trust__inner,
    .cms-index-index .acme-home-trust__inner {
        gap: 0.45rem !important;
        padding-inline: 0.25rem !important;
    }

    body.cms-index-index .acme-home-trust__item,
    .cms-index-index .acme-home-trust__item {
        flex: 0 0 4.75rem !important;
        min-width: 4.75rem !important;
        padding: 0.35rem 0.25rem !important;
    }

    body.cms-index-index .acme-home-trust__label,
    .cms-index-index .acme-home-trust__label {
        font-size: clamp(0.75rem, 3.4vw, 0.875rem) !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }
}

/* Shop by Category — desktop: copy under image (mobile overlay in acme-home-mobile.css) */

/* Custom order promo card (homepage band only) */
.acme-home-custom__card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.acme-home-custom__card,
.acme-home-custom__title,
.acme-home-custom__body {
    font-weight: 500;
}

/* ========== About page — badge only (layout stays in acme-about.css) ========== */
.acme-about-hero__badge {
    display: none !important;
}

/* ========== Category PLP ========== */
.acme-category-page .acme-category-banner__cms img,
.acme-category-page .category-view.acme-category-banner img {
    border-radius: 16px !important;
    display: block;
}

/* Breadcrumbs now own the header→banner gap — keep top/bottom equal there.
   (Previously 30px / 1.4vh under the header when crumbs were hidden.) */
.acme-category-page .category-view.acme-category-banner.container {
    margin-top: 0 !important;
}

.acme-subcat-card {
    display: flex !important;
    flex-direction: column !important;
}

.acme-subcat-card__cta {
    margin-top: auto !important;
}

/* ========== Checkout / Register ========== */
.acme-checkout__phone .acme-phone-dial__btn {
    justify-content: center !important;
    text-align: center !important;
}

.acme-checkout__secure svg,
.acme-checkout__lock {
    color: var(--acme-blue, #1f99ce) !important;
}

.acme-checkout__secure > span,
.acme-checkout__secure span:not(.acme-checkout__lock):not(svg *) {
    color: #374151 !important;
}

.acme-checkout__secure a {
    color: #0f2d52 !important;
}

.acme-checkout__secure svg path,
.acme-checkout__lock path {
    stroke: currentColor !important;
    fill: currentColor !important;
}

.acme-register__phone {
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
}

.acme-register__phone .acme-phone-dial {
    display: block !important;
    position: relative !important;
    z-index: 5 !important;
}

.acme-register__phone .acme-phone-dial__panel {
    z-index: 50 !important;
}

.acme-register__check .checkbox {
    position: absolute;
    opacity: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.acme-register__check-label {
    cursor: pointer;
    position: relative;
    padding-left: 1.75rem;
}

/* ========== Sticky off on cart/checkout ========== */
body.acme-cart-page .acme-header__sticky-bar.is-pinned,
body.acme-checkout-page .acme-header__sticky-bar.is-pinned,
body.checkout-cart-index .acme-header__sticky-bar.is-pinned,
body.checkout-index-index .acme-header__sticky-bar.is-pinned {
    position: relative !important;
    box-shadow: none !important;
}

body.acme-cart-page .acme-header__sticky,
body.acme-checkout-page .acme-header__sticky,
body.checkout-cart-index .acme-header__sticky,
body.checkout-index-index .acme-header__sticky {
    height: auto !important;
}

/* ========== PDP — tiers + similar card chrome only ========== */
.acme-pdp-tiers__brand .acme-pdp-tiers__brand-text {
    font-weight: 400;
}

.acme-pdp-tiers__brand-strong {
    font-weight: 700 !important;
}

.acme-pdp-tiers__brand-light {
    font-weight: 400 !important;
}

body.acme-pdp-page .acme-pdp-tiers__brand,
body.acme-pdp-page .acme-pdp-tiers__brand .acme-pdp-tiers__brand-text {
    font-weight: 400 !important;
}

body.acme-pdp-page .acme-pdp-tiers__brand .acme-pdp-tiers__brand-strong {
    font-weight: 700 !important;
}

body.acme-pdp-page .acme-pdp__price .price-final_price .price,
body.acme-pdp-page .acme-pdp__price .price-box .price,
body.acme-pdp-page .acme-pdp__price .price,
body.acme-pdp-page .product-info-price .price,
body.acme-pdp-page .acme-pdp__price-row .price-box .price,
body.acme-pdp-page .acme-pdp__price-row .price-box .special-price .price {
    color: #0f2d52 !important;
}

body.acme-pdp-page .acme-pdp__price .old-price .price,
body.acme-pdp-page .old-price .price,
body.acme-pdp-page .acme-pdp__price .price-box .old-price .price {
    color: #374151 !important;
    text-decoration: line-through !important;
    text-decoration-color: #374151 !important;
}

body.acme-pdp-page .acme-pdp__price .special-price .price,
body.acme-pdp-page .acme-pdp__price .price-box .special-price .price,
body.acme-pdp-page .acme-pdp__price-row .price-box .special-price .price,
body.acme-pdp-page .acme-pdp__price-row .special-price .price {
    color: #0f2d52 !important;
    font-weight: 600 !important;
}

/* PLP cards — match homepage Best Selling chrome (M15) */
body.acme-category-page .acme-product-grid .acme-product-card,
body.catalogsearch-result-index .acme-product-grid .acme-product-card {
    border-radius: 16px !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 2px 20px rgba(15, 45, 82, 0.06) !important;
    overflow: hidden;
}

body.acme-category-page .acme-product-grid .acme-product-card__media,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__media {
    border-radius: 16px 16px 0 0 !important;
}


/* Similar products = homepage card design (M18) */
.acme-pdp-similar .acme-product-card--similar,
.acme-pdp-similar .acme-product-card {
    border-radius: 16px !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 2px 20px rgba(15, 45, 82, 0.06) !important;
    overflow: hidden;
}

.acme-pdp-similar .acme-product-card__media {
    border-radius: 16px 16px 0 0 !important;
}

@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
        position: relative !important;
    }
}

/* ========== Mobile product cards — visible ATC (price row: acme-home-mobile.css) ========== */
@media (max-width: 420px) {
    .acme-product-card--home .acme-product-card__cart {
        min-width: 2.25rem !important;
        min-height: 2.25rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ========== Mobile menu logo ========== */
.lg\:hidden dialog .logo img,
.lg\:hidden dialog [class*="logo"] img {
    max-height: 2.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ========== Sitemap empty state ========== */
.acme-sitemap__empty {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: #f3f5f8;
    color: #5a6a7e;
    font-size: 0.9375rem;
}

/* ========== Desktop layout guards (About, Custom Order, Search) ========== */
/* Undo mistaken global/grid leaks from earlier audit deploys — layout/CSS only. */
@media (min-width: 1800px) {
    .acme-about-hero__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 44.5rem) minmax(0, 1fr) !important;
        align-items: start !important;
        gap: 3.5rem !important;
    }
}

@media (min-width: 744px) {
    .acme-about-why__grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }

    .acme-about-feature {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        max-width: none !important;
    }

    .acme-about-feature__title,
    .acme-about-feature__body {
        text-align: center !important;
    }

    .acme-about-machines__grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .acme-co-cards {
        display: block !important;
    }

    .acme-co-cards__grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .acme-co-hero__content {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 4rem 0 5rem var(--acme-pad-x) !important;
    }

    body.catalogsearch-result-index .page-main,
    body.acme-search-page .page-main {
        padding-inline: 0 !important;
        overflow-x: clip;
    }

    body.catalogsearch-result-index .columns,
    body.acme-search-page .columns {
        padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 10.8vw, 12.875rem)) !important;
        box-sizing: border-box;
    }

    body.catalogsearch-result-index .column.main,
    body.acme-search-page .column.main {
        width: 100% !important;
        max-width: var(--acme-header-inner, 93.3125rem) !important;
        margin-inline: auto;
    }

    .catalogsearch-result-index .acme-product-grid,
    .acme-search-page .acme-product-grid,
    .acme-product-list--search .acme-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Simple / display-attr pills — non-interactive selected chrome */
body.acme-pdp-page .acme-pdp__options--simple .acme-pdp__pill.is-static,
body.acme-pdp-page .acme-pdp__options--display-attr .acme-pdp__pill.is-static {
    cursor: default;
    pointer-events: none;
}

body.acme-pdp-page .acme-pdp__options--display-attr .acme-pdp__pill.acme-pdp__pill--selectable {
    cursor: pointer;
    pointer-events: auto;
}

body.acme-pdp-page .acme-pdp__options--simple a.acme-pdp__pill {
    text-decoration: none;
}

body.acme-pdp-page .acme-pdp__options--simple a.acme-pdp__pill:not(.is-selected):hover {
    border-color: #0f2d52;
}

@media (min-width: 744px) {
    /* Cap info to viewport; scroll options so qty/ATC stay in fold (tall stripe towels). */
    body.acme-pdp-page .acme-pdp__info {
        max-height: calc(100dvh - 7.5rem) !important;
        overflow: hidden !important;
        min-height: 0 !important;
    }

    body.acme-pdp-page .acme-pdp__panel {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body.acme-pdp-page .acme-pdp__options-wrap {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }

    body.acme-pdp-page .acme-pdp__options,
    body.acme-pdp-page .acme-pdp__options--configurable,
    body.acme-pdp-page .acme-pdp__options--simple,
    body.acme-pdp-page .acme-pdp__options-wrap .product-options-wrapper {
        overflow: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        flex: 0 0 auto !important;
    }

    body.acme-pdp-page .acme-pdp__buy {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 5 !important;
    }
}

@media (min-width: 744px) {
    /* Single-image variant: keep one square thumb visible in the vertical rail (MBA + desktop). */
    body.acme-pdp-page .acme-pdp__gallery.acme-gallery--single-thumb .snap-slider > .snap-pager {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        overflow-y: auto !important;
    }
}

@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp__hero {
        align-items: stretch !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-slider,
    body.acme-pdp-page .acme-pdp__gallery [data-slider-type="gallery"] {
        align-items: stretch !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .snap-pager {
        align-self: stretch !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

@media (min-width: 744px) and (max-width: 1799px) {
    body.acme-pdp-page .acme-pdp__gallery .snap-slider,
    body.acme-pdp-page .acme-pdp__gallery [data-slider-type="gallery"] {
        align-items: stretch !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery [data-pager] {
        visibility: visible !important;
        min-height: 0 !important;
        align-self: stretch !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        flex: 0 0 var(--acme-pdp-thumb-w, 7rem) !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager > [data-pager],
    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-pager {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .snap-pager {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Beat stale styles.css acme-thumbs-top-v8 (height:auto + width:100%) */
    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker {
        flex: 0 0 var(--acme-pdp-thumb-w, 7rem) !important;
        width: var(--acme-pdp-thumb-w, 7rem) !important;
        min-width: var(--acme-pdp-thumb-w, 7rem) !important;
        max-width: var(--acme-pdp-thumb-w, 7rem) !important;
        height: var(--acme-pdp-thumb-w, 7rem) !important;
        min-height: var(--acme-pdp-thumb-w, 7rem) !important;
        max-height: var(--acme-pdp-thumb-w, 7rem) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* MBA/laptop PDP — pin qty/ATC; never scroll attributes (both axes visible) */
@media (min-width: 744px) and (max-width: 1799px) {
    body.acme-pdp-page .acme-pdp__info {
        max-height: none !important;
        overflow: visible !important;
        min-height: 0 !important;
        align-self: flex-start !important;
    }

    body.acme-pdp-page .acme-pdp__panel {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
    }

    body.acme-pdp-page .acme-pdp__options-wrap {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    body.acme-pdp-page .acme-pdp__options,
    body.acme-pdp-page .acme-pdp__options--configurable,
    body.acme-pdp-page .acme-pdp__options--simple,
    body.acme-pdp-page .acme-pdp__options-wrap .product-options-wrapper {
        overflow: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        flex: 1 1 auto !important;
    }

    body.acme-pdp-page .acme-pdp__buy {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        overflow: visible !important;
    }

    body.acme-pdp-page .acme-pdp__options--configurable .acme-pdp__option-pills,
    body.acme-pdp-page .acme-pdp__options--configurable .acme-pdp__pill {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ========== D2 — blog Read More (red + underline + arrow) ========== */
.acme-home-blog__more {
    display: inline-flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    gap: 0.35rem !important;
    color: #ad2733 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.12em;
}

.acme-home-blog__more svg {
    stroke: #ad2733 !important;
    color: #ad2733 !important;
}

/* ========== M15 — PLP cards match homepage Best Selling ========== */
body.acme-category-page .acme-product-grid .acme-product-card,
body.catalogsearch-result-index .acme-product-grid .acme-product-card,
.acme-product-list--search .acme-product-grid .acme-product-card {
    border-radius: 16px !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 2px 20px rgba(15, 45, 82, 0.06) !important;
    background: #fff !important;
    overflow: hidden !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__media,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__media {
    border-radius: 16px 16px 0 0 !important;
    aspect-ratio: 1 / 1 !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__info,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.375rem !important;
    padding: 0.625rem 0.75rem 0.875rem !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__head,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__head {
    display: contents !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__name,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__name,
body.acme-category-page .acme-product-grid h3.acme-product-card__name,
body.catalogsearch-result-index .acme-product-grid h3.acme-product-card__name,
body.acme-category-page .acme-product-grid .acme-product-card__name a,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__name a {
    order: 1 !important;
    margin: 0 !important;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 1.125rem !important; /* 18px — match design; was undersized at 13px after h2→h3 */
    font-weight: 700 !important;
    line-height: 1.375rem !important;
    letter-spacing: 0.1px !important;
    color: #0f2d52 !important;
}

/* Parent landing subcategory cards — keep h3 same size as former h2 */
body.acme-category-page h3.acme-subcat-card__name,
.acme-subcat-landing h3.acme-subcat-card__name {
    margin: 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    line-height: 1.22 !important;
    letter-spacing: 0.00625rem !important;
    color: #0f2d52 !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__meta-slot,
body.acme-category-page .acme-product-grid .acme-product-card__meta,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__meta-slot,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__meta {
    order: 2 !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__price,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__price {
    order: 3 !important;
}

body.acme-category-page .acme-product-grid .acme-product-card__actions,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__actions {
    order: 4 !important;
}

/* ========== M16 — PDP price colors (price-row + legacy wrappers) ========== */
body.acme-pdp-page .acme-pdp__price-row .price-box .normal-price .price,
body.acme-pdp-page .acme-pdp__price-row .price-box .price-final_price .price,
body.acme-pdp-page .acme-pdp__price-row .price-box .final-price .price,
body.acme-pdp-page .acme-pdp__price-row .price-box .special-price .price,
body.acme-pdp-page .acme-pdp__price .price-box .normal-price .price,
body.acme-pdp-page .acme-pdp__price .price-box .price-final_price .price,
body.acme-pdp-page .acme-pdp__price .price-box .price,
body.acme-pdp-page .acme-pdp__price .price-box .special-price .price,
body.acme-pdp-page span.price {
    color: #0f2d52 !important;
}

body.acme-pdp-page .acme-pdp__price-row .price-box .old-price .price,
body.acme-pdp-page .acme-pdp__price-row .old-price .price,
body.acme-pdp-page .acme-pdp__price .price-box .old-price .price,
body.acme-pdp-page .acme-pdp__price .old-price .price {
    color: #374151 !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    text-decoration: line-through !important;
    text-decoration-color: #374151 !important;
}

body.acme-pdp-page .acme-pdp__price-row .price-box .special-price .price,
body.acme-pdp-page .acme-pdp__price-row .special-price .price,
body.acme-pdp-page .acme-pdp__price .price-box .special-price .price,
body.acme-pdp-page .acme-pdp__price .special-price .price {
    color: #0f2d52 !important;
    font-weight: 600 !important;
}

/* ========== M18 — Similar Products = homepage cards ========== */
body.acme-pdp-page .acme-pdp-similar .acme-product-card,
body.acme-pdp-page .acme-pdp-similar .acme-product-card--similar {
    border-radius: 16px !important;
    border: 1px solid #e8ecf0 !important;
    box-shadow: 0 2px 20px rgba(15, 45, 82, 0.06) !important;
    background: #fff !important;
    overflow: hidden !important;
}

body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
    border-radius: 16px 16px 0 0 !important;
    aspect-ratio: 1 / 1 !important;
}

@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__info {
        padding: 0.625rem 0.75rem 0.875rem !important;
        gap: 0.375rem !important;
    }
}

@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__info {
        display: grid !important;
        grid-template-areas: "name" "meta" "price" !important;
        padding: 1rem 1rem 0.5rem !important;
        gap: 0.4375rem !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__head {
        display: contents !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__name {
        grid-area: name !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__name a {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__meta-slot,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__meta {
        grid-area: meta !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price {
        grid-area: price !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__meta-line {
        color: #5a6a7e !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__actions {
        display: block !important;
        margin-top: 0 !important;
        padding: 0.375rem 1rem 1rem !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__cart {
        width: 100% !important;
    }
}

body.acme-pdp-page .acme-pdp-similar .acme-product-card__head {
    display: contents !important;
}


/* ========== M10 / D17 — homepage gallery marquee directions ========== */
.acme-gallery__strip-row--left .acme-gallery__strip-track {
    animation: acme-gallery-marquee-left 40s linear infinite !important;
}

.acme-gallery__strip-row--right .acme-gallery__strip-track {
    animation: acme-gallery-marquee-right 40s linear infinite !important;
}

@keyframes acme-gallery-marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes acme-gallery-marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* ========== M13 — About features 2-column on tablet ========== */
@media (min-width: 744px) and (max-width: 743px) {
    .acme-about-feature {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .acme-about-feature__title {
        font-weight: 600 !important;
    }

    .acme-about-why__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .acme-about-machines__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* ========== M20/M22/M23 — Custom Order mobile ========== */
@media (max-width: 767px) {
    .acme-co-hero {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .acme-co-hero__bg {
        position: relative !important;
        inset: auto !important;
        height: 14.5rem !important;
        min-height: 14.5rem !important;
        flex: 0 0 14.5rem !important;
    }

    .acme-co-hero__gradient {
        height: 14.5rem !important;
        bottom: auto !important;
    }

    .acme-co-hero__content {
        background: #fff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .acme-co-hero__title {
        color: #0f2d52 !important;
        text-shadow: none !important;
    }

    .acme-co-hero__subtitle {
        color: #5a6a7e !important;
    }

    .acme-co-cards__grid,
    .acme-co-advantage__grid,
    .acme-co-process__track {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
    }
}

/* ========== X10 — mobile menu logo visible ========== */
@media (max-width: 743px) {
    dialog .logo,
    dialog [class*="logo"] {
        display: block !important;
        margin-bottom: 1rem !important;
    }

    dialog .logo img,
    dialog [class*="logo"] img {
        max-height: 2.5rem !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* ========== Wide desktop — scroll options when tall; pin qty/ATC ========== */
@media (min-width: 1800px) {
    body.acme-pdp-page .acme-pdp__info {
        max-height: calc(100dvh - 7.5rem) !important;
        overflow: hidden !important;
    }

    body.acme-pdp-page .acme-pdp__panel {
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
    }

    body.acme-pdp-page .acme-pdp__options-wrap {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        max-height: none !important;
    }

    body.acme-pdp-page .acme-pdp__options,
    body.acme-pdp-page .acme-pdp__options--configurable,
    body.acme-pdp-page .acme-pdp__options--simple {
        overflow: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
        flex: 0 0 auto !important;
    }
}

/* ========== Homepage hero — no dull gradient / shadow; black headings ========== */
.acme-home-hero__gradient,
.acme-home-hero__slide .acme-home-hero__gradient,
.acme-home-hero__slide:has(img[src*="Hero-Banner-2"]) .acme-home-hero__gradient,
.acme-home-hero__slide:has(img[src*="hero-banner-2"]) .acme-home-hero__gradient,
.acme-home-hero__slide:has(img[src*="slider2_1"]) .acme-home-hero__gradient,
.acme-home-hero__slide:has(img[src*="slider3"]) .acme-home-hero__gradient,
.acme-home-hero__slide:has(img[src*="factory_floor"]) .acme-home-hero__gradient,
.acme-home-hero__slide[data-acme-slide] .acme-home-hero__gradient,
.acme-home-hero__slide--light .acme-home-hero__gradient {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
    pointer-events: none !important;
}

.acme-home-hero__title,
.acme-home-hero__slide .acme-home-hero__title,
.acme-home-hero__slide[data-acme-slide] .acme-home-hero__title,
.acme-home-hero__slide--light .acme-home-hero__title {
    color: #0F2D52 !important;
    text-shadow: none !important;
    filter: none !important;
}

.acme-home-hero__subtitle,
.acme-home-hero__slide .acme-home-hero__subtitle,
.acme-home-hero__slide[data-acme-slide] .acme-home-hero__subtitle {
    text-shadow: none !important;
    filter: none !important;
}

.acme-home-hero__slide[data-acme-slide="1"] .acme-home-hero__btn--ghost,
.acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__btn--ghost {
    color: #0f2d52 !important;
    border-color: #0f2d52 !important;
    background: transparent !important;
}

@media (max-width: 743px) {
    body.cms-index-index .acme-home-hero__slide[data-acme-slide="1"] .acme-home-hero__btn--ghost,
    body.cms-index-index .acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__btn--ghost,
    .cms-index-index .acme-home-hero__slide[data-acme-slide="1"] .acme-home-hero__btn--ghost,
    .cms-index-index .acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__btn--ghost {
        color: #0f2d52 !important;
        border-color: #0f2d52 !important;
        background: transparent !important;
    }
}

/* ========== v23 — MBA PDP gallery: JS --acme-pdp-main-size (Figma ≤711, never hard 550) ========== */
@media (min-width: 744px) and (max-width: 1799px) {
    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .relative,
    body.acme-pdp-page .acme-pdp__gallery #gallery-main,
    body.acme-pdp-page .acme-pdp__gallery [data-track] {
        flex: 0 0 var(--acme-pdp-main-size, min(44.4375rem, 100%)) !important;
        width: var(--acme-pdp-main-size, min(44.4375rem, 100%)) !important;
        max-width: var(--acme-pdp-main-size, min(44.4375rem, 100%)) !important;
        aspect-ratio: 1 / 1 !important;
    }
}

/* ========== H1 — phone hero uses split layout (image strip + copy below) ========== */
@media (max-width: 639px) {
    body.cms-index-index .acme-home-hero__slide,
    .cms-index-index .acme-home-hero__slide,
    body.cms-page-view.cms-home .acme-home-hero__slide {
        min-height: 0 !important;
    }

    body.cms-index-index .acme-home-hero__content,
    .cms-index-index .acme-home-hero__content,
    body.cms-page-view.cms-home .acme-home-hero__content {
        min-height: 0 !important;
        max-width: none !important;
        padding-block: 1.25rem 1.5rem !important;
        text-align: center !important;
    }
}

/* ========== H3 — gallery strip: 4 columns at laptop, 6 at wide desktop ========== */
@media (min-width: 744px) and (max-width: 1279px) {
    .acme-gallery--strip .acme-gallery__grid,
    .acme-gallery__grid--strip {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* ========== G4 — FAQ / prose mobile touch targets ========== */
@media (max-width: 639px) {
    .acme-faq__panel {
        padding-left: 2.25rem !important;
    }

    .acme-cms-prose__toggle,
    .acme-faq__trigger {
        min-height: 2.75rem !important;
        padding-block: 0.5rem !important;
    }
}

/* ========== C4 — Similar Products mobile scroll affordance ========== */
@media (max-width: 639px) {
    body.acme-pdp-page .acme-pdp-similar__grid {
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 0.35rem !important;
        scrollbar-width: thin !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__cart {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }
}

/* ========== P1 / M11 — About stats 2-up through tablet ========== */
@media (min-width: 744px) and (max-width: 743px) {
    .acme-about-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ========== G1 — 320px header: prevent horizontal overflow ========== */
@media (max-width: 374px) {
    .acme-header__top-inner {
        flex-wrap: wrap !important;
        row-gap: 0.5rem !important;
    }

    .acme-header__actions {
        flex: 1 1 100% !important;
        justify-content: flex-end !important;
        max-width: 100% !important;
    }

    .acme-header__cart-badge {
        right: 0 !important;
    }
}

/* ========== D7 REVERTED v26 — restore multi-column gallery page grid ========== */
body.acme-gallery-page .acme-gallery--grid .acme-gallery__marquee,
body.cms-gallery .acme-gallery--grid .acme-gallery__marquee {
    display: none !important;
}

body.acme-gallery-page .acme-gallery--grid .acme-gallery__grid,
body.cms-gallery .acme-gallery--grid .acme-gallery__grid {
    display: grid !important;
    grid-template-columns: repeat(var(--acme-gallery-cols, 3), minmax(0, 1fr)) !important;
}

@media (min-width: 744px) {
    body.acme-gallery-page .acme-gallery--cols-3 .acme-gallery__grid,
    body.cms-gallery .acme-gallery--cols-3 .acme-gallery__grid {
        --acme-gallery-cols: 3;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 743px) {
    body.acme-gallery-page .acme-gallery--grid .acme-gallery__grid,
    body.cms-gallery .acme-gallery--grid .acme-gallery__grid {
        --acme-gallery-cols: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 639px) {
    body.acme-gallery-page .acme-gallery--grid .acme-gallery__grid,
    body.cms-gallery .acme-gallery--grid .acme-gallery__grid {
        --acme-gallery-cols: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ========== v26 — About hero MBA 13/15 (side-by-side, compact height) ========== */
@media (min-width: 744px) and (max-width: 1799px) {
    .acme-about-hero {
        padding-block: clamp(1.25rem, 1.5vw, 1.75rem) clamp(2rem, 3vw, 3rem) !important;
    }

    .acme-about-hero__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: clamp(1.25rem, 2.5vw, 2rem) !important;
        align-items: stretch !important;
    }

    .acme-about-hero__media {
        max-width: 100% !important;
        width: 100% !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }

    .acme-about-hero__img {
        object-fit: cover !important;
    }

    .acme-about-hero__content {
        height: auto !important;
        max-height: none !important;
        justify-content: flex-start !important;
        gap: 0.65rem !important;
    }

    .acme-about-hero__title {
        font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
        line-height: 1.2 !important;
    }

    .acme-about-hero__body {
        font-size: 0.875rem !important;
        line-height: 1.55 !important;
    }

    .acme-about-hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
    }

    .acme-about-stat {
        padding: 0.65rem 0.4rem !important;
    }
}

/* ========== v26 — Footer MBA: all columns in one row ========== */
@media (min-width: 744px) and (max-width: 1799px) {
    .acme-footer__main {
        display: grid !important;
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.75fr)) minmax(0, 0.95fr) !important;
        flex-wrap: unset !important;
        gap: clamp(0.65rem, 1.4vw, 1rem) !important;
        align-items: start !important;
        width: 100% !important;
    }

    .acme-footer__brand,
    .acme-footer__nav,
    .acme-footer__newsletter {
        flex: unset !important;
        flex-basis: auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .acme-footer__brand {
        grid-column: auto !important;
    }

    .acme-footer__about {
        max-width: 100% !important;
        font-size: 0.8125rem !important;
        line-height: 1.45 !important;
    }

    .acme-footer__heading {
        font-size: 0.65rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.5rem !important;
    }

    .acme-footer__list a {
        font-size: 0.8125rem !important;
        line-height: 1.35 !important;
    }

    .acme-footer__newsletter-text {
        font-size: 0.8125rem !important;
        line-height: 1.35 !important;
    }
}

/* ========== v26 — Homepage Our Blogs desktop grid restore ========== */
@media (min-width: 744px) {
    body.cms-index-index .acme-home-blogs__grid,
    body.cms-page-view.cms-home .acme-home-blogs__grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.cms-index-index .acme-home-blogs__header,
    body.cms-page-view.cms-home .acme-home-blogs__header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

/* ========== v26 batch — 10 responsive audit fixes ========== */

/* C1 — leaf PLP stacks on tablet/phone (specificity over desktop grid) */
@media (max-width: 743px) {
    body.acme-category-page.page-layout-2columns-left .columns:not(:has(.acme-subcat-landing)) {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }

    body.acme-category-page.page-layout-2columns-left .columns:not(:has(.acme-subcat-landing)) > .sidebar.sidebar-main,
    body.acme-category-page.page-layout-2columns-left .columns:not(:has(.acme-subcat-landing)) > .column.main {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

/* C2 — PLP touch targets */
@media (max-width: 743px) {
    .acme-cat-nav__toggle,
    .acme-cat-nav__child,
    .acme-product-card__wish-btn,
    body.acme-category-page .acme-product-card__cart {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }
}

/* C3 — PDP option pills touch-safe on phone */
@media (max-width: 639px) {
    body.acme-pdp-page .acme-pdp__pill {
        min-height: 2.75rem !important;
        padding-block: 0.5rem !important;
    }

    /* One row of tiers (was 2-col + odd span → third card alone on row 2) */
    body.acme-pdp-page .acme-pdp-tiers__cols {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    body.acme-pdp-page .acme-pdp-tiers__col:last-child:nth-child(odd) {
        grid-column: auto !important;
    }
}

/* C5 — search toolbar controls */
@media (max-width: 743px) {
    body.catalogsearch-result-index .sorter-action,
    body.catalogsearch-result-index .sorter-options,
    body.catalogsearch-result-index .limiter-options {
        min-height: 2.75rem !important;
    }
}

/* G2 — header icon hit areas on phone */
@media (max-width: 743px) {
    #menu-search-icon,
    #menu-cart-icon,
    .acme-header__actions .acme-btn {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }
}

/* G3 — footer touch targets on phone */
@media (max-width: 640px) {
    .acme-footer__social-link,
    .acme-footer__newsletter-btn {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }

    .acme-footer__list a {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 2.75rem !important;
        padding-block: 0.35rem !important;
    }
}

/* P2 — auth secondary controls */
@media (max-width: 743px) {
    .acme-login__show-pw,
    .acme-register__show-pw,
    .acme-login__forgot,
    .acme-login__link,
    .acme-register__link {
        min-height: 2.75rem !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* P4 / D8 — sitemap link touch rows */
@media (max-width: 743px) {
    .acme-sitemap__link,
    .acme-sitemap__category-link {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 2.75rem !important;
        padding-block: 0.35rem !important;
    }
}

/* H2 — homepage hero dots + wishlist hit areas */
@media (max-width: 743px) {
    .acme-home-hero__dot {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }

    .acme-product-card__wish-btn {
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
    }
}

/* M19 — category banner mobile inset guard */
@media (max-width: 639px) {
    body.acme-category-page .category-view.acme-category-banner.container {
        margin-inline: 0.75rem !important;
    }
}

/* ========== v27 — final overrides (load last in bundle) ========== */

/* Homepage Our Blogs — 4-up desktop; undo mobile carousel/flex leaks */
@media (min-width: 744px) {
    body.cms-index-index .acme-home-blogs__grid,
    .cms-index-index .acme-home-blogs__grid,
    body.cms-page-view.cms-home .acme-home-blogs__grid,
    body.cms-index-index .acme-home-blogs__grid.acme-home-carousel,
    .cms-index-index .acme-home-blogs__grid.acme-home-carousel,
    body.cms-page-view.cms-home .acme-home-blogs__grid.acme-home-carousel {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        flex-wrap: unset !important;
        overflow: visible !important;
        gap: 1.15rem !important;
    }

    body.cms-index-index .acme-home-blogs__header,
    .cms-index-index .acme-home-blogs__header,
    body.cms-page-view.cms-home .acme-home-blogs__header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }

    body.cms-index-index .acme-home-blogs__header .acme-home-section-title,
    .cms-index-index .acme-home-blogs__header .acme-home-section-title,
    body.cms-page-view.cms-home .acme-home-blogs__header .acme-home-section-title,
    body.cms-index-index .acme-home-blogs__header .acme-home-outline-btn,
    .cms-index-index .acme-home-blogs__header .acme-home-outline-btn,
    body.cms-page-view.cms-home .acme-home-blogs__header .acme-home-outline-btn {
        order: unset !important;
        width: auto !important;
    }

    body.cms-index-index .acme-home-blogs__inner,
    .cms-index-index .acme-home-blogs__inner,
    body.cms-page-view.cms-home .acme-home-blogs__inner {
        display: block !important;
    }
}

/* Simple + wide desktop PDP — full Figma hero (≥1800px only; MBA stays 550px) */
@media (min-width: 1800px) {
    body.acme-pdp-page.page-product-simple .acme-pdp__hero {
        align-items: flex-start !important;
    }

    body.acme-pdp-page.page-product-simple .acme-pdp__info,
    body.acme-pdp-page.page-product-simple .acme-pdp__panel {
        min-width: 0 !important;
    }

    body.acme-pdp-page.page-product-simple .acme-pdp__options--simple .acme-pdp__option-pills {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
}

/* v28 — About hero full desktop: content column matches image height */
@media (min-width: 1800px) {
    .acme-about-hero__inner {
        align-items: stretch !important;
    }

    .acme-about-hero__content {
        align-self: stretch !important;
        justify-content: space-between !important;
        height: auto !important;
    }
}

/* v28 — Wide desktop PDP: stop gallery main spilling right */
@media (min-width: 1800px) {
    body.acme-pdp-page .acme-pdp__hero {
        overflow: hidden !important;
    }

    body.acme-pdp-page .acme-pdp__gallery {
        flex: 0 0 auto !important;
        max-width: calc(var(--acme-pdp-thumb-w) + var(--acme-pdp-gap) + var(--acme-pdp-main-w)) !important;
        overflow: hidden !important;
    }
}

/* ========== v29 batch — mobile homepage, custom order, promo, a11y, CLS, llms ========== */

/* M1 — trust pills on narrow phones (Pixel 7 / iPhone XR / Moto G4 / iPhone 14) */
@media (max-width: 390px) {
    body.cms-index-index .acme-home-trust__inner,
    .cms-index-index .acme-home-trust__inner {
        gap: 0.35rem !important;
        padding-inline: 0.15rem !important;
        justify-content: space-between !important;
    }

    body.cms-index-index .acme-home-trust__item,
    .cms-index-index .acme-home-trust__item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 4.25rem !important;
        padding: 0.3rem 0.15rem !important;
    }

    body.cms-index-index .acme-home-trust__label,
    .cms-index-index .acme-home-trust__label {
        font-size: clamp(0.75rem, 3.4vw, 0.875rem) !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        hyphens: none !important;
    }
}

/* M2 — Shop By Category mobile overlay: acme-home-mobile.css (loads last on homepage) */

/* M3/M4 — Best Selling: prices one row (no horizontal scroll on price-box) */
@media (max-width: 743px) {
    body.cms-index-index .acme-home-products .acme-product-card__price .price-box,
    .cms-index-index .acme-home-products .acme-product-card__price .price-box {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        gap: 0.25rem !important;
        overflow: visible !important;
        overflow-x: visible !important;
    }

    body.cms-index-index .acme-home-products .acme-product-card__price .old-price,
    .cms-index-index .acme-home-products .acme-product-card__price .old-price,
    body.cms-index-index .acme-home-products .acme-product-card__price .special-price,
    .cms-index-index .acme-home-products .acme-product-card__price .special-price {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
}

/* M5/M8 — mobile carousels only; desktop stays grid */
@media (min-width: 744px) {
    body.cms-index-index .acme-home-products__grid.acme-home-carousel,
    .cms-index-index .acme-home-products__grid.acme-home-carousel,
    body.cms-index-index .acme-home-blogs__grid.acme-home-carousel,
    .cms-index-index .acme-home-blogs__grid.acme-home-carousel {
        display: grid !important;
        overflow: visible !important;
        flex-wrap: unset !important;
    }

    body.cms-index-index .acme-home-products__grid,
    .cms-index-index .acme-home-products__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* M6/M7 — custom band + blog excerpt (mobile guard) */
@media (max-width: 767px) {
    .acme-home-custom__card,
    .acme-home-custom__title,
    .acme-home-custom__body {
        font-weight: 500 !important;
        text-align: center !important;
    }

    .acme-home-blog__excerpt {
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
}

/* M21 — PDP main + thumb images: contain (not cover) so clicks/thumbs are not cropped */
body.acme-pdp-page .acme-pdp__gallery #gallery-main img,
body.acme-pdp-page .acme-pdp__gallery [data-track] img,
body.acme-pdp-page .acme-pdp__gallery .snap-marker img,
body.acme-pdp-page .acme-pdp__gallery .snap-pager img,
body.acme-pdp-page .acme-pdp__gallery picture img {
    object-fit: contain !important;
    object-position: center center !important;
}

/* v46 — thumbs stay square without cropping product art */
body.acme-pdp-page .acme-pdp__gallery .snap-pager img,
body.acme-pdp-page .acme-pdp__gallery .snap-marker img,
body.acme-pdp-page .acme-pdp__gallery [data-gallery-role="gallery-placeholder"] .fotorama__nav__frame img {
    object-fit: contain !important;
    background: #f8fafc;
}

/* D14 — sticky header off on cart/checkout (CSS + unpinned guard) */
body.acme-cart-page .acme-header__sticky-bar,
body.acme-checkout-page .acme-header__sticky-bar,
body.checkout-cart-index .acme-header__sticky-bar,
body.checkout-index-index .acme-header__sticky-bar {
    position: relative !important;
    top: auto !important;
    box-shadow: none !important;
}

body.acme-cart-page .acme-header__sticky-spacer,
body.acme-checkout-page .acme-header__sticky-spacer,
body.checkout-cart-index .acme-header__sticky-spacer,
body.checkout-index-index .acme-header__sticky-spacer {
    display: none !important;
    height: 0 !important;
}

/* D19 — additional 44px touch targets */
@media (max-width: 743px) {
    .acme-promo-bar__btn,
    .acme-header__nav-link,
    .acme-co-btn,
    .acme-checkout__place-order,
    .acme-cart__checkout-btn {
        min-height: 2.75rem !important;
    }
}

/* X11 — promo bar visible when enabled (beat stale static CSS) */
.acme-promo-bar {
    display: block !important;
    visibility: visible !important;
    min-height: var(--acme-promo-h, 2.25rem) !important;
    background: linear-gradient(90deg, #1a8fbf 0%, #1f99ce 50%, #23a3d8 100%) !important;
}

.acme-promo-bar__text {
    color: #fff !important;
}

.acme-promo-bar__btn {
    color: #0f2d52 !important;
    background: #fff !important;
    min-height: 1.75rem !important;
}

/* X4 — CLS: reserve promo + hero height before paint */
.acme-promo-bar:empty {
    min-height: var(--acme-promo-h, 2.25rem);
}

@media (max-width: 639px) {
    .acme-home-hero__slide img {
        aspect-ratio: 390 / 416;
        object-fit: cover;
    }
}

/* ========== v30 — M1 trust no-scroll, mobile hero center, custom order guards ========== */

/* M1 — all 4 trust pills visible without horizontal scroll */
@media (max-width: 743px) {
    body.cms-index-index .acme-home-trust__track,
    .cms-index-index .acme-home-trust__track,
    body.cms-page-view.cms-home .acme-home-trust__track {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: clamp(0.25rem, 1.5vw, 0.65rem) !important;
        width: 100% !important;
        max-width: 100% !important;
        scroll-snap-type: none !important;
        -webkit-overflow-scrolling: auto !important;
    }

    body.cms-index-index .acme-home-trust__item,
    .cms-index-index .acme-home-trust__item,
    body.cms-page-view.cms-home .acme-home-trust__item,
    body.cms-index-index .acme-home-trust__item--first,
    .cms-index-index .acme-home-trust__item--first,
    body.cms-page-view.cms-home .acme-home-trust__item--first,
    body.cms-index-index .acme-home-trust__item--last,
    .cms-index-index .acme-home-trust__item--last,
    body.cms-page-view.cms-home .acme-home-trust__item--last {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0.65rem 0.2rem !important;
        gap: 0.2rem !important;
    }

    body.cms-index-index .acme-home-trust__icon,
    .cms-index-index .acme-home-trust__icon,
    body.cms-page-view.cms-home .acme-home-trust__icon {
        width: 2.875rem !important;
        height: 2.875rem !important;
        min-width: 2.875rem !important;
        min-height: 2.875rem !important;
        max-width: 2.875rem !important;
        max-height: 2.875rem !important;
    }

    body.cms-index-index .acme-home-trust__label,
    .cms-index-index .acme-home-trust__label,
    body.cms-page-view.cms-home .acme-home-trust__label {
        font-size: clamp(0.75rem, 3.4vw, 0.875rem) !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        max-width: 100% !important;
    }
}

/* Mobile homepage hero — centered copy + buttons (Figma) */
@media (max-width: 743px) {
    body.cms-index-index .acme-home-hero__content,
    .cms-index-index .acme-home-hero__content,
    body.cms-page-view.cms-home .acme-home-hero__content {
        align-items: center !important;
        text-align: center !important;
        padding-inline: var(--acme-m-pad, 1rem) !important;
    }

    body.cms-index-index .acme-home-hero__title,
    .cms-index-index .acme-home-hero__title,
    body.cms-page-view.cms-home .acme-home-hero__title,
    body.cms-index-index .acme-home-hero__subtitle,
    .cms-index-index .acme-home-hero__subtitle,
    body.cms-page-view.cms-home .acme-home-hero__subtitle {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.cms-index-index .acme-home-hero__actions,
    .cms-index-index .acme-home-hero__actions,
    body.cms-page-view.cms-home .acme-home-hero__actions {
        justify-content: center !important;
        align-items: center !important;
        margin-inline: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.cms-index-index .acme-home-hero__btn,
    .cms-index-index .acme-home-hero__btn,
    body.cms-page-view.cms-home .acme-home-hero__btn {
        flex: 1 1 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* M21 — mobile PDP gallery: cover + no thumb scrollbar (loads last on PDP) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .relative {
        position: relative !important;
        overflow: hidden !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main,
    body.acme-pdp-page .acme-pdp__gallery [data-track] {
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main::-webkit-scrollbar,
    body.acme-pdp-page .acme-pdp__gallery [data-track]::-webkit-scrollbar {
        display: none !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main img,
    body.acme-pdp-page .acme-pdp__gallery [data-track] img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker img {
        object-fit: cover !important;
        object-position: center center !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery [class*="snap-pager"],
    body.acme-pdp-page .acme-pdp__gallery [data-pager] {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager::-webkit-scrollbar,
    body.acme-pdp-page .acme-pdp__gallery [data-pager]::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker {
        min-width: 0 !important;
    }
}

/* PLP mobile — one-row price (current + unit + cut); wins over stale acme-category.css */
@media (max-width: 743px) {
    body.acme-category-page .acme-product-grid .acme-product-card__price .price-box,
    body.catalogsearch-result-index .acme-product-grid .acme-product-card__price .price-box {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        overflow: visible !important;
        overflow-x: visible !important;
    }

    body.acme-category-page .acme-product-grid .acme-product-card__price .old-price,
    body.catalogsearch-result-index .acme-product-grid .acme-product-card__price .old-price {
        display: inline-flex !important;
        order: 2 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    body.acme-category-page .acme-product-grid .acme-product-card__price .old-price .price,
    body.catalogsearch-result-index .acme-product-grid .acme-product-card__price .old-price .price {
        color: #6b7280 !important;
        text-decoration: line-through !important;
        text-decoration-thickness: 1px !important;
    }
}

/* v37 — parent landing: show uploaded category/CMS banners on mobile */
@media (max-width: 743px) {
    body.acme-category-page:has(.acme-subcat-landing) .category-view.acme-category-banner,
    body.acme-category-page:has(.acme-subcat-landing) #category-view-container {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body.acme-category-page:has(.acme-subcat-landing) .acme-category-banner__cms img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* v37 — Similar Products: single strikethrough + readable cut price */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price span.old-price {
        text-decoration: none !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price {
        color: #6b7280 !important;
        text-decoration: line-through !important;
        text-decoration-thickness: 1px !important;
    }
}

/* v37 — PDP mobile: unit baseline with price (not superscript) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__price-row .price-box {
        align-items: baseline !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .special-price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price,
    body.acme-pdp-page .acme-pdp__price-row .price-final_price {
        display: inline-flex !important;
        align-items: baseline !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .special-price .price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price .price {
        line-height: 1.15 !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .acme-product-price-unit {
        line-height: 1 !important;
        vertical-align: baseline !important;
        align-self: baseline !important;
        position: static !important;
        transform: none !important;
    }
}

/* v37 — M21 mobile gallery: cover + no thumb scrollbar (wins over stale static) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .relative {
        position: relative !important;
        overflow: hidden !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main,
    body.acme-pdp-page .acme-pdp__gallery [data-track] {
        position: relative !important;
        height: 100% !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main > div:not(.acme-gallery-slide--hidden),
    body.acme-pdp-page .acme-pdp__gallery [data-track] > div:not(.acme-gallery-slide--hidden),
    body.acme-pdp-page .acme-pdp__gallery #gallery-main button,
    body.acme-pdp-page .acme-pdp__gallery [data-track] button {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        overflow: hidden !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main img,
    body.acme-pdp-page .acme-pdp__gallery [data-track] img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker img,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery [data-pager] {
        overflow: hidden !important;
        scrollbar-width: none !important;
    }
}

/* v37 — parent subcat cards: 2 columns + equal height on mobile phones */
@media (max-width: 743px) {
    body.acme-category-page .acme-subcat-landing__grid,
    body.catalog-category-view .acme-subcat-landing__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    body.acme-category-page .acme-subcat-landing__grid > .acme-subcat-card,
    body.catalog-category-view .acme-subcat-landing__grid > .acme-subcat-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        min-width: 0 !important;
    }

    body.acme-category-page .acme-subcat-card > .acme-subcat-card__inner,
    body.catalog-category-view .acme-subcat-card > .acme-subcat-card__inner {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 100% !important;
    }

    body.acme-category-page .acme-subcat-card__actions,
    body.catalog-category-view .acme-subcat-card__actions {
        margin-top: auto !important;
    }
}

/* Beat stale styles.css ≤559px { grid-template-columns: 1fr } collapse */
@media (max-width: 559px) {
    body.acme-category-page .acme-subcat-landing__grid,
    body.catalog-category-view .acme-subcat-landing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* v38 — PLP + Similar: force one price row (current + unit + cut) — never clip cut price */
@media (max-width: 743px) {
    body.acme-category-page .acme-product-grid .acme-product-card__price .price-box,
    body.acme-category-page .acme-product-grid__item .acme-product-card__price .price-box,
    body.catalogsearch-result-index .acme-product-grid .acme-product-card__price .price-box,
    body.catalogsearch-result-index .acme-product-grid__item .acme-product-card__price .price-box,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 0.2rem 0.35rem !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    body.acme-category-page .acme-product-grid .acme-product-card__price .price-box .special-price,
    body.acme-category-page .acme-product-grid .acme-product-card__price .price-box .normal-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .special-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .normal-price {
        flex: 0 1 auto !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }

    body.acme-category-page .acme-product-grid .acme-product-card__price .old-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: nowrap !important;
    }
}

/* v38 — PDP mobile price: unit baseline with amount (no duplicate external unit) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__price-row {
        display: flex !important;
        align-items: baseline !important;
        flex-wrap: nowrap !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .price-box {
        display: inline-flex !important;
        align-items: baseline !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .special-price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price {
        display: inline-flex !important;
        align-items: baseline !important;
        flex-wrap: nowrap !important;
        gap: 0.2rem !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .price-box .price,
    body.acme-pdp-page .acme-pdp__price-row .special-price .price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price .price {
        line-height: 1.15 !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .acme-product-price-unit {
        order: 2 !important;
        line-height: 1 !important;
        vertical-align: baseline !important;
        align-self: baseline !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.acme-pdp-page .acme-pdp__price-unit {
        display: none !important;
    }
}

/* v38 — M21: hidden scrollbars on main swipe track (iPhone) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__gallery #gallery-main,
    body.acme-pdp-page .acme-pdp__gallery [data-track] {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    body.acme-pdp-page .acme-pdp__gallery #gallery-main::-webkit-scrollbar,
    body.acme-pdp-page .acme-pdp__gallery [data-track]::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* v39 — M21 thumbs: flex 4-up (grid + calc width made thumbs ~6% of row) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__gallery .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery [class*="snap-pager"],
    body.acme-pdp-page .acme-pdp__gallery [data-pager] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.625rem !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker {
        flex: 0 0 calc((100% - 1.875rem) / 4) !important;
        width: calc((100% - 1.875rem) / 4) !important;
        max-width: calc((100% - 1.875rem) / 4) !important;
        min-width: 0 !important;
        aspect-ratio: 1 / 1 !important;
    }
}

/* v39b — Similar cut ABOVE current: mobile only (desktop cut stays right) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 0.15rem !important;
        overflow: visible !important;
        white-space: normal !important;
        max-width: 100% !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price span.old-price {
        order: -1 !important;
        display: block !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-decoration: none !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
        color: #6b7280 !important;
        text-decoration: line-through !important;
        text-decoration-thickness: 1px !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .acme-product-price-unit {
        display: none !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .special-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .normal-price {
        order: 1 !important;
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        gap: 0.25rem !important;
        white-space: nowrap !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .special-price .price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .normal-price .price {
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .acme-product-price-unit {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .minimal-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-from,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .minimal-price-link {
        display: none !important;
    }
}


@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price {
        font-size: clamp(0.5625rem, 2.4vw, 0.6875rem) !important;
        line-height: 1.05 !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .special-price .price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box .normal-price .price {
        font-size: clamp(0.6875rem, 3vw, 0.8125rem) !important;
        line-height: 1.1 !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .acme-product-price-unit {
        font-size: clamp(0.5rem, 2.2vw, 0.625rem) !important;
        line-height: 1.1 !important;
    }
}

/* v41 — PDP price + unit on one baseline row (desktop + mobile) */
body.acme-pdp-page .acme-pdp__price-row .price-box {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
}

body.acme-pdp-page .acme-pdp__price-row .special-price,
body.acme-pdp-page .acme-pdp__price-row .normal-price {
    display: inline-flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
}

body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    flex-flow: row nowrap !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
    max-width: 100% !important;
}

body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line .price-container {
    order: 1 !important;
}

body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line .price-wrapper {
    order: 1 !important;
}

body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line .price {
    order: 1 !important;
    line-height: 1.15 !important;
}

body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line .acme-product-price-unit {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: Montserrat, ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(0.875rem, 2.5vw, 1.25rem) !important;
    line-height: 1 !important;
    color: #5a6a7e !important;
    vertical-align: baseline !important;
    align-self: baseline !important;
    white-space: nowrap !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

body.acme-pdp-page .acme-pdp__price-row .old-price .acme-product-price-unit {
    display: none !important;
}

/* v42 — old/cut price smaller than current (desktop + mobile) */
body.acme-pdp-page .acme-pdp__price-row .old-price .price-container,
body.acme-pdp-page .acme-pdp__price-row .old-price .price-wrapper,
body.acme-pdp-page .acme-pdp__price-row .old-price .price {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: #6b7280 !important;
    text-decoration: line-through !important;
}

@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__price-row .old-price .price-container,
    body.acme-pdp-page .acme-pdp__price-row .old-price .price-wrapper,
    body.acme-pdp-page .acme-pdp__price-row .old-price .price {
        font-size: 1rem !important;
    }

    body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line .price,
    body.acme-pdp-page .acme-pdp__price-row .special-price .price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price .price {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
    }
}

/* v43 — PDP gallery swipe track + price unit server fallback */
body.acme-pdp-page .acme-pdp__gallery #gallery-main,
body.acme-pdp-page .acme-pdp__gallery [data-track] {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x pinch-zoom !important;
    scroll-snap-type: x mandatory !important;
    cursor: grab !important;
}

body.acme-pdp-page .acme-pdp__gallery #gallery-main > *,
body.acme-pdp-page .acme-pdp__gallery [data-track] > * {
    scroll-snap-stop: always !important;
}

body.acme-pdp-page .acme-pdp__price-row .acme-product-price-unit {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* v45 — PDP lightbox: fit image in viewport; only when open (never block page when closed) */
body.acme-pdp-page .acme-pdp__gallery dialog.acme-pdp-lightbox:not([open]) {
    display: none !important;
    pointer-events: none !important;
}

body.acme-pdp-page .acme-pdp__gallery dialog.acme-pdp-lightbox[open] {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    /* Desktop/MBA: pin to main gallery (left of info). Phone centers. */
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: clamp(0.75rem, 3vw, 2rem) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #0000 !important;
}

body.acme-pdp-page .acme-pdp__gallery .acme-pdp-lightbox__frame {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(92vw, 1080px) !important;
    max-width: min(92vw, 1080px) !important;
    height: auto !important;
    max-height: min(88vh, 88svh) !important;
    overflow: hidden !important;
}

body.acme-pdp-page .acme-pdp__gallery dialog .acme-gallery-lightbox__img,
body.acme-pdp-page .acme-pdp__gallery .acme-pdp-lightbox__frame .acme-gallery-lightbox__img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(92vw, 1080px) !important;
    max-height: min(88vh, 88svh) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}

/*
 * Desktop + MBA (≥744): lightbox image left-aligned with main gallery
 * (flush toward thumbnails — never centered / shifted right of the PDP hero).
 * --acme-pdp-lightbox-* set by gallery.phtml when opening.
 */
@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp__gallery dialog.acme-pdp-lightbox[open] {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__gallery .acme-pdp-lightbox__frame {
        position: fixed !important;
        left: var(--acme-pdp-lightbox-left, 12.875rem) !important;
        top: var(--acme-pdp-lightbox-top, 8rem) !important;
        width: var(--acme-pdp-lightbox-size, min(88vh, 44.4375rem)) !important;
        max-width: var(--acme-pdp-lightbox-size, min(88vh, 44.4375rem)) !important;
        height: var(--acme-pdp-lightbox-size, min(88vh, 44.4375rem)) !important;
        max-height: var(--acme-pdp-lightbox-size, min(88vh, 44.4375rem)) !important;
        margin: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        transform: none !important;
    }
    body.acme-pdp-page .acme-pdp__gallery dialog .acme-gallery-lightbox__img,
    body.acme-pdp-page .acme-pdp__gallery .acme-pdp-lightbox__frame .acme-gallery-lightbox__img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: left top !important;
    }
}

body.acme-pdp-page .acme-pdp__gallery #gallery-main img:not(.acme-gallery-lightbox__img),
body.acme-pdp-page .acme-pdp__gallery [data-track] img:not(.acme-gallery-lightbox__img) {
    /* keep cover on track only — never bleed into lightbox */
}

/* v45 — Hyva final-price box + unit (Figma 1019:1761 / 1157:4371) */
body.acme-pdp-page .acme-pdp__price-row .final-price .acme-price-amount-line,
body.acme-pdp-page .acme-pdp__price-row .special-price .acme-price-amount-line,
body.acme-pdp-page .acme-pdp__price-row .normal-price .acme-price-amount-line {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 0.25rem !important;
    white-space: nowrap !important;
}

body.acme-pdp-page .acme-pdp__price-row .final-price .acme-price-amount-line .price-wrapper,
body.acme-pdp-page .acme-pdp__price-row .final-price .acme-price-amount-line .price-container,
body.acme-pdp-page .acme-pdp__price-row .final-price .price-wrapper {
    order: 1 !important;
}

body.acme-pdp-page .acme-pdp__price-row .final-price .acme-product-price-unit,
body.acme-pdp-page .acme-pdp__price-row .special-price .acme-product-price-unit,
body.acme-pdp-page .acme-pdp__price-row .normal-price .acme-product-price-unit {
    order: 2 !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: Montserrat, ui-sans-serif, system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(0.875rem, 2.5vw, 1.25rem) !important;
    line-height: 1 !important;
    color: #5a6a7e !important;
    vertical-align: baseline !important;
    align-self: baseline !important;
    white-space: nowrap !important;
}

body.acme-pdp-page .acme-pdp__price-row .old-price {
    order: 1 !important;
}

body.acme-pdp-page .acme-pdp__price-row .final-price,
body.acme-pdp-page .acme-pdp__price-row .special-price,
body.acme-pdp-page .acme-pdp__price-row .normal-price {
    order: 2 !important;
}

/* Hero — never reintroduce dark scrub / white titles (lifestyle banners are clean) */
.acme-home-hero__slide:has(img[src*="slider2_1"]) .acme-home-hero__gradient,
.acme-home-hero__slide:has(img[src*="slider3"]) .acme-home-hero__gradient,
.acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__gradient {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
}

.acme-home-hero__slide--light:has(img[src*="slider2_1"]) .acme-home-hero__title,
.acme-home-hero__slide:has(img[src*="slider2_1"]) .acme-home-hero__title,
.acme-home-hero__slide:has(img[src*="slider3"]) .acme-home-hero__title,
.acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__title {
    color: #0F2D52 !important;
    text-shadow: none !important;
}

.acme-home-hero__slide--light:has(img[src*="slider2_1"]) .acme-home-hero__subtitle,
.acme-home-hero__slide:has(img[src*="slider2_1"]) .acme-home-hero__subtitle,
.acme-home-hero__slide:has(img[src*="slider3"]) .acme-home-hero__subtitle,
.acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__subtitle {
    text-shadow: none !important;
}

.acme-home-hero__slide--light:has(img[src*="slider2_1"]) .acme-home-hero__btn--ghost,
.acme-home-hero__slide:has(img[src*="slider2_1"]) .acme-home-hero__btn--ghost,
.acme-home-hero__slide:has(img[src*="slider3"]) .acme-home-hero__btn--ghost,
.acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__btn--ghost {
    color: #0f2d52 !important;
    border-color: #0f2d52 !important;
    background: transparent !important;
}

/* MBA 13/15" — same desktop content rail (1493px) as header; compact gutters only */
@media (min-width: 744px) and (max-width: 1799px) {
    body.cms-index-index,
    .cms-index-index,
    body.cms-page-view.cms-home {
        --acme-pad-x: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem));
        --acme-content: 93.3125rem; /* 1493px — match .acme-header__top-inner */
    }

    body.cms-index-index .acme-home-cats,
    .cms-index-index .acme-home-cats,
    body.cms-page-view.cms-home .acme-home-cats,
    body.cms-index-index .acme-home-products,
    .cms-index-index .acme-home-products,
    body.cms-page-view.cms-home .acme-home-products,
    body.cms-index-index .acme-home-custom,
    .cms-index-index .acme-home-custom,
    body.cms-page-view.cms-home .acme-home-custom,
    body.cms-index-index .acme-home-certs,
    .cms-index-index .acme-home-certs,
    body.cms-page-view.cms-home .acme-home-certs,
    body.cms-index-index .acme-home-blogs,
    .cms-index-index .acme-home-blogs,
    body.cms-page-view.cms-home .acme-home-blogs {
        padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
    }

    body.cms-index-index .acme-home-cats__inner,
    .cms-index-index .acme-home-cats__inner,
    body.cms-page-view.cms-home .acme-home-cats__inner,
    body.cms-index-index .acme-home-products__inner,
    .cms-index-index .acme-home-products__inner,
    body.cms-page-view.cms-home .acme-home-products__inner,
    body.cms-index-index .acme-home-blogs__inner,
    .cms-index-index .acme-home-blogs__inner,
    body.cms-page-view.cms-home .acme-home-blogs__inner,
    body.cms-index-index .acme-home-certs__inner,
    .cms-index-index .acme-home-certs__inner,
    body.cms-page-view.cms-home .acme-home-certs__inner,
    body.cms-index-index .acme-home-custom__inner,
    .cms-index-index .acme-home-custom__inner,
    body.cms-page-view.cms-home .acme-home-custom__inner {
        width: min(100%, 93.3125rem) !important;
        max-width: 93.3125rem !important;
        margin-inline: auto !important;
    }

    body.cms-index-index .acme-gallery--strip,
    .cms-index-index .acme-gallery--strip,
    body.cms-page-view.cms-home .acme-gallery--strip {
        --acme-gallery-pad-x: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem));
        --acme-gallery-content: 93.3125rem;
        padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
    }

    body.cms-index-index .acme-gallery--strip .acme-gallery__inner,
    .cms-index-index .acme-gallery--strip .acme-gallery__inner,
    body.cms-page-view.cms-home .acme-gallery--strip .acme-gallery__inner {
        width: min(100%, 93.3125rem) !important;
        max-width: 93.3125rem !important;
        margin-inline: auto !important;
    }
}

/* Custom Order page — MBA 13/15" width aligned with header/footer */
@media (min-width: 744px) and (max-width: 1799px) {
    .acme-custom-order {
        --acme-pad-x: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
        --acme-content: 93.3125rem !important;
    }

    .acme-custom-order .acme-co-cards__grid,
    .acme-custom-order .acme-co-formsec__panel,
    .acme-custom-order .acme-co-advantage__inner,
    .acme-custom-order .acme-co-process__track,
    .acme-custom-order .acme-co-intro,
    .acme-custom-order .acme-co-midcta,
    .acme-custom-order .acme-co-hero__content {
        width: min(100%, 93.3125rem) !important;
        max-width: 93.3125rem !important;
        margin-inline: auto !important;
    }

    .acme-custom-order .acme-co-hero__content,
    .acme-custom-order .acme-co-intro,
    .acme-custom-order .acme-co-cards,
    .acme-custom-order .acme-co-process,
    .acme-custom-order .acme-co-advantage,
    .acme-custom-order .acme-co-midcta,
    .acme-custom-order .acme-co-formsec {
        padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
    }
}

/* Homepage strip — grid only, never duplicate marquee tiles */
body.cms-index-index .acme-gallery--strip .acme-gallery__marquee,
.cms-index-index .acme-gallery--strip .acme-gallery__marquee,
body.cms-page-view.cms-home .acme-gallery--strip .acme-gallery__marquee {
    display: none !important;
}

/* v47 — gallery page mobile: 2 columns, no marquee */
@media (max-width: 767px) {
    body.acme-gallery-page .acme-gallery--grid .acme-gallery__grid,
    body.cms-gallery .acme-gallery--grid .acme-gallery__grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    body.acme-gallery-page .acme-gallery--grid .acme-gallery__marquee,
    body.cms-gallery .acme-gallery--grid .acme-gallery__marquee {
        display: none !important;
    }
}

body.acme-pdp-page .acme-pdp__price-row .price-box .price-container {
    display: inline-flex !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 0.35rem !important;
}

/* v50 — mobile cart qty badge (home1-chrome hid badge + total) */
@media (max-width: 743px) {
    .acme-header__cart-total {
        display: none !important;
    }

    .acme-header__cart,
    .acme-header__cart-icon {
        overflow: visible !important;
    }

    .acme-header__cart-badge {
        display: inline-flex !important;
        top: -0.35rem !important;
        right: -0.35rem !important;
        z-index: 2 !important;
    }
}

/* v53 — PDP tiers brand copy stays white on red badge */
body.acme-pdp-page .acme-pdp-tiers__brand,
body.acme-pdp-page .acme-pdp-tiers__brand-text,
body.acme-pdp-page .acme-pdp-tiers__brand-strong,
body.acme-pdp-page .acme-pdp-tiers__brand-light {
    color: #ffffff !important;
}

/* v53 — checkout empty cart: align with header logo rail */
body.acme-checkout-page .acme-checkout--empty,
body.checkout-index-index .acme-checkout--empty {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
    box-sizing: border-box !important;
}

body.acme-checkout-page .acme-checkout__empty,
body.checkout-index-index .acme-checkout__empty {
    text-align: left !important;
    padding: 3rem 0 !important;
    max-width: 36rem !important;
}

/* v53 — About hero MBA: matched column heights + header/footer width */
@media (min-width: 744px) and (max-width: 1799px) {
    .acme-about {
        --acme-pad-x: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
        --acme-content: 93.3125rem !important;
    }

    .acme-about-hero__inner,
    .acme-about-section__inner {
        width: min(100%, 93.3125rem) !important;
        max-width: 93.3125rem !important;
        margin-inline: auto !important;
        align-items: stretch !important;
    }

    .acme-about-hero__media {
        max-height: none !important;
        height: auto !important;
        align-self: stretch !important;
        min-height: 100% !important;
    }

    .acme-about-hero__content {
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        height: auto !important;
        max-height: none !important;
    }

    body.cms-index-index .acme-home [data-content-type="text"],
    .cms-index-index .acme-home [data-content-type="text"],
    body.cms-page-view.cms-home .acme-home [data-content-type="text"],
    body.cms-index-index .acme-home-prose,
    .cms-index-index .acme-home-prose,
    body.cms-page-view.cms-home .acme-home-prose {
        width: 100% !important;
        max-width: none !important;
        padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
        box-sizing: border-box !important;
    }
}

/* ========== v55 — >3 pills: col1=1st/2nd/3rd, col2=4th at top; equal gaps ========== */
@media (min-width: 744px) {
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__info,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__info {
        overflow: hidden !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__panel,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__panel {
        height: 100% !important;
        max-height: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 1.25rem !important;
        row-gap: 1.5rem !important;
        align-items: start !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap > form,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap > .mb-6,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap .acme-pdp__options,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap .product-options-wrapper,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap fieldset,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap > form,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap > .mb-6,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap .acme-pdp__options,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap .product-options-wrapper,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap fieldset {
        display: contents !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__gallery-hint,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__gallery-hint {
        grid-column: 1 / -1 !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__option-group,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__option-group {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__option-pills--display-only,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__option-pills--display-only {
        flex-wrap: wrap !important;
    }
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__buy,
    html body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__buy {
        margin-top: auto !important;
        flex: 0 0 auto !important;
    }
}


/* ========== Blogs width — PB html outside .acme-home needs pad tokens ========== */
body.cms-index-index,
.cms-index-index,
body.cms-page-view.cms-home {
    --acme-pad-x: clamp(1.25rem, 9.7vw, 11.53rem);
    --acme-content: 93rem;
}

body.cms-index-index .acme-home-blogs,
.cms-index-index .acme-home-blogs,
body.cms-page-view.cms-home .acme-home-blogs {
    padding-inline: var(--acme-pad-x, clamp(1.25rem, 9.7vw, 11.53rem)) !important;
    padding-block: 5.9rem 6rem;
}

@media (max-width: 743px) {
    body.cms-index-index .acme-home-blogs,
    .cms-index-index .acme-home-blogs,
    body.cms-page-view.cms-home .acme-home-blogs {
        padding: 2rem var(--acme-m-pad, 1rem) !important;
    }
}

@media (min-width: 744px) and (max-width: 1799px) {
    body.cms-index-index .acme-home-blogs,
    .cms-index-index .acme-home-blogs,
    body.cms-page-view.cms-home .acme-home-blogs {
        padding-inline: var(--acme-header-pad-x, clamp(1.25rem, 2.8vw, 3rem)) !important;
        padding-block: 4rem !important;
    }
}


/* ========== About hero — clipped inside frame; desktop height matches right copy via JS ========== */
.acme-about-hero__media {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.acme-about-hero__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 743px) {
    .acme-about-hero__media {
        max-width: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 712 / 520 !important;
        overflow: hidden !important;
    }
}


/* ========== Similar Products mobile — live card size, one-row 5s slider ========== */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp-similar {
        padding: 1rem !important;
    }

    body.acme-pdp-page .acme-pdp-similar__grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 1rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 0.5rem !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        grid-template-columns: none !important;
        scrollbar-width: thin !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card,
    body.acme-pdp-page .acme-pdp-similar__card {
        display: flex !important;
        flex-direction: column !important;
        /* Live ~155px cards @ 390 — two-up width, not full-bleed peek */
        flex: 0 0 calc((100% - 1rem) / 2) !important;
        width: calc((100% - 1rem) / 2) !important;
        min-width: calc((100% - 1rem) / 2) !important;
        max-width: calc((100% - 1rem) / 2) !important;
        border-radius: 0.5rem !important;
        scroll-snap-align: start !important;
    }

    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }
}


/* ========== Why Choose icons — center on mobile ========== */
@media (max-width: 743px) {
    .acme-about-feature {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .acme-about-feature__icon {
        align-self: center !important;
        margin-inline: auto !important;
    }
}

/* ========== v57 — Similar taller full images; mobile main image centered, content shares left edge ========== */

/* Similar Products — media height follows the image (no forced 3/4 letterbox) */
body.acme-pdp-page .acme-pdp-similar .acme-product-card__media,
body.acme-pdp-page .acme-pdp-similar .acme-product-card__image,
body.acme-pdp-page .acme-pdp-similar .product-image-container,
body.acme-pdp-page .acme-pdp-similar .product-image-wrapper {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    background: #f8f9fc !important;
}

body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo,
body.acme-pdp-page .acme-pdp-similar .acme-product-card__media > a,
body.acme-pdp-page .acme-pdp-similar .product-image-container,
body.acme-pdp-page .acme-pdp-similar .product-image-wrapper {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo img,
body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo .product-image-photo,
body.acme-pdp-page .acme-pdp-similar .acme-product-card__media img,
body.acme-pdp-page .acme-pdp-similar .product-image-photo,
body.acme-pdp-page .acme-pdp-similar img.product-image-photo {
    position: static !important;
    object-fit: contain !important;
    object-position: center center !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
}

@media (max-width: 743px) {
    /* Beat prior 150px / 3:4 locks — natural image height + tighter section gap */
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }


    /* Shared content column (equal L/R). Main image centered in stage;
       thumbs / title / badges / SKU / pills / tiers / ATC share that stage's left edge. */
    body.acme-pdp-page .acme-pdp__hero {
        padding-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__gallery,
    body.acme-pdp-page .acme-pdp__info {
        box-sizing: border-box !important;
        padding-inline: 1rem !important;
    }
    body.acme-pdp-page .acme-pdp__panel {
        box-sizing: border-box !important;
        padding-inline: 0 !important;
    }

    /* Main image stage — full column width; photo centered inside */
    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .relative {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        width: 100% !important;
        margin-inline: 0 !important;
        display: block !important;
    }
    body.acme-pdp-page .acme-pdp__gallery #gallery-main,
    body.acme-pdp-page .acme-pdp__gallery [data-track] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__gallery #gallery-main > template,
    body.acme-pdp-page .acme-pdp__gallery [data-track] > template {
        display: none !important;
        flex: 0 0 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    body.acme-pdp-page .acme-pdp__gallery #gallery-main > div:not(.acme-gallery-slide--hidden),
    body.acme-pdp-page .acme-pdp__gallery [data-track] > div:not(.acme-gallery-slide--hidden) {
        position: relative !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        scroll-snap-align: start !important;
        overflow: hidden !important;
    }
    body.acme-pdp-page .acme-pdp__gallery #gallery-main img,
    body.acme-pdp-page .acme-pdp__gallery [data-track] img {
        margin-inline: auto !important;
        object-position: center center !important;
        object-fit: contain !important;
    }

    /* Thumbs start at same left as main image stage */
    body.acme-pdp-page .acme-pdp__gallery .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery [class*="snap-pager"],
    body.acme-pdp-page .acme-pdp__gallery [data-pager],
    body.acme-pdp-page .acme-pdp__gallery .snap-slider > .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-pager,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager > .snap-pager {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        scrollbar-width: none !important;
    }
    body.acme-pdp-page .acme-pdp__gallery .snap-pager .snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager a.snap-marker,
    body.acme-pdp-page .acme-pdp__gallery .snap-pager button.snap-marker {
        min-width: 0 !important;
        flex: 0 0 calc((100% - 1.875rem) / 4) !important;
        width: calc((100% - 1.875rem) / 4) !important;
        max-width: calc((100% - 1.875rem) / 4) !important;
    }

    /* Title, badges, SKU — same left edge as main image */
    body.acme-pdp-page .acme-pdp__title-wrap,
    body.acme-pdp-page .acme-pdp__title,
    body.acme-pdp-page .acme-pdp__title-wrap .page-title,
    body.acme-pdp-page .acme-pdp__badges,
    body.acme-pdp-page .acme-pdp__sku {
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
        align-self: stretch !important;
    }
    body.acme-pdp-page .acme-pdp__badges {
        justify-content: flex-start !important;
    }

    body.acme-pdp-page .acme-pdp__option-label {
        text-align: left !important;
        width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp__options,
    body.acme-pdp-page .acme-pdp__options-wrap,
    body.acme-pdp-page .acme-pdp__option {
        text-align: left !important;
        align-items: flex-start !important;
        margin-inline: 0 !important;
        width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp__option-pills,
    body.acme-pdp-page .acme-pdp__options .acme-pdp__option-pills,
    body.acme-pdp-page .acme-pdp__options [role="listbox"] {
        justify-content: flex-start !important;
        margin-inline: 0 !important;
    }

    /* Price + unit left, qty right — same row; ATC full width below */
    body.acme-pdp-page .acme-pdp__buy {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        justify-items: stretch !important;
        align-items: center !important;
        column-gap: 0.75rem !important;
        row-gap: 0.75rem !important;
        width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__actions {
        display: contents !important;
    }
    body.acme-pdp-page .acme-pdp__buy > [data-acme-tier-host],
    body.acme-pdp-page .acme-pdp__buy > .acme-pdp__tiers,
    body.acme-pdp-page .acme-pdp__buy > .acme-pdp-tiers {
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        text-align: left !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp-tiers__banner {
        margin-inline: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp__price-row .special-price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price {
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 0.2rem !important;
    }
    body.acme-pdp-page .acme-pdp__price-row .acme-product-price-unit {
        line-height: 1 !important;
        vertical-align: baseline !important;
        align-self: baseline !important;
    }
    body.acme-pdp-page .acme-pdp__price-row {
        grid-column: 1 !important;
        grid-row: auto !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        justify-self: start !important;
        flex-wrap: nowrap !important;
        text-align: left !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__price-row .price-box {
        display: inline-flex !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__price-row .price-box .price,
    body.acme-pdp-page .acme-pdp__price-row .special-price .price,
    body.acme-pdp-page .acme-pdp__price-row .normal-price .price {
        line-height: 1.15 !important;
    }
    body.acme-pdp-page .acme-pdp__qty {
        grid-column: 2 !important;
        grid-row: auto !important;
        justify-self: end !important;
        align-self: center !important;
        width: auto !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__atc {
        grid-column: 1 / -1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
        text-align: center !important;
    }

}

/* ========== v58 — price-row left + qty right; clear bottom overlays (cookie/mega) ========== */
@media (max-width: 743px) {
    /* Explicit price | qty row — price-row locked to the left edge */
    body.acme-pdp-page .acme-pdp__buy {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "tiers tiers"
            "price qty"
            "atc atc" !important;
        align-items: center !important;
        column-gap: 0.75rem !important;
        row-gap: 0.75rem !important;
        width: 100% !important;
        position: relative !important;
        z-index: 100 !important;
    }
    body.acme-pdp-page .acme-pdp__actions {
        display: contents !important;
    }
    body.acme-pdp-page .acme-pdp__buy > [data-acme-tier-host],
    body.acme-pdp-page .acme-pdp__buy > .acme-pdp__tiers,
    body.acme-pdp-page .acme-pdp__buy > .acme-pdp-tiers {
        grid-area: tiers !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__price-row {
        grid-area: price !important;
        grid-column: 1 !important;
        grid-row: auto !important;
        justify-self: start !important;
        align-self: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: max-content !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__price-row .price-box,
    body.acme-pdp-page .acme-pdp__price-row .acme-price-amount-line {
        justify-content: flex-start !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__qty {
        grid-area: qty !important;
        grid-column: 2 !important;
        justify-self: end !important;
        align-self: center !important;
        width: auto !important;
        margin-inline: 0 !important;
        position: relative !important;
        z-index: 101 !important;
    }
    body.acme-pdp-page .acme-pdp__qty-menu,
    body.acme-pdp-page .acme-pdp__qty-menu.is-open {
        z-index: 120 !important;
    }
    body.acme-pdp-page .acme-pdp__atc {
        grid-area: atc !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        position: relative !important;
        z-index: 101 !important;
    }

    /* Desktop mega is not used on phone — never capture taps over ATC/qty */
    body.acme-pdp-page .acme-mega-nav,
    body.acme-pdp-page .acme-mega-panel,
    body.acme-pdp-page .acme-header__cream {
        pointer-events: none !important;
    }

    /* Zoho GDPR cookie bar sits fixed bottom @ max z-index and covers ATC/qty */
    body.acme-pdp-page .zoho-msgbanr,
    body.acme-pdp-page #gdpr_banner,
    body.acme-pdp-page .gdbr-banner-cont {
        z-index: 40 !important;
    }
    /* Keep buy controls above cookie bar / sticky chrome */
    body.acme-pdp-page .acme-pdp__buy,
    body.acme-pdp-page .acme-pdp__qty,
    body.acme-pdp-page .acme-pdp__atc {
        isolation: isolate !important;
    }
    /* Extra scroll room so ATC clears the cookie bar when scrolled into view */
    body.acme-pdp-page .acme-pdp,
    body.acme-pdp-page .product-info-main {
        padding-bottom: 12rem !important;
    }
}

/* v58b — Zoho SalesIQ float tooltip covers ATC on mobile PDP */
@media (max-width: 743px) {
    body.acme-pdp-page #zs-fl-tip,
    body.acme-pdp-page .zsiq-float-tooltip,
    body.acme-pdp-page .zsiq-tultip-desc,
    body.acme-pdp-page [id="zs-fl-tip"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
    body.acme-pdp-page #zsiq_float,
    body.acme-pdp-page .zsiq-float,
    body.acme-pdp-page .zsiq_theme1 {
        z-index: 30 !important;
    }
}

/* ========== v59 — desktop qty unclip + Zoho/mega over ATC; similar natural height; mobile price row ========== */

/* Desktop: qty dropdown must escape info/panel (equalize used overflow:hidden) */
@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp__info,
    body.acme-pdp-page .acme-pdp__panel,
    body.acme-pdp-page .acme-pdp__hero,
    body.acme-pdp-page .acme-pdp__buy,
    body.acme-pdp-page .acme-pdp__actions,
    body.acme-pdp-page .acme-pdp__qty {
        overflow: visible !important;
        overflow-y: visible !important;
    }
    body.acme-pdp-page .acme-pdp__info:has(.acme-pdp__qty-menu.is-open),
    body.acme-pdp-page .acme-pdp__panel:has(.acme-pdp__qty-menu.is-open),
    body.acme-pdp-page .acme-pdp__hero:has(.acme-pdp__qty-menu.is-open) {
        overflow: visible !important;
        overflow-y: visible !important;
        z-index: 30 !important;
    }
    body.acme-pdp-page .acme-pdp__qty-menu,
    body.acme-pdp-page .acme-pdp__qty-menu.is-open,
    body.acme-pdp-page .acme-pdp__qty-menu.opens-down {
        z-index: 260 !important;
        max-height: 14rem !important;
    }
    body.acme-pdp-page .acme-pdp__buy {
        position: relative !important;
        z-index: 25 !important;
    }

    /* Zoho GDPR / SalesIQ sit over ATC+qty (often reported as “mega overlapping”) */
    body.acme-pdp-page .zoho-msgbanr,
    body.acme-pdp-page #gdpr_banner,
    body.acme-pdp-page .gdbr-banner-cont,
    body.acme-pdp-page #consent_container {
        z-index: 20 !important;
    }
    body.acme-pdp-page #zs-fl-tip,
    body.acme-pdp-page .zsiq-float-tooltip,
    body.acme-pdp-page .zsiq-tultip-desc,
    body.acme-pdp-page [id="zs-fl-tip"] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
    body.acme-pdp-page #zsiq_float,
    body.acme-pdp-page .zsiq-float,
    body.acme-pdp-page .zsiq_theme1 {
        z-index: 18 !important;
    }

    /* Closed mega must not steal hits over the buy cluster */
    body.acme-pdp-page .acme-mega-panel[style*="display: none"],
    body.acme-pdp-page .acme-mega-panel[hidden],
    body.acme-pdp-page .acme-mega-panel.acme-mega-panel--leave-end {
        pointer-events: none !important;
    }
}

/* Mobile: hard-lock price left | qty right (beats any later flex/center) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__buy {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "tiers tiers"
            "price qty"
            "atc atc" !important;
        justify-items: stretch !important;
        align-items: center !important;
        width: 100% !important;
        margin-inline: 0 !important;
        padding-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__actions {
        display: contents !important;
    }
    body.acme-pdp-page .acme-pdp__price-row {
        grid-area: price !important;
        justify-self: start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 !important;
        margin-inline: 0 auto 0 0 !important;
    }
    body.acme-pdp-page .acme-pdp__qty {
        grid-area: qty !important;
        justify-self: end !important;
        margin-inline: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__atc {
        grid-area: atc !important;
        width: 100% !important;
    }

    body.acme-pdp-page .acme-pdp-similar {
        padding-bottom: 0.5rem !important;
        margin-bottom: 0 !important;
    }
    body.acme-pdp-page .acme-pdp-similar__grid {
        align-items: flex-start !important;
        padding-bottom: 0 !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
        min-height: 0 !important;
        aspect-ratio: auto !important;
        height: auto !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media > a {
        position: static !important;
        height: auto !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media img,
    body.acme-pdp-page .acme-pdp-similar .product-image-photo {
        position: static !important;
        height: auto !important;
        width: 100% !important;
    }
}

/* ========== v60 — price inside actions; mobile price|qty row; desktop mega/qty; similar natural ========== */

/* Desktop: price full row above qty|ATC; qty menu unclip; closed mega no hit steal */
@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp__info,
    body.acme-pdp-page .acme-pdp__panel,
    body.acme-pdp-page .acme-pdp__hero,
    body.acme-pdp-page .acme-pdp__buy,
    body.acme-pdp-page .acme-pdp__actions,
    body.acme-pdp-page .acme-pdp__qty {
        overflow: visible !important;
        overflow-y: visible !important;
    }
    body.acme-pdp-page .acme-header__sticky,
    body.acme-pdp-page .acme-header__sticky-bar {
        z-index: 80 !important;
    }
    body.acme-pdp-page .acme-header__sticky-bar.is-pinned {
        z-index: 90 !important;
    }
    body.acme-pdp-page .acme-mega-panel:not([hidden]):not(.acme-mega-panel--leave-end) {
        z-index: 85 !important;
    }
    body.acme-pdp-page .acme-pdp__buy {
        position: relative !important;
        z-index: 20 !important;
    }
    body.acme-pdp-page .acme-pdp__actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp__price-row {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: -1 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        margin: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__qty-menu,
    body.acme-pdp-page .acme-pdp__qty-menu.is-open,
    body.acme-pdp-page .acme-pdp__qty-menu.opens-down {
        z-index: 260 !important;
        max-height: 14rem !important;
    }
    body.acme-pdp-page .acme-mega-panel--leave-end,
    body.acme-pdp-page .acme-mega-panel[hidden],
    body.acme-pdp-page .acme-mega-panel[style*="display: none"],
    body.acme-pdp-page .acme-mega-panel[style*="display:none"] {
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* Mobile: actions grid — price left | qty right; ATC below */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__buy {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    body.acme-pdp-page .acme-pdp__actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "price qty"
            "atc atc" !important;
        align-items: center !important;
        column-gap: 0.75rem !important;
        row-gap: 0.75rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__price-row {
        grid-area: price !important;
        justify-self: start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        width: max-content !important;
        max-width: 100% !important;
        margin: 0 !important;
        order: 0 !important;
        flex: none !important;
    }
    body.acme-pdp-page .acme-pdp__qty {
        grid-area: qty !important;
        justify-self: end !important;
        width: auto !important;
        margin: 0 !important;
    }
    body.acme-pdp-page .acme-pdp__atc {
        grid-area: atc !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.acme-pdp-page .acme-pdp-similar,
    body.acme-pdp-page .acme-pdp__similar {
        padding: 1rem 1rem 0.5rem !important;
        margin-bottom: 0 !important;
    }
    body.acme-pdp-page .acme-pdp,
    body.acme-pdp-page .product-info-main {
        padding-bottom: 1.25rem !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
        position: relative !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media > a {
        position: static !important;
        inset: auto !important;
        height: auto !important;
        width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__media img,
    body.acme-pdp-page .acme-pdp-similar .product-image-photo {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__info {
        padding-bottom: 0.5rem !important;
        margin-bottom: 0 !important;
    }
}

/* v60b — express pay / messaging under ATC, full width on mobile */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__actions > .acme-pdp__express-pay,
    body.acme-pdp-page .acme-pdp__actions > .payment-request-button,
    body.acme-pdp-page .acme-pdp__actions > #payment-request-button,
    body.acme-pdp-page .acme-pdp__actions > #payment-method-messaging-element {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp__actions > .acme-pdp__express-pay,
    body.acme-pdp-page .acme-pdp__actions > .payment-request-button,
    body.acme-pdp-page .acme-pdp__actions > #payment-request-button,
    body.acme-pdp-page .acme-pdp__actions > #payment-method-messaging-element {
        flex: 0 0 100% !important;
        width: 100% !important;
        order: 10 !important;
    }
}

/* ========== v61 — mobile gallery: hide Alpine template slide; similar 1:1 media; footer gap ========== */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp__gallery #gallery-main,
    body.acme-pdp-page .acme-pdp__gallery [data-track] {
        justify-content: flex-start !important;
        align-items: stretch !important;
    }
    body.acme-pdp-page .acme-pdp__gallery #gallery-main > template,
    body.acme-pdp-page .acme-pdp__gallery [data-track] > template {
        display: none !important;
        flex: 0 0 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    /* Square frame so absolute cover/contain imgs paint (aspect-ratio:auto collapsed to 0) */
    html body.acme-pdp-page .acme-pdp-similar .acme-product-card__media {
        position: relative !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        background: #f8f9fc !important;
    }
    html body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo,
    html body.acme-pdp-page .acme-pdp-similar .acme-product-card__media > a {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    html body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo img,
    html body.acme-pdp-page .acme-pdp-similar .acme-product-card__photo .product-image-photo,
    html body.acme-pdp-page .acme-pdp-similar .acme-product-card__media img,
    html body.acme-pdp-page .acme-pdp-similar .product-image-photo,
    html body.acme-pdp-page .acme-pdp-similar img.product-image-photo {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    html body.acme-pdp-page .acme-pdp-similar,
    html body.acme-pdp-page .acme-pdp__similar {
        padding-bottom: 0.25rem !important;
        margin-bottom: 0 !important;
    }
    html body.acme-pdp-page .acme-pdp,
    html body.acme-pdp-page .product-info-main {
        padding-bottom: 1.25rem !important;
    }
}

/* v61b — beat :not(.acme-gallery-slide--hidden) which is more specific than > template */
@media (max-width: 743px) {
    html body.acme-pdp-page .acme-pdp__gallery #gallery-main > template,
    html body.acme-pdp-page .acme-pdp__gallery [data-track] > template,
    html body.acme-pdp-page .acme-pdp__gallery #gallery-main > template:not(.acme-gallery-slide--hidden),
    html body.acme-pdp-page .acme-pdp__gallery [data-track] > template:not(.acme-gallery-slide--hidden) {
        display: none !important;
        flex: 0 0 0 !important;
        flex-basis: 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ========== v61 — Similar cut mobile-only; mega above tiers; label colons ========== */
@media (min-width: 744px) {
    body.acme-pdp-page .acme-header__sticky,
    body.acme-pdp-page .acme-header__sticky-bar {
        z-index: 80 !important;
    }
    body.acme-pdp-page .acme-header__sticky-bar.is-pinned {
        z-index: 90 !important;
    }
    body.acme-pdp-page .acme-mega-panel:not([hidden]):not(.acme-mega-panel--leave-end) {
        z-index: 85 !important;
    }
    body.acme-pdp-page .acme-pdp__buy {
        position: relative !important;
        z-index: 20 !important;
    }

    /* Desktop Similar: visible price, cut to the RIGHT (override stale acme-pdp.css column rules) */
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .price-box {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        overflow: visible !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .special-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .normal-price {
        order: 1 !important;
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        gap: 0.25rem !important;
        white-space: nowrap !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price span.old-price {
        order: 2 !important;
        display: inline-flex !important;
        align-items: baseline !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price-wrapper,
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price-container {
        display: inline !important;
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
        font-weight: 400 !important;
        color: #6b7280 !important;
        text-decoration: line-through !important;
        text-decoration-thickness: 1px !important;
        white-space: nowrap !important;
    }
    body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .acme-product-price-unit {
        display: none !important;
    }
}

body.acme-pdp-page .acme-pdp__option-label {
    display: inline !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
}
body.acme-pdp-page .acme-pdp__option-label::after {
    content: none !important;
    display: none !important;
}

/* v62 — mobile hero slide 3: no dark gradient wash; keep 16px round card */
@media (max-width: 743px) {
    /* Copy is baked into mob_banner-3.avif — audit desktop gradient must not show on phone */
    body.cms-index-index .acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__gradient,
    body.cms-page-view.cms-home .acme-home-hero__slide[data-acme-slide="3"] .acme-home-hero__gradient,
    body.cms-index-index .acme-home-hero__slide:has(img[src*="slider3"]) .acme-home-hero__gradient,
    body.cms-index-index .acme-home-hero__slide:has(img[src*="slider2_1"]) .acme-home-hero__gradient,
    body.cms-index-index .acme-home-hero__slide:has(img[src*="factory_floor"]) .acme-home-hero__gradient,
    body.cms-index-index .acme-home-hero__slide:has(source[srcset*="mob_banner-3"]) .acme-home-hero__gradient,
    .cms-index-index .acme-home-hero__gradient {
        display: none !important;
        opacity: 0 !important;
        background: none !important;
        pointer-events: none !important;
    }
    body.cms-index-index .acme-home-hero__slide,
    body.cms-page-view.cms-home .acme-home-hero__slide,
    .cms-index-index .acme-home-hero__slide {
        border-radius: 16px !important;
        overflow: hidden !important;
        background: #fff !important;
    }
    body.cms-index-index .acme-home-hero__picture,
    body.cms-index-index .acme-home-hero__media,
    .cms-index-index .acme-home-hero__picture,
    .cms-index-index .acme-home-hero__media {
        border-radius: 16px !important;
    }
    /* Keep under-image HTML copy hidden on mobile (baked into AVIF) */
    body.cms-index-index .acme-home-hero__content,
    body.cms-page-view.cms-home .acme-home-hero__content,
    .cms-index-index .acme-home-hero__content {
        display: none !important;
    }
}

/* v62 — PDP no inner scroll (live symlink) */
@media (min-width: 744px) {
    body.acme-pdp-page .acme-pdp__info,
    body.acme-pdp-page .acme-pdp__panel,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__info,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__panel {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }
    body.acme-pdp-page .acme-pdp__options-wrap,
    body.acme-pdp-page.acme-pdp--expand-options .acme-pdp__options-wrap {
        max-height: none !important;
        overflow: visible !important;
        overflow-y: visible !important;
    }
}

/* v62 — cart desktop qty left of price (live symlink) */
@media (min-width: 744px) {
    html body.acme-cart-page .acme-cart-item__buy,
    html body.checkout-cart-index .acme-cart-item__buy {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 1rem !important;
        margin-left: auto !important;
        width: auto !important;
    }
    html body.acme-cart-page .acme-cart-item__qty,
    html body.checkout-cart-index .acme-cart-item__qty { order: 1 !important; }
    html body.acme-cart-page .acme-cart-item__pricing,
    html body.checkout-cart-index .acme-cart-item__pricing {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        text-align: right !important;
    }
}

/* v63 — mobile: tiers one row; ATC/qty under sticky header (not over it) */
@media (max-width: 743px) {
    body.acme-pdp-page .acme-pdp-tiers__cols,
    body.acme-pdp-page .acme-pdp-tiers__banner .acme-pdp-tiers__cols {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(0, 1fr) !important;
        gap: 0.375rem !important;
        width: 100% !important;
    }
    body.acme-pdp-page .acme-pdp-tiers__col,
    body.acme-pdp-page .acme-pdp-tiers__col:last-child,
    body.acme-pdp-page .acme-pdp-tiers__col:last-child:nth-child(odd) {
        grid-column: auto !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0.5rem 0.25rem !important;
        box-sizing: border-box !important;
    }
    body.acme-pdp-page .acme-pdp-tiers__qty,
    body.acme-pdp-page .acme-pdp-tiers__price {
        font-size: clamp(0.625rem, 2.8vw, 0.8125rem) !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }

    /* Sticky header above buy cluster — v58 had buy @100 covering pinned bar */
    body.acme-pdp-page .acme-header__sticky,
    body.acme-pdp-page .acme-header__sticky-bar,
    body.acme-pdp-page .acme-header__sticky-bar.is-pinned {
        z-index: 80 !important;
    }
    body.acme-pdp-page .acme-header__sticky-bar.is-pinned {
        z-index: 90 !important;
    }
    body.acme-pdp-page .acme-pdp__buy,
    body.acme-pdp-page .acme-pdp__actions,
    body.acme-pdp-page .acme-pdp__qty,
    body.acme-pdp-page .acme-pdp__atc {
        z-index: 10 !important;
    }
    /* Open qty menu still usable above chrome */
    body.acme-pdp-page .acme-pdp__buy:has(.acme-pdp__qty-menu.is-open),
    body.acme-pdp-page .acme-pdp__qty:has(.acme-pdp__qty-menu.is-open) {
        z-index: 95 !important;
    }
    body.acme-pdp-page .acme-pdp__qty-menu.is-open,
    body.acme-pdp-page .acme-pdp__qty-menu.opens-down.is-open {
        z-index: 100 !important;
    }

    /* Tier active highlight must beat default white card rules */
    body.acme-pdp-page .acme-pdp-tiers__col.is-active,
    body.acme-pdp-page .acme-pdp-tiers__col:last-child.is-active,
    body.acme-pdp-page li.acme-pdp-tiers__col.is-active {
        background: #ffebee !important;
        border: 2px solid #b12936 !important;
    }
}

/* v64 — tier cards: same red border on all cols (kill gray :last-child leftover) */
body.acme-pdp-page .acme-pdp-tiers__col,
body.acme-pdp-page .acme-pdp-tiers__col:last-child,
body.acme-pdp-page .acme-pdp-tiers__col:last-child:nth-child(odd),
body.acme-pdp-page li.acme-pdp-tiers__col {
    background: #fff !important;
    border: 1px solid #9d1f2b !important;
    box-shadow: none !important;
}
body.acme-pdp-page .acme-pdp-tiers__col.is-active,
body.acme-pdp-page .acme-pdp-tiers__col:last-child.is-active,
body.acme-pdp-page li.acme-pdp-tiers__col.is-active {
    background: #ffebee !important;
    border: 2px solid #b12936 !important;
    box-shadow: inset 0 0 0 1px #b12936 !important;
}

/* v65 — MBA: trust/tiers = desktop; short Air densifies; JS caps info to fold */
@media (min-width: 744px) and (max-width: 1799px) {
    html body.acme-pdp-page .acme-pdp__badges {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 2.5rem !important;
        height: auto !important;
        max-height: none !important;
        gap: 0.5rem !important;
    row-gap: 0.5rem !important;
    column-gap: 0.5rem !important;
        margin-top: 0.75rem !important; /* title → badges whitespace */
        overflow: visible !important;
    }
    html body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--four,
    html body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--two {
        grid-template-rows: repeat(2, 2.5rem) !important;
    }
    html body.acme-pdp-page .acme-pdp__badges > .acme-pdp__badge:nth-child(n + 3),
    html:not(.acme-pdp--hub) body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--two > .acme-pdp__badge:nth-child(n + 3) {
        display: flex !important;
    }
    html body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--four > .acme-pdp__badge:nth-child(n + 5),
    html body.acme-pdp-page .acme-pdp__badges > .acme-pdp__badge:nth-child(n + 5) {
        display: none !important;
    }
    html body.acme-pdp-page .acme-pdp__badge {
        min-height: 2.5rem !important;
        max-height: 2.5rem !important;
        height: 2.5rem !important;
        padding: 6px 12px !important;
        align-items: center !important;
        border-radius: 0.5rem !important;
        overflow: hidden !important; /* text ellipsis only — grid stays visible */
    }
    html body.acme-pdp-page .acme-pdp-tiers__brand,
    html body.acme-pdp-page .acme-pdp-tiers__col {
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
        padding: 8px 6px !important;
    }
    html body.acme-pdp-page .acme-pdp-tiers__qty,
    html body.acme-pdp-page .acme-pdp-tiers__price,
    html body.acme-pdp-page .acme-pdp-tiers__price .price,
    html body.acme-pdp-page .acme-pdp-tiers__unit {
        font-size: 14px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
}
@media (min-width: 744px) and (max-width: 1799px) and (min-height: 901px) {
    /* MBA 15: whitespace above attributes + equal group spacing */
    html body.acme-pdp-page .acme-pdp__options-wrap {
        margin-top: 1.25rem !important;
    }
    html body.acme-pdp-page .acme-pdp__options-wrap,
    html body.acme-pdp-page .acme-pdp__options,
    html body.acme-pdp-page .acme-pdp__options-wrap .product-options-wrapper {
        gap: 1rem !important;
        row-gap: 1rem !important;
    }
    html body.acme-pdp-page .acme-pdp__option-group {
        margin: 0 !important;
        gap: 0.5rem !important;
    }
    html body.acme-pdp-page .acme-pdp__option-label {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    html body.acme-pdp-page .acme-pdp__option-pills [role="option"],
    html body.acme-pdp-page .acme-pdp__option-pills button,
    html body.acme-pdp-page .acme-pdp__pill,
    html body.acme-pdp-page button.acme-pdp__pill,
    html body.acme-pdp-page .acme-pdp__swatch {
        min-height: 33px !important;
        padding: 6px 9.6px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

/*
 * MBA 13 / short Air (≤900px): compact chrome + denser info so ATC fits one fold.
 * Trust 2.5rem + tiers 78px stay locked. equalizeHeroHeights also caps info height.
 */
@media (min-width: 744px) and (max-width: 1799px) and (max-height: 1100px) {
    /*
     * MBA 13 chrome: real sticky is .acme-header__top (72) + __nav (48).
     * Prior rules targeted missing __row/__main — chrome never shrank, ATC sat on the fold edge.
     */
    /* Promo bar: keep desktop 2.25rem so FREE SHIPPING stays visible (not clipped). */
    html body.acme-pdp-page .acme-promo-bar,
    html body .acme-promo-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        min-height: 2.25rem !important;
        height: 2.25rem !important;
        max-height: 2.25rem !important;
        padding-block: 0 !important;
        overflow: hidden !important;
        font-size: 0.8125rem !important;
        line-height: 1.2 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: linear-gradient(90deg, #0b4f7a 0%, #1f99ce 45%, #3db4e6 100%) !important;
        color: #fff !important;
    }
    html body.acme-pdp-page .acme-promo-bar__track,
    html body .acme-promo-bar__track {
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        min-height: 0 !important;
        padding-block: 0 !important;
        transform: none !important;
        opacity: 1 !important;
    }
    html body.acme-pdp-page .acme-promo-bar__wave,
    html body .acme-promo-bar__wave {
        width: 1.25rem !important;
        height: 1.25rem !important;
        flex: 0 0 1.25rem !important;
    }
    html body.acme-pdp-page .acme-promo-bar__item,
    html body.acme-pdp-page .acme-promo-bar button,
    html body.acme-pdp-page .acme-promo-bar__btn {
        min-height: 0 !important;
        max-height: 1.5rem !important;
        padding-block: 0.15rem !important;
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    html body.acme-pdp-page .acme-promo-bar__text {
        color: #fff !important;
    }
    html body.acme-pdp-page .acme-header__sticky,
    html body.acme-pdp-page .acme-header__sticky-bar {
        min-height: 0 !important;
    }
    html body.acme-pdp-page .acme-header__top {
        min-height: 3.25rem !important;
        height: auto !important;
        padding-block: 0.25rem !important;
    }
    html body.acme-pdp-page .acme-header__top-inner {
        min-height: 2.5rem !important;
        height: auto !important;
        padding-block: 0 !important;
    }
    html body.acme-pdp-page .acme-header__brand,
    html body.acme-pdp-page .acme-header__brand > a[href],
    html body.acme-pdp-page .acme-header__brand > .logo {
        min-height: 0 !important;
    }
    html body.acme-pdp-page .acme-header__brand img,
    html body.acme-pdp-page .acme-header__brand > a[href] img,
    html body.acme-pdp-page .acme-header__brand > .logo img,
    html body.acme-pdp-page .acme-header__sticky .acme-header__logo img,
    html body.acme-pdp-page .acme-header__sticky .acme-logo img {
        max-height: 2.109375rem !important; /* 33.75px — 1.125× prior densify */
    }
    html body.acme-pdp-page .acme-header__nav {
        min-height: 0 !important;
        height: auto !important;
        padding-block: 0 !important;
    }
    html body.acme-pdp-page .acme-header__nav-inner {
        min-height: 0 !important;
        padding-block: 0.15rem !important;
    }
    html body.acme-pdp-page .acme-header__nav a,
    html body.acme-pdp-page .acme-mega-nav__link,
    html body.acme-pdp-page .acme-mega-nav__trigger,
    html body.acme-pdp-page .acme-cat-nav__trigger {
        padding-block: 0.25rem !important;
        min-height: 0 !important;
        font-size: 0.8125rem !important;
        line-height: 1.2 !important;
    }

    html body.acme-pdp-page .breadcrumbs,
    html body.acme-pdp-page .acme-breadcrumbs,
    html body.acme-pdp-page .acme-pdp-breadcrumbs,
    html body.acme-pdp-page .top-container .breadcrumbs,
    html body.catalog-product-view .breadcrumbs,
    html body.catalog-product-view .acme-breadcrumbs {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        min-height: 0 !important;
        font-size: 0.875rem !important;
        line-height: 1.25 !important;
    }

    html body.acme-pdp-page .acme-pdp {
        --acme-pdp-gap: 0.65rem;
    }

    html body.acme-pdp-page .acme-pdp__hero {
        gap: 0.65rem !important;
    }

    html body.acme-pdp-page .acme-pdp__panel {
        gap: 0.2rem !important;
    }

    html body.acme-pdp-page .acme-pdp__header {
        gap: 0.1rem !important;
    }

    html body.acme-pdp-page .acme-pdp__sku {
        min-height: 0 !important;
        line-height: 1.15 !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
    }

    html body.acme-pdp-page .acme-pdp__badges {
        margin-top: 0.75rem !important; /* title → badges whitespace */
        gap: 0.3rem !important;
    row-gap: 0.3rem !important;
    column-gap: 0.3rem !important;
        grid-template-rows: 2.5rem !important;
        grid-auto-rows: 2.5rem !important;
        height: auto !important;
        max-height: none !important;
    }

    html body.acme-pdp-page .acme-pdp__badge {
        min-height: 2.5rem !important;
        max-height: 2.5rem !important;
        height: 2.5rem !important;
    }

    html body.acme-pdp-page .acme-pdp__title,
    html body.acme-pdp-page .acme-pdp__title-wrap .page-title {
        font-size: clamp(1.05rem, 0.8rem + 0.55vw, 1.35rem) !important;
        line-height: 1.12 !important;
    }

    /* MBA 13: attributes + titles visible, fill options slot, never scroll */
    html body.acme-pdp-page .acme-pdp__options-wrap {
        margin-top: 0.75rem !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        gap: 0.5rem !important;
        row-gap: 0.5rem !important;
    }

    html body.acme-pdp-page .acme-pdp__options,
    html body.acme-pdp-page .acme-pdp__options-wrap .product-options-wrapper {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        overflow-y: visible !important;
        max-height: none !important;
    }
    html body.acme-pdp-page .acme-pdp__options:not(.acme-pdp__options--attrs-3) {
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        row-gap: 0.5rem !important;
    }
    html body.acme-pdp-page .acme-pdp__options--attrs-3 {
        justify-content: space-between !important;
        gap: 0 !important;
        row-gap: 0 !important;
    }

    html body.acme-pdp-page .acme-pdp__option-group {
        gap: 0.25rem !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
    }

    html body.acme-pdp-page .acme-pdp__option-label {
        font-size: 0.75rem !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    html body.acme-pdp-page .acme-pdp__option-pills {
        gap: 0.3rem !important;
        min-height: 1.75rem !important;
        flex-wrap: wrap !important;
    }
    html body.acme-pdp-page .acme-pdp__option-pills [role="option"],
    html body.acme-pdp-page .acme-pdp__option-pills button,
    html body.acme-pdp-page .acme-pdp__pill,
    html body.acme-pdp-page button.acme-pdp__pill,
    html body.acme-pdp-page .acme-pdp__swatch {
        min-height: 28px !important;
        height: auto !important;
        max-height: none !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    html body.acme-pdp-page .acme-pdp-tiers__brand,
    html body.acme-pdp-page .acme-pdp-tiers__col {
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
    }

    html body.acme-pdp-page .acme-pdp__buy {
        gap: 0.2rem !important;
    }

    html body.acme-pdp-page .acme-pdp-tiers,
    html body.acme-pdp-page .acme-pdp__tiers {
        margin-bottom: 0.1rem !important;
    }

    html body.acme-pdp-page .acme-pdp__price-row,
    html body.acme-pdp-page .acme-pdp__price-row .price-box .price,
    html body.acme-pdp-page .acme-pdp__price-row .price {
        font-size: 1.25rem !important;
        line-height: 1.1 !important;
    }

    html body.acme-pdp-page .acme-pdp__actions,
    html body.acme-pdp-page .acme-pdp__qty-atc {
        gap: 0.35rem !important;
    }

    html body.acme-pdp-page .acme-pdp__atc,
    html body.acme-pdp-page button.acme-pdp__atc {
        min-height: 2.375rem !important;
        font-size: 0.8125rem !important;
        padding-block: 0.4rem !important;
    }

    html body.acme-pdp-page .acme-pdp__qty,
    html body.acme-pdp-page .acme-pdp__qty-option {
        min-height: 2.375rem !important;
    }
}

/* acme-toast-flush-under-header-mobile — must load after acme-header.css */
@media (max-width: 743px) {
    :root {
        --acme-header-nav-h: 0px;
        --acme-offer-bar-h: var(--acme-promo-h, 2.25rem);
    }
}

/* Always 2×2 up to 4 badges (hub + child) — pill pad shrink freed fold room */
html body.acme-pdp-page .acme-pdp__badges > .acme-pdp__badge:nth-child(n + 3),
html:not(.acme-pdp--hub) body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--two > .acme-pdp__badge:nth-child(n + 3),
html.acme-pdp--hub body.acme-pdp-page .acme-pdp__badges > .acme-pdp__badge:nth-child(n + 3),
html.acme-pdp--hub body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--two > .acme-pdp__badge:nth-child(n + 3) {
    display: flex !important;
}
html body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--four > .acme-pdp__badge:nth-child(n + 5),
html body.acme-pdp-page .acme-pdp__badges > .acme-pdp__badge:nth-child(n + 5) {
    display: none !important;
}

html body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--two,
html body.acme-pdp-page .acme-pdp__badges.acme-pdp__badges--four {
    grid-template-rows: repeat(2, 2.5rem) !important;
    grid-auto-rows: 2.5rem !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}
html body.acme-pdp-page .acme-pdp__panel {
    row-gap: 0.75rem !important;
}
html body.acme-pdp-page .acme-pdp__options-wrap {
    margin-top: 0 !important;
}

/* Cut price parity — PLP cards match Similar Products (#6b7280), never light #00000061 / #9aa3af */
body.acme-category-page .acme-product-grid .acme-product-card__price .old-price .price,
body.acme-category-page .acme-product-grid__item .acme-product-card__price .old-price .price,
body.catalogsearch-result-index .acme-product-grid .acme-product-card__price .old-price .price,
body.catalogsearch-result-index .acme-product-grid__item .acme-product-card__price .old-price .price,
body.acme-pdp-page .acme-pdp-similar .acme-product-card__price .old-price .price {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
    text-decoration-color: #6b7280 !important;
}

/* PDP hero cut price — darker than PLP/similar #6b7280 (Water Streams / specials) */
html body.acme-pdp-page .acme-pdp__price-row .old-price .price,
html body.acme-pdp-page .acme-pdp__price-row .price-box .old-price .price,
html body.acme-pdp-page .acme-pdp__price .old-price .price,
html body.acme-pdp-page .acme-pdp__price .price-box .old-price .price {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
    text-decoration: line-through !important;
    text-decoration-color: #374151 !important;
    -webkit-text-decoration-color: #374151 !important;
}
