/* ===========================================================================
   Public storefront. Quiet, gallery-like: the pieces carry the page.
   No checkout exists yet, so every call to action routes to an enquiry.
   =========================================================================== */

.p-page { min-height: 100vh; display: flex; flex-direction: column; }

/* --- Header -------------------------------------------------------------- */

.p-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.p-header__inner {
  display: flex; align-items: center; gap: var(--sp-6);
  min-height: 4.25rem; max-width: var(--content-max);
  margin-inline: auto; padding-inline: var(--sp-5);
}
.p-header__brand { font-size: var(--text-lg); letter-spacing: 0.02em; }
.p-header__tagline {
  font-size: var(--text-xs); color: var(--fg-subtle); letter-spacing: 0.1em;
  text-transform: uppercase; display: block; font-family: var(--font-sans); font-weight: 500;
}
.p-header__nav { margin-left: auto; display: flex; gap: var(--sp-6); align-items: center; }
.p-header__link {
  color: var(--fg-muted); text-decoration: none; font-size: var(--text-base);
  font-weight: 500; padding: var(--sp-2) 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.p-header__link:hover { color: var(--fg); }
.p-header__link[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
@media (max-width: 44rem) {
  .p-header__inner { flex-wrap: wrap; gap: var(--sp-3); padding-block: var(--sp-3); }
  .p-header__nav { margin-left: 0; width: 100%; gap: var(--sp-4); }
}

/* --- Hero ---------------------------------------------------------------- */

.p-hero {
  padding: var(--sp-20) 0 var(--sp-16);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.p-hero__inner { max-width: 44rem; margin-inline: auto; padding-inline: var(--sp-5); text-align: center; }
.p-hero__title {
  font-family: var(--font-serif); font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: var(--sp-4); font-weight: 500;
}
.p-hero__lede { font-size: var(--text-lg); color: var(--fg-muted); margin-bottom: var(--sp-8); }

/* --- Section ------------------------------------------------------------- */

.p-section { padding: var(--sp-16) 0; }
.p-section--tight { padding: var(--sp-10) 0; }
.p-section__head { max-width: var(--content-max); margin: 0 auto var(--sp-8); padding-inline: var(--sp-5); }
.p-section__title { font-family: var(--font-serif); font-size: var(--text-2xl); font-weight: 500; margin-bottom: var(--sp-2); }
.p-section__sub { color: var(--fg-muted); margin: 0; }

/* --- Item grid ----------------------------------------------------------- */

.p-grid {
  display: grid; gap: var(--sp-8) var(--sp-6);
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  max-width: var(--content-max); margin-inline: auto; padding-inline: var(--sp-5);
}
.p-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.p-card:hover { color: inherit; }
.p-card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--bg-inset);
  border: 1px solid var(--border);
}
.p-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms cubic-bezier(0.4,0,0.2,1); }
.p-card:hover .p-card__img { transform: scale(1.035); }
.p-card__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--fg-subtle); font-size: var(--text-sm); letter-spacing: 0.05em; text-transform: uppercase;
}
.p-card__flag { position: absolute; top: var(--sp-3); left: var(--sp-3); }
.p-card__body { padding-top: var(--sp-3); }
.p-card__title { font-size: var(--text-md); font-weight: 550; margin-bottom: var(--sp-1); line-height: 1.3; }
.p-card__meta { font-size: var(--text-sm); color: var(--fg-subtle); margin-bottom: var(--sp-2); }
.p-card__price { font-size: var(--text-md); font-weight: 600; font-variant-numeric: tabular-nums; }
.p-card__price--ask { font-weight: 500; color: var(--fg-muted); font-size: var(--text-base); }

/* --- Item detail --------------------------------------------------------- */

.p-detail {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-12); max-width: var(--content-max); margin-inline: auto;
  padding: var(--sp-10) var(--sp-5) var(--sp-16);
}
@media (max-width: 56rem) { .p-detail { grid-template-columns: minmax(0,1fr); gap: var(--sp-8); } }

.p-gallery__main {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-inset); border: 1px solid var(--border);
}
.p-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.p-gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.p-gallery__thumb {
  width: 4.5rem; height: 4.5rem; border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; background: var(--bg-inset); cursor: pointer; padding: 0;
}
.p-gallery__thumb[aria-current="true"] { border-color: var(--accent); }
.p-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.p-detail__title { font-family: var(--font-serif); font-size: var(--text-3xl); font-weight: 500; letter-spacing: -0.015em; margin-bottom: var(--sp-3); }
.p-detail__price { font-size: var(--text-2xl); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: var(--sp-5); }
.p-detail__body { color: var(--fg-muted); line-height: 1.65; }
.p-detail__specs { margin-top: var(--sp-8); border-top: 1px solid var(--border); padding-top: var(--sp-5); }

.p-enquiry {
  margin-top: var(--sp-8); padding: var(--sp-5);
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.p-enquiry__title { font-size: var(--text-md); margin-bottom: var(--sp-2); }

/* --- Footer -------------------------------------------------------------- */

.p-footer {
  margin-top: auto; border-top: 1px solid var(--border);
  background: var(--bg-sunken); padding: var(--sp-12) 0 var(--sp-8);
}
.p-footer__inner {
  max-width: var(--content-max); margin-inline: auto; padding-inline: var(--sp-5);
  display: flex; gap: var(--sp-8); flex-wrap: wrap; justify-content: space-between;
}
.p-footer__col { min-width: 12rem; }
.p-footer__heading { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.09em; color: var(--fg-subtle); font-weight: 650; margin-bottom: var(--sp-3); }
.p-footer__link { display: block; color: var(--fg-muted); text-decoration: none; padding: var(--sp-1) 0; font-size: var(--text-base); }
.p-footer__link:hover { color: var(--accent); }
.p-footer__legal {
  max-width: var(--content-max); margin: var(--sp-8) auto 0; padding: var(--sp-5) var(--sp-5) 0;
  border-top: 1px solid var(--border); color: var(--fg-subtle); font-size: var(--text-sm);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}

/* --- Error page ---------------------------------------------------------- */

.p-error { text-align: center; padding: var(--sp-24) var(--sp-5); max-width: 34rem; margin-inline: auto; }
.p-error__code { font-family: var(--font-serif); font-size: var(--text-4xl); color: var(--fg-subtle); margin-bottom: var(--sp-3); }
.p-error__ref { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--fg-subtle); margin-top: var(--sp-6); }
