:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #211a1a;
  --muted: #645858;
  --line: #e9e1e2;
  --red: #be1738;
  --red-dark: #a0102d;
  --rose: #fff0f2;
  --display: "Geist", Arial, sans-serif;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(1312px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 5; background: white; padding: 12px 16px; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 800 22px var(--display); letter-spacing: -.045em; white-space: nowrap; }
.wordmark-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}
.wordmark-accent { color: var(--red); }
.site-header nav { display: flex; align-items: center; gap: 25px; font-size: 14px; font-weight: 750; }
.site-header nav a:hover, .text-link:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }

.language-switcher { position: relative; z-index: 2; }
.language-switcher summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding-inline: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
  transform: rotate(45deg);
}
.language-switcher[open] summary,
.language-switcher summary:hover { background: var(--rose); }
.locale-globe { width: 17px; height: 17px; flex: none; }
.language-code { display: none; }
.currency-code {
  padding-inline-start: 8px;
  border-inline-start: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.locale-panel {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  width: min(324px, calc(100vw - 26px));
  max-height: calc(100dvh - 78px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #211a1a20;
}
.locale-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.locale-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}
.locale-options :is(a, span, button) {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: 550 13px/1.2 "DM Sans", Arial, sans-serif;
  text-align: center;
}
.locale-options button { cursor: pointer; }
.site-header nav .locale-options a:hover,
.locale-options button:hover { color: var(--red-dark); background: var(--rose); text-decoration: none; }
.locale-options :is([aria-current], [aria-pressed="true"]) {
  border-color: var(--red);
  color: var(--red-dark);
  background: var(--rose);
}
.locale-options :focus-visible { outline-offset: 1px; }
.currency-section { margin-top: 12px; }
.currency-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.currency-auto {
  padding: 3px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.currency-auto[aria-pressed="true"] { color: var(--red-dark); }
.currency-reference { margin-top: 9px; color: var(--muted); font-size: 11px; font-weight: 500; }
.currency-reference a { text-decoration: underline; text-underline-offset: 2px; }

.primary-link, .outline-link, .header-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--red-dark);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}
.primary-link { border-color: var(--red); color: #fff; background: var(--red); }
.primary-link:hover { background: var(--red-dark); }
.outline-link:hover, .header-out:hover { background: var(--rose); border-color: #e6a5b1; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--red-dark); font-size: 14px; font-weight: 800; }

.hero {
  --hero-shade: linear-gradient(180deg, #1018277a, #101827a8 52%, #10182785);
  --hero-background: var(--hero-shade), #202a38 url("./shopping-hero.jpg") center / cover no-repeat;
  color: #fff;
  background: var(--hero-background);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: clamp(400px, 34vw, 560px);
  padding-block: 44px;
  text-align: center;
}
h1, h2 { font-family: var(--display); letter-spacing: -.045em; }
h1 { font-size: clamp(48px, 5.25vw, 80px); font-weight: 850; line-height: .98; }
.hero h1 { font-size: clamp(34px, 5vw, 70px); line-height: 1.06; }
.hero-description { max-width: 54ch; margin: 15px 0 23px; color: #fff; font-size: 17px; line-height: 1.55; }
.hero-description-detail, .hero-category-links { display: none; }

.search-form {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 520px);
  margin: 0 0 16px;
  padding: 5px 5px 5px 15px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
}
.hero :focus-visible, .search-form:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.hero .search-form button:focus-visible { outline-color: var(--red-dark); }
.search-icon {
  flex: 0 0 15px;
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.8px solid #665359;
  border-radius: 50%;
  margin-right: 2px;
}
.search-icon::after {
  position: absolute;
  width: 6px;
  height: 1.8px;
  right: -4px;
  bottom: -1px;
  transform: rotate(45deg);
  background: #665359;
  content: "";
}
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 16px/1.25 "DM Sans", Arial, sans-serif;
}
.search-form input::placeholder { color: #6b6060; opacity: 1; }
.search-form button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: 800 14px var(--display);
}
.search-form button:hover { background: var(--red-dark); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero .outline-link { border-color: #ffffff9e; color: #fff; background: #10182760; }
.hero .outline-link:hover { border-color: #fff; background: #101827c4; }

.hero-trust { padding-block: 8px 20px; }
.hero-trust h2 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
}
.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-trust-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  background: #141b29e6;
}
.hero-trust-grid svg {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 8px;
  background: var(--rose);
  stroke: var(--red-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.hero-trust-grid h3 { font-size: 15px; line-height: 1.3; }
.hero-trust-grid p { margin-top: 4px; color: #e5e8ef; font-size: 13px; line-height: 1.4; }

.category-page-hero {
  padding-block: clamp(26px, 4.4vw, 60px);
  border-bottom: 1px solid #f0d4db;
  background: linear-gradient(105deg, #fff6f5 14%, #ffe0e5);
}
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--red-dark); font-weight: 750; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.category-page-hero h1 { max-width: 23ch; font-size: clamp(33px, 4.9vw, 66px); line-height: 1.07; overflow-wrap: anywhere; }
.category-page-hero p { max-width: 63ch; margin: 12px 0 20px; color: var(--muted); line-height: 1.55; }

.category-section { border-bottom: 1px solid #f0e6e8; background: #fffafa; padding-block: 26px 28px; }
.categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-tile {
  display: flex;
  min-width: 0;
  min-height: 100px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.category-tile:hover { color: var(--red-dark); border-color: #e59aa8; background: #fff4f5; }
.category-icon {
  display: block;
  width: 47px;
  height: 47px;
  padding: 9px;
  border-radius: 12px;
  background: var(--rose);
  color: var(--red-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured { padding-top: clamp(28px, 4vw, 52px); }
.category-section, .featured, .how-to, .faq { scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { font-size: clamp(25px, 3.4vw, 43px); line-height: 1.08; }
.category-section h2 { font-size: clamp(22px, 3vw, 32px); }
.section-heading p, .how-to p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.featured-filters { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.featured-filters legend { margin-bottom: 7px; padding: 0; font-size: 14px; font-weight: 750; }
.featured-filter-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.featured-filter-options label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}
.featured-filter-options label:hover { color: var(--red-dark); background: var(--rose); }
.featured-filter-options input:checked + label { border-color: var(--red); color: #fff; background: var(--red); }
.featured-filter-options input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 3px; }
.featured-more { margin: 24px auto 0; text-align: center; }
.featured-more button { cursor: pointer; font-family: inherit; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 0; padding: 0; list-style: none; }
.product { display: flex; height: 100%; flex-direction: column; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product:hover { border-color: #de899b; box-shadow: 0 9px 25px #6c193218; }
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.15; overflow: hidden; border-radius: 7px; background: #f6f2f2; }
.image-placeholder { padding: 8px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform .2s ease; }
.product-image img.loaded { opacity: 1; }
.product:hover img { transform: scale(1.035); }
.product-info { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 7px; padding: 11px 8px 5px; }
.product-category { color: var(--muted); font-size: 12px; font-weight: 750; }
.product h3 { font: 750 16px/1.28 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.product-price { color: var(--red-dark); font-size: 17px; font-weight: 800; }
.product-price span { color: var(--muted); font-size: 11px; }
.product-note { color: var(--muted); font-size: 13px; line-height: 1.4; }

.how-to {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  margin-block: clamp(45px, 6vw, 78px) 32px;
  padding: clamp(21px, 3vw, 38px);
  border: 1px solid #f0d4db;
  border-radius: 14px;
  background: #fff4f5;
}
.how-to h2, .faq h2 { font-size: clamp(25px, 3vw, 36px); }
.how-to :is(ol, ul) { margin: 0; padding-left: 22px; line-height: 1.6; }
.how-to li + li { margin-top: 7px; }
.faq { margin-bottom: 48px; }
.faq h2 { margin-bottom: 14px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { padding: 14px 0; cursor: pointer; font-weight: 750; }
.faq summary::marker { color: var(--red); }
.faq details p { max-width: 76ch; padding-bottom: 15px; color: var(--muted); line-height: 1.55; }
.related-categories { margin-bottom: 38px; }
.related-categories h2 { font-size: clamp(23px, 3vw, 33px); }
.related-categories nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.related-categories a { padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--red-dark); font-size: 14px; font-weight: 750; }
.related-categories a:hover { background: var(--rose); border-color: #de899b; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wordmark { color: var(--ink); }
.site-footer > a:last-child { white-space: nowrap; font-weight: 700; }

@media (min-width: 721px) {
  .hero {
    --hero-shade: linear-gradient(90deg, #10182738, #101827aa 27%, #101827b5 50%, #1018279e 67%, #10182738 100%);
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: clamp(360px, 40vw, 760px);
    background-position: center, center top;
  }
  .hero-main { display: flex; }
  .hero-inner {
    min-height: 0;
    padding-block: clamp(38px, 5.8vw, 115px) 12px;
    padding-inline-end: 6%;
  }
  .hero h1 { font-size: clamp(46px, 5.8vw, 88px); }
  .hero-description {
    max-width: 57ch;
    margin-block: 18px 26px;
    font-size: clamp(18px, 1.35vw, 23px);
    text-wrap: balance;
  }
  .hero-description-detail {
    display: block;
    margin-top: 7px;
    font-size: clamp(16px, 1.15vw, 20px);
  }
  .hero .search-form {
    width: min(100%, 744px);
    margin-bottom: 20px;
    padding: 6px 6px 6px 18px;
  }
  .hero .search-form input[type="search"],
  .hero .search-form button {
    min-height: 54px;
    font-size: 18px;
  }
  .hero .search-form button { padding-inline: 21px; }
  .hero .hero-actions { gap: 12px; }
  .hero .hero-actions a {
    min-height: 52px;
    padding-inline: 24px;
    font-size: 17px;
  }
  .hero-category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .hero-category-links a {
    padding: 6px 12px;
    border: 1px solid #ffffff70;
    border-radius: 999px;
    background: #10182740;
    font-size: 14px;
    font-weight: 700;
  }
  .hero-category-links a:hover {
    border-color: #fff;
    background: #101827a6;
  }
}

@media (max-width: 930px) {
  .wrap { width: calc(100% - 40px); }
  .site-header nav { gap: 16px; }
  .site-header .desktop-nav { display: none; }
  .hero-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { position: relative; gap: 10px; min-height: 62px; }
  .site-header nav { gap: 7px; font-size: 12px; }
  .site-header .header-out { padding-inline: 8px; font-size: 12px; min-height: 37px; }
  .language-switcher { position: static; }
  .locale-panel { inset-block-start: calc(100% - 6px); width: min(324px, 100%); z-index: 2; }
  .language-switcher summary { gap: 5px; min-height: 37px; padding-inline: 7px; }
  .locale-globe { width: 14px; height: 14px; }
  .currency-code { padding-inline-start: 5px; }
  .language-name { display: none; }
  .language-code { display: inline; }
  .hero-inner { min-height: 370px; padding-block: 36px; }
  .hero { background: none; }
  .hero-main {
    background: var(--hero-background);
    background-position: center, 62% center;
  }
  .hero-trust { padding-block: 18px; color: var(--ink); background: #f8f5f5; }
  .hero-trust-grid li { border-color: var(--line); background: #fff; }
  .hero-trust-grid p { color: var(--muted); }
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .category-tile { min-height: 84px; }
  .category-icon { width: 39px; height: 39px; padding: 7px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .how-to { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .site-header nav > a[href$="#categories"] { display: none; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 26px); }
  .site-footer { gap: 10px; }
  .site-header nav > a:is([href="#featured"], [href="#finds"]) { display: none; }
  .wordmark { font-size: 18px; gap: 6px; }
  .wordmark-icon { width: 28px; height: 28px; }
  h1 { font-size: clamp(41px, 11vw, 53px); }
  .hero-description { margin: 12px 0 16px; font-size: 15px; }
  .hero-trust-grid li { flex-direction: column; gap: 7px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
  .category-section { padding-block: 21px; }
  .category-section .section-heading { align-items: baseline; }
  .category-section .text-link { font-size: 12px; }
  .category-tile { font-size: 12px; }
  .product-info { padding-inline: 4px; }
  .product h3 { font-size: 14px; }
  .product-price { font-size: 15px; }
  .site-footer { flex-wrap: wrap; padding-block: 14px; }
  .site-footer p { order: 1; width: 100%; }
}
@media (max-width: 355px) {
  .site-header { gap: 4px; }
  .site-header nav { gap: 4px; }
  .site-header .header-out { padding-inline: 5px; font-size: 11px; }
  .language-switcher summary { padding-inline: 5px; }
  .site-header .wordmark { gap: 4px; font-size: 16px; }
  .site-header .wordmark-icon { width: 23px; height: 23px; }
  .search-form input[type="search"] { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-image img { transition: none; }
}
