/* Product page (owner, 2026-11-14: laid out like Occhio's product pages): single-product.php, inc/product-page.php.
   Pages with the body class "bm-pp". Tailwind is printed after this file, so the rules carry a parent class. */

body.bm-pp {
    --bm-pp-ground: #efefef;
    --bm-pp-tile: #f3f3f3;
    --bm-pp-line: #e3e3e3;
    --bm-pp-ink: #1a1a1a;
    --bm-pp-grey: #6b6e74;
    /* Height of the site header's logo and menu at the top of the page (the rest of it is see-through padding). */
    --bm-pp-top: 140px;
    --bm-pp-side: var(--bm-side, 20px);
    --bm-pp-bar: 52px;
}

@media (min-width: 1024px) {
    body.bm-pp {
        --bm-pp-top: 212px;
        --bm-pp-bar: 64px;
    }
}

/* The page may scroll sideways never; "clip" (not "hidden") keeps sticky and fixed parts working. */
body.bm-pp main.bm-pp-main {
    overflow-x: clip;
}

/* ---------- Site header over the light stage ----------
   header.php prints its dark see-through header (white logo and menu) for products whose picture is a wide
   scene. Over the light stage it reads dark, the way it does once the page is scrolled. */
body.bm-pp--dark-header #site-header.site-header-dark {
    color: #000;
}

body.bm-pp--dark-header #site-header.site-header-dark svg {
    filter: brightness(0);
}

/* ---------- 1. Stage ---------- */
body.bm-pp .bm-pp-stage {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: clamp(400px, 66vh, 640px);
    padding: var(--bm-pp-top) var(--bm-pp-side) 20px;
    background: var(--bm-pp-ground);
}

@media (min-width: 1024px) {
    body.bm-pp .bm-pp-stage {
        height: clamp(560px, 86vh, 1120px);
        padding-bottom: 32px;
    }
}

body.bm-pp .bm-pp-stage__frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

/* The whole picture, centred, never cropped and never larger than its file. "multiply" lets a cut-out's white
   ground melt into the stage; a room photo is shown as it is. */
body.bm-pp .bm-pp-stage__img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

body.bm-pp .bm-pp-stage--scene .bm-pp-stage__img {
    mix-blend-mode: normal;
}

/* ---------- 2. Name ---------- */
body.bm-pp .bm-pp-head {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px var(--bm-pp-side) 48px;
    text-align: center;
    color: var(--bm-pp-ink);
}

body.bm-pp .bm-pp-head--first {
    padding-top: calc(var(--bm-pp-top) + 24px);
}

@media (min-width: 1024px) {
    body.bm-pp .bm-pp-head {
        padding-top: 36px;
        padding-bottom: 64px;
    }

    body.bm-pp .bm-pp-head--first {
        padding-top: calc(var(--bm-pp-top) + 40px);
    }
}

/* Breadcrumbs: Yoast's same links, as one quiet line over the name. */
body.bm-pp .bm-pp-crumbs section {
    background: transparent;
}

body.bm-pp .bm-pp-crumbs section > div {
    padding: 0;
    max-width: none;
}

body.bm-pp .bm-pp-crumbs section > div > div {
    justify-content: center;
    min-height: 0;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .04em;
    color: var(--bm-pp-grey);
}

body.bm-pp .bm-pp-crumbs a {
    color: var(--bm-pp-grey);
    transition: color .2s ease;
}

body.bm-pp .bm-pp-crumbs a:hover {
    color: var(--bm-pp-ink);
}

body.bm-pp .bm-pp-crumbs .breadcrumb_last,
body.bm-pp .bm-pp-crumbs strong {
    font-weight: 400;
    color: var(--bm-pp-ink);
}

body.bm-pp .bm-pp-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

body.bm-pp .bm-pp-tag {
    padding: 3px 12px;
    border: 1px solid var(--bm-pp-ink);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .14em;
}

/* Large and light, the name as it is stored. */
body.bm-pp .bm-pp-title {
    max-width: 1100px;
    margin: 18px auto 0;
    font-size: clamp(30px, 4.4vw, 66px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--bm-pp-ink);
}

body.bm-pp .bm-pp-meta {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: .04em;
    color: var(--bm-pp-grey);
}

body.bm-pp .bm-pp-dot {
    margin: 0 .5em;
}

body.bm-pp .bm-pp-glance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
    max-width: 900px;
    margin: 14px auto 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--bm-pp-grey);
}

body.bm-pp .bm-pp-glance li + li::before {
    content: "·";
    margin: 0 .75em;
}

body.bm-pp .bm-pp-glance__k {
    color: var(--bm-pp-ink);
}

body.bm-pp .bm-pp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    margin-top: 28px;
}

/* Solid quote button (name and bar). */
body.bm-pp .bm-pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 2px;
    background: var(--bm-pp-ink);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: .06em;
    white-space: nowrap;
    transition: background-color .2s ease;
}

body.bm-pp .bm-pp-btn:hover,
body.bm-pp .bm-pp-btn:focus-visible {
    background: #000;
    color: #fff;
}

body.bm-pp .bm-pp-link {
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--bm-pp-grey);
    transition: color .2s ease;
}

body.bm-pp .bm-pp-link:hover {
    color: var(--bm-pp-ink);
}

/* ---------- 3. Bar under the header ---------- */
body.bm-pp .bm-pp-bar {
    position: fixed;
    top: var(--header-height, 131px);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--bm-pp-line);
    border-bottom: 1px solid var(--bm-pp-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

body.bm-pp .bm-pp-bar.is-shown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

body.bm-pp .bm-pp-bar__in {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--bm-pp-bar);
    padding: 0 var(--bm-pp-side);
}

body.bm-pp .bm-pp-bar__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    letter-spacing: .02em;
    color: var(--bm-pp-ink);
}

body.bm-pp .bm-pp-bar__links {
    display: none;
}

body.bm-pp .bm-pp-btn--bar {
    padding: 10px 16px;
    font-size: 13px;
}

@media (min-width: 768px) {
    body.bm-pp .bm-pp-bar__in {
        gap: 36px;
    }

    body.bm-pp .bm-pp-bar__name {
        font-size: 16px;
    }

    body.bm-pp .bm-pp-bar__links {
        display: flex;
        align-items: center;
        gap: 28px;
        margin: 0;
        font-size: 14px;
        letter-spacing: .04em;
    }

    body.bm-pp .bm-pp-bar__links a {
        display: inline-block;
        padding: 4px 0;
        border-bottom: 1px solid transparent;
        color: var(--bm-pp-grey);
        white-space: nowrap;
        transition: color .2s ease, border-color .2s ease;
    }

    body.bm-pp .bm-pp-bar__links a:hover,
    body.bm-pp .bm-pp-bar__links a[aria-current] {
        color: var(--bm-pp-ink);
        border-bottom-color: var(--bm-pp-ink);
    }

    body.bm-pp .bm-pp-btn--bar {
        padding: 12px 24px;
    }
}

body.bm-pp .bm-pp-bar a:focus-visible,
body.bm-pp .bm-pp-actions a:focus-visible {
    outline: 2px solid var(--bm-pp-ink);
    outline-offset: 3px;
}

/* The places the bar links to: not hidden under the header and the bar. */
body.bm-pp .product-anchor {
    scroll-margin-top: calc(131px + var(--bm-pp-bar) + 12px);
}

@media (min-width: 1024px) {
    body.bm-pp .product-anchor {
        scroll-margin-top: calc(183px + var(--bm-pp-bar) + 16px);
    }
}

/* ---------- 4. Sections ---------- */
body.bm-pp .bm-pp-sec {
    margin: 0 var(--bm-pp-side);
    padding: 56px 0;
    border-top: 1px solid var(--bm-pp-line);
}

@media (min-width: 1024px) {
    body.bm-pp .bm-pp-sec {
        padding: 88px 0;
    }
}

body.bm-pp .bm-pp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    body.bm-pp .bm-pp-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: 56px;
    }
}

/* Section names ("על המוצר", "פרטי המוצר", "קבצים להורדה"): light, like the product name. */
body.bm-pp .bm-pp-label {
    margin: 0;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: none;
    color: var(--bm-pp-ink);
}

@media (min-width: 1024px) {
    body.bm-pp .bm-pp-label {
        font-size: 32px;
    }
}

body.bm-pp .bm-pp-text {
    max-width: 780px;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: .01em;
    color: #2b2b2b;
}

@media (min-width: 768px) {
    body.bm-pp .bm-pp-text {
        font-size: 19px;
    }
}

/* Gallery: every picture whole on a quiet tile, opening in the lightbox. */
body.bm-pp .bm-pp-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

body.bm-pp .bm-pp-row + .bm-pp-gallery {
    margin-top: 56px;
}

@media (min-width: 640px) {
    body.bm-pp .bm-pp-gallery--two,
    body.bm-pp .bm-pp-gallery--many {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    body.bm-pp .bm-pp-row + .bm-pp-gallery {
        margin-top: 80px;
    }

    body.bm-pp .bm-pp-gallery--many {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

body.bm-pp .bm-pp-gallery--one {
    max-width: 1120px;
    margin-inline: auto;
}

body.bm-pp .bm-pp-shot {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bm-pp-tile);
    cursor: zoom-in;
}

body.bm-pp .bm-pp-gallery--one .bm-pp-shot {
    aspect-ratio: 16 / 10;
}

body.bm-pp .bm-pp-shot__img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .6s ease;
}

body.bm-pp .bm-pp-shot:hover .bm-pp-shot__img {
    transform: scale(1.02);
}

/* Technical details: label grey, value dark, one row per spec. */
body.bm-pp .bm-pp-specs {
    margin: 0;
    border-top: 1px solid var(--bm-pp-line);
}

body.bm-pp .bm-pp-spec {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--bm-pp-line);
}

body.bm-pp .bm-pp-spec dt {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: .02em;
    color: var(--bm-pp-grey);
}

body.bm-pp .bm-pp-spec dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: .01em;
    color: var(--bm-pp-ink);
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    body.bm-pp .bm-pp-spec {
        gap: 32px;
        padding: 17px 0;
    }
}

/* Files: one row each, icon, name, format, download mark. */
body.bm-pp .bm-pp-files__group + .bm-pp-files__group {
    margin-top: 36px;
}

body.bm-pp .bm-pp-files__label {
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: .02em;
    color: var(--bm-pp-grey);
}

body.bm-pp .bm-pp-files__list {
    margin: 0;
    border-top: 1px solid var(--bm-pp-line);
}

body.bm-pp .bm-pp-file {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 15px 6px;
    border-bottom: 1px solid var(--bm-pp-line);
    font-size: 15px;
    line-height: 1.5;
    color: var(--bm-pp-ink);
    transition: background-color .2s ease;
}

body.bm-pp .bm-pp-file:hover,
body.bm-pp .bm-pp-file:focus-visible {
    background: #f7f7f7;
}

body.bm-pp .bm-pp-file__name {
    overflow-wrap: anywhere;
}

body.bm-pp .bm-pp-file__format {
    padding: 2px 8px;
    border: 1px solid var(--bm-pp-line);
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--bm-pp-grey);
}

body.bm-pp .bm-pp-ico {
    display: block;
    flex: none;
    color: var(--bm-pp-grey);
}

/* Share links: one quiet line closing the sections. */
body.bm-pp .bm-pp-share {
    margin: 0 var(--bm-pp-side);
    padding-bottom: 56px;
}

body.bm-pp .bm-pp-share > div {
    margin-top: 0;
    padding-top: 28px;
    border-top: 1px solid var(--bm-pp-line);
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    body.bm-pp .bm-pp-bar,
    body.bm-pp .bm-pp-shot__img {
        transition: none;
    }
}
