/**
 * Bestmark — Topmart Product Page redesign (product-modern.css)
 * ─────────────────────────────────────────────────────────────
 * Modern, mobile-first redesign of the product detail page.
 * Re-uses the global design tokens (:root vars) from HarmonyCss.css
 * (--bm-crimson, --bm-amber, --pg-*, --bm-font) so the page matches
 * the homepage language exactly.
 *
 * Loaded only on catalog_product_view (see Magento_Catalog layout).
 * All selectors are scoped under body.catalog-product-view to avoid
 * side effects on other pages.
 */

/* ════════════════════════════════════════════════════════════════
   1 — PAGE SURFACE & CONTAINER
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view {
    background: var(--pg-bg, #F5F5F7) !important;
    font-family: var(--bm-font, 'Inter', sans-serif);
    color: var(--pg-text, #111);
}

/* Match the homepage content block: body.cms-index-index .page-main is
   width:90%; max-width:unset; margin:0 auto (settings_fr.css) while the
   header stays full width. Apply the same box to the product page. */
body.catalog-product-view .page-main {
    width: 95%;
    max-width: unset;
    margin: 0 auto;
}

body.catalog-product-view .block-title,
body.catalog-product-view .page-title span,
body.catalog-product-view h1,
body.catalog-product-view h2,
body.catalog-product-view h3,
body.catalog-product-view h4 {
    font-family: var(--bm-font, 'Inter', sans-serif);
    color: var(--pg-text, #111);
}

/* Sidebar CMS cards inherit the light surface */
body.catalog-product-view .columns .sidebar-main,
body.catalog-product-view .columns .sidebar-additional {
    align-self: start;
}
body.catalog-product-view .sidebar-main .widget.block,
body.catalog-product-view .sidebar-additional .widget.block {
    background: var(--pg-surface, #fff);
    border: 1px solid var(--pg-border, rgba(0,0,0,.09));
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
body.catalog-product-view .sidebar-main .block-title,
body.catalog-product-view .sidebar-additional .block-title {
    border-bottom: 1px solid var(--pg-border, rgba(0,0,0,.09));
    padding-bottom: 10px;
    margin-bottom: 14px;
}

/* ════════════════════════════════════════════════════════════════
   2 — DESKTOP COLUMNS (gallery + info)
   We deliberately use the theme's native float layout here instead of a
   CSS grid on `.column.main`: the theme sizes the columns itself
   (`.product.media { width: 470px; float: left }` +
   `.product-info-main { width: calc(100% - 500px); float: right }`).
   Switching to grid made the info column collapse to 0px on desktop
   (the theme's calc() was measured against the grid track). So we only
   keep light spacing fine-tunes, never the block/float model.
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .columns {
    display: block;
}

body.catalog-product-view .column.main {
    position: relative;
}

/* Gallery card is now the LEFT column; the benefits row lives under it
   (moved into the media container by the layout). Keep media children
   stacked vertically (theme sets .product.media { display:flex }). */
body.catalog-product-view .product.media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.catalog-product-view .product.media .gallery-placeholder {
    width: 100%;
}

body.catalog-product-view .product.media .bm-benefits {
    margin: 8px 0 0;
}

/* ════════════════════════════════════════════════════════════════
   3 — GALLERY (card + fotorama restyle + photo badge)
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .gallery-placeholder.bm-gallery {
    position: relative;
    background: var(--pg-surface, #fff);
    border: 1px solid var(--pg-border, rgba(0,0,0,.09));
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    overflow: hidden;
}

body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__stage,
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__wrap {
    background: var(--pg-surface, #fff);
}

/* The stage must never collapse to zero height (fotorama can size it to 0
   before the first image is decoded on slow connections / some engines). */
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__stage {
    min-height: 330px;
}
@media (min-width: 768px) {
    body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__stage {
        min-height: 466px;
    }
}

/* Hide the prev/next arrows over the big (stage) image; the thumbnails
   strip below keeps its own navigation. Fotorama forces an inline
   display:block on show, so !important is required here. */
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__stage .fotorama__arr {
    display: none !important;
}

/* active stage frame border */
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__stage__frame > div {
    border-radius: 12px;
    overflow: hidden;
}

body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__img {
    background: #fff;
}

/* thumbs */
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__nav--thumbs {
    margin-top: 10px;
}

body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__thumb {
    border-radius: 10px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #fff;
}

body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__thumb-border {
    border: 2px solid var(--bm-crimson, #C8202F);
    border-radius: 10px;
}

/* dots */
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__nav__shaft {
    margin-top: 6px;
}
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__dot {
    border-color: var(--pg-border, rgba(0,0,0,.2));
    background: transparent;
}
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__active .fotorama__dot {
    background: var(--bm-crimson, #C8202F);
    border-color: var(--bm-crimson, #C8202F);
}

/* arrows */
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__arr {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    border: 1px solid var(--pg-border, rgba(0,0,0,.08));
    backdrop-filter: blur(4px);
}

body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__arr--prev { left: 12px; }
body.catalog-product-view .gallery-placeholder.bm-gallery .fotorama__arr--next { right: 12px; }

/* photo count badge */
body.catalog-product-view .gallery-placeholder.bm-gallery.bm-has-media::after {
    content: attr(data-count) " " attr(data-label, "photos");
    position: absolute;
    left: 18px;
    bottom: 160px;
    z-index: 5;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(17,17,17,.66);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* ════════════════════════════════════════════════════════════════
   4 — INFO COLUMN (title, price, stock, overview, benefits, buy box)
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .product-info-main .page-title-wrapper {
    margin: 0 0 10px;
}

/* Desktop info column layout is driven by two wrappers injected in the
   layout XML: `.bm-info-meta` (brand + stock + sku + rating, one line)
   and `.bm-buy-row` (price + qty + add-to-cart + social, next line). */
@media (min-width: 768px) {
    body.catalog-product-view .product-info-main::after {
        content: "";
        display: table;
        clear: both;
    }
}

body.catalog-product-view .product-info-main .page-title-wrapper .page-title {
    font-size: clamp(20px, 2.2vw, 1px);
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: -.01em;
}

body.catalog-product-view .product-info-main .product-info-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* The theme floats .box-tocart (float:left) which collapses the
   .product-add-form wrapper to height 0 and lets following blocks
   (short-description card) float up and overlap the buy button.
   Force inline-flex/block stacking inside the info column instead.
   NOTE: no clear here — on desktop the form is floated RIGHT of the
   price; only the blocks AFTER it (.bm-overview, social) clear. */
body.catalog-product-view .product-info-main .product-add-form {
}
body.catalog-product-view .product-info-main .box-tocart {
    float: none;
}
body.catalog-product-view .product-info-main .product-social-links {
    float: none;
    clear: both;
}

/* price */
body.catalog-product-view .product-info-main .price-box .price {
    font-family: var(--bm-font, 'Inter', sans-serif);
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--bm-crimson, #C8202F);
    letter-spacing: -.02em;
}

body.catalog-product-view .product-info-main .price-box .price-wrapper.special-price .price,
body.catalog-product-view .product-info-main .price-box span.special-price .price {
    color: var(--bm-crimson, #C8202F);
}

body.catalog-product-view .product-info-main .price-box .old-price .price {
    font-size: 16px;
    font-weight: 500;
    color: var(--pg-text-3, #888);
    text-decoration: line-through;
}

/* stock pill */
body.catalog-product-view .product-info-main .product-info-stock-sku {
    font-size: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 2px 0 10px;
}

body.catalog-product-view .product-info-main .product-info-stock-sku .stock {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

body.catalog-product-view .product-info-main .stock.available {
    background: rgba(26, 171, 98, .12);
    color: #12804a;
    border: 1px solid rgba(26, 171, 98, .28);
}

body.catalog-product-view .product-info-main .stock.unavailable {
    background: rgba(200, 32, 47, .08);
    color: var(--bm-crimson, #C8202F);
    border: 1px solid rgba(200, 32, 47, .22);
}

body.catalog-product-view .product-info-main .product.attribute.sku {
    font-size: 13px;
    color: var(--pg-text-3, #888);
}

body.catalog-product-view .product-info-main .product.attribute.sku .type {
    font-weight: 600;
}

/* reviews summary */
body.catalog-product-view .product-info-main .product-reviews-summary {
    font-size: 13px;
    color: var(--pg-text-2, #3D3D3D);
    margin: 0 0 10px;
}

body.catalog-product-view .product-info-main .rating-summary .rating-result > span::before {
    color: var(--bm-amber, #F5A623);
}

/* overview (short description) card */
body.catalog-product-view .product-info-main .bm-overview {
    background: var(--pg-surface, #fff);
    border: 1px solid var(--pg-border, rgba(0,0,0,.09));
    border-radius: 14px;
    padding: 16px 18px;
    margin: 4px 0 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

body.catalog-product-view .product-info-main .bm-overview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bm-crimson, #C8202F);
    margin-bottom: 8px;
}

body.catalog-product-view .product-info-main .bm-overview-title__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bm-crimson, #C8202F);
    flex-shrink: 0;
}

body.catalog-product-view .product-info-main .bm-overview-body {
    font-size: 14px;
    line-height: 1.65;
    color: var(--pg-text-2, #3D3D3D);
}

/* SKU chip inside the overview card, under the title */
body.catalog-product-view .product-info-main .bm-overview-sku {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--pg-surface-2, #F2F2F4);
    border: 1px solid var(--pg-border, rgba(0,0,0,.08));
    font-size: 12px;
    line-height: 1;
}

body.catalog-product-view .product-info-main .bm-overview-sku__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pg-text-3, #888);
}

body.catalog-product-view .product-info-main .bm-overview-sku__value {
    font-weight: 700;
    color: var(--pg-text, #111);
    letter-spacing: .02em;
}

/* benefits row */
body.catalog-product-view .bm-benefits {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.catalog-product-view .bm-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pg-surface, #fff);
    border: 1px solid var(--pg-border, rgba(0,0,0,.09));
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

body.catalog-product-view .bm-benefit__icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 32, 47, .08);
    color: var(--bm-crimson, #C8202F);
}

body.catalog-product-view .bm-benefit__icon svg {
    width: 17px;
    height: 17px;
}

body.catalog-product-view .bm-benefit__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.catalog-product-view .bm-benefit__title {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--pg-text, #111);
    line-height: 1.25;
}

body.catalog-product-view .bm-benefit__sub {
    font-size: 11.5px;
    color: var(--pg-text-3, #888);
    line-height: 1.3;
}

/* buy box */
body.catalog-product-view .product-info-main .product-add-form {
    margin: 0 0 14px;
}

body.catalog-product-view .product-info-main .box-tocart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

body.catalog-product-view .product-info-main .field.qty {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0;
}

body.catalog-product-view .product-info-main .field.qty .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-text-2, #3D3D3D);
    padding: 0;
}

body.catalog-product-view .product-info-main .field.qty .control {
    order: 1;
}

/* pedigree qty stepper (- / +) */
body.catalog-product-view .bm-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pg-border, rgba(0,0,0,.14));
    border-radius: 12px;
    background: var(--pg-surface-2, #F2F2F4);
    overflow: hidden;
}

body.catalog-product-view .bm-qty-control input.qty {
    width: 52px;
    height: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}

body.catalog-product-view .bm-qty-control input.qty::-webkit-outer-spin-button,
body.catalog-product-view .bm-qty-control input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

body.catalog-product-view .bm-qty-btn {
    width: 42px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--pg-text-2, #3D3D3D);
    transition: background .15s, color .15s;
}

body.catalog-product-view .bm-qty-btn:hover {
    background: rgba(0,0,0,.06);
    color: var(--bm-crimson, #C8202F);
}

body.catalog-product-view .bm-qty-btn:active {
    background: rgba(0,0,0,.09);
}

body.catalog-product-view .product-info-main .actions {
    flex: 1;
    width: 100%;
    min-width: 0;
}

body.catalog-product-view .product-info-main .action.tocart {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(175deg, var(--bm-crimson-lt, #e02a3a) 0%, var(--bm-crimson, #C8202F) 60%, var(--bm-crimson-dk, #9E1825) 100%);
    color: #fff;
    font-family: var(--bm-font, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(200, 32, 47, .28);
    transition: filter .15s, transform .1s, box-shadow .15s;
}

body.catalog-product-view .product-info-main .action.tocart:hover {
    filter: brightness(1.07);
}

body.catalog-product-view .product-info-main .action.tocart:active {
    transform: scale(.98);
}

/* wishlist / compare */
body.catalog-product-view .product-info-main .product-social-links {
    margin: 0 0 8px;
}

body.catalog-product-view .product-info-main .product-addto-links {
    display: flex;
    gap: 8px;
}

body.catalog-product-view .product-info-main .product-addto-links .action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--pg-border, rgba(0,0,0,.12));
    background: var(--pg-surface, #fff);
    color: var(--pg-text-2, #3D3D3D);
    font-size: 13px;
    font-weight: 600;
    transition: border-color .15s, color .15s, background .15s;
}

body.catalog-product-view .product-info-main .product-addto-links .action:hover {
    border-color: var(--bm-crimson, #C8202F);
    color: var(--bm-crimson, #C8202F);
}

/* ════════════════════════════════════════════════════════════════
   5 — DETAILED TABS (modern underline header + content card)
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .product.info.detailed {
    margin-top: 24px;
}

body.catalog-product-view .product.data.items.bm-tabs {
    margin: 0 !important;
}

body.catalog-product-view .product.data.items.bm-tabs::before,
body.catalog-product-view .product.data.items.bm-tabs::after {
    display: none !important;
}

/* --- tab bar --- */
body.catalog-product-view .bm-tabs-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    padding: 4px;
    margin: 0 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8f9fa;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    box-sizing: border-box;
}

body.catalog-product-view .bm-tabs-head::-webkit-scrollbar {
    display: none;
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item {
    flex: 0 0 auto;
    min-width: max-content;
    margin: 0;
    padding: 0;
    position: relative;
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item .data.switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-family: var(--bm-font, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: none;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    transition: all .2s ease;
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item .data.switch::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all .2s ease;
}

/* red → blue gradient underline (like the block's progress bar) */
body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item .data.switch::after { display: none; }

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item:hover .data.switch {
    color: #111827;
    background: #e9ecef;
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item.active .data.switch {
    color: #fff;
    background: #111827;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .25);
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item.active .data.switch::before {
    background: #fff;
    box-shadow: none;
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item.active .data.switch::after {
    transform: scaleX(1);
}

/* review count badge inside a tab label */
body.catalog-product-view .bm-tabs-head .data.switch .counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    transition: all .2s ease;
}

body.catalog-product-view .bm-tabs-head .data.item.title.bm-tab-head-item.active .data.switch .counter {
    background: #ffffff;
    color: #111827;
}

body.catalog-product-view .bm-tabs-body {
    margin-top: 0;
}

body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item {
    float: none;
    margin: 0;
    padding: 32px 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow:
        0 1px 2px rgba(15,23,42,.04),
        0 4px 10px -4px rgba(15,23,42,.08),
        0 12px 24px -14px rgba(15,23,42,.10);
    display: none;
}

body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item.active {
    display: block !important;
}

/* tab spinner while widget boots */
@media (min-width: 1024px) {
    body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item:first-child {
        display: block;
    }
    body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item:not(:first-child) {
        display: none;
    }
    body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item {
        animation: none;
    }
}

/* block headers inside tab content */
body.catalog-product-view .bm-tab-body-item .block-title {
    font-size: 18px;
    margin-bottom: 14px;
}

/* ════════════════════════════════════════════════════════════════
   6 — AI-DATA CONTENT (enricher output) inside tabs
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .bm-tab-body-item .AI-DATA {
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    color: var(--pg-text-2, #3D3D3D) !important;
    line-height: 1.7 !important;
    max-width: 100%;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA p {
    font-size: 14.5px;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA h2,
body.catalog-product-view .bm-tab-body-item .AI-DATA h3 {
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    color: var(--pg-text, #111) !important;
    border-left: 3px solid var(--bm-crimson, #C8202F) !important;
    padding-left: 10px !important;
    font-weight: 700 !important;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA h2 { font-size: 19px !important; margin: 26px 0 12px !important; }
body.catalog-product-view .bm-tab-body-item .AI-DATA h3 { font-size: 16px !important; margin: 18px 0 8px !important; }

body.catalog-product-view .bm-tab-body-item .AI-DATA .ai-data-hero img {
    border-radius: 14px;
    box-shadow: var(--pg-shadow, 0 8px 32px rgba(0,0,0,.12));
}

body.catalog-product-view .bm-tab-body-item .AI-DATA table.ai-data-specs {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--pg-border, rgba(0,0,0,.1)) !important;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA table.ai-data-specs th,
body.catalog-product-view .bm-tab-body-item .AI-DATA table.ai-data-specs td {
    border-color: var(--pg-border, rgba(0,0,0,.1)) !important;
    padding: 9px 12px !important;
    font-size: 13.5px;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA table.ai-data-specs th {
    background: var(--pg-surface-2, #F2F2F4) !important;
    font-weight: 650;
    width: 38%;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA table.ai-data-specs tr:nth-child(even) td {
    background: rgba(0,0,0,.012);
}

body.catalog-product-view .bm-tab-body-item .AI-DATA .ai-data-note {
    background: #fff8e6 !important;
    border: 1px solid rgba(245, 166, 35, .35) !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    color: #7a5a08 !important;
    padding: 12px 14px !important;
}

body.catalog-product-view .bm-tab-body-item .AI-DATA .ai-data-icon {
    color: var(--bm-amber, #F5A623) !important;
}

/* additional info table */
body.catalog-product-view .bm-tab-body-item .additional-attributes {
    border-collapse: collapse;
    width: 100%;
}

body.catalog-product-view .bm-tab-body-item .additional-attributes tr {
    border-bottom: 1px solid var(--pg-border, rgba(0,0,0,.07));
}

body.catalog-product-view .bm-tab-body-item .additional-attributes th,
body.catalog-product-view .bm-tab-body-item .additional-attributes td {
    padding: 9px 12px;
    font-size: 13.5px;
    text-align: left;
}

body.catalog-product-view .bm-tab-body-item .additional-attributes th {
    color: var(--pg-text-3, #888);
    font-weight: 600;
    width: 38%;
}

/* ════════════════════════════════════════════════════════════════
   7 — ATTACHMENTS TAB (Hexamarvel)
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .attachment-container {
}

body.catalog-product-view .attachment-container > strong {
    display: block;
    font-size: 15px;
    margin-bottom: 12px;
}

body.catalog-product-view ul.attachment-content {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

body.catalog-product-view ul.attachment-content .attch-list {
}

body.catalog-product-view ul.attachment-content .attch-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--pg-border, rgba(0,0,0,.12));
    border-radius: 12px;
    background: var(--pg-surface, #fff);
    color: var(--pg-text-2, #3D3D3D);
    text-decoration: none;
    transition: border-color .15s, background .15s, transform .15s;
}

body.catalog-product-view ul.attachment-content .attch-list a:hover {
    border-color: var(--bm-crimson, #C8202F);
    background: #fffafb;
    transform: translateY(-2px);
}

body.catalog-product-view ul.attachment-content .attachment-image {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(200, 32, 47, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.catalog-product-view ul.attachment-content .attachment-image img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

body.catalog-product-view ul.attachment-content .attachment-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

/* ════════════════════════════════════════════════════════════════
   8 — REVIEWS TAB
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view #reviews .review-ratings .rating-summary .rating-result > span::before {
    color: var(--bm-amber, #F5A623);
}

body.catalog-product-view #reviews .review-list .rating-label,
body.catalog-product-view #reviews .review-field-label {
    color: var(--pg-text-2, #3D3D3D);
}

body.catalog-product-view #reviews .review-title,
body.catalog-product-view #reviews .block-title {
    font-size: 17px;
}

body.catalog-product-view #reviews .review-content {
    font-size: 14px;
    color: var(--pg-text-2, #3D3D3D);
}

/* ════════════════════════════════════════════════════════════════
   9 — RELATED / UPSELL
   ║ heading = product-tab language (grey bar + dark active-pill).
   ║ card    = homepage .bbd-card (white, r14, soft shadow, red
   ║           hover lift, 170px image zone, Inter typography).
   ║ desktop ≥768 = CSS grid, mobile keeps the owl slider.
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .page-bottom .products-grid {
    margin-top: 8px;
}

/* bottom (related/upsell) wrapper — match the product content width.
   .page-main is 83% of .page-wrapper on desktop; this container sat at 95%.
   Zero the bootstrap gutters so the inner box lines up edge-to-edge. */
body.catalog-product-view .page-bottom .container {
    width: 95%;
    padding-left: 0;
    padding-right: 0;
}

/* Desktop: use the same 83% box as .page-main so the related/upsell
   blocks line up with the header and the product content above them. */
@media (min-width: 768px) {
    body.catalog-product-view .page-bottom .container {
        width: 83%;
        max-width: 83%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* strip the legacy bordered / grey-header box */
body.catalog-product-view .page-bottom .product-slider > .block {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 28px !important;
    box-shadow: none !important;
}

/* heading bar — grey, like .bm-tabs-head */
body.catalog-product-view .page-bottom .product-slider .block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0;
    padding: 10px 14px !important;
    margin: 0 !important;
}

/* heading label = dark active-pill (mirrors .bm-tabs-head .active .switch) */
body.catalog-product-view .page-bottom .product-slider .block-title strong {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 18px !important;
    background: #111827 !important;
    color: #ffffff !important;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1;
    letter-spacing: .4px;
    text-transform: none !important;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .25);
}

body.catalog-product-view .page-bottom .product-slider .block-title strong::before {
    content: '';
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* white content panel, like .bm-tabs-body */
body.catalog-product-view .page-bottom .product-slider .block-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px;
    padding: 18px !important;
    margin: 0 !important;
}

/* ──── card shell — identical tokens to the homepage .bbd-card ──── */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-info {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 !important;
    background: #ffffff;
    border: none !important;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    font-family: var(--bm-font, 'Inter', sans-serif);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 20px -14px rgba(60, 30, 100, .28);
    transition: box-shadow .3s ease, transform .3s ease;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 22px 34px -20px rgba(200, 32, 47, .45);
    z-index: 1;
}

/* image zone — 170px, contained + centred, zooms on hover */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .image-product {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 12px;
    margin: 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .image-product > a.product-item-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100% !important;
    padding: 0 !important;
    overflow: visible;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-image-photo {
    position: static !important;
    max-width: 80% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain !important;
    transition: transform .35s ease !important;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-info:hover .product-image-photo {
    transform: scale(1.05) !important;
}

/* ──── details — like .bbd-details (12/14/0, column) ──── */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 12px 14px 0 !important;
    margin: 0;
    font-family: var(--bm-font, 'Inter', sans-serif);
}

/* name — 13px/600, 2 lines, #1D1D1F */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-name {
    margin: 0;
    font-size: 13px;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-name a.product-item-link {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 38px;
    margin: 0 0 8px !important;
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18.85px !important;
    letter-spacing: -.13px;
    color: #1D1D1F !important;
    text-decoration: none;
}

/* rating row — .bbd-rating spacing/tone */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-details .product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 8px;
    font-family: var(--bm-font, 'Inter', sans-serif);
    font-size: 12px;
    line-height: 1;
    color: #6E6E73;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-details .rating-summary {
    margin: 0;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-details .reviews-actions {
    font-family: var(--bm-font, 'Inter', sans-serif);
    font-size: 12px;
    color: #6E6E73;
}

/* price — 16px/900 #1D1D1F */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-details .price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 2px 0 0;
    font-family: var(--bm-font, 'Inter', sans-serif);
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-details .price {
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 16px !important;
    color: #1D1D1F !important;
}

/* ──── footer actions — in flow like .bbd-footer (dark pill CTA) ──── */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-inner {
    height: auto !important;
    overflow: visible !important;
    margin-top: auto;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .product-item-actions {
    position: static !important;
    width: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px -14px 0 !important;
    padding: 0 12px 13px;
    opacity: 1 !important;
    font-size: 13px;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-primary {
    flex: 1 1 auto;
    display: flex;
    font-size: 13px;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-primary .action.tocart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    padding: 11px 12px !important;
    background: #1D1D1F !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-transform: none;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-primary .action.tocart:hover {
    background: #000000 !important;
    transform: translateY(-1px);
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-secondary .action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
    margin: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    color: #6E6E73;
    transition: border-color .2s ease, color .2s ease;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-secondary .action:hover {
    border-color: #C8202F;
    color: #C8202F;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .item.product.product-item {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
}

/* cross-sell footer sits directly inside .product-item-details */
.block.crosssell .product-item-details > .product-item-actions {
    margin-top: auto !important;
}

/* cross-sell CTA (items.phtml uses .shop-now) */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-primary .shop-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    box-sizing: border-box;
    padding: 11px 12px !important;
    background: #1D1D1F !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-transform: none;
    box-shadow: none !important;
    transition: background .2s ease, transform .2s ease;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .actions-primary .shop-now:hover {
    background: #000000 !important;
    transform: translateY(-1px);
}

/* rating row - exact homepage .bbd-rating tokens */
:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-rating {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 0 8px !important;
    min-height: 16px;
    line-height: 1;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-stars {
    display: flex !important;
    align-items: center;
    gap: 1px !important;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-star {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 auto;
    display: block;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-star-full {
    fill: #f5a623 !important;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-star-half {
    fill: url(#bbd-hg) !important;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-star-empty {
    fill: #E5E7EB !important;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-rating-val {
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #1D1D1F !important;
}

:is(body.catalog-product-view .page-bottom .product-slider, .block.crosssell) .bbd-rating-count {
    font-family: var(--bm-font, 'Inter', sans-serif) !important;
    font-size: 10.5px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #6E6E73 !important;
}


/* —————————————————————————————————————————————————————
   DESKTOP: turn the owl track into a static grid (all rows visible)
   ————————————————————————————————————————————————————— */
@media (min-width: 768px) {
    body.catalog-product-view .page-bottom .product-slider .owl-carousel {
        display: block !important;
        width: 100% !important;
    }

    body.catalog-product-view .page-bottom .product-slider .owl-stage-outer {
        width: 100% !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.catalog-product-view .page-bottom .product-slider .owl-stage {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    body.catalog-product-view .page-bottom .product-slider .owl-item {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /* beats .owl-carousel .product-item { width: 100% !important } and the
       inline-block shrink-to-fit sizing that overflows the grid cell */
    body.catalog-product-view .page-bottom .product-slider .owl-carousel .product-item {
        display: block !important;
        width: 100% !important;
        height: 100%;
        margin: 0 !important;
        float: none !important;
    }

    body.catalog-product-view .page-bottom .product-slider .owl-nav,
    body.catalog-product-view .page-bottom .product-slider .owl-dots,
    body.catalog-product-view .page-bottom .product-slider .loading-content {
        display: none !important;
    }
}

/* Fallback grid while Owl is loading (or if its JS is unavailable):
   keep the cards in the same 3/4/6-column layout instead of letting
   them stretch to the full width of the container. */
@media (min-width: 768px) {
    body.catalog-product-view .page-bottom .product-slider .owl-carousel:not(.owl-loaded) {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        width: 100% !important;
    }

    body.catalog-product-view .page-bottom .product-slider .owl-carousel:not(.owl-loaded) .product-item {
        display: block !important;
        width: auto !important;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
}

@media (min-width: 992px) {
    body.catalog-product-view .page-bottom .product-slider .owl-stage,
    body.catalog-product-view .page-bottom .product-slider .owl-carousel:not(.owl-loaded) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1441px) {
    body.catalog-product-view .page-bottom .product-slider .owl-stage,
    body.catalog-product-view .page-bottom .product-slider .owl-carousel:not(.owl-loaded) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ════════════════════════════════════════════════════════════════
   10 — MOBILE (single column, sticky buy bar, compact tabs)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    body.catalog-product-view .column.main {
        display: block;
    }

    body.catalog-product-view .bm-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.catalog-product-view .bm-benefit {
        padding: 9px 10px;
    }
    body.catalog-product-view .bm-benefit__title { font-size: 11.5px; }
    body.catalog-product-view .bm-benefit__sub { font-size: 10.5px; }
    body.catalog-product-view .bm-benefit__icon { width: 26px; height: 26px; }
    body.catalog-product-view .bm-benefit__icon svg { width: 15px; height: 15px; }

    /* tabs: header scrolls horizontally, content card tightens */
    body.catalog-product-view .bm-tabs-head {
        gap: 8px;
        margin-bottom: 20px;
        padding-bottom: 2px;
    }
    body.catalog-product-view .bm-tabs-head .data.switch {
        font-size: 11px;
        letter-spacing: 1.2px;
        padding: 13px 16px;
        border-radius: 3px;
    }
    body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item {
        padding: 24px 20px;
        border-radius: 4px;
    }

    /* sticky add-to-cart bar for simple products (no options).
       `.bm-simple` is added on the <form> (and `bm-has-simple-form` on
       <body>) by addtocart.phtml JS, so no :has() is required. */
    body.bm-has-simple-form .product-info-main .product-add-form {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(50px + env(safe-area-inset-bottom, 0px));
        z-index: 500;
        margin: 0;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--pg-border, rgba(0,0,0,.10));
        box-shadow: 0 -6px 20px rgba(0,0,0,.10);
    }
    body.bm-has-simple-form .product-info-main .box-tocart {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }
    body.bm-has-simple-form .product-info-main .field.qty {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: auto;
        min-width: 132px;
    }
    body.bm-has-simple-form .product-info-main .field.qty .label {
        display: none;
    }
    body.bm-has-simple-form .product-info-main .field.qty .control {
        order: 0;
        flex: 1;
    }
    body.bm-has-simple-form .product-info-main .bm-qty-control input.qty {
        width: 44px;
        height: 42px;
    }
    body.bm-has-simple-form .product-info-main .bm-qty-btn {
        width: 36px;
        height: 42px;
    }
    body.bm-has-simple-form .product-info-main .actions {
        flex: 1;
        margin-left: auto;
    }
    body.bm-has-simple-form .product-info-main .action.tocart {
        height: 46px;
        font-size: 14px;
        white-space: nowrap;
        padding: 0 14px;
    }
    /* room so the last block isn't hidden below the fixed bars */
    body.bm-has-simple-form .page-wrapper {
        padding-bottom: 66px;
    }
}
/* ════════════════════════════════════════════════════════════════
   9 — PAGE LOADING SKELETON
   ════════════════════════════════════════════════════════════════ */
.bm-page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: var(--pg-bg, #F5F5F7);
    display: flex;
    justify-content: center;
    padding: 24px 5%;
    padding-top: var(--bm-skel-top, 150px);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility .35s ease;
}
.bm-page-skeleton.is-loaded {
    opacity: 0;
    visibility: hidden;
}
.bm-page-skeleton-inner {
    width: 100%;
    max-width: 1350px;
}
.bm-skeleton-grid {
    display: flex;
    gap: 28px;
}
.bm-skeleton-media {
    flex: 0 0 470px;
    height: 560px;
    border-radius: 18px;
}
.bm-skeleton-info {
    flex: 1 1 auto;
    padding: 10px 0;
}
.bm-skeleton-line {
    height: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.bm-skeleton-line.w70 { width: 70%; }
.bm-skeleton-line.w55 { width: 55%; }
.bm-skeleton-line.w35 { width: 35%; }
.bm-skeleton-box {
    height: 52px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.bm-skeleton-media,
.bm-skeleton-line,
.bm-skeleton-box {
    background: linear-gradient(100deg, #E9E9EE 35%, #F6F6F8 50%, #E9E9EE 65%);
    background-size: 300% 100%;
    animation: bm-shimmer 1.5s ease-in-out infinite;
}
@media (max-width: 767px) {
    .bm-page-skeleton { padding: 16px 4%; padding-top: var(--bm-skel-top, 175px); }
    .bm-skeleton-grid { flex-direction: column; gap: 18px; }
    .bm-skeleton-media { flex: 1 1 auto; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .bm-skeleton-media,
    .bm-skeleton-line,
    .bm-skeleton-box {
        animation: none;
    }
}
@keyframes bm-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

body.catalog-product-view .product-info-main .bm-product-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 1px;
    border-radius: 8px;
    /* background: var(--pg-surface, #fff); */
    /* border: 1px solid var(--pg-border, rgba(0,0,0,.09)); */
    /* box-shadow: 0 2px 8px rgba(0,0,0,.04); */
}

/* ════════════════════════════════════════════════════════════════
   11 — INFO META ROW (brand · stock · sku · rating, one line)
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .product-info-main .bm-info-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 14px;
}

/* brand logo chip */
body.catalog-product-view .product-info-main .bm-product-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

body.catalog-product-view .product-info-main .bm-product-brand img {
    max-height: 18px;
    max-width: 84px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

body.catalog-product-view .product-info-main .bm-info-meta .product-info-stock-sku {
    margin: 0;
    gap: 8px;
}

body.catalog-product-view .product-info-main .bm-info-meta .product.attribute.sku {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pg-surface-2, #F2F2F4);
    font-size: 12px;
    color: var(--pg-text-2, #3D3D3D);
}

body.catalog-product-view .product-info-main .bm-info-meta .product.attribute.sku .type {
    color: var(--pg-text-3, #888);
    font-weight: 600;
}

/* rating inside the meta row */
body.catalog-product-view .product-info-main .bm-info-meta .product-reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
}

/* stock in meta row: show the custom urgency message, hide the duplicate
   default "En stock" pill (both live inside .product-info-stock-sku; the SKU
   chip is kept). */
body.catalog-product-view .product-info-main .bm-info-meta .product-info-stock-sku .stock {
    display: none !important;
}

body.catalog-product-view .product-info-main .bm-info-meta .availability.only {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #12804a;
    background: rgba(26, 171, 98, .12);
    border: 1px solid rgba(26, 171, 98, .28);
    padding: 4px 10px;
    border-radius: 999px;
}

/* urgency tiers (set via data-stock-tier in stockqty/default.phtml) */
body.catalog-product-view .product-info-main .bm-info-meta .availability.only[data-stock-tier="low"] {
    color: #b12222;
    background: rgba(200, 32, 47, .10);
    border-color: rgba(200, 32, 47, .30);
}

body.catalog-product-view .product-info-main .bm-info-meta .availability.only[data-stock-tier="mid"] {
    color: #9a6400;
    background: rgba(245, 166, 35, .15);
    border-color: rgba(245, 166, 35, .34);
}

body.catalog-product-view .product-info-main .bm-info-meta .product-reviews-summary .rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.catalog-product-view .product-info-main .bm-info-meta .reviews-actions a {
    color: var(--pg-text-3, #888);
    font-size: 12px;
    text-decoration: none;
}

body.catalog-product-view .product-info-main .bm-info-meta .reviews-actions a:hover {
    color: var(--bm-crimson, #C8202F);
}

body.catalog-product-view .product-info-main .bm-rating-value {
    font-weight: 700;
    color: var(--pg-text, #111);
}

/* ════════════════════════════════════════════════════════════════
   12 — BUY ROW (price · qty · add-to-cart · social, next line)
   Kept on a single line on desktop. The info column is narrow
   (~550px, because of the right sidebar) so every control is compact:
   price chip + qty stepper + flexible button + icon-only social.
   ════════════════════════════════════════════════════════════════ */
body.catalog-product-view .product-info-main .bm-buy-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-info-price {
    flex: 0 0 auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

body.catalog-product-view .product-info-main .bm-buy-row .price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

body.catalog-product-view .product-info-main .bm-buy-row .price-box::before {
    content: "Prix TTC";
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pg-text-3, #999);
    margin-bottom: 5px;
}

body.catalog-product-view .product-info-main .bm-buy-row .price {
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 900;
    color: var(--bm-crimson, #C8202F);
    letter-spacing: -.03em;
    line-height: .92;
    white-space: nowrap;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-add-form {
    flex: 1 1 auto;
    min-width: 0;
}

body.catalog-product-view .product-info-main .bm-buy-row .box-tocart,
body.catalog-product-view .product-info-main .bm-buy-row .box-tocart .fieldset {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: 100%;
}

body.catalog-product-view .product-info-main .bm-buy-row .field.qty {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    justify-content: flex-start;
}

body.catalog-product-view .product-info-main .bm-buy-row .field.qty .label {
    display: none;
}

body.catalog-product-view .product-info-main .bm-buy-row .bm-qty-control,
body.catalog-product-view .product-info-main .bm-buy-row .bm-qty-control input.qty,
body.catalog-product-view .product-info-main .bm-buy-row .bm-qty-btn {
    height: 46px;
}

body.catalog-product-view .product-info-main .bm-buy-row .bm-qty-btn {
    width: 34px;
}

body.catalog-product-view .product-info-main .bm-buy-row .bm-qty-control input.qty {
    width: 40px;
}

body.catalog-product-view .product-info-main .bm-buy-row .actions {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* Buy button: vertically centered with the price + qty (no offset) */
body.catalog-product-view .product-info-main .bm-buy-row .action.tocart {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
    padding: 0 16px;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Kill the theme's legacy 27px top padding on the buy controls
   (source/detail/_styles.less). Higher specificity + !important so it wins
   over `padding-top: 27px !important` even while the compiled styles-m.css
   is still cached. */
body.catalog-product-view .product-info-main .bm-buy-row .box-tocart .actions,
body.catalog-product-view .product-options-bottom .box-tocart .actions {
    padding-top: 0 !important;
}

body.catalog-product-view .product-info-main .bm-buy-row .box-tocart .field.qty,
body.catalog-product-view .product-options-bottom .box-tocart .field.qty {
    padding-top: 0 !important;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-social-links,
body.catalog-product-view .product-options-bottom .product-social-links {
    padding-top: 0 !important;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-social-links {
    flex: 0 0 auto;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-addto-links {
    display: flex;
    gap: 6px;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-addto-links .action {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
    justify-content: center;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-addto-links .action::before {
    font-family: icomoon;
    content: "\";
    color: var(--pg-text-2, #3D3D3D);
    width: 100%;
    height: 100%;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-addto-links .action.tocompare::before {
    content: "\";
}

body.catalog-product-view .star {
    display: inline-block !important;
    width: 1.2em !important;
    height: 1.2em !important;
    vertical-align: middle !important;
    margin: 0 .1em !important;
}

/* Only the template's inline SVG stars should render. The theme's
   _general.less draws extra icomoon stars via ::before on .rating-result
   and its child span inside the meta row — kill those two pseudo sets. */
body.catalog-product-view .bm-info-meta .rating-summary .rating-result::before,
body.catalog-product-view .bm-info-meta .rating-summary .rating-result > span::before {
    content: none !important;
}

body.catalog-product-view .bm-info-meta .rating-summary .rating-result {
    width: auto;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

body.catalog-product-view .product-info-main .bm-buy-row .product-addto-links .action span {
    display: none;
}

/* mobile: buy row stacks (price, then social; the form is the sticky bar) */
@media (max-width: 767px) {
    body.catalog-product-view .product-info-main .bm-info-meta {
        gap: 8px 10px;
    }
    body.catalog-product-view .product-info-main .bm-buy-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    body.catalog-product-view .product-info-main .bm-buy-row .product-add-form {
        flex: 1 1 100%;
        order: 3;
    }
    body.catalog-product-view .product-info-main .bm-buy-row .product-social-links {
        flex: 1 1 100%;
        order: 4;
    }
    body.catalog-product-view .product-info-main .bm-buy-row .product-addto-links {
        flex-wrap: wrap;
    }
}

/* BM tabs fix */
body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item { display: none !important; }
body.catalog-product-view .bm-tabs-body .data.item.content.bm-tab-body-item.active { display: block !important; }
