/* The Google Fonts stylesheet used to be pulled by an @import here. That made
   the browser fetch this file, parse it, and only then discover the fonts —
   a request chain three deep in front of the first paint. It is a <link> in
   index.php now, so both stylesheets start downloading together. */

/* ==========================================================================
   1. Design-system tokens — from the Classical system the design was built on.
   Retune the look here; nothing below hard-codes a colour.
   ========================================================================== */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201f1d;
  --color-accent: #b68235;
  --color-accent-2: #ac803e;
  --color-divider: color-mix(in srgb, #201f1d 16%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff3e4;
  --color-accent-200: #ffe3bf;
  --color-accent-300: #facb8d;
  --color-accent-400: #e1ad66;
  --color-accent-500: #c28d41;
  --color-accent-600: #a06f24;
  --color-accent-700: #7d5411;
  --color-accent-800: #5a3b0a;
  --color-accent-900: #3a270d;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-heading-weight: 600;
  --font-body: "Lora", Georgia, serif;

  --space-1: 4.6px;
  --space-2: 9.2px;
  --space-3: 13.8px;
  --space-4: 18.4px;
  --space-6: 27.6px;
  --space-8: 36.8px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  /* Page-level measures, kept here so the rhythm is tunable in one place. */
  --pl-max: 1180px;
  --pl-gutter: clamp(18px, 5vw, 56px);
  --pl-text-80: color-mix(in srgb, var(--color-text) 80%, transparent);
  --pl-text-70: color-mix(in srgb, var(--color-text) 70%, transparent);
  --pl-text-60: color-mix(in srgb, var(--color-text) 60%, transparent);
  --pl-text-45: color-mix(in srgb, var(--color-text) 45%, transparent);
}

/* ==========================================================================
   2. Base + design-system components
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-wrap: pretty;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:not(:disabled):hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:not(:disabled):active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:not(:disabled):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:not(:disabled):active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:not(:disabled):hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; }

/* — forms — */
.field > label {
  display: block; font-size: 12.5px; margin-bottom: 5px; color: var(--pl-text-70);
}
.input {
  width: 100%; min-height: 46px; padding: 6px 10px; font: inherit;
  font-size: 15px; color: var(--color-text); caret-color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 92px; resize: vertical; }
select.input { appearance: none; cursor: pointer; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select.input:disabled { opacity: .5; cursor: not-allowed; }

.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* — tags, tables, plates — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pl-text-60); padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table td { padding: var(--space-2); border-bottom: 1px solid var(--color-divider); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* The framed photo treatment the whole shop is built on. */
.plate {
  box-sizing: border-box; position: relative; overflow: hidden;
  background: #fff; border: 6px solid #fff;
  outline: 1px solid var(--color-divider);
}
.plate > img { width: 100%; height: 100%; object-fit: cover; }

/* Stand-in for a photo we do not have yet. Reads as deliberate, not broken. */
.pl-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: 10px; text-align: center;
  font-family: var(--font-body); font-size: 11px; line-height: 1.5;
  letter-spacing: .04em; color: var(--pl-text-45);
  background:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--color-text) 3.5%, transparent) 0 6px,
      transparent 6px 12px),
    var(--color-neutral-100);
}

.tnum { font-feature-settings: 'tnum' 1; }
.hr { height: 1px; border: 0; margin: 0; background: var(--color-divider); }

/* ==========================================================================
   3. Motion
   ========================================================================== */

@keyframes pl-rise  { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pl-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-line  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pl-spin  { to { transform: rotate(360deg); } }
@keyframes pl-pop   { 0% { opacity: 0; transform: scale(.6); } 65% { transform: scale(1.14); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pl-slide { from { transform: translateX(105%); } to { transform: translateX(0); } }
@keyframes pl-sweep { from { transform: translateY(40px) rotate(-1.4deg); opacity: 0; } to { transform: none; opacity: 1; } }

.a-fade  { animation: pl-fade .5s ease both; }
.a-rise  { animation: pl-rise 1s cubic-bezier(.34,1.3,.64,1) both; }
.a-sweep { animation: pl-sweep .9s cubic-bezier(.34,1.3,.64,1) both; }
.a-line  { transform-origin: left; animation: pl-line 1s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   4. Chrome — nav, footer, page shell
   ========================================================================== */

.pl-wrap {
  max-width: var(--pl-max);
  margin: 0 auto;
  padding-inline: var(--pl-gutter);
}

.pl-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: 14px var(--pl-gutter);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.pl-nav-home {
  margin-right: auto; display: flex; align-items: center;
  flex: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.pl-nav-home img { height: 24px; width: auto; max-width: none; }
.pl-nav-link { font-size: 14px; flex: none; color: inherit; }
.pl-nav-link:hover { color: var(--color-accent); }

/* Country picker in the header. Changing it re-prices the whole shop, so it
   sits next to the cart rather than being buried in the checkout. */
.pl-nav-country { flex: none; display: flex; align-items: center; }
.pl-nav-select {
  min-height: 38px; padding: 0 30px 0 11px; font: inherit; font-size: 13.5px;
  color: inherit; background-color: transparent; cursor: pointer;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.pl-nav-select:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.pl-nav-select:focus-visible { border-color: var(--color-accent); }
.pl-cart-btn {
  min-height: 42px; padding: 0 16px; font-size: 14px; gap: 9px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.pl-cart-btn:hover { transform: translateY(-2px); }
.pl-cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
  font-size: 11.5px; font-family: var(--font-body);
  font-feature-settings: 'tnum' 1;
}

.pl-footer {
  border-top: 1px solid var(--color-divider);
  padding: clamp(24px, 4vw, 40px) var(--pl-gutter);
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
.pl-footer img { height: 26px; width: auto; opacity: .75; }

/* ==========================================================================
   5. Home
   ========================================================================== */

.pl-hero {
  display: grid; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(34px, 6vw, 76px) clamp(24px, 4vw, 44px);
}
.pl-kicker {
  display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-700); margin-bottom: 18px;
  font-feature-settings: 'tnum' 1;
}
.pl-hero h1 {
  font-weight: 400; font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.05; letter-spacing: -.012em; margin: 0 0 22px;
}
.pl-hero h1 span { display: block; }
.pl-hero h1 .it { font-style: italic; }
.pl-hero-lead {
  font-size: 16.5px; line-height: 1.7; max-width: 46ch;
  margin: 0 0 26px; color: var(--pl-text-80);
}
.pl-mark {
  color: var(--color-accent-700);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 1px;
}
.pl-cta {
  min-height: 46px; padding: 0 22px; font-size: 15px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.pl-cta:hover { transform: translateY(-3px); }
.pl-hero-figure { width: 100%; aspect-ratio: 4/5; animation: pl-fade 1.1s ease both; }

.pl-section { padding-block: clamp(34px, 5vw, 64px); }
.pl-section-head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.pl-section-head h2 {
  font-weight: 400; font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -.01em; margin: 0;
}

.pl-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.pl-product {
  display: flex; flex-direction: column; gap: 14px; cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.4,.64,1);
  /* The card is an <a> so it can be opened in a new tab and followed by a
     crawler; it must not pick up link colouring from the base rule. */
  color: inherit; text-decoration: none;
}
.pl-product:hover, .pl-product:focus-visible { color: inherit; }
.pl-product:hover { transform: translateY(-6px); }
.pl-product > figure { width: 100%; aspect-ratio: 4/5; }
.pl-product-body { display: flex; flex-direction: column; gap: 6px; }
.pl-product-kicker {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.pl-product-body h3 { font-weight: 400; font-size: 23px; line-height: 1.2; margin: 0; }
.pl-product-desc {
  margin: 0; font-size: 13.5px; line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.pl-product-spec {
  font-size: 12px; letter-spacing: .04em;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  font-feature-settings: 'tnum' 1;
}
.pl-product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--color-divider);
}
.pl-price { font-family: var(--font-heading); font-size: 19px; font-feature-settings: 'tnum' 1; }
.pl-product-foot .btn {
  min-height: 46px; padding: 0 18px; font-size: 14px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.pl-product:hover .pl-product-foot .btn { transform: translateX(5px); }

.pl-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(26px, 3vw, 44px);
  padding-block: clamp(34px, 5vw, 64px);
}
.pl-info-kicker {
  display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-accent-700); margin-bottom: 12px;
}
.pl-info h3 {
  font-weight: 400; font-size: 22px; line-height: 1.25;
  letter-spacing: .05em; text-transform: uppercase; margin: 0 0 12px;
}
.pl-info p {
  margin: 0; font-size: 14.5px; line-height: 1.75;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  text-align: justify; hyphens: auto;
}

/* ==========================================================================
   6. Product detail
   ========================================================================== */

.pl-crumbs {
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-divider);
  margin-bottom: clamp(22px, 3vw, 36px);
}
.pl-step {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  font-feature-settings: 'tnum' 1; color: var(--color-accent-700);
}
.pl-step-muted { color: var(--pl-text-45); }

.pl-detail {
  display: grid; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 4vw, 52px);
}
.pl-detail > * { min-width: 0; }

.pl-gallery { position: relative; width: 100%; aspect-ratio: 1/1; }
.pl-gallery figure {
  position: absolute; inset: 0;
  transition: opacity .45s ease;
  opacity: 0; pointer-events: none; z-index: 1;
}
.pl-gallery figure.is-on { opacity: 1; pointer-events: auto; z-index: 2; }
.pl-gallery-nav { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.pl-gallery-nav .btn-icon { width: 44px; height: 44px; font-size: 15px; }
.pl-dots { display: flex; gap: 7px; margin-left: 4px; }
.pl-dot {
  width: 26px; height: 26px; padding: 0; border-radius: 999px; border: 0;
  background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.pl-dot span {
  width: 8px; height: 8px; border-radius: 999px;
  border: 1px solid var(--color-accent); background: transparent;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.pl-dot[aria-current="true"] span { background: var(--color-accent); transform: scale(1.3); }
.pl-counter { margin-left: auto; font-size: 12px; font-feature-settings: 'tnum' 1; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pl-caption { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.pl-long { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: color-mix(in srgb, var(--color-text) 82%, transparent); text-align: justify; hyphens: auto; }
.pl-long:last-of-type { margin-bottom: 0; }

.pl-detail h1 {
  font-weight: 400; font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px;
}
.pl-unit { margin: 0 0 14px; font-family: var(--font-heading); font-size: 24px; font-feature-settings: 'tnum' 1; }
.pl-unit small { font-family: var(--font-body); font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pl-detail h2 { font-weight: 400; font-size: 19px; margin: 0 0 4px; }
.pl-sub { margin: 0 0 18px; font-size: 13px; color: var(--pl-text-60); }

.pl-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-swatch {
  position: relative; width: 138px; display: flex; flex-direction: column; gap: 9px;
  padding: 9px; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  cursor: pointer; background: transparent; text-align: left; font: inherit;
  transition: transform .3s cubic-bezier(.34,1.5,.64,1), box-shadow .3s ease;
}
.pl-swatch:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pl-swatch figure { width: 100%; aspect-ratio: 1/1; }
.pl-swatch-name { font-family: var(--font-heading); font-size: 15.5px; line-height: 1.25; }
.pl-swatch-print { font-size: 11.5px; color: var(--pl-text-60); }
.pl-swatch-ring {
  position: absolute; inset: -1px; border: 2px solid var(--color-accent);
  border-radius: var(--radius-md); pointer-events: none;
  animation: pl-fade .25s ease both;
}
.pl-swatch-tag { position: absolute; top: 16px; left: 16px; animation: pl-pop .35s cubic-bezier(.34,1.56,.64,1) both; }

.pl-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-divider);
  padding: 12px var(--pl-gutter);
  animation: pl-rise .5s cubic-bezier(.34,1.4,.64,1) both;
}
.pl-stickybar-in {
  max-width: var(--pl-max); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.pl-stickybar-label { display: flex; flex-direction: column; }
.pl-stickybar-label .s {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.pl-stickybar-label .b { font-family: var(--font-heading); font-size: 21px; font-feature-settings: 'tnum' 1; }
.pl-qty { display: flex; align-items: center; gap: 10px; }
.pl-qty .btn-icon { width: 44px; height: 44px; font-size: 18px; }
.pl-qty output { font-feature-settings: 'tnum' 1; min-width: 22px; text-align: center; font-size: 16px; }
.pl-stickybar-actions { display: flex; gap: 10px; flex: 1 1 260px; justify-content: flex-end; }
.pl-stickybar-actions .btn { min-height: 50px; padding: 0 20px; font-size: 14px; }
.pl-stickybar-actions .btn-primary { font-size: 15px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.pl-stickybar-actions .btn-primary:hover { transform: translateY(-3px); }

/* The sticky bar overlays the page, so the detail view reserves room for it. */
.pl-view-cover { padding-bottom: 150px; }
@media (max-width: 560px) {
  .pl-view-cover { padding-bottom: 210px; }
  .pl-nav-link, .pl-keep-shopping { display: none !important; }
  /* Keep the country picker — it decides the currency — but cap it so the
     logo and the cart button still fit on a 360px phone. */
  .pl-nav-select {
    max-width: 126px; font-size: 12.5px;
    padding: 0 24px 0 9px; text-overflow: ellipsis;
    background-position: calc(100% - 14px) 17px, calc(100% - 9px) 17px;
  }
}

/* ==========================================================================
   7. Checkout
   ========================================================================== */

.pl-checkout {
  display: grid; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(26px, 4vw, 52px);
}
/* A grid item's default min-width is auto, so one long unbreakable string —
   an email, a SKU, a pasted address — makes the track wider than its share
   and the two columns run into each other. min-width:0 lets them shrink. */
.pl-checkout > * { min-width: 0; }
.pl-checkout-main { display: flex; flex-direction: column; gap: 30px; min-width: 0; }

/* A one-line note under a field. Deliberately not .pl-hint: that is a padded,
   bordered box, and on an inline element its vertical padding overlaps
   whatever sits above and below instead of pushing it away. */
.pl-note {
  display: block; margin-top: 6px; font-size: 12px; line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
.pl-checkout-main h2 { font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.pl-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}
.pl-note-line { margin: 0 0 16px; font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 58%, transparent); }

.pl-hint {
  margin: 0; font-size: 13.5px; padding: 16px;
  border: 1px dashed var(--color-divider); border-radius: var(--radius-md);
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.pl-loading {
  display: flex; align-items: center; gap: 12px; font-size: 13.5px; padding: 16px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  color: var(--pl-text-70); animation: pl-fade .3s ease both;
}
.pl-spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--color-divider); border-top-color: var(--color-accent);
  animation: pl-spin .8s linear infinite;
}
.pl-rates {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  overflow: hidden; animation: pl-rise .5s cubic-bezier(.34,1.4,.64,1) both;
}
.pl-rate {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer;
  border-bottom: 1px solid var(--color-divider); transition: background .2s ease;
}
.pl-rate:last-child { border-bottom: 0; }
.pl-rate:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.pl-rate-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pl-rate-text .a { font-size: 14.5px; }
.pl-rate-text .b { font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pl-rate-cost { font-family: var(--font-heading); font-size: 16px; font-feature-settings: 'tnum' 1; }

.pl-summary {
  position: sticky; top: 86px;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
  animation: pl-rise .85s cubic-bezier(.34,1.3,.64,1) both;
}
.pl-summary h2 { font-weight: 400; font-size: 20px; margin: 0; }
.pl-summary-lines { display: flex; flex-direction: column; gap: 14px; }
.pl-summary-item { display: flex; gap: 13px; align-items: flex-start; }
.pl-summary-item figure { width: 62px; flex: none; aspect-ratio: 4/5; }
.pl-summary-item .t { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pl-summary-item .n { font-family: var(--font-heading); font-size: 15.5px; line-height: 1.25; }
.pl-summary-item .v { font-size: 12px; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.pl-summary-item .s { font-size: 11px; color: var(--pl-text-45); font-feature-settings: 'tnum' 1; }
.pl-summary-item .p { font-size: 13.5px; font-feature-settings: 'tnum' 1; }

.pl-voucher { display: flex; flex-direction: column; gap: 8px; }
.pl-voucher label { font-size: 12px; color: var(--pl-text-70); }
.pl-voucher-row { display: flex; gap: 8px; }
.pl-voucher-row .input { min-height: 44px; font-size: 14px; flex: 1; letter-spacing: .06em; }
.pl-voucher-row .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.pl-voucher-msg { font-size: 11.5px; animation: pl-fade .3s ease both; color: var(--color-neutral-700); }
.pl-voucher-msg.is-ok { color: var(--color-accent-700); }

.pl-totals { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; font-feature-settings: 'tnum' 1; }
.pl-totals div, .pl-grand { display: flex; justify-content: space-between; gap: 10px; }
.pl-totals .is-discount { color: var(--color-accent-700); }
.pl-grand { align-items: baseline; }
.pl-grand .l { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--pl-text-60); }
.pl-grand .v { font-family: var(--font-heading); font-size: 27px; font-feature-settings: 'tnum' 1; }
.pl-pay { min-height: 52px; font-size: 15.5px; margin-top: 4px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.pl-pay:not(:disabled):hover { transform: translateY(-3px); }
.pl-pay-hint { margin: 0; font-size: 11.5px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pl-error {
  margin: 0; font-size: 13px; line-height: 1.6; padding: 12px 14px;
  border: 1px solid var(--color-neutral-400); border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-neutral-300) 40%, transparent);
}

/* ==========================================================================
   8. Cart drawer
   ========================================================================== */

.pl-scrim {
  position: fixed; inset: 0; z-index: 40; border: 0; padding: 0;
  background: color-mix(in srgb, var(--color-neutral-900) 42%, transparent);
  animation: pl-fade .3s ease both; cursor: pointer;
}
.pl-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--color-bg); border-left: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  animation: pl-slide .42s cubic-bezier(.22,1.2,.36,1) both;
}
.pl-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--color-divider);
}
.pl-drawer-head h2 { font-weight: 400; font-size: 21px; margin: 0; }
.pl-drawer-head .btn-icon { width: 40px; height: 40px; font-size: 16px; }
.pl-drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.pl-drawer-empty { margin: 0; font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.pl-drawer-item { display: flex; gap: 14px; align-items: flex-start; animation: pl-rise .4s cubic-bezier(.34,1.4,.64,1) both; }
.pl-drawer-item figure { width: 72px; flex: none; aspect-ratio: 4/5; }
.pl-drawer-item .t { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pl-drawer-item .n { font-family: var(--font-heading); font-size: 16.5px; line-height: 1.25; }
.pl-drawer-item .v { font-size: 12.5px; color: color-mix(in srgb, var(--color-text) 62%, transparent); }
.pl-drawer-item .s { font-size: 11px; color: var(--pl-text-45); font-feature-settings: 'tnum' 1; }
.pl-drawer-item .p { font-size: 13.5px; font-feature-settings: 'tnum' 1; }
.pl-drawer-qty { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.pl-drawer-qty .btn-icon { width: 36px; height: 36px; }
.pl-drawer-qty output { font-feature-settings: 'tnum' 1; min-width: 18px; text-align: center; font-size: 14.5px; }
.pl-drawer-qty .btn-ghost { font-size: 12.5px; margin-left: auto; }
.pl-drawer-foot {
  padding: 18px 20px; border-top: 1px solid var(--color-divider);
  display: flex; flex-direction: column; gap: 12px;
}
.pl-drawer-sub { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-feature-settings: 'tnum' 1; }
.pl-drawer-hint { margin: 0; font-size: 11.5px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.pl-drawer-foot .btn-primary { min-height: 50px; font-size: 15px; }

/* ==========================================================================
   9. Order confirmation (return.php)
   ========================================================================== */

.pl-done { max-width: 660px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--pl-gutter); animation: pl-rise .7s cubic-bezier(.34,1.3,.64,1) both; }
.pl-done-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border: 1px solid var(--color-accent);
  border-radius: 50%; color: var(--color-accent); font-size: 24px;
  margin-bottom: 24px; animation: pl-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.pl-done h1 { font-weight: 400; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; margin: 0 0 14px; }
.pl-done-lead { margin: 0 0 26px; font-size: 16px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.pl-done-box {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
  font-size: 13.5px; font-feature-settings: 'tnum' 1; margin-bottom: 26px;
}
.pl-done-box > div { display: flex; justify-content: space-between; gap: 10px; }
.pl-done-box .is-total { font-size: 16px; }
.pl-done-box .is-discount { color: var(--color-accent-700); }
.pl-done .btn-primary { min-height: 48px; padding: 0 22px; font-size: 15px; }

.pl-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 18px;
  background: var(--color-neutral-200); color: var(--color-neutral-800);
}
.pl-status.is-paid { background: var(--color-accent-100); color: var(--color-accent-800); }

/* Hidden until JS decides otherwise; keeps the page from flashing every view. */
[hidden] { display: none !important; }

/* ==========================================================================
   The server-rendered catalogue.

   index.php prints the whole shop as plain HTML before paperie.js runs, so a
   crawler — or a visitor with scripting off — gets the real thing. paperie.js
   replaces #app on boot, which happens before the first paint, so these rules
   are almost never on screen. They exist so that "almost" is not "never".
   ========================================================================== */

.pl-crumbs {
  padding-block: 18px 0; font-size: 12px; letter-spacing: .04em;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.pl-crumbs span { margin: 0 6px; }

.pl-spec-table { border-collapse: collapse; width: 100%; max-width: 520px; margin: 0 0 var(--space-4); }
.pl-spec-table th,
.pl-spec-table td {
  text-align: left; padding: 10px 0; font-weight: 400; font-size: 14px;
  border-bottom: 1px solid var(--color-divider); vertical-align: top;
}
.pl-spec-table th {
  width: 34%; padding-right: 16px;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

.pl-cover-list { margin: 0 0 var(--space-4); padding-left: 18px; }
.pl-cover-list li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
