/* Hidden-door product pages only — body.phpHiddenProduct
   Density pass: compact first screen, calm proportions, sticky under header. */
.phpHiddenProduct {
    --php-bg: #ffffff;
    --php-muted: #f5f5f7;
    --php-text: #1d1d1f;
    --php-secondary: #6e6e73;
    --php-placeholder: #86868b;
    --php-line: #dcdce1;
    --php-accent: #fe5b3f;
    --php-accent-hover: #e64a30;
    --php-graphite: #2c2c2e;
    --php-graphite-hover: #1d1d1f;
    --php-radius-lg: 20px;
    --php-radius-md: 16px;
    --php-radius-ctl: 14px;
    --php-radius: 20px;
    background: var(--php-bg);
    color: var(--php-text);
    overflow-x: clip;
}

.phpHiddenProduct .wrap {
    max-width: 1100px !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.phpHiddenProduct .back,
.phpHiddenProduct .crumbs {
    opacity: 0.75;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ===== First-screen grid ===== */
.phpHiddenLayout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr) !important;
    gap: clamp(28px, 3vw, 42px) !important;
    align-items: start !important;
    margin-top: 4px !important;
}

/* Sticky photo: clear fixed header (~88–100px). Override product.php .layout > div:first-child { top:34px }. */
@media (min-width: 992px) and (min-height: 760px) {
    .phpHiddenProduct .layout > div:first-child,
    .phpHiddenProduct .phpHiddenPhotoCol,
    .phpHiddenProduct .photoCol {
        position: sticky !important;
        top: 112px !important;
        align-self: start !important;
        z-index: 1;
    }
}

@media (max-height: 759px) {
    .phpHiddenProduct .layout > div:first-child,
    .phpHiddenProduct .phpHiddenPhotoCol,
    .phpHiddenProduct .photoCol {
        position: relative !important;
        top: auto !important;
    }
}

/* ===== Photo ===== */
.phpHiddenProduct .phpHiddenPhoto,
.phpHiddenProduct .photoBox.phpHiddenPhoto {
    position: relative;
    background: var(--php-muted) !important;
    border-radius: 20px !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: clamp(24px, 2.5vw, 32px) !important;
    height: clamp(480px, 48vw, 540px) !important;
    min-height: 0 !important;
    max-height: 560px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.phpHiddenProduct .phpHiddenPhoto picture,
.phpHiddenProduct .photoBox.phpHiddenPhoto picture {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.phpHiddenProduct .phpHiddenPhoto img,
.phpHiddenProduct .phpHiddenPhoto #mainPhoto,
.phpHiddenProduct .photoBox.phpHiddenPhoto img,
.phpHiddenProduct .photoBox.phpHiddenPhoto #mainPhoto {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 480px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.phpHiddenZoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 11px;
    border-radius: 980px;
    background: rgba(29, 29, 31, 0.55);
    color: #fff;
    font: 500 11px/1 Montserrat, system-ui, sans-serif;
    pointer-events: none;
}

/* AXELDOORS Invisible interiors gallery — only under .phpHiddenProduct */
.phpHiddenProduct .phpHiddenThumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.phpHiddenProduct .phpHiddenThumb {
    flex: 1 1 0;
    min-width: 44px;
    min-height: 44px;
    height: 68px;
    margin: 0;
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: 11px;
    background: var(--php-muted, #f5f5f7);
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.phpHiddenProduct .phpHiddenThumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phpHiddenProduct .phpHiddenThumb.is-active {
    border-color: var(--php-accent, #fe5b3f);
}
.phpHiddenProduct .phpHiddenThumb:focus-visible {
    outline: 2px solid var(--php-text, #1d1d1f);
    outline-offset: 2px;
}
.phpHiddenProduct .phpHiddenPhoto.is-showing-interior img,
.phpHiddenProduct .phpHiddenPhoto.is-showing-interior #mainPhoto {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 42% !important;
}

@media (max-width: 560px) {
    .phpHiddenProduct .phpHiddenThumb {
        flex: 0 0 calc(25% - 6px);
        height: 64px;
    }
}

/* ===== Typography (right column on white) ===== */
.phpHiddenEyebrow {
    margin: 0 0 8px;
    font: 600 11px/1.2 Montserrat, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--php-secondary);
}

.phpHiddenTitle {
    margin: 0 0 10px !important;
    font-size: clamp(36px, 3.6vw, 46px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.06 !important;
    color: var(--php-text) !important;
    text-transform: none !important;
}

.phpHiddenProduct h1.phpHiddenTitle {
    font-size: clamp(36px, 3.6vw, 46px) !important;
    line-height: 1.06 !important;
    margin: 0 0 10px !important;
}

.phpHiddenSpecs {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--php-secondary);
}

.phpHiddenLead {
    margin: 0 0 20px;
    max-width: 32em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--php-secondary);
}

.phpHiddenPrice {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

.phpHiddenPrice__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--php-secondary);
    margin-bottom: 4px;
}

.phpHiddenPrice__value {
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--php-text);
}

.phpHiddenPrice__alt {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--php-secondary);
}

.phpHiddenPrice__note {
    margin: 8px 0 0;
    max-width: 30em;
    font-size: 13px;
    line-height: 1.45;
    color: var(--php-secondary);
}

/* ===== Kit (compact muted group) ===== */
.phpHiddenKit {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: var(--php-muted);
    border-radius: 16px;
}

.phpHiddenKit__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.phpHiddenKit__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

.phpHiddenKit__list li {
    position: relative;
    padding-left: 0.9em;
    font-size: 14px;
    line-height: 1.35;
    color: var(--php-text);
}

.phpHiddenKit__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--php-text);
}

/* ===== Actions ===== */
.phpHiddenActions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 16px;
    align-items: center;
    margin: 0 0 16px;
}

.phpHiddenBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: var(--php-radius-ctl);
    text-decoration: none;
    font: 650 15px/1.2 Montserrat, system-ui, sans-serif;
    border: 0;
    box-sizing: border-box;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.phpHiddenBtn--accent {
    background: var(--php-accent);
    color: #fff;
}

.phpHiddenBtn--accent:hover {
    background: var(--php-accent-hover);
    color: #fff;
}

.phpHiddenBtn--accent:active {
    transform: translateY(1px);
}

.phpHiddenBtn--accent:focus-visible {
    outline: 2px solid var(--php-accent);
    outline-offset: 3px;
}

.phpHiddenBtn--text {
    background: transparent;
    color: var(--php-graphite);
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    font-size: 14px;
}

.phpHiddenBtn--text:hover {
    color: var(--php-accent);
}

/* ===== Meta: sizes + installment side by side ===== */
.phpHiddenMeta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 8px;
}

.phpHiddenMeta__item {
    padding: 11px 13px;
    background: var(--php-muted);
    border-radius: 14px;
}

.phpHiddenMeta__k {
    display: block;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--php-secondary);
    margin-bottom: 3px;
}

.phpHiddenMeta__v {
    font-size: 13px;
    line-height: 1.35;
    color: var(--php-text);
}

@media (max-width: 520px) {
    .phpHiddenMeta {
        grid-template-columns: 1fr;
    }
}

/* Hide legacy mobile summary */
.phpHiddenProduct #mobileProductSummary,
.phpHiddenProduct .mobileProductSummary {
    display: none !important;
}

.phpHiddenProduct .gd-price-final {
    display: none !important;
}

/* ===== Lower cards: compact group containers only ===== */
.phpHiddenProduct .card,
.phpHiddenProduct .infoBox {
    background: var(--php-muted) !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 18px !important;
    padding: 20px 22px !important;
    margin-top: 18px !important;
}

.phpHiddenProduct .card h2,
.phpHiddenProduct .infoBox h2 {
    margin: 0 0 14px !important;
    font-size: 22px !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    color: var(--php-text) !important;
}

/* Variants: 2 columns when space allows; single variant stays half-width */
.phpHiddenProduct .variants {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.phpHiddenProduct .variant {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    min-height: 78px !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    border: 1px solid var(--php-line) !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.phpHiddenProduct .variant:only-child {
    max-width: calc(50% - 4px);
}

.phpHiddenProduct .variant.active {
    border-color: var(--php-accent) !important;
    box-shadow: 0 0 0 1px var(--php-accent) !important;
}

.phpHiddenProduct .variant img,
.phpHiddenProduct .variant picture img {
    width: 42px !important;
    max-width: 42px !important;
    height: 56px !important;
    object-fit: contain !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.phpHiddenProduct .variantTitle {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: var(--php-text) !important;
    overflow-wrap: anywhere;
}

.phpHiddenProduct .variantText {
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: var(--php-secondary) !important;
    margin-top: 2px !important;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .phpHiddenProduct .variants {
        grid-template-columns: 1fr !important;
    }

    .phpHiddenProduct .variant:only-child {
        max-width: none;
    }
}

/* Specs / characteristics tables */
.phpHiddenProduct .card table,
.phpHiddenProduct .specTable,
.phpHiddenProduct .charTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.phpHiddenProduct .card table th,
.phpHiddenProduct .card table td,
.phpHiddenProduct .specTable th,
.phpHiddenProduct .specTable td {
    padding: 11px 0 !important;
    border-bottom: 1px solid var(--php-line) !important;
    vertical-align: top;
    font-size: 14px !important;
    line-height: 1.4;
    text-align: left;
}

.phpHiddenProduct .card table th,
.phpHiddenProduct .specTable th,
.phpHiddenProduct .card table td:first-child,
.phpHiddenProduct .specTable td:first-child {
    font-weight: 500 !important;
    color: var(--php-secondary) !important;
    width: 42%;
    padding-right: 12px !important;
}

.phpHiddenProduct .card table tr:last-child th,
.phpHiddenProduct .card table tr:last-child td,
.phpHiddenProduct .specTable tr:last-child td {
    border-bottom: 0 !important;
}

/* Expert */
.phpHiddenExpert,
.phpHiddenProduct .phpHiddenExpert {
    margin: 20px 0;
    padding: clamp(22px, 3vw, 26px);
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--php-line);
}

.phpHiddenExpert h2,
.phpHiddenProduct .phpHiddenExpert h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--php-text);
}

.phpHiddenExpert p,
.phpHiddenProduct .phpHiddenExpert p {
    margin: 0;
    max-width: 40em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--php-secondary);
}

/* ===== Try-on secondary ===== */
.phpHiddenProduct .toWrap {
    margin-top: 12px;
}

.phpHiddenProduct .toBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #fff;
    color: var(--php-graphite);
    border: 1px solid var(--php-line);
    border-radius: var(--php-radius-ctl);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.phpHiddenProduct .toBtn > span {
    display: none !important;
}

.phpHiddenProduct .toBtn:hover {
    background: var(--php-muted);
    border-color: #c8c8cd;
    color: var(--php-graphite-hover);
}

.phpHiddenProduct .toBtn:focus-visible {
    outline: 2px solid var(--php-accent);
    outline-offset: 3px;
}

.phpHiddenProduct .toHint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--php-placeholder);
    text-align: center;
}

/* ===== Measure form ===== */
.phpHiddenProduct .measureBox {
    background: #fff !important;
    border: 1px solid var(--php-line) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    padding: clamp(26px, 3vw, 30px) !important;
    margin-top: 20px !important;
    margin-bottom: 20px;
}

.phpHiddenProduct .measureBtn {
    background: var(--php-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.phpHiddenProduct .measureBtn:hover {
    background: var(--php-accent-hover) !important;
}

.phpHiddenProduct .measureBox h2 {
    margin: 0 0 10px !important;
    font-size: clamp(28px, 3vw, 34px) !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.12 !important;
    color: var(--php-text) !important;
}

.phpHiddenProduct .measureBox > p {
    margin: 0 0 16px;
    max-width: 40em;
    font-size: 15px;
    line-height: 1.5;
    color: var(--php-secondary);
}

.phpHiddenProduct .measureGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phpHiddenProduct .measureGrid input,
.phpHiddenProduct .measureGrid textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--php-line);
    border-radius: var(--php-radius-ctl);
    font-size: 15px;
    line-height: 1.35;
    color: var(--php-text);
    box-shadow: none;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.phpHiddenProduct .measureGrid textarea {
    grid-column: 1 / -1;
    min-height: 92px;
    resize: vertical;
}

.phpHiddenProduct .measureGrid input::placeholder,
.phpHiddenProduct .measureGrid textarea::placeholder {
    color: var(--php-placeholder);
    opacity: 1;
}

.phpHiddenProduct .measureGrid input:focus,
.phpHiddenProduct .measureGrid input:focus-visible,
.phpHiddenProduct .measureGrid textarea:focus,
.phpHiddenProduct .measureGrid textarea:focus-visible {
    border-color: var(--php-accent);
    box-shadow: 0 0 0 3px rgba(254, 91, 63, 0.18);
    outline: 2px solid transparent;
}

.phpHiddenProduct .measureBtn {
    margin-top: 12px;
    width: 100%;
    min-height: 50px;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--php-radius-ctl);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.12s ease;
}

.phpHiddenProduct .measureBtn:active {
    transform: translateY(1px);
}

.phpHiddenProduct .measureBtn:focus-visible {
    outline: 2px solid var(--php-accent);
    outline-offset: 3px;
}

.phpHiddenProduct .measureNote {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--php-placeholder);
}

/* Consent */
.phpHiddenProduct .pd-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 6px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--php-secondary);
    cursor: pointer;
    text-align: left;
}

.phpHiddenProduct .pd-consent input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: var(--php-accent);
    cursor: pointer;
}

.phpHiddenProduct .pd-consent,
.phpHiddenProduct .pd-consent span {
    color: var(--php-secondary) !important;
}

.phpHiddenProduct .pd-consent a {
    color: var(--php-graphite) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.phpHiddenProduct .pd-consent a:hover {
    color: var(--php-accent) !important;
}

.phpHiddenProduct .pd-consent a:focus-visible {
    outline: 2px solid var(--php-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Tablet / mobile ===== */
@media (max-width: 991px) {
    .phpHiddenLayout {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .phpHiddenProduct .layout > div:first-child,
    .phpHiddenProduct .phpHiddenPhotoCol,
    .phpHiddenProduct .photoCol {
        position: relative !important;
        top: auto !important;
    }

    .phpHiddenProduct .phpHiddenPhoto,
    .phpHiddenProduct .photoBox.phpHiddenPhoto {
        height: clamp(360px, 72vw, 460px) !important;
        max-height: none !important;
        order: 2;
    }

    .phpHiddenInfo {
        order: 1;
    }

    .phpHiddenProduct .phpHiddenThumbs {
        order: 2;
    }

    .phpHiddenProduct .photoCol .toWrap,
    .phpHiddenProduct .photoCol [id*="tryon"] {
        order: 3;
    }

    .phpHiddenProduct .phpHiddenPhoto img,
    .phpHiddenProduct .phpHiddenPhoto #mainPhoto {
        max-height: 400px !important;
    }
}

@media (max-width: 767px) {
    .phpHiddenProduct .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .phpHiddenTitle,
    .phpHiddenProduct h1.phpHiddenTitle {
        font-size: clamp(32px, 8.5vw, 38px) !important;
    }

    .phpHiddenActions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .phpHiddenBtn--accent {
        width: 100%;
        min-height: 46px;
    }

    .phpHiddenBtn--text {
        text-align: center;
        width: 100%;
    }

    .phpHiddenProduct .phpHiddenPhoto,
    .phpHiddenProduct .photoBox.phpHiddenPhoto {
        padding: 18px !important;
        height: clamp(360px, 88vw, 440px) !important;
    }

    .phpHiddenProduct .toBtn {
        min-height: 46px;
    }

    .phpHiddenProduct .measureBox {
        margin-bottom: 88px;
        padding: 22px 18px !important;
    }

    .phpHiddenProduct .measureGrid {
        grid-template-columns: 1fr;
    }

    .phpHiddenProduct .card,
    .phpHiddenProduct .infoBox {
        padding: 18px !important;
    }

    .phpHiddenProduct .card h2 {
        font-size: 20px !important;
    }
}

@media (max-width: 700px) {
    .phpHiddenProduct .measureGrid {
        grid-template-columns: 1fr;
    }
}
