:root {
  --ink: #17172b;
  --muted: #545468;
  --blue: #382bda;
  --blue-dark: #261ab3;
  --lime: #e0fa82;
  --lavender: #efedff;
  --paper: #f8f8fc;
  --line: #e1e0ec;
  --font: 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--font); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-150%); z-index: 4; }
.skip:focus { transform: translateY(0); }
.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 63px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 1.04rem; font-weight: 850; letter-spacing: -.045em; }
.brand-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: white; }
.brand-icon svg { width: 18px; height: 18px; }
nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 34px); font-weight: 650; font-size: .9rem; }
.nav-button:hover, nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.intro {
  display: flex;
  align-items: center;
  min-height: clamp(138px, 12vw, 170px);
  margin: 14px 0 13px;
  padding: 20px clamp(20px, 3vw, 43px);
  border-radius: 15px;
  color: #fff;
  background-color: #2e209c;
  background-image: linear-gradient(90deg, #2e209c 0%, #2e209c 35%, #2e209cea 49%, #2e209c05 75%), var(--hero-image, url("assets/gift-hero.webp"));
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: cover, 68% auto;
}
.intro h1 { margin: 0; }
.intro[data-hero-kind] {
  background-image: linear-gradient(90deg, #2e209c 0%, #2e209c 52%, #2e209ce0 64%, #2e209c10 84%), var(--hero-image);
  background-position: center, right 45%;
  background-size: cover, auto clamp(240px, 24vw, 335px);
  gap: clamp(13px, 2.3vw, 32px);
}
.intro[data-hero-kind="recipient"] { background-position: center, right 24%; }
.intro[data-hero-kind] h1 { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 62%; min-width: 0; font-size: clamp(1.85rem, 4.25vw, 3.7rem); }
.hero-cut {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(68px, 8.4vw, 109px);
  padding: 7px 8px 8px;
  margin: 0;
  border: 2px solid #eafc9d;
  border-radius: 12px;
  background: var(--lime);
  color: #28176b;
  line-height: .98;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.hero-cut span { font-size: clamp(.71rem, 1.05vw, .93rem); }
.hero-cut strong { font-size: clamp(2.65rem, 5vw, 4.1rem); letter-spacing: -.085em; }
.intro[data-hero-kind] .headline { text-wrap: balance; }
.intro[data-hero-kind] .edition { order: -1; align-self: flex-start; margin-left: 1px; font-size: clamp(.77rem, 1.15vw, .93rem); }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.055em; }
h1 { display: flex; gap: .22em; align-items: baseline; flex-wrap: wrap; margin: 0 0 8px; font-size: clamp(2.15rem, 5.5vw, 4.4rem); font-weight: 850; }
.headline em { color: var(--lime); font-style: normal; }
.edition { flex: 0 0 auto; align-self: center; border-radius: 8px; background: var(--lime); color: var(--ink); font-size: clamp(.82rem, 1.7vw, 1.25rem); letter-spacing: -.025em; padding: .42em .65em; margin-left: .28em; transform: rotate(-5deg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-button { border: 0; background: transparent; color: inherit; font: inherit; padding: 0; }
.discovery { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 13px; }
.search-field { position: relative; flex: 0 1 445px; min-width: 0; }
.search-field [data-icon] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.search-field input { width: 100%; min-height: 43px; padding: 8px 11px 8px 39px; background: #fff; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.discovery svg { width: 17px; height: 17px; display: block; }
.heat-toggle, .surprise { gap: 7px; min-height: 43px; }
.heat-toggle { color: #8a341c; background: #fff0e5; border-color: #f3d2bd; }
.heat-toggle:hover, .heat-toggle[aria-pressed="true"] { color: #672211; background: #ffd3ad; border-color: #cc7140; }
.surprise { color: var(--blue-dark); background: var(--lime); border-color: #bfd366; }
.surprise:enabled:hover { background: #d1f45a; }
.surprise:disabled { cursor: default; opacity: .48; }
.departments { margin: 13px 0 13px; scroll-margin-top: 12px; }
.departments h2 { font-size: 1.12rem; letter-spacing: -.035em; margin: 0 0 8px; }
.department-list { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.department { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 70px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 750; line-height: 1.16; text-align: center; }
.department:hover, .department[aria-pressed="true"] { border-color: var(--blue); background: var(--lavender); color: var(--blue-dark); }
.department[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--blue); }
.department-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--blue-dark); background: var(--department-tint); }
.department-icon svg { width: 17px; height: 17px; }
.department-premium { --department-tint: #f5dbae; background: #f1e8ff; border-color: #dbc8f1; color: #4a2871; }
.recipients { padding-bottom: 17px; scroll-margin-top: 12px; }
.recipient-list { display: flex; gap: 7px; flex-wrap: wrap; }
.recipient, .pill { display: inline-flex; gap: 7px; align-items: center; justify-content: center; padding: 8px 13px; min-height: 41px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: .87rem; font-weight: 700; }
.recipient-icon { display: inline-flex; color: var(--blue); }
.recipient-icon svg { width: 17px; height: 17px; }
.recipient:hover, .pill:hover { border-color: var(--blue); color: var(--blue); }
.recipient[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.recipient[aria-pressed="true"] .recipient-icon { color: white; }
.catalog { border-top: 1px solid var(--line); padding-top: 17px; scroll-margin-top: 12px; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3.6vw, 2.65rem); font-weight: 800; }
.catalog-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.sort-field { display: flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: .86rem; color: var(--muted); }
select { appearance: none; min-height: 40px; padding: 6px 30px 6px 10px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23382bda' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center / 10px no-repeat; color: var(--ink); border-radius: 7px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 7px; }
.pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill { min-height: 34px; padding: 5px 11px; border-radius: 100px; font-size: .8rem; }
.pill[aria-pressed="true"] { color: var(--ink); background: var(--lime); border-color: #b5d255; }
.count, .catalog-note { color: var(--muted); font-size: .82rem; }
.count { flex-shrink: 0; }
.catalog-note { margin: 0 0 13px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.card-media { position: relative; display: block; aspect-ratio: 1.19; width: 100%; padding: 0; border: 0; background: var(--tile-color); overflow: hidden; }
.card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.card-media.real-image img { object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.card-media:hover img { transform: scale(1.055); }
.card-rank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; max-width: 100%; margin: 0 0 8px; padding: 4px 7px; border: 1px solid #dfd9f6; border-radius: 8px; background: var(--lavender); color: #504479; font-size: .75rem; line-height: 1.25; }
.card-rank-number { color: var(--blue-dark); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-rank-hot { border-color: #d9e7b8; background: #eff8de; color: #405332; }
.card-rank-hot .card-rank-number { color: #2f450e; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 12px 14px 14px; }
.card-meta { margin-bottom: 5px; color: var(--blue-dark); font-size: .8rem; font-weight: 750; }
.card h3 { font-size: 1.12rem; line-height: 1.18; letter-spacing: -.035em; margin-bottom: 6px; }
.card-description { font-size: .85rem; line-height: 1.38; color: var(--muted); margin-bottom: 12px; }
.card-review { display: flex; align-items: baseline; gap: .32rem; flex-wrap: wrap; color: var(--muted); font-size: .76rem; margin: -4px 0 9px; }
.rating-score { display: inline-flex; align-items: baseline; gap: 4px; color: #704216; white-space: nowrap; }
.rating-score > span[aria-hidden] { color: #9f5619; }
.card-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.price { font-size: .84rem; font-weight: 800; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 8px; font-size: .85rem; font-weight: 750; text-align: center; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); }
.card-preview { padding: .35rem .62rem; min-height: 34px; background: var(--lavender); color: var(--blue-dark); }
.card-preview:hover { background: var(--blue); color: #fff; }
.empty { text-align: center; padding: 34px 16px; background: var(--lavender); border-radius: 12px; }
.empty h3 { margin-bottom: 6px; font-size: 1.35rem; }
.site-footer {
  margin-top: 34px;
  border-top: 4px solid var(--lime);
  background: linear-gradient(115deg, #1d1743, #2e2067);
  color: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
  padding-block: 34px 30px;
}
.footer-brand .brand { font-size: 1.2rem; line-height: 1.25; }
.footer-brand .brand-icon { background: var(--lime); color: #29195f; }
.footer-brand p, .footer-ranking p { margin: 10px 0 0; color: #e1daf7; }
.site-footer h2 { margin: 0 0 9px; font-size: 1rem; line-height: 1.25; }
.footer-nav { display: block; }
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-nav a { display: inline-block; padding-block: 3px; color: #e1daf7; }
.footer-nav a:hover, .footer-brand a:hover { color: var(--lime); }
.footer-ranking .footer-method { margin-top: 12px; background: var(--lime); color: #22174e; }
.footer-ranking .footer-method:hover { background: #efffc2; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: var(--lime); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 6px 18px;
  flex-wrap: wrap;
  padding-block: 15px;
  border-top: 1px solid #8276ae;
  color: #e1daf7;
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }
dialog { width: min(770px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; background: white; color: var(--ink); box-shadow: 0 24px 80px #17172b44; }
dialog::backdrop { background: #17172bb0; }
.close-preview { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.close-preview:hover { background: var(--lavender); }
#preview {
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  overscroll-behavior: contain;
  background: var(--paper);
}
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 8px clamp(12px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.preview-back, .preview-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 750;
}
.preview-back { gap: 5px; padding: 3px 11px 3px 7px; font-size: .9rem; }
.preview-back span, .preview-arrow span { display: flex; }
.preview-arrow { width: 44px; flex: 0 0 44px; padding: 0; }
.preview-back svg, .preview-arrow svg { width: 23px; height: 23px; }
.preview-back:hover, .preview-arrow:enabled:hover { background: var(--lavender); border-color: var(--blue); }
.preview-arrow:disabled { color: var(--muted); opacity: .38; cursor: default; }
.gift-navigation { display: flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 750; }
#gift-position { min-width: 6.2em; text-align: center; }
.preview-layout { display: grid; grid-template-columns: minmax(0, 53fr) minmax(320px, 47fr); min-height: calc(100dvh - 65px); }
.preview-gallery { min-width: 0; padding: clamp(12px, 2vw, 28px); background: var(--tile-color); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.preview-media { position: relative; width: 100%; height: clamp(210px, 67dvh, 840px); overflow: hidden; border-radius: 12px; }
.preview-media:has(+ .thumbnails) { background: #fff; touch-action: pan-y pinch-zoom; }
.preview-media:has(+ .thumbnails) img { padding: 12px min(10%, 64px); mix-blend-mode: normal; }
.photo-arrow { position: absolute; top: 50%; z-index: 1; transform: translateY(-50%); border-radius: 50%; box-shadow: 0 3px 14px #17172b22; }
.photo-previous { left: clamp(7px, 2vw, 24px); }
.photo-next { right: clamp(7px, 2vw, 24px); }
.thumbnails { display: flex; justify-content: center; gap: 6px; padding: 2px 8px 0; }
.thumbnails button { border: 1px solid var(--line); border-radius: 7px; width: min(64px, 23%); aspect-ratio: 1; padding: 2px; background: white; }
.thumbnails button[aria-pressed="true"] { border: 2px solid var(--blue); }
.thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-caption { color: var(--muted); font-size: .76rem; text-align: center; margin: 0 6px 10px; }
.preview-media img { width: 100%; height: 100%; display: block; object-fit: contain; user-select: none; }
.preview-media.real-image:not(:has(+ .thumbnails)) img { padding: 11%; object-fit: contain; mix-blend-mode: multiply; }
.preview-body { align-self: start; width: 100%; max-width: 740px; padding: clamp(22px, 3.5vw, 53px); }
.preview-body h2 { line-height: 1.06; font-size: clamp(1.7rem, 3.6vw, 3.5rem); margin-bottom: 12px; }
.preview-body p { margin-bottom: 12px; }
.preview-body ul { padding-left: 1.2rem; margin: 0 0 13px; color: var(--muted); }
.preview-body li { margin-bottom: 3px; }
.preview-description { color: var(--muted); }
.preview-body h3 { font-size: 1rem; letter-spacing: -.025em; margin: 0 0 8px; }
.product-options, .product-specs { margin-bottom: 15px; }
.product-options .options-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.option-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: .81rem; }
.product-options .option-chip { margin: 0; }
.option-shown { border-color: #aaa2ef; background: var(--lavender); }
.option-swatch { width: 13px; height: 13px; flex-shrink: 0; border: 1px solid #0003; background: var(--swatch); border-radius: 50%; }
.preview-body .option-note { margin: 6px 0 0; color: var(--muted); font-size: .79rem; }
.product-specs ul { line-height: 1.38; }
.product-reviews { margin: 14px 0 16px; padding: 11px 12px 10px; border-radius: 10px; border: 1px solid #eedbcc; background: #fff4e9; }
.review-summary { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.review-summary .rating-score { font-size: 1.15rem; }
.preview-body .review-date { color: var(--muted); font-size: .76rem; margin: 4px 0 0; }
.preview-body .review-impression { color: var(--ink); font-size: .87rem; margin: 5px 0 0; }
.product-check { color: var(--muted); background: var(--lavender); border-radius: 8px; padding: 8px 10px; font-size: .87rem; }
.product-check strong { display: block; color: var(--ink); }
@media (min-width: 686px) {
  .preview-gallery { position: sticky; top: 65px; align-self: start; min-height: calc(100dvh - 65px); }
}
.preview-budget { font-weight: 800; }
.preview-foot { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-top: 14px; }
.preview-note { font-size: .82rem; color: var(--muted); }
.rank-note { display: grid; gap: 1px; padding: 9px 11px; background: #fff2e6; color: #592b1e; border-radius: 8px; margin: 0 0 12px; font-size: .83rem; }
.rank-label { font-size: .73rem; font-weight: 750; }
.rank-note small { color: #705044; font-size: .73rem; }
#method { width: min(525px, calc(100% - 24px)); }
.method-content { padding: 28px 26px 16px; }
.method-content h2 { margin: 0 25px 13px 0; font-size: 1.65rem; }
.method-content p { color: var(--muted); }
@media (max-width: 1050px) {
  .department-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(102px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; padding: 3px 3px 6px; }
  .department { scroll-snap-align: start; }
  .department:focus-visible { outline-offset: 1px; }
}
@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 685px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 70px; flex-wrap: wrap; justify-content: flex-start; align-content: center; gap: 6px 22px; padding-block: 6px; }
  .brand-icon { width: 27px; height: 27px; }
  nav { flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; }
  .intro {
    min-height: 133px;
    margin-block: 10px 11px;
    padding: 14px 13px;
    background-image: linear-gradient(90deg, #2e209c 4%, #2e209cf0 36%, #2e209cb0 65%, #2e209c0d 93%), var(--hero-image, url("assets/gift-hero.webp"));
    background-size: cover, auto 190%;
  }
  .intro h1 { flex-direction: column; align-items: flex-start; gap: 7px; max-width: 76%; }
  .intro[data-hero-kind] {
    background-image: linear-gradient(90deg, #2e209c 0%, #2e209c 24%, #2e209cef 45%, #2e209c95 68%, #2e209c00 92%), var(--hero-image);
    background-size: cover, auto 142%;
    gap: 12px;
  }
  .intro[data-hero-kind] h1 { gap: 6px; max-width: 62%; font-size: clamp(1.27rem, 5.95vw, 2.05rem); }
  .hero-cut { width: clamp(55px, 16vw, 72px); padding: 6px 4px; border-radius: 9px; }
  .hero-cut span { font-size: .63rem; }
  .hero-cut strong { font-size: clamp(2.2rem, 10.2vw, 3rem); }
  .intro .headline { text-wrap: balance; }
  .intro .edition { order: -1; align-self: flex-start; margin-left: 1px; }
  h1 { font-size: clamp(1.72rem, 7.3vw, 3.25rem); letter-spacing: -.065em; }
  .departments { margin: 10px 0 8px; }
  .departments h2 { margin-bottom: 3px; }
  .department { min-height: 62px; }
  .recipients { padding-bottom: 12px; }
  .recipient-list { gap: 5px; }
  .recipient { min-height: 34px; padding: 4px 6px; font-size: .75rem; gap: 4px; }
  .recipient-icon svg { width: 14px; height: 14px; }
  .catalog { padding-top: 13px; }
  .sort-field { gap: 4px; }
  .search-field { flex-basis: 100%; }
  .search-field input { min-height: 39px; }
  .heat-toggle, .surprise { min-height: 35px; padding-block: 5px; }
  .catalog-top { flex-wrap: wrap; }
  .catalog-controls { gap: 5px; }
  select { font-size: .79rem; min-height: 35px; }
  .filter-row { margin-top: 9px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-body { padding: 9px 9px 11px; }
  .card h3 { font-size: 1rem; }
  .card-description { font-size: .8rem; }
  .card-meta { font-size: .76rem; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 24px; gap: 22px; }
  .footer-nav ul { max-width: 310px; }
  .preview-bar { gap: 6px; min-height: 57px; padding: 6px 10px; }
  .preview-back { padding: 3px 6px 3px 3px; font-size: .8rem; gap: 1px; }
  .gift-navigation { gap: 3px; font-size: .77rem; }
  #gift-position { min-width: 5.8em; }
  .preview-layout { grid-template-columns: 1fr; min-height: calc(100dvh - 57px); }
  .preview-gallery { padding: 9px 10px 3px; gap: 6px; }
  .preview-media { height: clamp(190px, 42dvh, 465px); }
  .preview-media.real-image:not(:has(+ .thumbnails)) img { padding: 10px; }
  .preview-media:has(+ .thumbnails) img { padding-inline: 48px; }
  .thumbnails button { width: min(48px, 23%); }
  .preview-body { padding: 16px 17px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.nav-premium {
  color: #4a2871;
  background: #f1e8ff;
  border-radius: 8px;
  padding: 6px 10px;
}
.nav-premium[aria-current] { color: #fff; background: #432082; }

.hottest {
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 2.6fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 0 0 12px;
  border: 1px solid #f1cdb9;
  border-radius: 13px;
  background: #fff3e8;
}
.hot-intro h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.23rem;
  line-height: 1.2;
  letter-spacing: -.045em;
  margin-bottom: 4px;
}
.hot-intro p { margin: 0 0 5px; color: #783c27; font-size: .88rem; }
.hot-icon { display: grid; place-items: center; color: #b94322; }
.hot-icon svg { width: 20px; height: 20px; }
.hot-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; font-size: .875rem; }
#hot-date { color: #20563d; font-weight: 780; }
#hot-date[data-stale="true"] { color: #783c27; }
.text-button {
  display: inline-block;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue-dark);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 750;
}
.hottest .heat-toggle { white-space: nowrap; }
.hot-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-width: 0;
}
.hot-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 1px solid #e6c2af;
  border-radius: 8px;
  background: #fff;
  color: #783c27;
}
.hot-step svg { display: block; width: 19px; height: 19px; }
.hot-step:hover:not(:disabled) { border-color: #c15c38; }
.hot-step:disabled { opacity: .42; }
.hot-products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(150px, calc((100% - 21px) / 4));
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-block: 3px;
}
.hot-product:focus-visible { outline-offset: -3px; }
.hot-product {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  scroll-snap-align: start;
  padding: 6px;
  border: 1px solid #ebd3c4;
  background: #fff;
  border-radius: 9px;
  color: var(--ink);
  text-align: left;
}
.hot-product:hover { border-color: #c15c38; }
.hot-product img { width: 45px; height: 45px; object-fit: contain; mix-blend-mode: multiply; }
.hot-product strong, .hot-product small { display: block; }
.hot-product strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .83rem;
  line-height: 1.2;
}
.hot-product small { margin-top: 3px; color: #783c27; font-size: .75rem; line-height: 1.16; }

.premium { padding: 14px 0 35px; }
.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(12px, 4vw, 70px);
  align-items: center;
  padding: clamp(18px, 3.2vw, 38px);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(125deg, #221345, #362173 70%, #4e2e8d);
}
.premium-hero h1 {
  margin: 8px 0 4px;
  font-size: clamp(2.3rem, 6vw, 5.1rem);
  line-height: 1;
  letter-spacing: -.075em;
}
.premium-hero h1 em { color: #fdd795; font-style: normal; }
.premium-hero p { margin: 0; color: #f2eaff; }
.premium-back { color: #f2eaff; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.premium-hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; align-items: center; }
.premium-hero-art span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px;
  aspect-ratio: 1.2;
  background: #eedcff;
  border: 1px solid #ffffff8c;
  border-radius: 10px;
}
.premium-hero-art span:nth-child(2) { background: #ffdb9d; transform: translateY(-5px); }
.premium-hero-art span:nth-child(3) { background: #d9ccff; }
.premium-hero-art img { display: block; width: 100%; height: 100%; max-height: 125px; object-fit: contain; mix-blend-mode: multiply; }
.premium-controls { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin: 15px 0 8px; }
.premium-filters { display: flex; flex-wrap: wrap; gap: 6px; }
#premium-sort { min-height: 35px; font-size: .875rem; }

@media (max-width: 1030px) {
  .hottest { grid-template-columns: minmax(0, 1fr) auto; }
  .hot-carousel { grid-row: 2; grid-column: 1 / -1; }
  .hottest .heat-toggle { grid-row: 1; grid-column: 2; }
}
@media (max-width: 650px) {
  .hottest { gap: 8px; padding: 9px; }
  .hot-intro h2 { font-size: 1.1rem; }
  .hot-intro p, .hot-meta { font-size: .82rem; }
  .hottest .heat-toggle { min-height: 34px; padding-inline: 7px; font-size: .78rem; }
  .hot-products { grid-auto-columns: 150px; }
  .premium-hero { padding: 16px; grid-template-columns: 1fr; gap: 12px; }
  .premium-hero-art { max-width: 244px; }
  .premium-hero-art img { max-height: 50px; }
  .premium-controls { flex-wrap: wrap; }
}

.department-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 14px;
  margin-bottom: 7px;
}
.departments .department-heading h2 { margin: 0; }
.department-heading a, .guide-breadcrumb a {
  color: var(--blue-dark);
  font-size: .875rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-summary { margin: 0 0 13px; }
.guide-summary p { margin: 5px 0 0; color: var(--muted); }
.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px 7px;
  color: var(--muted);
  font-size: .875rem;
}
.guide-directory { padding-block: 20px 30px; }
.premium > .guide-breadcrumb { margin-bottom: 8px; }
.guide-directory header {
  margin: 10px 0 20px;
  padding: clamp(16px, 4vw, 42px);
  color: white;
  background: #2e209c;
  border-radius: 15px;
}
.guide-directory header h1 {
  font-size: clamp(1.8rem, 5vw, 4rem);
  margin: 0 0 8px;
  line-height: 1.08;
}
.guide-directory header p { margin: 0; max-width: 62ch; color: #f1edff; }
.guide-directory section + section { margin-top: 22px; }
.guide-directory h2 { margin-bottom: 8px; font-size: 1.2rem; }
.guide-directory ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-directory li a {
  display: grid;
  height: 100%;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.guide-directory li a:hover { border-color: var(--blue); }
.guide-directory li strong { color: var(--blue-dark); }
.guide-directory li span { color: var(--muted); font-size: .875rem; }
