:root {
  --pd-black: #0a0a0a;
  --pd-ink: #111111;
  --pd-gray: #6b7280;
  --pd-line: #e6e6e6;
  --pd-bg: #ffffff;
  --pd-soft: #f5f5f5;
  --pd-accent: #111111;
  --pd-radius: 14px;
  /* Brand palette sampled from the 2025 Polydoor pricelist */
  --pd-navy: #134269;
  --pd-brown: #5c3312;
  --pd-cream: #fdfdf9;
  --pd-gold: #dabc91;
  --pd-code: #0d0adb;
  --pd-display-font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--pd-ink);
  background: var(--pd-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.pd-main { min-height: 70vh; }

/* Nav */
.pd-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--pd-line);
  padding: 0.5rem 0;
}
.pd-brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.15rem;
  color: var(--pd-black) !important;
}
.pd-nav .nav-link { color: var(--pd-ink); font-weight: 500; }
.pd-cart-link { position: relative; }
.pd-cart-badge {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: var(--pd-navy);
  border-radius: 999px;
}

/* Hero (catalog listing header) */
.pd-hero {
  background: var(--pd-cream);
  border-bottom: 1px solid var(--pd-line);
  padding: 4rem 0 2.75rem;
  margin-bottom: 2rem;
}
.pd-hero .pd-eyebrow {
  opacity: 0;
  animation: pd-fade-up 0.6s ease both;
}
.pd-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pd-navy);
  margin: 0;
  opacity: 0;
  animation: pd-fade-up 0.6s ease 0.08s both;
}
.pd-hero-sub {
  color: var(--pd-gray);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0;
  animation: pd-fade-up 0.6s ease 0.16s both;
}

/* Catalog layout: sidebar + results */
.pd-catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.pd-sidebar { position: sticky; top: 80px; }

/* Sidebar shell */
.pd-sidebar-toggle > summary.pd-sidebar-heading {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pd-navy);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pd-line);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pd-sidebar-toggle > summary.pd-sidebar-heading::-webkit-details-marker { display: none; }
.pd-filter-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  background: var(--pd-navy);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 18px;
  min-width: 18px;
  text-align: center;
}
.pd-clear {
  display: inline-block;
  color: var(--pd-gray);
  text-decoration: underline;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Filter groups */
.pd-filter-group {
  border-bottom: 1px solid var(--pd-line);
  padding: 1rem 0;
}
.pd-filter-group summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-filter-group summary::-webkit-details-marker { display: none; }
.pd-filter-group summary::after {
  content: "\2212"; /* minus */
  color: var(--pd-gray);
  font-weight: 400;
}
.pd-filter-group:not([open]) summary::after { content: "+"; }
.pd-filter-group summary::after { display: inline-block; transition: transform 0.2s ease; }
.pd-filter-group > *:not(summary) {
  margin-top: 0.85rem;
  animation: pd-fade-up 0.25s ease both;
}

.pd-checkbox-list { display: flex; flex-direction: column; gap: 0.65rem; }
.pd-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.pd-checkbox-row:hover { color: var(--pd-navy); }
.pd-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--pd-navy);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pd-checkbox-row input[type="checkbox"]:checked { transform: scale(1.1); }

.pd-price-range { display: flex; align-items: end; gap: 0.5rem; }
.pd-price-range label { flex: 1; font-size: 0; }
.pd-price-range label span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-gray);
  margin-bottom: 0.25rem;
}
.pd-price-range input[type="number"] { font-size: 0.9rem; }
.pd-price-sep { color: var(--pd-gray); padding-bottom: 0.5rem; }
.pd-price-apply {
  width: 100%;
  margin-top: 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pd-price-apply:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18); }

@media (max-width: 860px) {
  .pd-catalog-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .pd-sidebar-toggle:not([open]) > summary.pd-sidebar-heading { margin-bottom: 0; border-bottom: none; }
  .pd-sidebar-toggle { border-bottom: 1px solid var(--pd-line); margin-bottom: 1.5rem; padding-bottom: 0.5rem; }
  .pd-sidebar-toggle > summary.pd-sidebar-heading::after {
    content: "+";
    margin-left: auto;
    font-weight: 400;
    color: var(--pd-gray);
  }
  .pd-sidebar-toggle[open] > summary.pd-sidebar-heading::after { content: "\2212"; }
}

/* Grid */
.pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
  padding-bottom: 4rem;
}
.pd-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease;
  opacity: 0;
  animation: pd-fade-up 0.5s ease both;
  animation-delay: calc(45ms * min(var(--i, 0), 10));
}
.pd-card:hover { transform: translateY(-6px); }
.pd-card-img {
  position: relative;
  background: var(--pd-soft);
  border-radius: var(--pd-radius);
  overflow: hidden;
  aspect-ratio: 1176 / 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.25s ease;
}
.pd-card:hover .pd-card-img { box-shadow: 0 16px 28px rgba(19, 66, 105, 0.18); }
.pd-card-img-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.pd-card:hover .pd-card-img-inner { transform: scale(1.045); }
.pd-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.45s ease, transform 0.6s ease;
}
.pd-card-photo.is-active { opacity: 1; transform: scale(1); }
.pd-card-dots {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pd-card:hover .pd-card-dots { opacity: 1; }
.pd-card-dot {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease;
}
.pd-card-dot.is-active { background: #fff; }
.pd-card-placeholder {
  color: var(--pd-gray);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------------
   Image skeletons. Any container marked [data-skel] shimmers until the image
   inside it loads; js/img-skeleton.js adds .is-loaded (or .is-error). The
   shimmer is a background on the container rather than an overlay, so it needs
   no z-index juggling -- the photo simply fades in on top of it.
   --------------------------------------------------------------------------- */
/* Every rule that hides a photo is scoped to .pd-js, which img-skeleton.js sets
   on <html> as it starts. Without JS the skeleton never resolves, so the photos
   must stay visible rather than being hidden forever behind a shimmer. */
[data-skel] {
  position: relative;
  background-color: var(--pd-soft);
}
.pd-js [data-skel]:not(.is-loaded):not(.is-error) {
  background-image: linear-gradient(
    100deg,
    var(--pd-soft) 28%,
    rgba(255, 255, 255, 0.62) 48%,
    var(--pd-soft) 68%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pd-shimmer 1.35s ease-in-out infinite;
}
/* Hold the photo back until it has actually decoded, so a half-painted image
   never flashes over the skeleton. */
.pd-js [data-skel]:not(.is-loaded) > img,
.pd-js [data-skel]:not(.is-loaded) .pd-card-photo,
.pd-js [data-skel]:not(.is-loaded) > a > img {
  opacity: 0;
}
.pd-js [data-skel].is-error > img,
.pd-js [data-skel].is-error > a > img {
  display: none;
}
/* Message shown in place of an image that failed to load. */
[data-skel].is-error::after {
  content: attr(data-skel-error);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  color: var(--pd-gray);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
@keyframes pd-shimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-js [data-skel]:not(.is-loaded):not(.is-error) { animation: none; }
}
.pd-card-body { padding: 0.9rem 0.25rem; }
.pd-card-name { font-size: 1.05rem; font-weight: 600; margin: 0; }
.pd-card-price { color: var(--pd-gray); margin: 0.25rem 0 0; }
.pd-card-quote { font-style: italic; }
.pd-empty { grid-column: 1 / -1; text-align: center; color: var(--pd-gray); padding: 4rem 0; }

/* Detail */
.pd-detail { padding: 2rem 0 4rem; }
.pd-back { color: var(--pd-gray); text-decoration: none; font-size: 0.9rem; }
.pd-back:hover { color: var(--pd-navy); }
.pd-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .pd-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.pd-gallery-main {
  background: var(--pd-soft);
  border-radius: var(--pd-radius);
  aspect-ratio: 1176 / 2000;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.pd-thumb {
  width: 56px; aspect-ratio: 1176 / 2000; height: auto; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
}
.pd-thumb.is-active { border-color: var(--pd-navy); opacity: 1; }

.pd-detail-name {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pd-navy);
  margin: 0;
}
.pd-detail-desc { color: var(--pd-gray); margin: 0.5rem 0 1.25rem; }
.pd-price-block { margin: 1rem 0 1.5rem; }
.pd-price {
  font-family: var(--pd-display-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pd-navy);
}
.pd-price-note { display: block; color: var(--pd-gray); font-size: 0.85rem; margin-top: 0.25rem; }

.pd-field { margin-bottom: 1.25rem; }
.pd-field > label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pd-gray);
  margin-bottom: 0.5rem;
}
.pd-choices { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-chip {
  border: 1px solid var(--pd-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pd-chip:hover { border-color: var(--pd-navy); }
.pd-chip.is-selected { background: var(--pd-navy); color: #fff; border-color: var(--pd-navy); }
.pd-chip:disabled { opacity: 0.35; cursor: not-allowed; border-color: var(--pd-line); }
.pd-chip:disabled:hover { border-color: var(--pd-line); }
.pd-detail-cat { margin: 0 0 0.4rem; }
.pd-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.85rem;
  cursor: pointer;
}
.pd-swatch.is-selected .pd-swatch-thumb { outline: 2px solid var(--pd-navy); outline-offset: 2px; border-color: var(--pd-navy); }
.pd-swatch-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--swatch, #b8a88f);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.pd-swatch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-swatch-label {
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
}

.pd-custom-size { margin-top: -0.5rem; margin-bottom: 1.25rem; }
.pd-custom-fields { display: flex; gap: 1rem; }
.pd-custom-fields > div { flex: 1; }
.pd-custom-fields label { font-size: 0.78rem; color: var(--pd-gray); }
.pd-custom-note { color: var(--pd-gray); font-size: 0.82rem; margin-top: 0.5rem; }

.pd-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.pd-qty { width: 90px; }

.btn.pd-btn-add {
  background: var(--pd-navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border: none;
}
.btn.pd-btn-add:hover { background: #0d3153; color: #fff; }
.btn.pd-btn-add:disabled { background: #cfcfcf; color: #fff; cursor: not-allowed; }
.btn.pd-btn-quote {
  background: #fff;
  color: var(--pd-navy);
  border: 1px solid var(--pd-navy);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 600;
}
.btn.pd-btn-quote:hover { background: var(--pd-navy); color: #fff; }

/* Cart */
.pd-cartpage, .pd-checkout, .pd-confirm { padding: 2.5rem 0 4rem; }
.pd-page-title { font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.pd-cart-item {
  display: grid;
  grid-template-columns: 90px 1fr 100px 120px 40px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pd-line);
}
@media (max-width: 720px) {
  .pd-cart-item { grid-template-columns: 70px 1fr auto; grid-row-gap: 0.5rem; }
  .pd-cart-qty, .pd-cart-price { grid-column: 2 / 4; }
}
.pd-cart-thumb img, .pd-thumb-ph {
  width: 76px; aspect-ratio: 1176 / 2000; height: auto; object-fit: cover; border-radius: 10px; background: var(--pd-soft);
}
.pd-cart-info h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.pd-variant-list { list-style: none; padding: 0; margin: 0; color: var(--pd-gray); font-size: 0.85rem; }
.pd-cart-remarks { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--pd-gray); font-style: italic; }
.pd-cart-price { font-weight: 600; text-align: right; }
.pd-quote-tag { font-style: italic; color: var(--pd-gray); font-weight: 400; }
.pd-remove-btn { background: none; border: none; font-size: 1.5rem; color: var(--pd-gray); cursor: pointer; line-height: 1; }
.pd-remove-btn:hover { color: #000; }

.pd-cart-summary { margin-top: 2rem; max-width: 420px; margin-left: auto; }
.pd-subtotal { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 600; }
.pd-subtotal-amount { font-weight: 700; }
.pd-quote-note {
  background: var(--pd-soft);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--pd-gray);
  font-size: 0.85rem;
  margin: 1rem 0;
}
.pd-cart-actions { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pd-cart-actions .btn { flex: 1; text-align: center; }

/* Checkout */
.pd-checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }
@media (max-width: 820px) { .pd-checkout-grid { grid-template-columns: 1fr; } }
.pd-checkout-summary {
  background: var(--pd-soft);
  border-radius: var(--pd-radius);
  padding: 1.5rem;
  align-self: start;
}
.pd-summary-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.pd-summary-lines li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--pd-line); font-size: 0.9rem; }
.pd-summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding-top: 0.75rem; }
.pd-field-error { color: #c0392b; font-size: 0.82rem; margin-top: 0.25rem; }

/* Confirmation */
.pd-confirm-card {
  max-width: 560px;
  margin: 2rem auto;
  text-align: center;
  padding: 2.5rem;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
}
.pd-confirm-check {
  width: 64px; height: 64px; line-height: 64px;
  border-radius: 50%; background: var(--pd-black); color: #fff;
  font-size: 1.8rem; margin: 0 auto 1.25rem;
}
.pd-confirm-lead { color: var(--pd-gray); }
.pd-confirm-ref {
  display: inline-block; background: var(--pd-soft);
  padding: 0.5rem 1rem; border-radius: 999px; margin: 1rem 0;
  font-size: 0.9rem; letter-spacing: 0.05em;
}
.pd-confirm-card .pd-summary-lines li { justify-content: center; }
.pd-confirm-cta { margin-top: 1.5rem; display: inline-block; }

/* Footer */
.pd-footer {
  border-top: 1px solid var(--pd-line);
  padding: 2.5rem 0 2rem;
  color: var(--pd-gray);
  font-size: 0.85rem;
  margin-top: 3rem;
}
.pd-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.4fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}
.pd-footer-brand { max-width: 340px; }
.pd-footer-mark {
  display: block;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pd-ink);
  margin-bottom: 0.5rem;
}
.pd-footer-tag { margin: 0; }
.pd-footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.pd-footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pd-ink);
  margin-bottom: 0.25rem;
}
.pd-footer-col a { color: var(--pd-gray); text-decoration: none; }
.pd-footer-col a:hover { color: var(--pd-ink); }
.pd-footer-base { border-top: 1px solid var(--pd-line); padding-top: 1.25rem; }
@media (max-width: 760px) {
  .pd-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =========================================================================
   Landing page (home.html)
   Brand bands use the 2025 catalog palette; product cards stay monochrome.
   ========================================================================= */

.pd-display { font-family: var(--pd-display-font); }

.pd-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--pd-brown);
  margin: 0 0 0.6rem;
}
.pd-eyebrow-light { color: var(--pd-gold); }

.pd-sect { padding: 4.5rem 0; }
.pd-band-cream { background: var(--pd-cream); border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-band-navy { background: var(--pd-navy); color: var(--pd-cream); }

.pd-sect-title {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pd-navy);
  margin: 0 0 0.75rem;
}
.pd-sect-sub { color: var(--pd-gray); max-width: 560px; margin: 0 0 2.25rem; }
.pd-sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pd-sect-head .pd-sect-title { margin-bottom: 0; }
.pd-sect-link { color: var(--pd-navy); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.pd-sect-link:hover { color: var(--pd-brown); }

/* Scroll-triggered reveal (reuses the pd-fade-up keyframes) */
.pd-reveal { opacity: 0; }
.pd-reveal.is-inview {
  animation: pd-fade-up 0.55s ease both;
  animation-delay: calc(55ms * min(var(--i, 0), 8));
}
@media (prefers-reduced-motion: reduce) {
  .pd-reveal { opacity: 1; }
}

/* Buttons */
.btn.pd-btn-navy,
.btn.pd-btn-ghost-navy,
.btn.pd-btn-gold,
.btn.pd-btn-ghost-light {
  border-radius: 999px;
  padding: 0.8rem 1.9rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn.pd-btn-navy { background: var(--pd-navy); color: #fff; border: 1px solid var(--pd-navy); }
.btn.pd-btn-navy:hover { background: #0d3153; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(19, 66, 105, 0.25); }
.btn.pd-btn-ghost-navy { background: transparent; color: var(--pd-navy); border: 1px solid var(--pd-navy); }
.btn.pd-btn-ghost-navy:hover { background: var(--pd-navy); color: #fff; }
.btn.pd-btn-gold { background: var(--pd-gold); color: var(--pd-navy); border: 1px solid var(--pd-gold); }
.btn.pd-btn-gold:hover { background: #e7d0aa; color: var(--pd-navy); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2); }
.btn.pd-btn-ghost-light { background: transparent; color: var(--pd-cream); border: 1px solid rgba(253, 253, 249, 0.6); }
.btn.pd-btn-ghost-light:hover { background: var(--pd-cream); color: var(--pd-navy); }

/* Hero */
.pd-home-hero {
  background: var(--pd-cream);
  border-bottom: 1px solid var(--pd-line);
  padding: 4rem 0 4.5rem;
  overflow: hidden;
}
.pd-home-hero-grid {
  display: grid;
  /* The door cluster gets the larger share: at 1.05fr/1fr the three doors were
     rendering ~190/185/148px, small enough that the dimension rulers crowded
     them. Copy stays comfortably readable at this width. */
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
}
.pd-home-hero-copy .pd-eyebrow { opacity: 0; animation: pd-fade-up 0.6s ease 0.05s both; }
.pd-home-hero-title {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--pd-navy);
  margin: 0;
  opacity: 0;
  animation: pd-fade-up 0.6s ease 0.12s both;
}
.pd-home-hero-sub {
  color: var(--pd-gray);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 1.25rem 0 0;
  opacity: 0;
  animation: pd-fade-up 0.6s ease 0.22s both;
}
.pd-home-hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
  opacity: 0;
  animation: pd-fade-up 0.6s ease 0.32s both;
}
.pd-home-hero-note {
  color: var(--pd-brown);
  font-size: 0.85rem;
  margin: 1.1rem 0 0;
  opacity: 0;
  animation: pd-fade-up 0.6s ease 0.42s both;
}

.pd-home-hero-doors {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr;
  gap: 1.4rem;
  align-items: start;
}
.pd-hero-door {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  opacity: 0;
  animation: pd-fade-up 0.7s ease both;
  animation-delay: calc(0.25s + 0.12s * var(--i, 0));
}
.pd-hero-door a { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 36px rgba(19, 66, 105, 0.16); }
.pd-hero-door img {
  display: block;
  width: 100%;
  /* Required. The width/height attributes on these <img> tags act as CSS
     presentational hints; author CSS overrides the width one, but with no
     height declared here the height="1360" hint applied, both dimensions
     became definite, and aspect-ratio was ignored -- giving a 240x1360 box
     that object-fit: cover then filled with a zoomed vertical slice. */
  height: auto;
  aspect-ratio: 1176 / 2000;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pd-hero-door a:hover img { transform: scale(1.04); }
.pd-hero-door-main { margin: 0 2.6rem 2.6rem 0; }
.pd-hero-door-side { margin-top: calc(2.75rem * var(--i, 1)); }

/* Made-to-measure dimension rulers (the hero's signature) */
.pd-dim { position: absolute; color: var(--pd-navy); pointer-events: none; }
.pd-dim-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: var(--pd-cream);
}
.pd-dim-v { top: 0; bottom: 0; right: -1.5rem; width: 0; border-right: 1.5px solid currentColor; }
.pd-dim-v::before,
.pd-dim-v::after { content: ""; position: absolute; right: -5.5px; width: 12px; height: 1.5px; background: currentColor; }
.pd-dim-v::before { top: 0; }
.pd-dim-v::after { bottom: 0; }
.pd-dim-v .pd-dim-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  padding: 0.5rem 0;
}
.pd-dim-h { left: 0; right: 0; bottom: -1.5rem; height: 0; border-top: 1.5px solid currentColor; }
.pd-dim-h::before,
.pd-dim-h::after { content: ""; position: absolute; top: -5.5px; width: 1.5px; height: 12px; background: currentColor; }
.pd-dim-h::before { left: 0; }
.pd-dim-h::after { right: 0; }
.pd-dim-h .pd-dim-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.6rem;
}

@media (max-width: 991px) {
  .pd-home-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pd-home-hero-doors { max-width: 620px; }
}
@media (max-width: 575px) {
  .pd-home-hero-doors { grid-template-columns: 1.25fr 1fr; }
  .pd-hero-door-side:last-child { display: none; }
}

/* Stat strip */
.pd-stats { padding: 3rem 0; }
.pd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.pd-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.pd-stat-num {
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1;
  color: var(--pd-gold);
}
.pd-stat-word {
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pd-gold);
  margin: auto 0;
}
.pd-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(253, 253, 249, 0.75);
}
@media (max-width: 760px) {
  .pd-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Shop by category */
.pd-cat-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.pd-cat-card {
  position: relative;
  flex: 0 0 216px;
  aspect-ratio: 1176 / 2000;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pd-cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(19, 66, 105, 0.22); }
.pd-cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pd-cat-card:hover img { transform: scale(1.05); }
.pd-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 66, 105, 0) 48%, rgba(19, 66, 105, 0.88) 100%);
}
.pd-cat-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pd-cat-name {
  font-family: var(--pd-display-font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
}
.pd-cat-meta { font-size: 0.8rem; color: var(--pd-gold); font-weight: 600; }

/* Fallback card for categories without a photo yet: a drawn door leaf on navy */
.pd-cat-card-noimg { background: var(--pd-navy); }
.pd-cat-door {
  position: absolute;
  top: 11%;
  left: 20%;
  right: 20%;
  bottom: 26%;
  border: 1.5px solid rgba(218, 188, 145, 0.65);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: border-color 0.25s ease;
}
.pd-cat-card-noimg:hover .pd-cat-door { border-color: var(--pd-gold); }
.pd-cat-door-knob {
  position: absolute;
  top: 52%;
  right: 9%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pd-gold);
}

/* Material comparison */
.pd-mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pd-mat-card {
  background: #fff;
  border: 1px solid var(--pd-line);
  border-top: 6px solid var(--mat-accent, var(--pd-navy));
  border-radius: 18px;
  padding: 1.75rem 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.pd-mat-gold { --mat-accent: var(--pd-gold); }
.pd-mat-navy { --mat-accent: var(--pd-navy); }
.pd-mat-brown { --mat-accent: var(--pd-brown); }
.pd-mat-name {
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pd-navy);
  margin: 0;
}
.pd-mat-tagline { color: var(--pd-brown); font-size: 0.85rem; font-weight: 600; margin: 0.2rem 0 0; }
.pd-mat-blurb { color: var(--pd-gray); font-size: 0.92rem; margin: 0.9rem 0 1.1rem; }
.pd-mat-specs { margin: 0; }
.pd-mat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--pd-line);
}
.pd-mat-row dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pd-gray);
  flex-shrink: 0;
}
.pd-mat-row dd { margin: 0; font-size: 0.88rem; text-align: right; }
.pd-stars { letter-spacing: 0.1em; white-space: nowrap; }
.pd-star { color: #ddd8cc; font-size: 1rem; }
.pd-star.is-filled { color: var(--mat-accent, var(--pd-gold)); }
.pd-mat-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.pd-pill {
  display: inline-block;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--pd-soft);
  color: var(--pd-ink);
  border: 1px solid var(--pd-line);
}
.pd-pill-code {
  background: var(--pd-code);
  color: #fff;
  border: none;
  letter-spacing: 0.06em;
}
.pd-mat-price {
  margin: auto 0 0;
  padding-top: 1.1rem;
  font-size: 1rem;
  color: var(--pd-gray);
}
.pd-mat-price strong { color: var(--pd-ink); font-size: 1.15rem; }
@media (max-width: 900px) {
  .pd-mat-grid { grid-template-columns: 1fr; }
}

/* Finish swatches */
.pd-swatch-row { display: flex; flex-wrap: wrap; gap: 1.1rem 1.4rem; }
.pd-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 72px;
  text-align: center;
}
.pd-swatch-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--swatch, #b8a88f);
  background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.14));
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.pd-swatch-chip-photo { background-image: none; }
.pd-swatch-chip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.pd-swatch-name { font-size: 0.8rem; font-weight: 600; line-height: 1.15; }
.pd-swatch-code {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pd-gray);
}

/* Ordering steps */
.pd-steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.pd-step { border-top: 2px solid var(--pd-gold); padding-top: 1.1rem; }
.pd-step-num {
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--pd-gold);
  display: block;
}
.pd-step-title { font-size: 1rem; font-weight: 700; color: var(--pd-navy); margin: 0.7rem 0 0.4rem; }
.pd-step-text { font-size: 0.87rem; color: var(--pd-gray); margin: 0; }
@media (max-width: 991px) {
  .pd-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .pd-steps { grid-template-columns: 1fr; }
}

/* Why Polydoor */
.pd-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.pd-why-card {
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
}
.pd-why-title { font-size: 1.02rem; font-weight: 700; color: var(--pd-navy); margin: 0 0 0.5rem; }
.pd-why-text { font-size: 0.88rem; color: var(--pd-gray); margin: 0; }
@media (max-width: 991px) {
  .pd-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .pd-why-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.pd-gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.pd-gal-item {
  position: relative;
  aspect-ratio: 1176 / 2000;
  border-radius: 16px;
  overflow: hidden;
  display: block;
}
.pd-gal-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.pd-gal-item:hover img { transform: scale(1.05); }
.pd-gal-item .pd-pill-code { position: absolute; top: 12px; left: 12px; }
@media (max-width: 991px) {
  .pd-gal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .pd-gal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Final CTA band */
.pd-cta-band { padding: 5rem 0; text-align: center; }
.pd-cta-title {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pd-cream);
  margin: 0 0 0.75rem;
}
.pd-cta-sub { color: rgba(253, 253, 249, 0.8); margin: 0 0 2rem; }
.pd-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
