/* Axoli Tiles product page (original code for this site). Uses the tokens and components in site.css. */

.pd-top { padding-top: clamp(16px, 2.4vw, 32px); padding-bottom: clamp(48px, 6vw, 96px); }
.pd-top .ax-page-hero__crumbs { margin-bottom: clamp(16px, 2vw, 24px); }
.pd-top .ax-page-hero__crumbs [aria-current] { color: var(--ax-ink); }
.pd-hero { display: grid; gap: clamp(24px, 3.6vw, 60px); align-items: start; }
@media (min-width: 1024px) {
    .pd-hero { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
    .pd-media { position: sticky; top: calc(var(--ax-header-h) + 20px); }
}

/* ---------- Gallery ---------- */

.pd-media { display: grid; gap: 12px; min-width: 0; }
.pd-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 3 / 2; border-radius: var(--ax-r-l); overflow: hidden; background: var(--ax-paper-2); cursor: zoom-in; }
@media (max-width: 767px) { .pd-stage { aspect-ratio: 4 / 3; margin-inline: calc(var(--ax-gutter) * -1); border-radius: 0; } }
.pd-slide { position: relative; grid-area: 1 / 1; min-width: 0; min-height: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ax-ease), visibility 0s linear 0.5s; }
.pd-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.pd-slide picture { display: block; width: 100%; height: 100%; }
.pd-slide img, .pd-slide video, .pd-slide iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.pd-slide--video { background: var(--ax-dark); cursor: default; }
.pd-slide--video video { object-fit: contain; }
/* the tile itself, at its shape, lying on a soft ground */
.pd-slide--tile { display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 35%, #fbf9f5 0%, var(--ax-paper-2) 70%); }
.pd-slide__tile { display: block; height: 64%; max-width: 86%; aspect-ratio: var(--ratio, 1 / 1); border-radius: 3px; overflow: hidden; box-shadow: 0 34px 50px -30px rgba(48, 34, 20, 0.6), 0 2px 6px rgba(48, 34, 20, 0.12); }
.pd-slide figcaption {
    position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 120px); padding: 7px 13px; border-radius: 999px;
    background: rgba(21, 19, 17, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.8125rem; font-weight: 500;
}
.pd-stage__prev, .pd-stage__next { position: absolute; top: 50%; z-index: 3; margin-top: -23px; background: rgba(255, 255, 255, 0.9); color: var(--ax-ink); box-shadow: 0 8px 20px -10px rgba(21, 19, 17, 0.5); }
.pd-stage__prev { left: 14px; }
.pd-stage__next { right: 14px; }
.pd-stage__prev:hover, .pd-stage__next:hover { background: #fff; }
.pd-stage__zoom {
    position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); color: var(--ax-ink); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(21, 19, 17, 0.5); transition: transform 0.25s var(--ax-ease);
}
.pd-stage__zoom svg { width: 17px; height: 17px; }
.pd-stage__zoom:hover { transform: scale(1.06); }
@media (hover: hover) {
    .pd-stage__prev, .pd-stage__next { opacity: 0; transition: opacity 0.25s ease; }
    .pd-stage:hover .pd-stage__prev, .pd-stage:hover .pd-stage__next, .pd-stage__prev:focus-visible, .pd-stage__next:focus-visible { opacity: 1; }
}
@media (hover: none) { .pd-stage__prev, .pd-stage__next { display: none; } }
.pd-thumbs { display: flex; gap: 10px; margin: 0; padding: 3px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
    position: relative; flex: none; width: clamp(64px, 7vw, 86px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
    background: var(--ax-paper-2); cursor: pointer; opacity: 0.6; transition: opacity 0.25s ease, box-shadow 0.25s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 0.9; }
.pd-thumb[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ax-paper), 0 0 0 4px var(--ax-accent); }
.pd-thumb:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ax-paper), 0 0 0 4px var(--ax-ink); }
.pd-thumb__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(21, 19, 17, 0.62); color: #fff; }
.pd-thumb__play svg { width: 13px; height: 13px; margin-left: 2px; }

/* ---------- The design ---------- */

.pd-info { display: grid; gap: 20px; align-content: start; min-width: 0; }
.pd-eyebrow { flex-wrap: wrap; row-gap: 2px; }
.pd-eyebrow a { color: inherit; text-decoration: none; }
.pd-eyebrow a:hover { color: var(--ax-accent-ink); }
.pd-eyebrow span { color: var(--ax-muted); font-weight: 500; }
.pd-title { margin: -6px 0 0; font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.pd-summary { max-width: 46ch; margin: -4px 0 0; color: var(--ax-ink-2); font-size: 1.03rem; line-height: 1.6; }
.pd-summary--text > :first-child { margin-top: 0; }
.pd-summary--text > :last-child { margin-bottom: 0; }

/* at a glance */
.pd-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pd-keys li { display: grid; align-content: end; gap: 2px; min-width: 0; padding: 14px 14px 12px; border-radius: var(--ax-r-m); background: var(--ax-paper-2); }
.pd-keys b { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.pd-keys li > span:last-child { font-size: 0.78rem; color: var(--ax-muted); }
.pd-keys__tile { display: block; justify-self: start; height: 26px; aspect-ratio: var(--ratio, 1 / 1); margin-bottom: 10px; border-radius: 2px; overflow: hidden; box-shadow: 0 8px 12px -8px rgba(48, 34, 20, 0.7); }
.pd-keys__tile img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 420px) { .pd-keys li { padding: 12px 10px 10px; } .pd-keys b { font-size: 0.9rem; } }

/* the size picked for the box details and the calculator */
.pd-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pd-sizes > span { font-size: 0.8125rem; font-weight: 700; }

/* in each box */
.pd-box { padding-top: 16px; border-top: 1px solid var(--ax-line); }
.pd-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.pd-box__head h2, .pd-calc__head h2 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.pd-box__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (max-width: 479px) { .pd-box__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pd-box__grid > div { display: grid; align-content: start; gap: 2px; }
.pd-box__grid dt { font-size: 0.78rem; color: var(--ax-muted); }
.pd-box__grid dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-box__grid dd small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--ax-muted); }
.pd-box__ask { grid-column: 1 / -1; }

/* a two- or three-way switch (sizes, units) */
.pd-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ax-paper-2); }
.pd-switch label { position: relative; cursor: pointer; }
.pd-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pd-switch span { display: block; padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--ax-ink-2); white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.pd-switch input:checked + span { background: var(--ax-surface); color: var(--ax-ink); box-shadow: 0 1px 3px rgba(48, 34, 20, 0.16); }
.pd-switch input:focus-visible + span { outline: 2px solid var(--ax-accent); outline-offset: 2px; }

/* how much do you need? */
.pd-calc { padding: 16px; border-radius: var(--ax-r-m); background: rgba(234, 86, 3, 0.07); }
.pd-calc__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.pd-calc__head label { cursor: text; }
.pd-calc__head span { font-size: 0.78rem; color: var(--ax-muted); }
.pd-calc__fields { display: flex; align-items: center; gap: 8px; }
.pd-calc__fields .ax-input { flex: 1; min-width: 0; min-height: 46px; }
.pd-calc__fields .pd-switch { flex: none; background: var(--ax-surface); box-shadow: inset 0 0 0 1px var(--ax-line); }
.pd-calc__fields .pd-switch input:checked + span { background: var(--ax-ink); color: #fff; box-shadow: none; }
.pd-calc__out { margin: 10px 0 0; color: var(--ax-ink-2); font-size: 0.9rem; line-height: 1.5; }
.pd-calc__out b { color: var(--ax-ink); font-size: 1.15rem; letter-spacing: -0.01em; }

/* actions */
.pd-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-cta .ax-btn { justify-content: center; width: 100%; }
@media (max-width: 380px) { .pd-cta { grid-template-columns: 1fr; } }
.pd-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: -4px 0 0; font-size: 0.9rem; color: var(--ax-muted); }
.pd-help a { color: var(--ax-ink); font-weight: 600; text-decoration: none; }
.pd-help a:hover { color: var(--ax-accent-ink); }
.pd-help .ax-link { font: inherit; font-weight: 600; color: var(--ax-ink); }
.pd-trust { display: grid; gap: 6px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--ax-line); list-style: none; font-size: 0.875rem; color: var(--ax-ink-2); }
.pd-trust li { display: flex; align-items: center; gap: 9px; }
.pd-trust svg { flex: none; width: 16px; height: 16px; color: #1f7a3d; }
.pd-catalogue { margin: 0; }
.pd-catalogue .ax-link { font: inherit; font-weight: 600; }

/* ---------- Specifications ---------- */

.pd-tech { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) { .pd-tech { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.pd-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; border-top: 1px solid var(--ax-line); }
.pd-table th, .pd-table td { padding: 13px 0; border-bottom: 1px solid var(--ax-line); text-align: left; vertical-align: top; }
.pd-table tbody th { width: 40%; padding-right: 16px; font-weight: 500; color: var(--ax-muted); }
.pd-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.pd-table td + td, .pd-table thead th + th { padding-left: 16px; }
.pd-table thead th { font-size: 0.875rem; font-weight: 700; }
.pd-note { max-width: 62ch; margin: 18px 0 0; color: var(--ax-ink-2); font-size: 0.9rem; line-height: 1.55; }
.pd-props h3 { margin-bottom: 14px; font-size: 1.05rem; letter-spacing: -0.01em; }
.pd-props ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pd-props li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--ax-r-m); background: var(--ax-paper-2); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.pd-props img { flex: none; width: 34px; height: 34px; object-fit: contain; }

/* ---------- Complete the look ---------- */

.pd-look { display: grid; gap: clamp(28px, 3vw, 44px); }
@media (min-width: 1024px) { .pd-look { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
/* beside the room the designs get a narrow column: two units a row whatever the screen */
.ax-tiles.pd-look__tiles { --units: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd-concept { position: relative; margin: 0; border-radius: var(--ax-r-l); overflow: hidden; background: var(--ax-paper-2); }
.pd-concept img { display: block; width: 100%; height: auto; }
.pd-pair { display: grid; gap: 3px; color: inherit; text-decoration: none; }
.pd-pair__ask { justify-self: start; margin-top: 4px; font: inherit; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }

/* variants in the tile grid (site.css .ax-tiles) */
.pd-variant { padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: zoom-in; }
.pd-variant:focus-visible { outline: none; }
.pd-variant:focus-visible .ax-tile__media { outline: 3px solid var(--ax-accent); outline-offset: 3px; }

/* ---------- Phones: the actions, at hand ---------- */

.pd-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 8px;
    border-radius: 999px; background: rgba(246, 243, 238, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -18px rgba(21, 19, 17, 0.55), inset 0 0 0 1px var(--ax-line); transform: translateY(150%); transition: transform 0.45s var(--ax-ease);
}
.pd-bar.is-shown { transform: none; }
.pd-bar .ax-btn { justify-content: center; width: 100%; min-height: 46px; padding-inline: 12px; }
.pd-bar__call { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ax-ink); color: #fff; }
.pd-bar__call svg { width: 20px; height: 20px; }
@media (max-width: 1023px) {
    .pd-bar { display: grid; }
    body:has(.pd-bar) .ax-footer { padding-bottom: 80px; }
}

/* ---------- Popups ---------- */

/* The catalogue sheet in a popup, sized to one A4 sheet (210 x 297): as tall as the screen allows on wide screens,
   as wide as the screen on phones. 60px bar + 12px around the sheet inside the frame (84px in all). */
.pd-catalogue-dialog {
    --pd-cat-w: min(100vw - 24px, (100dvh - 108px) * 0.7071 + 24px);
    width: var(--pd-cat-w); height: min(100dvh - 24px, (var(--pd-cat-w) - 24px) * 1.4143 + 84px); max-height: none;
    background: #1b1918; color: #fff;
}
.pd-catalogue-dialog[open] { display: flex; flex-direction: column; }
.pd-catalogue-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; font-weight: 600; }
.pd-catalogue-dialog__sub { font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.pd-catalogue-dialog .ax-dialog__close { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pd-catalogue-dialog .ax-dialog__close:hover { background: rgba(255, 255, 255, 0.22); }
.pd-catalogue-dialog iframe { flex: 1; width: 100%; border: 0; background: #1b1918; }

/* full-screen photos */
.pd-lightbox { width: min(1200px, calc(100% - 24px)); height: min(860px, calc(100dvh - 24px)); max-height: none; background: var(--ax-dark); color: var(--ax-on-dark); }
.pd-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.pd-lightbox__stage { position: relative; margin: 0; }
.pd-lightbox__stage img { position: absolute; left: 76px; top: 60px; width: calc(100% - 152px); height: calc(100% - 72px); object-fit: contain; }
@media (max-width: 767px) { .pd-lightbox__stage img { left: 12px; width: calc(100% - 24px); } }
.pd-lightbox__stage figcaption { position: absolute; left: 20px; top: 18px; font-weight: 600; }
.pd-lightbox__close { position: absolute; right: 14px; top: 12px; z-index: 2; background: rgba(255, 255, 255, 0.12); color: #fff; }
.pd-lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }
.pd-lightbox__prev, .pd-lightbox__next { position: absolute; top: 50%; z-index: 1; margin-top: -40px; }
.pd-lightbox__prev { left: 14px; }
.pd-lightbox__next { right: 14px; }
.pd-lightbox__thumbs { display: flex; gap: 8px; justify-content: center; padding: 12px 16px 18px; overflow-x: auto; }
.pd-lightbox__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; opacity: 0.5; cursor: pointer; background: none; transition: opacity 0.25s ease; }
.pd-lightbox__thumbs button[aria-current="true"], .pd-lightbox__thumbs button:hover { opacity: 1; box-shadow: 0 0 0 2px var(--ax-accent); }
.pd-lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-lightbox.is-single .pd-lightbox__prev, .pd-lightbox.is-single .pd-lightbox__next, .pd-lightbox.is-single .pd-lightbox__thumbs { display: none; }
