/* ==========================================================================
   MAISON — luxury storefront stylesheet
   Design system: bg #faf9f7 · surface #fff · ink #141414 · hairline #e5e2dc
   Display: Playfair Display · Body: Inter
   ========================================================================== */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #141414;
  --ink-hover: #2a2a2a;
  --ink-soft: rgba(20, 20, 20, 0.62);
  --ink-muted: rgba(20, 20, 20, 0.45);
  --hairline: #e5e2dc;
  --error: #b42318;
  --error-bg: #fdf3f2;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: 0.18em;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* The hidden attribute must win over any display rule below. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 i,
h2 i,
h3 i,
.display i {
  font-style: italic;
  font-weight: 400;
}

.h-xl {
  font-size: clamp(40px, 6.2vw, 76px);
}

.h-lg {
  font-size: clamp(32px, 4.2vw, 52px);
}

.h-md {
  font-size: clamp(26px, 3vw, 36px);
}

.h-sm {
  font-size: clamp(20px, 2vw, 24px);
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 52ch;
}

.muted {
  color: var(--ink-muted);
}

.eyebrow,
.label,
.caps {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow {
  display: inline-block;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.dark .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head .link-caps {
  flex-shrink: 0;
}

.hairline-top {
  border-top: 1px solid var(--hairline);
}

.hairline-bottom {
  border-bottom: 1px solid var(--hairline);
}

.dark {
  background: var(--ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-light:hover {
  background: #f1efea;
  border-color: #f1efea;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
}

.link-caps {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity 0.18s ease;
}

.link-caps:hover {
  opacity: 0.6;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Announcement bar & navigation
   -------------------------------------------------------------------------- */

.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 9px var(--gutter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  gap: 24px;
}

.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-meta a,
.nav-meta span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.nav-meta .locale {
  color: var(--ink-soft);
}

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

.hero {
  padding: clamp(80px, 13vw, 170px) 0 clamp(72px, 10vw, 130px);
}

.hero-inner {
  max-width: 820px;
}

.hero .h-xl {
  margin-bottom: 28px;
}

.hero .lede {
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #f3f1ed 0%, #ebe8e2 55%, #e2dfd8 100%);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.35s ease;
}

.product:hover .product-visual {
  transform: translateY(-3px);
}

.product-visual .monogram {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(88px, 10vw, 140px);
  line-height: 1;
  color: rgba(20, 20, 20, 0.35);
  user-select: none;
}

.product-visual .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.product-desc {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 2px 0 0;
}

.product-price {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.product .btn {
  margin-top: 6px;
  align-self: flex-start;
}

.product-grid.is-empty {
  display: block;
}

.empty-note {
  padding: 48px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Story band & category tiles
   -------------------------------------------------------------------------- */

.story {
  padding: clamp(72px, 10vw, 128px) 0;
}

.story-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}

.story p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  max-width: 52ch;
}

.story-address {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
}

.story-address .label {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  border: 1px solid var(--hairline);
  /* Gradient stays as the fallback behind the category photo. */
  background: linear-gradient(160deg, #f6f4f0 0%, #ebe8e2 60%, #ddd9d1 100%);
  transition: transform 0.35s ease;
}

.tile:nth-child(2) {
  background: linear-gradient(200deg, #f4f2ee 0%, #e9e6df 60%, #dad6ce 100%);
}

.tile:nth-child(3) {
  background: linear-gradient(140deg, #f7f5f1 0%, #ece9e3 55%, #e0dcd4 100%);
}

.tile:nth-child(4) {
  background: linear-gradient(220deg, #f2f0eb 0%, #e7e4dd 60%, #d8d4cc 100%);
}

.tile:hover {
  transform: translateY(-3px);
}

/* Category photo fills the tile; a subtle zoom on hover. */
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s ease;
}

.tile:hover .tile-img {
  transform: scale(1.04);
}

/* Dark gradient at the bottom keeps the white label legible on any photo. */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0.1) 60%, transparent);
  z-index: 1;
  pointer-events: none;
}

.tile-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  color: #fff;
}

.tile-count {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Atelier & newsletter
   -------------------------------------------------------------------------- */

.atelier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.atelier-grid .h-md {
  margin-bottom: 24px;
}

.address-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 36px;
}

.address-box .label {
  display: block;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.address-box address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.55;
}

.address-box .contact {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
}

.newsletter {
  text-align: center;
}

.newsletter .h-md {
  margin-bottom: 14px;
}

.newsletter p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}

.newsletter-form input:focus {
  outline: none;
  background: #fff;
}

.newsletter-thanks {
  font-family: var(--font-display);
  font-size: 20px;
}

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

.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer .brand {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 22px;
}

.footer-col .label {
  display: block;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col p {
  color: var(--ink-soft);
  max-width: 32ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-muted);
  font-size: 12px;
}

.footer-bottom .caps {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Shop page
   -------------------------------------------------------------------------- */

.page-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px);
}

.page-head .count {
  display: block;
  margin-top: 16px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.checkout {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.checkout-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(24px, 4vw, 44px);
}

.form-section + .form-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.form-section .label {
  display: block;
  margin-bottom: 20px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--error);
}

.field-error {
  display: none;
  font-size: 12px;
  color: var(--error);
}

.field.has-error .field-error {
  display: block;
}

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 14px;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.shipping-fields {
  margin-top: 20px;
}

.shipping-fields[hidden] {
  display: none;
}

/* Payment method buttons (Voide style) and the panel under the active one */

.pm-list {
  display: grid;
  gap: 10px;
}

.pm-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid #e5e5e5;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pm-btn::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  flex-shrink: 0;
}

.pm-btn:hover,
.pm-btn:active,
.pm-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.pm-btn.is-active::after {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--ink);
}

.pm-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.pm-panel {
  margin: -1px 0 10px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-top: 0;
  background: #fff;
}

.pm-panel[hidden] {
  display: none;
}

.pm-panel .pm-pay {
  margin-top: 18px;
}

.panel-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.pay-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--error-bg);
  border: 1px solid #f0c9c5;
  color: var(--error);
  font-size: 13px;
}

#payment-element {
  margin-top: 4px;
  min-height: 48px;
}

.payment-placeholder {
  font-size: 13px;
  color: var(--ink-muted);
}

.form-message {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  border: 1px solid transparent;
}

.form-message.is-error {
  background: var(--error-bg);
  border-color: #f0c9c5;
  color: var(--error);
}

.form-message:empty {
  display: none;
}

.sidebar {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 36px);
}

.sidebar .label {
  display: block;
  margin-bottom: 22px;
}

.bag-items {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.bag-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.bag-item .name {
  font-family: var(--font-display);
  font-size: 16px;
}

.bag-item .qty {
  color: var(--ink-muted);
  font-size: 12px;
  margin-left: 6px;
}

.bag-item .price {
  white-space: nowrap;
  font-weight: 500;
}

.bag-items .placeholder {
  color: var(--ink-muted);
  font-size: 13px;
}

.totals {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.totals .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.totals .row.total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  font-size: 16px;
}

.totals .included {
  color: var(--ink-muted);
}

.sidebar .btn {
  margin-top: 24px;
}

.sidebar .secure {
  margin: 14px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Centered states (not found / confirmation)
   -------------------------------------------------------------------------- */

.state {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 0;
}

.state-inner {
  max-width: 520px;
}

.state .h-md {
  margin-bottom: 16px;
}

.state p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.check-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  position: relative;
}

.check-icon::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 19px;
  width: 16px;
  height: 28px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

.pending-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  position: relative;
}

.pending-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--ink-muted);
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-meta .locale {
    display: none;
  }

  .story-inner,
  .atelier-grid {
    grid-template-columns: 1fr;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 220px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 19px;
    letter-spacing: 0.12em;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Product image hover (second photo crossfades in)
   -------------------------------------------------------------------------- */

.product-visual {
  position: relative;
  overflow: hidden;
}

.product-image-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.product:hover .product-image-alt,
.product:focus-within .product-image-alt {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Product card link (photo + title/desc/price link to product.html;
   the "Voeg toe aan tas" button is a sibling of the link, not inside it)
   -------------------------------------------------------------------------- */

/* A flex column (still a block-level box) so the card keeps its 14px
   rhythm between photo, title, desc and price now that they live inside
   the link; .product-desc / .product-price keep their 2px margins. */
.product-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.product-visual .product-image {
  transition: transform 0.5s ease;
}

/* The alt photo keeps its crossfade and picks up the same zoom. */
.product-visual .product-image-alt {
  transition: opacity 0.45s ease, transform 0.5s ease;
}

.product-link:hover .product-visual img {
  transform: scale(1.03);
}

.product-link .product-name {
  transition: opacity 0.18s ease;
}

.product-link:hover .product-name {
  opacity: 0.72;
}

.product-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Bag drawer (persistent mini-cart)
   -------------------------------------------------------------------------- */

.bag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
}

.bag-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 95;
  display: flex;
  flex-direction: column;
}

.bag-drawer.is-open {
  transform: translateX(0);
}

.bag-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
}

.bag-close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ink-soft);
  padding: 0 4px;
}

.bag-list {
  list-style: none;
  margin: 0;
  padding: 8px 24px;
  overflow-y: auto;
  flex: 1;
}

.bag-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.bag-line-thumb {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: var(--bg);
}

.bag-line-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-muted);
}

.bag-line-name {
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.bag-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
}

.bag-qty button {
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  font-size: 15px;
  color: var(--ink);
}

.bag-qty span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
}

.bag-remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: underline;
  margin-top: 6px;
}

.bag-line-price {
  font-size: 14px;
  white-space: nowrap;
}

.bag-empty {
  padding: 40px 24px;
  color: var(--ink-soft);
  text-align: center;
}

.bag-foot {
  border-top: 1px solid var(--hairline);
  padding: 18px 24px 24px;
}

.bag-foot .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
}

.bag-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Legal pages (verzending / privacy / voorwaarden)
   -------------------------------------------------------------------------- */

.legal-body {
  max-width: 720px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 34px 0 8px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Product page (product.html)
   -------------------------------------------------------------------------- */

.pdp {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 120px);
}

.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* Gallery */

.pdp-gallery {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.pdp-main {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #f3f1ed 0%, #ebe8e2 55%, #e2dfd8 100%);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-main-img:not([src]) {
  visibility: hidden;
}

.pdp-main .monogram {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(120px, 14vw, 200px);
  line-height: 1;
  color: rgba(20, 20, 20, 0.35);
  user-select: none;
}

.pdp-thumbs {
  display: flex;
  gap: 12px;
}

.pdp-thumb {
  width: 84px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: linear-gradient(180deg, #f3f1ed 0%, #ebe8e2 55%, #e2dfd8 100%);
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumb:hover {
  opacity: 1;
}

.pdp-thumb.is-active {
  opacity: 1;
  border-color: var(--ink);
}

.pdp-thumb:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Info column */

.pdp-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pdp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  line-height: 1.6;
  color: var(--ink-soft);
}

.pdp-crumbs a,
.pdp-crumb-cat {
  text-transform: uppercase;
}

.pdp-crumbs a {
  transition: color 0.18s ease;
}

.pdp-crumbs a:hover {
  color: var(--ink);
}

.pdp-crumb-sep {
  color: var(--ink-muted);
}

.pdp-crumb-name {
  color: var(--ink);
  letter-spacing: 0.06em;
}

.pdp-cat {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.pdp-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.pdp-price {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.pdp-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 26px;
}

.pdp-delivery {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 0 0 6px;
}

.pdp-delivery .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7d4f;
  margin-right: 10px;
}

.pdp-shipnote {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

/* Quantity + buy */

.pdp-buy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.pdp-qty {
  display: inline-flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--surface);
}

.pdp-qty button {
  width: 44px;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  transition: background-color 0.18s ease;
}

.pdp-qty button:hover {
  background: #f1efea;
}

.pdp-qty button:disabled {
  color: var(--ink-muted);
  cursor: not-allowed;
  background: none;
}

.pdp-qty button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}

.pdp-qty input {
  width: 48px;
  border: 0;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}

.pdp-qty input::-webkit-outer-spin-button,
.pdp-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-qty input:focus {
  outline: none;
  background: var(--surface);
}

.pdp-add {
  min-height: 48px;
}

/* Accordion */

.pdp-acc {
  width: 100%;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.pdp-acc details {
  border-bottom: 1px solid var(--hairline);
}

.pdp-acc summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.4;
  user-select: none;
}

.pdp-acc summary::-webkit-details-marker {
  display: none;
}

.pdp-acc summary::before,
.pdp-acc summary::after {
  content: "";
  position: absolute;
  top: 50%;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.pdp-acc summary::after {
  right: 2px;
  width: 12px;
  height: 1px;
  transform: translateY(-50%);
}

.pdp-acc summary::before {
  right: 7.5px;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
}

.pdp-acc details[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
  opacity: 0;
}

.pdp-acc summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.pdp-acc-body {
  padding: 0 0 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}

.pdp-acc-body p {
  margin: 0 0 12px;
}

.pdp-acc-body p:last-child {
  margin-bottom: 0;
}

.pdp-acc-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.pdp-acc-body strong {
  font-weight: 500;
  color: var(--ink);
}

/* Reviews */

.pdp-reviews-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.pdp-reviews-head .label {
  color: var(--ink-muted);
}

.pdp-reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 22px;
}

.pdp-stars {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--ink);
}

.pdp-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pdp-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.pdp-review-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
}

.pdp-review-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.pdp-review-name {
  font-weight: 500;
}

.pdp-review-date {
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
}

.pdp-verified {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Related */

.pdp-related .section-head .eyebrow {
  margin-bottom: 12px;
}

/* Loading skeleton (removed once pb:ready has rendered the product) */

@keyframes pdp-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.pdp.is-loading .pdp-cat,
.pdp.is-loading .pdp-title,
.pdp.is-loading .pdp-price,
.pdp.is-loading .pdp-desc,
.pdp.is-loading .pdp-crumb-cat,
.pdp.is-loading .pdp-crumb-name {
  color: transparent;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hairline) 0%, var(--bg) 50%, var(--hairline) 100%);
  background-size: 200% 100%;
  animation: pdp-shimmer 1.6s linear infinite;
}

.pdp.is-loading .pdp-crumb-cat {
  width: 72px;
  height: 11px;
}

.pdp.is-loading .pdp-crumb-name {
  width: 140px;
  height: 11px;
}

.pdp.is-loading .pdp-cat {
  width: 80px;
  height: 11px;
}

.pdp.is-loading .pdp-title {
  width: 70%;
  height: 1.1em;
}

.pdp.is-loading .pdp-price {
  width: 90px;
  height: 1em;
}

.pdp.is-loading .pdp-desc {
  width: 100%;
  min-height: 3.3em;
}

.pdp.is-loading .pdp-thumbs::before,
.pdp.is-loading .pdp-thumbs::after {
  content: "";
  width: 84px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, #f3f1ed 0%, #ebe8e2 55%, #e2dfd8 100%);
}

.pdp.is-loading .pdp-acc-body:empty {
  min-height: 48px;
}

@media (max-width: 1024px) {
  .pdp-gallery {
    position: static;
  }

  .pdp-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pdp {
    padding-top: 24px;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pdp-thumb,
  .pdp.is-loading .pdp-thumbs::before,
  .pdp.is-loading .pdp-thumbs::after {
    width: 64px;
  }

  .pdp-crumbs {
    margin-bottom: 20px;
  }

  .pdp-buy {
    max-width: none;
  }

  .pdp-review-grid {
    grid-template-columns: 1fr;
  }
}

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

  .pdp-qty {
    width: 100%;
  }

  .pdp-qty input {
    flex: 1;
  }
}
