/* ==========================================================================
   Knit & Ispira — page layouts: home blocks, catalog, product, cart,
   checkout, order, account, content pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 5vw, 72px) clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1fr 1.05fr; } .hero--image-left .hero__media { order: -1; } }
.hero__text { display: grid; gap: 18px; justify-items: start; max-width: 600px; }
.hero__title { font-family: var(--font-accent); font-weight: var(--accent-weight); font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.02em; }
/* The big section titles of the home page may stay decorative; everything else reads in the plain font */
.page-home main h2 { font-family: var(--font-accent); font-weight: var(--accent-weight); font-size: var(--fs-display-2); letter-spacing: -0.01em; }
.hero__subtitle { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--c-ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__media { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; background: var(--c-surface-2); box-shadow: var(--shadow-m); }
@media (min-width: 900px) { .hero__media { aspect-ratio: 4 / 4.2; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stamp {
  position: absolute; left: 18px; bottom: 18px; display: flex; gap: 10px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: var(--radius-pill); background: rgb(255 255 255 / 0.92); box-shadow: var(--shadow-m);
  font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink); text-decoration: none;
}
.hero__stamp:hover > span { text-decoration: underline; }
.hero__stamp .icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--c-accent); color: #fff; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: var(--fs-s); color: var(--c-ink-2); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--c-sage); width: 18px; height: 18px; }
.hero.bg-dark .hero__subtitle, .hero.bg-dark .hero__trust { color: rgb(243 236 227 / 0.8); }

/* --------------------------------------------------------------------------
   Home: category tiles
   -------------------------------------------------------------------------- */
.cat-tiles { display: grid; gap: clamp(10px, 1.6vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-tiles--many { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--c-surface-3); text-decoration: none; color: #fff; isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); z-index: -2; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgb(30 24 20 / 0.5) 70%, rgb(30 24 20 / 0.8)); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile__text { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.cat-tile__name { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.5rem); line-height: 1.2; text-shadow: 0 1px 10px rgb(30 24 20 / 0.45); }
.cat-tile__arrow { width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--c-ink); display: grid; place-items: center; flex: none; transition: transform var(--t-med) var(--ease); }
.cat-tile:hover .cat-tile__arrow { transform: translateX(3px); }
.cat-tile--plain { color: var(--c-ink); background: var(--c-surface-2); }
.cat-tile--plain::after { display: none; }

/* --------------------------------------------------------------------------
   Home: banner, split, benefits, steps, testimonials, gallery, newsletter
   -------------------------------------------------------------------------- */
.banner { position: relative; border-radius: var(--radius-l); overflow: hidden; color: #fff; min-height: clamp(320px, 42vw, 520px); display: grid; align-items: end; isolation: isolate; background: var(--c-dark); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(30 24 20 / 0.7), rgb(30 24 20 / 0.15) 70%); }
.banner__text { padding: clamp(24px, 5vw, 64px); max-width: 640px; display: grid; gap: 14px; justify-items: start; }
.banner h2 { color: #fff; }
.banner p { color: rgb(255 255 255 / 0.85); font-size: var(--fs-l); }
.banner .eyebrow { color: #f3c9b6; }

.split { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--image-left .split__media { order: -1; } }
.split__media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--c-surface-2); }
@media (min-width: 900px) { .split__media { aspect-ratio: 5 / 6; } }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { display: grid; gap: 16px; justify-items: start; }
.split__text .prose { font-size: var(--fs-m); }

.benefits-grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.benefit { display: grid; gap: 10px; justify-items: start; }
.benefit__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); }
.bg-dark .benefit__icon { background: rgb(255 255 255 / 0.08); color: #f3c9b6; }
.benefit__icon .icon { width: 26px; height: 26px; }
.benefit h3 { font-family: var(--font-body); font-size: var(--fs-l); font-weight: 800; }
.benefit p { color: var(--c-ink-2); font-size: var(--fs-s); }
.bg-dark .benefit p { color: rgb(243 236 227 / 0.72); }

.steps { display: grid; gap: 18px; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; }
.step { position: relative; padding: 26px 22px 24px; border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); display: grid; gap: 10px; align-content: start; }
.bg-dark .step { background: var(--c-dark-2); border-color: rgb(255 255 255 / 0.08); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-accent); font-weight: var(--accent-weight); font-size: 2.6rem; line-height: 1; color: var(--c-accent); }
.step__icon { position: absolute; right: 20px; top: 22px; color: var(--c-ink-3); }
.step h3 { font-family: var(--font-body); font-size: var(--fs-l); font-weight: 800; }
.step p { color: var(--c-ink-2); font-size: var(--fs-s); }
.bg-dark .step p { color: rgb(243 236 227 / 0.72); }

.testimonials { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.testimonial { padding: 26px; border-radius: var(--radius-l); background: var(--c-surface); display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-s); }
.testimonial blockquote { font-size: var(--fs-l); font-weight: 500; line-height: 1.55; color: var(--c-ink); }
.testimonial footer { display: flex; align-items: center; gap: 12px; font-size: var(--fs-s); color: var(--c-ink-3); }
.testimonial footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial footer strong { color: var(--c-ink); display: block; }

.gallery-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gallery-grid a, .gallery-grid figure { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-s); background: var(--c-surface-2); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }

.newsletter-block { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); }
@media (min-width: 900px) { .newsletter-block { grid-template-columns: 1fr 1fr; gap: 48px; } }
.bg-dark .newsletter-block { background: var(--c-dark-2); border-color: transparent; }

.faq-list { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--c-line); }
.faq-list .accordion__body { max-width: 72ch; }

/* --------------------------------------------------------------------------
   Catalog listing
   -------------------------------------------------------------------------- */
.listing-head { padding-block: clamp(20px, 3vw, 36px) 8px; display: grid; gap: 14px; }
.listing-head h1 { font-size: var(--fs-h2); }
.listing-head__desc { color: var(--c-ink-2); max-width: 70ch; }
.subcats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.subcats::-webkit-scrollbar { display: none; }

/* Layout: filters in a sticky sidebar from 900px, a sheet (phones) or a side panel (tablets) below */
.listing { display: grid; gap: 4px; padding-top: 18px; }
@media (min-width: 900px) { .listing { grid-template-columns: 264px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1200px) { .listing { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; } }
.listing > * { min-width: 0; }

/* Results column: count, sort, chosen filters, products */
.listing__results { position: relative; min-height: 300px; }
.listing__count { font-size: var(--fs-s); color: var(--c-ink-3); font-weight: 600; }
.listing__count:focus { outline: none; }
/* The header's real height (app.js measures it: a long menu wraps); 0 while the header hides on scroll (nav.css) */
.listing { --sticky-top: var(--header-real, calc(var(--header-h) + var(--nav-h))); }
html.header-hidden .listing { --sticky-top: 0px; }
.listing__bar { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

.filters-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0;
  height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-ink); font-size: var(--fs-s); font-weight: 700;
  transition: border-color var(--t-fast); -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .filters-toggle:hover, .sort-control:hover { border-color: var(--c-ink); } }
.filters-toggle .icon { width: 18px; height: 18px; }
.filters-toggle__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: -2px;
  border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-accent-ink); font-size: 12px; font-weight: 800;
}
@media (min-width: 900px) { .filters-toggle { display: none; } }

/* Sorting: the native list (best on phones), dressed as a pill showing the chosen order */
.sort-control {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
  height: 44px; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-pill);
  background: var(--c-surface); color: var(--c-ink); font-size: var(--fs-s); font-weight: 700;
  transition: border-color var(--t-fast);
}
.sort-control:has(:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.sort-control__icon { width: 18px; height: 18px; flex: none; }
.sort-control__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-control__chevron { width: 16px; height: 16px; flex: none; color: var(--c-ink-3); }
.sort-control__select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  font-size: 16px; /* no zoom on iPhone */ appearance: none; border: 0;
}
.no-js .sort-control__select { position: static; opacity: 1; width: auto; height: auto; background: transparent; font-size: var(--fs-s); font-weight: 700; }
.no-js .sort-control__value, .no-js .sort-control__chevron { display: none; }

@media (max-width: 899px) {
  /* A bar under the header that stays while the shopper scrolls the products */
  .listing__bar {
    position: sticky; top: var(--sticky-top); z-index: 20;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; /* the sort label gets the spare width */
    margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: rgb(251 248 243 / 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), top var(--t-med) var(--ease);
  }
  .listing__bar.is-stuck { border-bottom-color: var(--c-line); box-shadow: 0 10px 24px -20px rgb(42 36 33 / 0.45); }
  .no-js .listing__bar { grid-template-columns: minmax(0, 1fr); }
  .listing__bar .filters-toggle, .listing__bar .sort-control { width: 100%; justify-content: center; gap: 6px; padding-inline: 14px; }
  .listing__bar .filters-toggle { padding-inline: 18px; }
  .listing__bar .sort-control__value { flex: 0 1 auto; }
  .listing__bar .sort-control__icon { width: 16px; height: 16px; }
  .listing__bar .sort-control__chevron { width: 14px; height: 14px; }
  .listing__count { margin: 6px 0 12px; }
}
@media (max-width: 379px) {
  .listing__bar .sort-control__icon { display: none; }
  .listing__bar .filters-toggle { padding-inline: 14px; }
  .listing__bar .sort-control { padding-inline: 12px; }
  .listing__bar .sort-control__value { font-size: 0.8125rem; }
}
@media (max-width: 359px) { .listing__bar .filters-toggle .icon { display: none; } }
/* Tablets: the two buttons keep their natural width, "Filters" on the left and sorting on the right */
@media (min-width: 600px) and (max-width: 899px) {
  .listing__bar { display: flex; justify-content: space-between; }
  .listing__bar .filters-toggle, .listing__bar .sort-control { width: auto; padding-inline: 18px; }
  .listing__bar .sort-control { max-width: 60%; }
}
@media (min-width: 900px) {
  .listing__results { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-content: start; }
  .listing__results > * { grid-column: 1 / -1; }
  .listing__results > .listing__count { grid-column: 1; grid-row: 1; align-self: center; }
  .listing__results > .listing__bar { grid-column: 2; grid-row: 1; margin-bottom: 18px; }
  .sort-control { max-width: 300px; }
}

/* Chosen filters as removable chips; one scrolling row on phones */
.active-filters { margin-bottom: 20px; }
.active-filters__list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 8px 6px 14px;
  border-radius: var(--radius-pill); background: var(--c-surface-2); color: var(--c-ink);
  font-size: var(--fs-s); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast);
}
@media (hover: hover) { .afchip:hover { background: var(--c-surface-3); } .afchip:hover .afchip__x { background: var(--c-ink); color: #fff; } }
.afchip .swatch { --size: 14px; }
.afchip__group { color: var(--c-ink-3); font-weight: 500; }
.afchip__x { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 50%; background: rgb(42 36 33 / 0.08); transition: background var(--t-fast), color var(--t-fast); }
.afchip__x .icon { width: 13px; height: 13px; }
.afchip-reset {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; white-space: nowrap;
  font-size: var(--fs-s); font-weight: 700; color: var(--c-ink); text-decoration: underline;
  text-decoration-color: var(--c-line-strong); text-underline-offset: 4px;
}
.afchip-reset:hover { text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .active-filters { margin: 0 calc(var(--gutter) * -1) 16px; }
  .active-filters .active-filters__list {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .active-filters__list::-webkit-scrollbar { display: none; }
  .active-filters__list > li { flex: none; }
}

/* While new results load: the products fade a little and a thin line runs; nothing jumps */
.listing__results [data-product-grid], .listing__results .load-more, .listing__results .listing-empty, .listing__results .pagination { transition: opacity 200ms ease; }
.listing__results.is-loading [data-product-grid], .listing__results.is-loading .load-more,
.listing__results.is-loading .listing-empty, .listing__results.is-loading .pagination { opacity: 0.45; pointer-events: none; transition-delay: 120ms; }
.listing__results::before, .listing__bar::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent) no-repeat;
  background-size: 40% 100%;
}
.listing__results::before { top: -10px; }
.listing__bar::after { bottom: -1px; }
@media (min-width: 900px) { .listing__bar::after { display: none; } }
@media (max-width: 899px) { .listing__results::before { display: none; } }
.listing__results.is-loading::before, .listing__results.is-loading .listing__bar::after { opacity: 1; animation: listing-progress 1.1s linear infinite; transition: opacity 0s 120ms; }
@keyframes listing-progress { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* Filter panel */
.filters { display: grid; align-content: start; }
.filters-panel__head { gap: 12px; }
/* The filters stay in the plain font whatever the headings setting is */
.filters-panel__title { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.filters-panel__title:focus { outline: none; }
.filters-panel__reset { margin-left: auto; }
.filters-panel__reset a { font-size: var(--fs-s); font-weight: 700; color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: 4px; }
.filters-panel__reset a:hover { text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .filters-panel__reset { display: none; }
  .filters-panel__close { margin-left: auto; }
}
@media (min-width: 900px) {
  .filters-panel.drawer {
    position: sticky; top: calc(var(--sticky-top) + 16px); z-index: auto; align-self: start;
    display: flex; flex-direction: column; width: auto; max-height: calc(100vh - var(--sticky-top) - 32px);
    transform: none; visibility: visible; box-shadow: none; background: transparent;
  }
  .filters-panel__head { min-height: 44px; margin-bottom: 18px; padding: 0; border: 0; }
  .filters-panel__close, .filters-panel .drawer__foot { display: none; }
  .filters-panel .drawer__body {
    padding: 0 8px 24px 0; margin-right: -8px; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent;
  }
}
/* Tablets: a side panel; phones: a sheet from the bottom (see components.css) */
@media (min-width: 600px) and (max-width: 899px) { .filters-panel.drawer { width: min(420px, 92vw); } }
/* Without JavaScript the panel simply stands above the products */
@media (max-width: 899px) {
  .no-js .filters-panel.drawer {
    position: static; transform: none; visibility: visible; width: auto; max-height: none; margin-bottom: 16px;
    border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: none;
  }
  .no-js .filters-panel .drawer__head::before, .no-js .filters-panel__close, .no-js .filters-panel .drawer__foot { display: none; }
}
.filters-apply { margin-top: 18px; }

/* "In stock" and "On sale": switches */
.filter-toggles { display: grid; padding: 2px 14px; margin-bottom: 6px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-surface); }
.fswitch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 50px; cursor: pointer; font-size: var(--fs-s); font-weight: 600; color: var(--c-ink); -webkit-tap-highlight-color: transparent; }
.fswitch + .fswitch { border-top: 1px solid var(--c-line); }
.fswitch > .icon { width: 18px; height: 18px; color: var(--c-ink-3); }
.fswitch__text { flex: 1; min-width: 0; line-height: 1.3; }
.fswitch input { position: absolute; right: 0; top: 50%; z-index: 1; width: 44px; height: 26px; margin: -13px 0 0; opacity: 0; cursor: pointer; }
.fswitch__track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--c-line-strong); transition: background var(--t-med) var(--ease); }
.fswitch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(42 36 33 / 0.3); transition: transform var(--t-med) var(--ease);
}
.fswitch input:checked + .fswitch__track { background: var(--c-ink); }
.fswitch input:checked + .fswitch__track::after { transform: translateX(18px); }
.fswitch input:focus-visible + .fswitch__track { outline: 2px solid var(--c-focus); outline-offset: 2px; }
@media (hover: hover) { .fswitch:hover input:not(:checked) + .fswitch__track { background: var(--c-ink-3); } }

/* Groups: a title that folds and unfolds its values */
.filter-group { border-bottom: 1px solid var(--c-line); }
.filter-group__head {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 0;
  list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.filter-group__head::-webkit-details-marker { display: none; }
.filter-group__head::marker { content: ""; }
.filter-group__title { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9375rem; font-weight: 700; color: var(--c-ink); }
.filter-group__picked { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 0.8125rem; font-weight: 600; color: var(--c-accent); }
.filter-group__head > .icon { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--c-ink-3); transition: transform var(--t-med) var(--ease); }
.filter-group__picked + .icon { margin-left: 0; }
.filter-group[open] > .filter-group__head > .icon { transform: rotate(180deg); }
@media (hover: hover) { .filter-group__head:hover .filter-group__title { color: var(--c-accent-hover); } }
.filter-group__body { padding: 4px 0 20px; }
.filter-group__body.is-animating { overflow: hidden; }
.js .filter-group:not(.is-expanded) .is-extra { display: none; }
.filter-more {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; padding: 0 2px;
  font-size: var(--fs-s); font-weight: 700; color: var(--c-ink);
  text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: 4px;
}
.filter-more:hover { text-decoration-color: currentColor; }

/* Values as toggle chips */
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fchip input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fchip__face {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; min-height: 40px; padding: 8px 14px;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-pill); background: var(--c-surface);
  font-size: var(--fs-s); font-weight: 600; line-height: 1.2; color: var(--c-ink);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.fchip__count { font-size: 0.75rem; font-weight: 600; color: var(--c-ink-3); font-variant-numeric: tabular-nums; transition: color var(--t-fast); }
@media (hover: hover) { .fchip:hover input:enabled:not(:checked) + .fchip__face { border-color: var(--c-ink); } }
.fchip input:checked + .fchip__face { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.fchip input:checked + .fchip__face .fchip__count { color: rgb(255 255 255 / 0.65); }
.fchip input:focus-visible + .fchip__face { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.fchip input:disabled { cursor: not-allowed; }
.fchip input:disabled + .fchip__face { border-style: dashed; background: transparent; color: var(--c-ink-3); opacity: 0.7; }
.fchip input:disabled + .fchip__face .fchip__count { display: none; }

/* Colours as round swatches; the name shows on hover, keyboard focus or a long press */
.fswatches { display: flex; flex-wrap: wrap; gap: 4px; margin-inline: -4px; }
.fswatch {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.fswatch input { position: absolute; inset: 2px; z-index: 1; width: 40px; height: 40px; margin: 0; border-radius: 50%; opacity: 0; cursor: pointer; }
.fswatch__dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--swatch, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.fswatch__dot .icon { width: 16px; height: 16px; color: var(--c-ink); opacity: 0; transform: scale(0.5); transition: opacity var(--t-fast), transform var(--t-fast); }
.fswatch__dot.is-dark .icon { color: #fff; }
@media (hover: hover) { .fswatch:hover input:enabled + .fswatch__dot { transform: scale(1.08); } }
.fswatch input:checked + .fswatch__dot { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14), 0 0 0 3px var(--c-bg), 0 0 0 4.5px var(--c-ink); }
.fswatch input:checked + .fswatch__dot .icon { opacity: 1; transform: none; }
.fswatch input:focus-visible + .fswatch__dot { outline: 2px solid var(--c-focus); outline-offset: 5px; }
.fswatch input:disabled { cursor: not-allowed; }
.fswatch input:disabled + .fswatch__dot {
  opacity: 0.4;
  background-image: linear-gradient(to top right, transparent calc(50% - 0.75px), var(--c-ink-2) calc(50% - 0.75px), var(--c-ink-2) calc(50% + 0.75px), transparent calc(50% + 0.75px));
}
.fswatch__tip {
  position: absolute; bottom: calc(100% - 2px); left: 50%; z-index: 3;
  padding: 5px 9px; border-radius: 8px; background: var(--c-ink); color: #fff;
  font-size: 0.75rem; font-weight: 600; line-height: 1.3; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translate(calc(-50% + var(--tip-shift, 0px)), 4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.fswatch__count { margin-left: 5px; opacity: 0.65; }
.fswatch input:focus-visible ~ .fswatch__tip, .fswatch.is-peek .fswatch__tip { opacity: 1; transform: translate(calc(-50% + var(--tip-shift, 0px)), 0); }
@media (hover: hover) { .fswatch:hover .fswatch__tip { opacity: 1; transform: translate(calc(-50% + var(--tip-shift, 0px)), 0); } }

/* Price: a two-handle slider over two number boxes (the boxes alone work without JavaScript) */
.price-filter { display: grid; gap: 10px; }
.price-slider { position: relative; height: 40px; margin-inline: -8px; }
.price-slider__track { position: absolute; left: 20px; right: 20px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--c-line-strong); }
.price-slider__fill { position: absolute; top: 0; bottom: 0; left: var(--lo, 0%); right: calc(100% - var(--hi, 100%)); border-radius: 2px; background: var(--c-ink); }
.price-slider input[type="range"] {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0;
  background: none; -webkit-appearance: none; appearance: none; pointer-events: none; outline: none;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { height: 40px; background: none; border: 0; }
.price-slider input[type="range"]::-moz-range-track { height: 40px; background: none; border: 0; }
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--c-surface) 0 8.5px, var(--c-ink) 9px 11px, rgb(42 36 33 / 0.12) 11.5px 13px, transparent 13.5px);
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--c-surface) 0 8.5px, var(--c-ink) 9px 11px, rgb(42 36 33 / 0.12) 11.5px 13px, transparent 13.5px);
}
.price-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.price-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  background: radial-gradient(circle, var(--c-surface) 0 8.5px, var(--c-ink) 9px 11px, rgb(31 111 235 / 0.4) 11.5px 15px, transparent 15.5px);
}
.price-slider input[type="range"]:focus-visible::-moz-range-thumb {
  background: radial-gradient(circle, var(--c-surface) 0 8.5px, var(--c-ink) 9px 11px, rgb(31 111 235 / 0.4) 11.5px 15px, transparent 15.5px);
}
.price-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.price-inputs__dash { color: var(--c-ink-3); }
.price-field {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; cursor: text;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-s); background: var(--c-surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
@media (hover: hover) { .price-field:hover { border-color: var(--c-ink-3); } }
.price-field:focus-within { border-color: var(--c-ink); box-shadow: 0 0 0 4px rgb(42 36 33 / 0.08); }
.price-field input {
  flex: 1; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; outline: none;
  font-size: 16px; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.price-field input::-webkit-outer-spin-button, .price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-field input::placeholder { color: var(--c-ink-3); font-weight: 500; opacity: 1; }
.price-field__unit { flex: none; font-size: var(--fs-s); color: var(--c-ink-3); }

/* The sheet's buttons: reset and "Show N products" */
.filters-foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.filters-foot .btn { min-height: 50px; white-space: normal; }
.filters-foot__apply { padding-inline: 1em; }
/* "Reset" is a quiet text button, so "Show N products" keeps its room on narrow phones */
.filters-foot .filters-foot__reset {
  --btn-border: transparent; padding-inline: 10px; text-decoration: underline;
  text-decoration-color: var(--c-line-strong); text-underline-offset: 4px;
}
.filters-foot .filters-foot__reset:hover { --btn-bg: transparent; text-decoration-color: currentColor; }
.filters-foot__reset.is-disabled { opacity: 0.4; text-decoration: none; }
.filters-foot__apply { transition: background var(--t-fast), opacity var(--t-fast); }
.filters-panel.is-refreshing .filters-foot__apply { opacity: 0.8; }

.listing-empty { padding: 48px 0; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 44px; }
.load-more__info { font-size: var(--fs-s); color: var(--c-ink-3); }
.load-more__bar { width: 220px; height: 3px; background: var(--c-line); border-radius: 3px; overflow: hidden; }
.load-more__bar span { display: block; height: 100%; background: var(--c-ink); width: var(--progress, 0%); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */
.product { display: grid; gap: clamp(24px, 4vw, 64px); padding-top: 16px; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; } }

.gallery { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: calc(var(--sticky-top) + 16px); grid-template-columns: 76px minmax(0, 1fr); align-items: start; } }
.gallery__main { position: relative; min-width: 0; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-l); background: var(--c-surface-2); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: var(--ratio); position: relative; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__zoom { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.9); box-shadow: var(--shadow-s); }
.gallery__badges { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 1; pointer-events: none; }
.gallery__dots { display: flex; justify-content: center; gap: 0; margin-top: -6px; }
/* 24px tap area, the visible dot is drawn inside it */
.gallery__dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.gallery__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--c-line-strong); transition: all var(--t-fast); }
.gallery__dots button.is-active::before { background: var(--c-ink); width: 22px; }
.gallery__dots button.is-active { width: 34px; }
/* The video: the last slide, its dot is a small play sign and its thumbnail carries one */
.gallery__slide--video { cursor: auto; background: #14110f; }
.gallery__slide--video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__dots .gallery__dot-video::before { content: none; }
.gallery__dot-video .icon { width: 11px; height: 11px; fill: currentColor; color: var(--c-line-strong); }
.gallery__dot-video.is-active .icon { color: var(--c-ink); }
.gallery__to-video { position: absolute; left: 14px; bottom: 14px; height: 40px; padding: 0 16px 0 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / 0.9); box-shadow: var(--shadow-s); font-weight: 600; font-size: 14px; color: var(--c-ink); }
.gallery__to-video .icon { width: 14px; height: 14px; fill: currentColor; }
.gallery__to-video[hidden] { display: none; }
.gallery__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.gallery__play .icon { width: 30px; height: 30px; padding: 8px; border-radius: 50%; fill: currentColor; background: rgb(20 17 15 / 0.55); }
.gallery__thumbs { display: none; }
@media (min-width: 900px) {
  .gallery__dots { display: none; }
  .gallery__thumbs { display: grid; gap: 10px; order: -1; max-height: calc(100vh - var(--sticky-top) - 60px); overflow-y: auto; scrollbar-width: none; }
  .gallery__thumbs button { aspect-ratio: var(--ratio); border-radius: var(--radius-s); overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: all var(--t-fast); background: var(--c-surface-2); position: relative; }
  .gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--c-ink); }
  .gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .gallery--single { grid-template-columns: minmax(0, 1fr); }
}

.buy-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; min-width: 0; container-type: inline-size; }
.buy-box__head { display: grid; gap: 10px; }
.buy-box__title { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); line-height: 1.05; }
.buy-box__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: var(--fs-s); color: var(--c-ink-3); }
.buy-box__meta a { color: inherit; }
.buy-box .price__now { font-size: 1.75rem; }
.buy-box .price__old { font-size: var(--fs-m); }
.buy-box__save { font-size: var(--fs-s); font-weight: 800; color: var(--c-berry); }
.buy-box__short { color: var(--c-ink-2); }

.option-group { display: grid; gap: 10px; }
.option-group__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-s); font-weight: 800; }
.option-group__label span { font-weight: 600; color: var(--c-ink-2); }
.option-group__label button, .option-group__label a { font-size: var(--fs-s); font-weight: 600; color: var(--c-ink-2); text-decoration: underline; display: inline-flex; align-items: center; gap: 6px; padding-block: 8px; margin-block: -8px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn { min-width: 52px; min-height: 46px; padding: 8px 16px; border-radius: var(--radius-s); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); font-weight: 700; font-size: var(--fs-s); transition: all var(--t-fast); position: relative; }
.option-btn:hover { border-color: var(--c-ink); }
.option-btn[aria-checked="true"] { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.option-btn.is-unavailable { color: var(--c-ink-3); background: repeating-linear-gradient(135deg, transparent 0 7px, var(--c-surface-2) 7px 8px), var(--c-surface); }
.option-btn.is-unavailable[aria-checked="true"] { background: var(--c-ink-2); color: #fff; }
.option-btn--color { min-width: 0; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); }
.option-btn--color .swatch { --size: 34px; }
.option-btn--color[aria-checked="true"] { background: var(--c-surface); box-shadow: 0 0 0 2px var(--c-ink); border-color: var(--c-surface); }
.option-btn--color.is-unavailable::after { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1.5px; background: var(--c-ink-2); transform: rotate(45deg); }

.stock-line { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); font-weight: 700; }
.stock-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.stock-line.is-in { color: var(--c-success); }
.stock-line.is-low { color: var(--c-warning); }
.stock-line.is-order { color: var(--c-accent-hover); }
.stock-line.is-out { color: var(--c-danger); }
.stock-line.is-choose { color: var(--c-ink-2); font-weight: 600; }
.stock-line.is-choose::before { display: none; }
.option-group.is-missing .option-group__label > div { color: var(--c-danger); }
.option-group.is-missing .option-btn:not(.is-unavailable):not(.option-btn--color) { border-color: var(--c-danger); }

.buy-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.buy-row .qty { height: auto; min-height: 54px; }
.buy-row .btn { min-height: 54px; min-width: 0; white-space: normal; padding-inline: 1.25em; }
.buy-row .fav-btn { width: 54px; height: auto; min-height: 54px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-line-strong); display: grid; place-items: center; background: var(--c-surface); }
.buy-row .fav-btn[aria-pressed="true"] { color: var(--c-berry); border-color: var(--c-berry); }
.buy-row .fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
/* Narrow buy box (phones, or the two-column layout on small laptops): quantity and favourites
   on the first row, a full-width "Add to cart" under them, so the long Russian label fits. */
@container (max-width: 519px) {
  .buy-row .btn { grid-column: 1 / -1; grid-row: 2; }
  .buy-row .fav-btn { grid-column: 3; grid-row: 1; }
}
.buy-secondary { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: var(--fs-s); }
.buy-secondary button, .buy-secondary a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--c-ink-2); }
.buy-secondary button:hover, .buy-secondary a:hover { color: var(--c-accent); }

.personalization textarea { min-height: 76px; }

.delivery-box { border-radius: var(--radius-m); background: var(--c-surface-2); padding: 16px 18px; display: grid; gap: 12px; font-size: var(--fs-s); }
.delivery-box__title { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.delivery-box ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.delivery-box li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: var(--c-ink-2); }
.delivery-box li strong { color: var(--c-ink); font-weight: 700; }
.delivery-box li span { font-weight: 800; color: var(--c-ink); text-align: right; }
.delivery-box li small { grid-column: 1 / -1; color: var(--c-ink-3); font-size: var(--fs-xs); }
.delivery-box > a { justify-self: start; padding-block: 6px; margin-block: -6px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-m); border: 1px dashed var(--c-line-strong); font-size: var(--fs-s); color: var(--c-ink-2); }
.notice .icon { color: var(--c-accent); margin-top: 1px; }
.notice strong { color: var(--c-ink); }
.notice--warning { border-style: solid; border-color: var(--c-warning); background: var(--c-warning-soft); color: #7f5010; }
.notice--warning .icon { color: var(--c-warning); }
.needed-by { margin-top: 16px; }
.needed-by .notice { margin-top: 10px; }

.maker-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.maker-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.maker-card__avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); font-family: var(--font-accent); font-weight: var(--accent-weight); font-size: 1.8rem; }
.maker-card small { color: var(--c-ink-3); font-size: var(--fs-xs); display: block; }
.maker-card strong { display: block; }
.maker-card p { font-size: var(--fs-s); color: var(--c-ink-2); grid-column: 1 / -1; }

.product-details { border-top: 1px solid var(--c-line); }

/* Sticky buy bar on phones */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) - 3); display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--c-line); transform: translateY(110%); transition: transform var(--t-med) var(--ease); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; display: grid; }
.sticky-buy__info strong { font-size: var(--fs-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__info span { font-weight: 800; }
@media (min-width: 900px) { .sticky-buy { display: none; } }
/* Keep the end of the footer readable above the bar */
@media (max-width: 899px) { body.has-sticky-buy .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* Reviews */
.reviews { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .reviews { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }
.reviews__summary { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-l); background: var(--c-surface-2); }
@media (min-width: 900px) { .reviews__summary { position: sticky; top: calc(var(--sticky-top) + 16px); } }
.reviews__score { display: flex; align-items: center; gap: 14px; }
.reviews__score strong { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 3rem; line-height: 1; letter-spacing: -0.02em; }
.reviews__score .stars .icon { width: 20px; height: 20px; }
.rating-bars { display: grid; gap: 6px; list-style: none; padding: 0; font-size: var(--fs-xs); color: var(--c-ink-2); }
.rating-bars li { display: grid; grid-template-columns: 26px 1fr 28px; align-items: center; gap: 8px; }
.rating-bars .bar { height: 6px; border-radius: 6px; background: var(--c-surface-3); overflow: hidden; }
.rating-bars .bar span { display: block; height: 100%; background: #c9922e; width: var(--w, 0%); }
.fit-meter { display: grid; gap: 6px; font-size: var(--fs-xs); color: var(--c-ink-2); }
.fit-meter__scale { display: flex; justify-content: space-between; }
.fit-meter__track { position: relative; height: 6px; border-radius: 6px; background: var(--c-surface-3); }
.fit-meter__track span { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--c-ink); border: 3px solid var(--c-surface-2); transform: translate(-50%, -50%); left: var(--pos, 50%); }
.review-photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.review-photos button { flex: none; width: 76px; height: 76px; border-radius: var(--radius-s); overflow: hidden; background: var(--c-surface-2); }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.review-list { display: grid; list-style: none; padding: 0; }
.review { padding: 22px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 10px; }
.review:first-child { padding-top: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--fs-s); }
.review__head strong { font-weight: 800; }
.review__verified { display: inline-flex; align-items: center; gap: 4px; color: var(--c-success); font-size: var(--fs-xs); font-weight: 700; }
.review__date { color: var(--c-ink-3); font-size: var(--fs-xs); margin-left: auto; }
.review__text { color: var(--c-ink-2); white-space: pre-line; }
.review__reply { margin-left: 14px; padding: 12px 16px; border-left: 3px solid var(--c-accent); background: var(--c-surface-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: var(--fs-s); color: var(--c-ink-2); }
.review__reply strong { color: var(--c-ink); display: block; margin-bottom: 2px; }
.qa-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.qa { padding: 18px 0; border-bottom: 1px solid var(--c-line); display: grid; gap: 6px; }
.qa:first-child { padding-top: 4px; }
.qa__question { display: flex; gap: 10px; margin: 0; font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; }
.qa__mark { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-accent); font-size: var(--fs-s); }
.qa__meta { margin: 0 0 0 34px; font-size: var(--fs-xs); color: var(--c-ink-3); overflow-wrap: anywhere; }
.qa__answer { margin-left: 34px; padding: 12px 16px; border-left: 3px solid var(--c-accent); background: var(--c-surface-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: var(--fs-s); color: var(--c-ink-2); overflow-wrap: anywhere; }
.qa__answer strong { color: var(--c-ink); display: block; margin-bottom: 2px; }
.qa-note { max-width: 820px; margin-bottom: 16px; }
.qa-more { margin: 16px 0 0; }
@media (max-width: 560px) { .qa__meta, .qa__answer { margin-left: 0; } }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { cursor: pointer; color: var(--c-line-strong); transition: color var(--t-fast); }
.rating-input label .icon { width: 32px; height: 32px; fill: currentColor; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #c9922e; }
.rating-input input:focus-visible + label { outline: 2px solid var(--c-focus); border-radius: 4px; }

/* --------------------------------------------------------------------------
   Cart page
   -------------------------------------------------------------------------- */
.cart-layout { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 1000px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; } }
.cart-lines { list-style: none; padding: 0; border-top: 1px solid var(--c-line); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
@media (min-width: 700px) { .cart-line { grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; } }
.cart-line__img { aspect-ratio: var(--ratio); border-radius: var(--radius-m); overflow: hidden; background: var(--c-surface-2); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.cart-line__name { font-weight: 700; text-decoration: none; font-size: var(--fs-m); }
.cart-line__name:hover { color: var(--c-accent); }
.cart-line__meta { font-size: var(--fs-s); color: var(--c-ink-3); }
.cart-line__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.cart-line__price { display: grid; gap: 2px; justify-items: end; align-content: start; text-align: right; }
@media (max-width: 699px) { .cart-line__price { grid-column: 2; justify-items: start; text-align: left; } }
.cart-line__price strong { font-size: var(--fs-l); font-weight: 800; }
.cart-line__unit { font-size: var(--fs-xs); color: var(--c-ink-3); }
.link-btn { font-size: var(--fs-s); color: var(--c-ink-3); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--c-danger); }

.summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); }
@media (min-width: 1000px) { .summary--sticky { position: sticky; top: calc(var(--sticky-top) + 16px); } }
.summary__title { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: var(--heading-weight); letter-spacing: var(--heading-tracking); }
.summary__rows { display: grid; gap: 10px; font-size: var(--fs-s); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; color: var(--c-ink-2); }
.summary__row strong { color: var(--c-ink); font-weight: 700; white-space: nowrap; }
.summary__row--discount strong { color: var(--c-berry); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--c-line); font-weight: 800; font-size: var(--fs-l); }
.summary__total strong { font-size: 1.5rem; }
.summary__note { font-size: var(--fs-xs); color: var(--c-ink-3); }
.promo-form { display: flex; gap: 8px; }
.promo-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--radius-s); border: 1.5px solid var(--c-line-strong); text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; background: var(--c-surface); }
.promo-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-s); background: var(--c-success-soft); color: var(--c-success); font-size: var(--fs-s); font-weight: 700; }
.promo-applied.is-error { background: var(--c-danger-soft); color: var(--c-danger); }
.summary__items { list-style: none; padding: 0; display: grid; gap: 12px; max-height: 340px; overflow-y: auto; }
.summary__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-s); }
.summary__item-img { position: relative; width: 56px; aspect-ratio: var(--ratio); border-radius: var(--radius-xs); background: var(--c-surface-2); }
.summary__item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.summary__item-img span { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-ink-2); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.summary__item small { display: block; color: var(--c-ink-3); font-size: var(--fs-xs); }
.summary__item strong { white-space: nowrap; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: var(--fs-xs); color: var(--c-ink-3); }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row .icon { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */
.checkout-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block: 22px; border-bottom: 1px solid var(--c-line); }
.checkout-steps { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink-3); flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 6px; }
.checkout-steps .is-current { color: var(--c-ink); }
.checkout-steps .icon { width: 14px; height: 14px; }
.checkout-layout { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 28px; }
@media (min-width: 1000px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 420px; } }
.checkout-section { padding-block: 26px; border-bottom: 1px solid var(--c-line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.checkout-section:first-child { padding-top: 0; }
.checkout-section__title { font-family: var(--font-body); font-size: var(--fs-l); font-weight: 800; display: flex; align-items: center; gap: 12px; }
.checkout-section__title span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c-ink); color: #fff; font-size: var(--fs-s); flex: none; }
.checkout-login { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-m); background: var(--c-surface-2); font-size: var(--fs-s); }
.saved-addresses { display: grid; gap: 8px; }
.checkout-summary-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); font-weight: 700; }
@media (min-width: 1000px) { .checkout-summary-toggle { display: none; } }
@media (max-width: 999px) { .checkout-aside .summary.is-collapsed .summary__items { display: none; } }
.checkout-aside { display: grid; gap: 14px; order: -1; }
@media (min-width: 1000px) { .checkout-aside { order: 0; position: sticky; top: calc(var(--sticky-top) + 16px); } }
.place-order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 26px; }
.place-order .btn { min-height: 60px; font-size: var(--fs-l); }
.place-order__legal { font-size: var(--fs-xs); color: var(--c-ink-3); text-align: center; }
.delivery-date { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-success); font-weight: 700; }
.reveal { display: grid; gap: 16px; }
.reveal > .field, .reveal > .field-row { margin-top: 0; } /* the grid gap spaces them */
.field--inline-check { padding: 12px 0 0; }

/* --------------------------------------------------------------------------
   Order page
   -------------------------------------------------------------------------- */
.order-hero { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: clamp(28px, 5vw, 56px); }
.order-hero__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--c-success-soft); color: var(--c-success); animation: pop 600ms var(--ease); }
.order-hero__icon .icon { width: 38px; height: 38px; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.order-hero h1 { font-size: var(--fs-h2); }
.order-hero__link { max-width: 100%; padding: 10px 14px; border-radius: var(--radius-m); background: var(--c-surface-2); font-size: var(--fs-s); overflow-wrap: anywhere; user-select: all; }
.order-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .order-layout { grid-template-columns: minmax(0, 1fr) 380px; } }
.timeline { display: flex; gap: 0; list-style: none; padding: 0; overflow-x: auto; scrollbar-width: none; }
.timeline li { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--c-ink-3); position: relative; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--c-line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.is-done::before { background: var(--c-success); }
.timeline__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); border: 2px solid var(--c-line-strong); color: var(--c-ink-3); }
.timeline li.is-done .timeline__dot { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.timeline li.is-current { color: var(--c-ink); }
.timeline li.is-current .timeline__dot { box-shadow: 0 0 0 5px var(--c-success-soft); }
.timeline .icon { width: 16px; height: 16px; }
.order-items { list-style: none; padding: 0; display: grid; }
.order-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-s); }
.order-item:last-child { border-bottom: 0; }
.order-item img, .order-item__ph { width: 64px; aspect-ratio: var(--ratio); border-radius: var(--radius-xs); object-fit: cover; background: var(--c-surface-2); }
.order-item__ph--gift { display: grid; place-items: center; color: var(--c-accent); }
.order-item small { display: block; color: var(--c-ink-3); font-size: var(--fs-xs); }
.order-item strong { white-space: nowrap; }
.order-item--review { grid-template-columns: 1fr auto; }
.order-item--review .stars { margin-top: 4px; }

/* Reviewing the items of a delivered order */
.review-item { padding: 0; }
.review-item__head { list-style: none; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.review-item__head::-webkit-details-marker { display: none; }
.review-item__head img, .review-item__ph { width: 64px; aspect-ratio: var(--ratio); border-radius: var(--radius-xs); object-fit: cover; background: var(--c-surface-2); }
.review-item__ph { display: grid; place-items: center; color: var(--c-ink-3); }
.review-item__name { font-weight: 700; overflow-wrap: anywhere; }
.review-item__name small { display: block; font-weight: 400; color: var(--c-accent); font-size: var(--fs-s); margin-top: 2px; }
.review-item__head > .icon { color: var(--c-ink-3); transition: transform var(--t-med) var(--ease); }
.review-item[open] > .review-item__head > .icon { transform: rotate(45deg); }
.review-item[open] .review-item__name small { visibility: hidden; }
.review-item__form { padding: 4px 16px 18px; border-top: 1px solid var(--c-line); padding-top: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: var(--fs-s); }
.kv dt { color: var(--c-ink-3); }
.kv dd { margin: 0; color: var(--c-ink); font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 479px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* --------------------------------------------------------------------------
   Account
   -------------------------------------------------------------------------- */
.account-layout { display: grid; gap: 28px; align-items: start; padding-top: 12px; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } }
.account-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.account-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .account-nav { flex-direction: column; margin: 0; padding: 0; position: sticky; top: calc(var(--sticky-top) + 16px); } }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none; font-weight: 700; font-size: var(--fs-s); color: var(--c-ink-2); white-space: nowrap; width: 100%; }
.account-nav a:hover, .account-nav button:hover { background: var(--c-surface-2); color: var(--c-ink); }
.account-nav a[aria-current="page"] { background: var(--c-ink); color: #fff; }
.account-nav form { display: contents; }
.account-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.order-rows { display: grid; gap: 12px; list-style: none; padding: 0; }
.order-row { display: grid; gap: 10px 16px; padding: 18px; border-radius: var(--radius-m); border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; grid-template-columns: 1fr auto; align-items: center; transition: border-color var(--t-fast); }
.order-row:hover { border-color: var(--c-ink-3); }
.order-row__thumbs { display: flex; gap: 6px; grid-column: 1 / -1; }
.order-row__thumbs img { width: 44px; height: 54px; border-radius: 6px; object-fit: cover; background: var(--c-surface-2); }
.order-row strong { font-weight: 800; }
.order-row small { color: var(--c-ink-3); display: block; font-size: var(--fs-xs); }
.address-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.address-card { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-m); border: 1.5px solid var(--c-line); background: var(--c-surface); font-size: var(--fs-s); align-content: start; }
.address-card.is-default { border-color: var(--c-accent); }
.address-card__actions { display: flex; gap: 14px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Auth pages, content pages, errors
   -------------------------------------------------------------------------- */
.auth { display: grid; place-items: start center; padding-block: clamp(24px, 6vw, 72px); }
.auth__card { width: min(460px, 100%); display: grid; gap: 20px; }
.auth__card h1 { font-size: var(--fs-h2); text-align: center; }
.auth__card .lead { text-align: center; margin-inline: auto; font-size: var(--fs-m); }
.auth__alt { text-align: center; font-size: var(--fs-s); color: var(--c-ink-2); }
.auth__alt a { color: var(--c-accent); font-weight: 700; }
.auth__perks { display: grid; gap: 8px; list-style: none; padding: 16px 18px; border-radius: var(--radius-m); background: var(--c-surface-2); font-size: var(--fs-s); color: var(--c-ink-2); }
.auth__perks li { display: flex; gap: 10px; align-items: center; }
.auth__perks .icon { color: var(--c-sage); width: 18px; height: 18px; }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-field button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--c-ink-3); border-radius: var(--radius-s); }

.content-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .content-layout--toc { grid-template-columns: 240px minmax(0, 1fr); } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: grid; gap: 4px; position: sticky; top: calc(var(--sticky-top) + 24px); font-size: var(--fs-s); }
  .toc a { padding: 6px 12px; border-left: 2px solid var(--c-line); text-decoration: none; color: var(--c-ink-3); }
  .toc a:hover, .toc a.is-active { color: var(--c-ink); border-left-color: var(--c-accent); }
}
.page-lead { font-size: var(--fs-l); color: var(--c-ink-2); max-width: 62ch; }
.contact-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
/* Grid items default to min-width: auto, so a wide table or form control would stretch the
   single phone column past the screen edge; let the page columns shrink instead. */
.content-layout > *, .contact-grid > *, .cart-layout > *, .checkout-layout > *, .order-layout > *, .account-layout > * { min-width: 0; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; }
a.contact-card:hover { border-color: var(--c-ink-3); }
.contact-card .icon { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); }
.contact-card small { display: block; color: var(--c-ink-3); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card strong { display: block; font-size: var(--fs-l); }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.error-page__inner { display: grid; gap: 16px; justify-items: center; max-width: 560px; }
.error-page__code { font-family: var(--font-accent); font-weight: var(--accent-weight); font-size: clamp(5rem, 4rem + 6vw, 9rem); line-height: 0.9; color: var(--c-accent); }
.error-page form { display: flex; gap: 8px; width: min(420px, 100%); }
.error-page form input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); }

/* Gift certificate page: a live preview of the certificate. On phones the form comes right after the preview. */
.gift-layout { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-areas: "preview" "form" "info"; align-items: start; }
.gift-layout > * { min-width: 0; }
.gift-layout__preview { grid-area: preview; }
.gift-layout__form { grid-area: form; }
.gift-layout__info { grid-area: info; }
@media (min-width: 900px) {
  .gift-layout { grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; grid-template-areas: "preview form" "info form"; row-gap: 20px; }
}
.gift-cert { position: relative; display: grid; justify-items: center; gap: 6px; padding: 32px 24px 26px; border-radius: var(--radius-l); border: 1.5px solid var(--c-accent); background: var(--c-surface-2); background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--c-accent) 6%, transparent) 7px 8px), var(--c-surface-2); text-align: center; box-shadow: var(--shadow-l); }
.gift-cert::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--c-line-strong); border: 1px dashed color-mix(in srgb, var(--c-accent) 45%, transparent); border-radius: var(--radius-m); pointer-events: none; }
.gift-cert__kicker { color: var(--c-ink-3); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.gift-cert__title { color: var(--c-accent); font: 600 var(--fs-h3)/1.15 var(--font-accent); }
.gift-cert__amount { font: 700 clamp(2.2rem, 1.9rem + 1.6vw, 3rem)/1 var(--font-heading); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.gift-cert__line { color: var(--c-ink-2); font-size: var(--fs-s); max-width: 100%; overflow-wrap: anywhere; }
.gift-cert__line b { color: var(--c-ink); }
.gift-cert__code { margin-top: 8px; padding: 6px 14px; border: 1px solid var(--c-ink); border-radius: var(--radius-s); background: var(--c-surface); font: 700 var(--fs-s)/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; }
.gift-balance { display: grid; gap: 4px; justify-items: start; }
.gift-balance strong { font: 700 var(--fs-h2)/1 var(--font-heading); }

/* Journal: article cards and the article page */
.article-grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2.2vw, 28px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.article-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.article-card__media { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-m); overflow: hidden; background: var(--c-surface-2); }
.article-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-accent); }
.article-card__ph .icon { width: 48px; height: 48px; opacity: 0.6; }
.article-card__body { display: grid; gap: 8px; }
.article-card__meta { font-size: var(--fs-xs); color: var(--c-ink-3); letter-spacing: 0.02em; }
.article-card__title { font-size: var(--fs-xl); line-height: 1.2; }
.article-card__title a { color: inherit; text-decoration: none; }
.article-card__title a:hover { color: var(--c-accent); }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card { position: relative; }
.article-card__lead { color: var(--c-ink-2); font-size: var(--fs-s); }
@media (min-width: 900px) {
  .article-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; }
  .article-card--featured .article-card__title { font-size: var(--fs-h3); }
  .article-card--featured .article-card__lead { font-size: var(--fs-m); }
}
.article__head { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; padding-block: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px); text-align: center; justify-items: center; }
.article__head .breadcrumbs { justify-self: stretch; text-align: left; }
.article__title { font-size: var(--fs-h1); line-height: 1.05; }
.article__lead { font-size: var(--fs-l); color: var(--c-ink-2); max-width: 62ch; }
.article__meta { font-size: var(--fs-s); color: var(--c-ink-3); }
.article__cover { max-width: 1100px; margin: 0 auto clamp(28px, 4vw, 48px); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-surface-2); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { margin-inline: auto; padding-bottom: clamp(32px, 5vw, 64px); font-size: var(--fs-l); }
.article__body figure, .article__body img { margin-inline: auto; }
.article-links { display: grid; gap: 10px; }
.article-links a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--c-ink); }
.article-links a:hover { color: var(--c-accent); }
.article-links img, .article-links .article-links__ph { width: 64px; height: 48px; border-radius: var(--radius-s); object-fit: cover; flex: none; background: var(--c-surface-2); }
