:root {
  color-scheme: light;
  --ink: #271f26;
  --muted: #625760;
  --plum: #62294f;
  --plum-dark: #4a1c3c;
  --cream: #fcfaf8;
  --line: #e9e1e3;
  --rose: #f3e7ed;
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #944981;
  outline-offset: 3px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, ui-serif, serif; font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5vw, 4.65rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); letter-spacing: -.035em; }
.shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: .55rem; left: 1rem; z-index: 1; background: white; padding: .6rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { background: white; border-bottom: 1px solid var(--line); }
.mast { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font: 600 42px/.95 Georgia, serif; letter-spacing: -.09em; text-decoration: none; padding: .25rem .4rem .35rem 0; }
.wordmark span { color: #a35b85; }
.catalog-link { color: var(--plum); font-size: .9rem; font-weight: 650; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); min-height: 47px; overflow-x: auto; white-space: nowrap; }
.nav a { display: flex; align-items: center; min-height: 44px; font-size: .91rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:is(:hover, [aria-current]) { color: var(--plum); border-color: var(--plum); }
.catalog-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 42%); align-items: center;
  gap: 2rem; min-height: 322px; margin: 2rem 0 2.8rem; padding: clamp(1.5rem, 5vw, 4.2rem);
  background: linear-gradient(105deg, #f8ecef, #f0dfeb 68%, #ebd8e6); border-radius: 22px;
}
.catalog-hero p { margin: 1rem 0 1.45rem; color: var(--muted); font-size: 1.07rem; }
.featured { min-width: 0; justify-self: stretch; display: grid; place-items: center; align-content: center; gap: .6rem; text-decoration: none; }
.featured img { width: 100%; height: clamp(160px, 21vw, 270px); object-fit: contain; mix-blend-mode: multiply; }
.featured span { color: var(--plum-dark); font-size: .83rem; font-weight: 650; }
.featured:hover span { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .62rem 1rem; background: var(--plum); color: white; border: 1px solid var(--plum); border-radius: 7px; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--plum-dark); }
.category-title { margin: 2.6rem 0 1.3rem; }
.results { padding-bottom: 3rem; scroll-margin-top: 1rem; }
.filters { display: grid; gap: .84rem; padding: 1rem; margin-top: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
.filters label { display: grid; gap: .27rem; font-size: .84rem; font-weight: 650; min-width: 0; }
.filters input:is([type=search],[type=number]), .filters select { min-width: 0; min-height: 44px; border: 1px solid #cfc3ca; width: 100%; background: white; border-radius: 6px; padding: .45rem .65rem; color: var(--ink); }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; gap: .8rem; }
.filters .check { display: flex; align-items: center; min-height: 44px; gap: .35rem; }
.check input { accent-color: var(--plum); width: 17px; height: 17px; }
.clear { min-height: 44px; border: none; background: transparent; color: var(--plum); padding: 0 .4rem; font-weight: 650; text-decoration: underline; }
.count { margin: 1rem 0; font-size: .88rem; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.12rem; margin: 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.tile:hover { border-color: #b893aa; }
.tile-picture { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 1.2; background: #f7f3f3; padding: 12%; text-decoration: none; }
.tile-picture img, .product-image img { width: 100%; height: 100%; object-fit: contain; min-height: 0; mix-blend-mode: multiply; }
.image-empty { color: var(--muted); font-size: .85rem; }
.tile-body { display: flex; flex-direction: column; flex: 1; gap: .37rem; padding: .95rem; }
.brand { color: var(--plum); font-weight: 710; font-size: .86rem; }
.tile h3 { font-size: .96rem; font-weight: 620; line-height: 1.35; overflow-wrap: anywhere; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; }
.tile-volume, .tile-meta span, .tile-meta small { color: var(--muted); font-size: .79rem; }
.tile-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: .4rem; margin-top: auto; padding-top: .75rem; }
.tile-meta small { display: block; }
.tile-meta strong { font-size: 1.08rem; white-space: nowrap; }
.tile-meta span { white-space: nowrap; }
.more { margin: 1.35rem auto 0; display: flex; }
.empty { background: white; border: 1px solid var(--line); padding: 1.15rem; border-radius: 11px; }
.muted { color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 1.4rem 0 1rem; font-size: .86rem; color: var(--muted); }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.35rem, 4vw, 4.3rem); align-items: center; }
.product-image { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; height: clamp(280px, 44vw, 465px); padding: 10%; background: #f1e9ed; border-radius: 16px; }
.thumbnails { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.thumbnails a { display: grid; place-items: center; width: 64px; height: 64px; padding: 5px; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.thumbnails a:is(:hover,[aria-current]) { border-color: var(--plum); }
.thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.product-title h1 { margin: .55rem 0 .7rem; font-size: clamp(2rem,4.2vw,3.8rem); overflow-wrap: anywhere; }
.variant { margin-bottom: .45rem; font-weight: 650; }
.product-title .button { margin-top: 1.2rem; }
.product-details { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: start; gap: 1.1rem; margin: 2.15rem 0 3rem; }
.product-facts { display: grid; gap: 1.1rem; min-width: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: clamp(.85rem, 2vw, 1.55rem); min-width: 0; }
.panel h2 { margin-bottom: 1rem; }
.panel p + p { margin-top: .58rem; }
.panel details { border-top: 1px solid var(--line); margin-top: .9rem; padding-top: .75rem; }
.panel summary { cursor: pointer; color: var(--plum); }
.offer { border: 1px solid var(--line); background: #fdfbfc; border-radius: 10px; padding: 1rem; margin: 0 0 .7rem; }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .45rem 1rem; margin-bottom: .75rem; }
.offer-top h3 { font-size: 1.07rem; }
.offer-top p, .offer p, .offer-price small { font-size: .87rem; }
.offer-top p { color: var(--muted); }
.offer-price { text-align: right; }
.offer-price strong, .offer-price small { display: block; }
.offer-price strong { color: var(--plum-dark); font-size: 1.28rem; white-space: nowrap; }
.offer .shop { margin-top: .85rem; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(7rem, .7fr) minmax(0, 1fr); gap: .75rem; border-top: 1px solid var(--line); padding: .6rem 0; overflow-wrap: anywhere; }
.facts dt { font-weight: 650; font-size: .89rem; }
.facts dd { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .mast { min-height: 64px; }
  .wordmark { font-size: 37px; }
  .nav { gap: 1rem; }
  .catalog-hero { min-height: unset; margin: 1rem 0 1.8rem; gap: .7rem; padding: 1.1rem; }
  .catalog-hero h1 { font-size: clamp(1.55rem, 6vw, 2.55rem); }
  .catalog-hero p { margin: .5rem 0 .75rem; font-size: .89rem; }
  .catalog-hero .button { padding: .48rem .7rem; font-size: .82rem; }
  .featured img { height: 160px; }
  .filter-row { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tile-body { padding: .65rem; }
  .product-details, .product-hero { grid-template-columns: 1fr; }
  .product-hero { gap: .9rem; }
  .product-image { height: clamp(235px, 58vw, 400px); }
}
@media (max-width: 430px) {
  .catalog-hero { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .featured img { height: 115px; }
  .featured span { display: none; }
  .tile-meta { flex-wrap: wrap; }
  .tile-picture { padding: 10%; }
}
