/* Nestell storefront — mobile-first. Every value pulls from tokens.css.
   Design intent: warm, tactile, playful organic shapes. No dashed lines,
   no boxy "AI" grids — soft asymmetric corners, wavy dividers, hand-feel. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 calc(var(--space) * 2); letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: calc(var(--space) * 2.5); }
.muted { color: var(--muted); }

/* hand-drawn wavy underline accent under section headings */
.wavy { position: relative; display: inline-block; }
.wavy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M1 5 Q 15 1 30 5 T 60 5 T 90 5 T 119 5' fill='none' stroke='%23C85A32' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--terracotta); color: #fff;
  padding: 15px 28px; border: 0; border-radius: var(--radius-pill);
  font: 600 var(--step-0)/1 var(--font-body); cursor: pointer; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--terracotta-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--plum); border: 2px solid var(--plum); box-shadow: none; padding: 13px 26px; }
.btn--ghost:hover { background: var(--plum); color: #fff; }
.btn--plum { background: var(--plum); }
.btn--plum:hover { background: var(--plum-soft); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: var(--step-1); }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }

/* --- Announcement / USP bar (plum) --- */
.announce { background: var(--plum); color: #fff; font-size: var(--step--1); }
.announce__track {
  display: flex; gap: calc(var(--space) * 4); justify-content: center; align-items: center;
  padding: 10px 0; flex-wrap: wrap;
}
.announce__item { display: inline-flex; align-items: center; gap: 8px; opacity: .95; }
.announce__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta-soft); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: saturate(1.1) blur(8px); border-bottom: var(--line-h); }
.site-header__bar { display: flex; align-items: center; gap: calc(var(--space) * 2); padding: 14px 0; }
.brand { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; letter-spacing: .01em; color: var(--plum); line-height: 1; }
.brand small { display: block; font-family: var(--font-body); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta); margin-top: 3px; font-weight: 600; }
.nav { display: none; gap: calc(var(--space) * 3); margin-left: calc(var(--space) * 2); }
.nav a { position: relative; padding: 6px 2px; font-size: var(--step-0); color: var(--ink); font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--terracotta); transition: right .28s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: calc(var(--space) * 1.75); }
.header-actions a, .header-actions button { display: inline-flex; align-items: center; color: var(--plum); opacity: .9; background: none; border: 0; cursor: pointer; padding: 4px; position: relative; }
.header-actions a:hover, .header-actions button:hover { opacity: 1; color: var(--terracotta); }
.icon { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hamburger { display: inline-flex; }
.cart-count { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* --- Mobile nav drawer --- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(44,44,44,.42); backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 auto 0 0; z-index: 91; width: min(86vw, 360px); background: var(--cream); box-shadow: var(--shadow-lift); padding: calc(var(--space) * 3); display: flex; flex-direction: column; gap: 6px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(var(--space) * 2); }
.drawer a { padding: 14px 12px; border-radius: var(--radius); font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); }
.drawer a:hover { background: var(--terracotta-wash); }
[x-cloak] { display: none !important; }

/* --- Hero --- */
.hero { display: grid; gap: calc(var(--space) * 4); padding: calc(var(--space) * 6) 0 calc(var(--space) * 5); position: relative; }
.hero::before { /* playful blob behind copy */
  content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; left: -120px; top: -40px;
  background: var(--terracotta-wash); border-radius: var(--blob-1); filter: blur(6px); opacity: .8;
}
.hero__eyebrow { font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: calc(var(--space) * 1.5); }
.hero__title { font-size: var(--step-4); max-width: 13ch; }
.hero__title em { font-style: italic; color: var(--terracotta); }
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; margin-bottom: calc(var(--space) * 3); }
.hero__cta { display: flex; gap: calc(var(--space) * 1.5); flex-wrap: wrap; }
.hero__media {
  aspect-ratio: 4 / 4.4; border-radius: var(--blob-2); overflow: hidden;
  background: linear-gradient(150deg, var(--cream-deep), var(--terracotta-soft));
  box-shadow: var(--shadow); position: relative;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: 18px; bottom: 18px; background: var(--surface); color: var(--plum); border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--step--1); font-weight: 600; box-shadow: var(--shadow-sm); }

/* --- Section + wavy divider --- */
.section { padding: calc(var(--space) * 6) 0; position: relative; }
.section--cream { background: var(--cream-deep); }
.section--plum { background: var(--plum); color: #fff; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: calc(var(--space) * 4.5); }
.section__head h2 { font-size: var(--step-3); margin: 0; }
.section__link { font-size: var(--step-0); color: var(--terracotta); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section__link:hover { color: var(--terracotta-strong); }
/* soft wavy top divider for coloured sections */
.wave-top { display: block; width: 100%; height: 28px; margin-bottom: -1px; color: var(--cream-deep); }
.wave-top--plum { color: var(--plum); }

/* --- Category tiles (organic, asymmetric) --- */
.tiles { display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 2); }
.tile {
  display: flex; flex-direction: column; justify-content: end; min-height: 240px;
  padding: calc(var(--space) * 3); border-radius: var(--leaf); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--cream-deep)); border: var(--line-h);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tile::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; background: var(--terracotta-wash); border-radius: var(--blob-1); opacity: .7; transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:hover::after { transform: scale(1.15) rotate(8deg); }
.tile h3 { font-size: var(--step-2); margin-bottom: 4px; color: var(--plum); position: relative; }
.tile p { margin: 0; color: var(--muted); font-size: var(--step-0); position: relative; }
.tile__go { margin-top: calc(var(--space) * 1.5); font-size: var(--step--1); letter-spacing: .03em; color: var(--terracotta); font-weight: 600; position: relative; }

/* --- Product rail (mobile: swipe; desktop: grid) --- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: calc(var(--space) * 2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: calc(var(--space) * 2); margin-inline: calc(var(--space) * -2.5); padding-inline: calc(var(--space) * 2.5); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space) * 2); }

/* --- Product card --- */
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: var(--line-h); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--cream-deep); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.card__img--hover { opacity: 0; }
.card:hover .card__img--main { transform: scale(1.04); }
.card:hover .card__img--hover { opacity: 1; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.badge--plum { background: var(--plum); }
.badge--sale { background: var(--gold); }
.badge--out { background: var(--muted); }
.card__wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 85%, transparent); border: 0; display: grid; place-items: center; color: var(--plum); cursor: pointer; box-shadow: var(--shadow-sm); }
.card__wish:hover { color: var(--terracotta); }
.card__wish.is-on { color: var(--terracotta); }
.card__body { padding: calc(var(--space) * 2) calc(var(--space) * 2) calc(var(--space) * 2.5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-size: var(--step--1); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); margin: 0; line-height: 1.15; }
.card__title a:hover { color: var(--terracotta); }
.card__price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 9px; }
.card__from { font-size: var(--step--1); color: var(--muted); }
.price { font-weight: 700; color: var(--terracotta); font-size: var(--step-1); }
.price--was { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: var(--step-0); }
.card__meta { font-size: var(--step--1); color: var(--sage); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.card__meta--out { color: var(--muted); }
.card__meta .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* --- PLP layout --- */
.plp { display: grid; gap: calc(var(--space) * 3); padding: calc(var(--space) * 4) 0 calc(var(--space) * 7); }
.plp__head h1 { font-size: var(--step-3); color: var(--plum); margin-bottom: 8px; }
.plp__intro { color: var(--muted); max-width: 62ch; }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: calc(var(--space) * 1.5); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span { color: var(--line); }

.plp__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: calc(var(--space) * 2) 0; flex-wrap: wrap; }
.plp__count { font-size: var(--step--1); color: var(--muted); }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: var(--line-h); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; color: var(--plum); cursor: pointer; }
.select { appearance: none; background: var(--surface); border: var(--line-h); border-radius: var(--radius-pill); padding: 10px 40px 10px 16px; font: 500 var(--step-0) var(--font-body); color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A2C40' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }

.facets { background: var(--surface); border: var(--line-h); border-radius: var(--radius-lg); padding: calc(var(--space) * 2.5); }
.facet { border-bottom: var(--line-h); padding: calc(var(--space) * 1.5) 0; }
.facet:last-child { border-bottom: 0; }
.facet > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--plum); padding: 6px 0; }
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary::after { content: "+"; color: var(--terracotta); font-size: var(--step-1); }
.facet[open] > summary::after { content: "–"; }
.facet__body { padding-top: calc(var(--space) * 1.25); display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--step-0); color: var(--ink); }
.check input { accent-color: var(--terracotta); width: 17px; height: 17px; }
.check .n { color: var(--muted); font-size: var(--step--1); margin-left: auto; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch:has(input:checked) { border-color: var(--terracotta); }
.facet__actions { margin-top: calc(var(--space) * 2); display: flex; gap: 10px; }

.plp__results { display: grid; gap: calc(var(--space) * 3); }
.grid-plp { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space) * 2); }
.empty { text-align: center; padding: calc(var(--space) * 8) 0; color: var(--muted); }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: calc(var(--space) * 3); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-pill); border: var(--line-h); background: var(--surface); font-weight: 600; color: var(--plum); padding: 0 12px; }
.pagination a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.pagination .is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* --- PDP --- */
.pdp { display: grid; gap: calc(var(--space) * 4); padding: calc(var(--space) * 3) 0 calc(var(--space) * 6); }
.gallery { display: grid; gap: calc(var(--space) * 1.5); }
.gallery__stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); background: var(--cream-deep); scrollbar-width: none; -webkit-overflow-scrolling: touch; box-shadow: var(--shadow-sm); }
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: flex; justify-content: center; gap: 8px; }
.gallery__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: transform .2s var(--ease), background .2s var(--ease); }
.gallery__dots button.is-active { background: var(--terracotta); transform: scale(1.35); }
.gallery__thumbs { display: none; gap: 10px; }
.gallery__thumbs button { width: 68px; height: 84px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; background: var(--cream-deep); cursor: pointer; padding: 0; }
.gallery__thumbs button.is-active { border-color: var(--terracotta); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.summary { display: flex; flex-direction: column; gap: calc(var(--space) * 2); }
.summary__brand { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.summary h1 { font-size: var(--step-3); color: var(--plum); margin: 4px 0; }
.summary__price { display: flex; align-items: baseline; gap: 12px; }
.summary__price .price { font-size: var(--step-2); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt__label { font-weight: 600; color: var(--plum); font-size: var(--step-0); }
.opt__label span { color: var(--muted); font-weight: 500; }
.opt__row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius-pill); padding: 9px 18px; cursor: pointer; font-weight: 600; color: var(--ink); transition: border-color .15s var(--ease), color .15s var(--ease); }
.pill:hover { border-color: var(--terracotta-soft); }
.pill.is-active { border-color: var(--terracotta); color: var(--terracotta); background: var(--terracotta-wash); }
.pill.is-out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.opt__swatch { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; display: grid; place-items: center; }
.opt__swatch .dot { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.opt__swatch.is-active { border-color: var(--terracotta); box-shadow: 0 0 0 2px var(--terracotta-wash); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-0); font-weight: 600; }
.stock--in { color: var(--sage); }
.stock--low { color: var(--terracotta); }
.stock--out { color: var(--muted); }
.stock .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.qty { display: inline-flex; align-items: center; border: var(--line-h); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 42px; height: 46px; border: 0; background: var(--surface); font-size: var(--step-1); color: var(--plum); cursor: pointer; }
.qty button:hover { background: var(--terracotta-wash); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font: 600 var(--step-0) var(--font-body); }
.buybar { display: flex; gap: 12px; align-items: stretch; }
.usp-strip { display: grid; gap: 10px; padding: calc(var(--space) * 2); background: var(--plum-wash); border-radius: var(--radius); }
.usp-strip div { display: flex; align-items: center; gap: 10px; font-size: var(--step-0); color: var(--plum); }
.usp-strip .icon { width: 20px; height: 20px; color: var(--terracotta); flex: none; }

.accordion { border-top: var(--line-h); }
.accordion summary { list-style: none; cursor: pointer; padding: calc(var(--space) * 2) 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--plum); display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--terracotta); }
.accordion[open] summary::after { content: "–"; }
.accordion__body { padding-bottom: calc(var(--space) * 2); color: var(--ink); }
.spectable { width: 100%; border-collapse: collapse; }
.spectable th, .spectable td { text-align: left; padding: 10px 0; border-bottom: var(--line-h); font-size: var(--step-0); vertical-align: top; }
.spectable th { color: var(--muted); font-weight: 500; width: 42%; }

/* sticky mobile add-to-cart */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-top: var(--line-h); padding: 10px calc(var(--space) * 2.5); display: flex; align-items: center; gap: 12px; box-shadow: 0 -10px 30px -20px rgba(74,44,64,.5); }
.sticky-buy .price { font-size: var(--step-1); }
.sticky-buy .btn { flex: 1; }

/* --- Brand / USP block --- */
.brandblock { display: grid; gap: calc(var(--space) * 3); }
.brandblock__lede { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.32; max-width: 30ch; }
.usp-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 2.5); margin-top: calc(var(--space) * 2); }
.usp { padding-top: calc(var(--space) * 2); position: relative; }
.usp::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 3px; background: var(--terracotta); margin-bottom: calc(var(--space) * 1.5); }
.section--plum .usp::before { background: var(--terracotta-soft); }
.usp h4 { margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.usp p { margin: 0; color: var(--muted); font-size: var(--step-0); }
.section--plum .usp p { color: rgba(255,255,255,.75); }

/* --- Search --- */
.searchbar { display: flex; gap: 10px; margin: calc(var(--space) * 3) 0; }
.searchbar input { flex: 1; border: var(--line-h); border-radius: var(--radius-pill); padding: 15px 22px; font: 500 var(--step-1) var(--font-body); background: var(--surface); color: var(--ink); }
.searchbar input:focus { outline: 3px solid var(--terracotta-soft); border-color: transparent; }

/* --- Placeholder / errors --- */
.placeholder { padding: calc(var(--space) * 8) 0; text-align: center; }
.placeholder .tag, .tag { display: inline-block; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); background: var(--plum-wash); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: calc(var(--space) * 2); font-weight: 600; }
.placeholder p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.error-page { text-align: center; padding: calc(var(--space) * 12) 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); color: var(--terracotta); line-height: 1; }

/* --- Footer (plum) --- */
.site-footer { background: var(--plum); color: #fff; margin-top: 0; padding: calc(var(--space) * 7) 0 calc(var(--space) * 4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--space) * 4); }
.footer-col h4 { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-soft); margin: 0 0 calc(var(--space) * 2); }
.footer-col a { display: block; padding: 5px 0; opacity: .85; font-size: var(--step-0); }
.footer-col a:hover { opacity: 1; color: var(--terracotta-soft); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: var(--terracotta-soft); }
.footer-brand p { color: rgba(255,255,255,.7); max-width: 34ch; }
.footer-bottom { margin-top: calc(var(--space) * 4); padding-top: calc(var(--space) * 3); border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: rgba(255,255,255,.7); }

/* --- Skeleton shimmer --- */
.skeleton, .ph-shimmer { position: relative; overflow: hidden; background: var(--cream-deep); }
.skeleton::after, .ph-shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card { border-radius: var(--radius-lg); overflow: hidden; border: var(--line-h); background: var(--surface); }
.skel-card .skel-media { aspect-ratio: 4/5; }
.skel-card .skel-line { height: 12px; border-radius: 6px; margin: 12px 16px; }
.skel-card .skel-line.s { width: 40%; }
/* image fade-in: img starts transparent, .is-loaded reveals it */
.card__media img.card__img--main { opacity: 0; }
.card__media img.card__img--main.is-loaded { opacity: 1; }
.is-fetching { opacity: .5; transition: opacity .2s var(--ease); pointer-events: none; }

/* --- Toast --- */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--plum); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 12px; max-width: 340px; }
.toast .icon { color: var(--terracotta-soft); }

/* --- Swup page transitions --- */
#swup { transition: opacity .32s var(--ease), transform .32s var(--ease); }
html.is-animating #swup { opacity: 0; transform: translateY(8px); }
html.is-rendering #swup { opacity: 0; }

/* --- Responsive --- */
@media (min-width: 600px) {
  .grid-products, .grid-plp { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: 42%; }
}
@media (min-width: 680px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hamburger { display: none; }
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; gap: calc(var(--space) * 6); padding: calc(var(--space) * 9) 0; }
  .hero__title { font-size: clamp(3rem, 5vw, 4.2rem); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile--wide { grid-column: span 2; }
  .rail { display: grid; grid-auto-flow: initial; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .grid-products, .grid-plp { grid-template-columns: repeat(4, 1fr); }
  .plp { grid-template-columns: 260px 1fr; align-items: start; gap: calc(var(--space) * 4); }
  .plp__head { grid-column: 1 / -1; }
  .filter-toggle { display: none; }
  .facets { position: sticky; top: 90px; }
  .pdp { grid-template-columns: 1.05fr .95fr; gap: calc(var(--space) * 6); align-items: start; }
  .gallery { position: sticky; top: 90px; grid-template-columns: 80px 1fr; }
  .gallery__stage { grid-column: 2; }
  .gallery__dots { grid-column: 2; }
  .gallery__thumbs { display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / 3; }
  .sticky-buy { display: none; }
}
@media (min-width: 1100px) {
  .grid-plp { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  #swup { transition: none !important; }
}
