@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111417;
  --muted: #495057;
  --line: #e2e6ea;
  --quiet: #f8f9fa;
  --blue: #2454d6;
  background: white;
  color: var(--ink);
  font: 1rem/1.5 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html { scroll-padding-block: 8rem 5rem; }

.container { width: min(100% - 4rem, 90rem); margin-inline: auto; }
.mall-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: absolute; inset: .5rem auto auto .5rem; z-index: 3; background: white; padding: .5rem 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(255 255 255 / 96%);
  border-block-end: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand-link { display: inline-flex; flex-shrink: 0; }
.brand-link img { display: block; width: 7.1rem; height: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.pill:hover { border-color: var(--muted); }
.header-shortlist span { min-width: 1.25rem; border-radius: 100%; background: var(--ink); color: white; font-size: .75rem; }
.header-shortlist[aria-pressed='true'] { border-color: var(--ink); }
.nav-discovery-pill {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 45rem;
  min-height: 2.75rem;
  padding: .25rem .35rem .25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgb(17 20 23 / 7%);
  background: white;
}
.nav-discovery-pill:focus-within { border-color: var(--muted); }
.locality-field {
  display: flex;
  align-items: center;
  gap: .4rem;
  max-width: 45%;
  padding-inline-end: .7rem;
  border-inline-end: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}
.locality-field select { min-width: 0; border: 0; cursor: pointer; background: transparent; color: inherit; }
.locality-field .mall-icon { width: 1rem; height: 1rem; }
.nav-search-input { flex: 1; min-width: 0; height: 2rem; padding: .25rem .7rem; border: 0; background: transparent; font-size: .875rem; }
.nav-search-submit { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--ink); color: white; cursor: pointer; }
.category-strip { position: sticky; top: 4rem; z-index: 1; border-block-end: 1px solid var(--line); background: white; }
.category-scroll-container { display: flex; justify-content: space-between; align-items: stretch; gap: .6rem; overflow-x: auto; scrollbar-width: thin; }
.category-chip { display: grid; place-items: center; gap: .1rem; flex: 1 0 auto; min-width: 3.8rem; padding: .35rem .35rem .25rem; border: 0; border-block-end: 2px solid transparent; background: white; font-size: .73rem; color: var(--muted); cursor: pointer; }
.category-chip:focus-visible { outline-offset: -3px; }
.category-chip[aria-pressed='true'] { color: var(--ink); font-weight: 800; }
.category-chip[aria-pressed='true'] .category-icon { color: var(--blue); background: #eef3ff; box-shadow: inset 0 -2px var(--blue); }
.category-icon { display: grid; place-items: center; width: 1.7rem; min-height: 1.45rem; border-radius: .3rem; }

.mall-main { padding-block: 1.4rem 3.5rem; }
.section-header-row { display: flex; justify-content: space-between; align-items: end; gap: .75rem 1rem; margin-block-end: 1.45rem; }
h1, .section-heading { margin: 0; overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.04em; line-height: 1.18; }
h1 { font-size: clamp(1.55rem, 3.5vw, 2rem); }
.section-heading { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.section-subtext { margin: .5rem 0 0; font-size: .875rem; color: var(--muted); }
.sort-label { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.sort-label select { background: white; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .65rem; color: var(--ink); }
.catalog-empty { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--quiet); }

.product-grid, .shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.product-card, .shop-card, .product-detail { min-width: 0; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.product-card { position: relative; overflow: hidden; }
.product-card:hover, .shop-card:hover { border-color: #c0c7ce; box-shadow: 0 4px 14px rgb(17 20 23 / 8%); }
.product-image-container { position: relative; aspect-ratio: 3 / 4; background: var(--quiet); }
.product-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-save {
  position: absolute;
  z-index: 1;
  inset: .5rem .5rem auto auto;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  cursor: pointer;
}
.product-save[aria-pressed='true'] { color: #a91f33; }
.product-save[aria-pressed='true'] .mall-icon { fill: currentColor; }
.product-card-body, .shop-card { display: grid; gap: .35rem; padding: 1rem; overflow-wrap: anywhere; text-decoration: none; }
.product-shop-attr, .shop-card span { margin: 0; color: var(--muted); font-size: .8125rem; }
.product-shop-attr { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.product-title { margin: 0; font-size: .97rem; line-height: 1.35; }
.product-title button { padding: 0; border: 0; background: none; text-align: start; font-weight: inherit; cursor: pointer; }
.product-title button::after { content: ''; position: absolute; inset: 0; }
.product-title button:focus-visible::after { outline: 2px solid var(--blue); outline-offset: -3px; }
.product-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.product-card-meta strong { font-variant-numeric: tabular-nums; }
.availability { padding: .125rem .5rem; border-radius: 999px; background: #fff1f2; color: #9f1239; font-size: .8125rem; font-weight: 700; }
.browse-pages { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1.25rem; }
#shops { margin-block-start: clamp(2rem, 5vw, 4rem); }
.shop-grid, .shopkeeper-link { margin-block-start: 1rem; }
.back-link { display: inline-block; margin-block-end: 1.25rem; text-underline-offset: .2em; }
.product-detail { display: grid; gap: .75rem; max-width: 50rem; padding: clamp(1rem, 4vw, 2.5rem); overflow-wrap: anywhere; }
.product-description { margin: 0; white-space: pre-wrap; }
.error-page { display: grid; justify-items: start; gap: 1rem; }

.sample-dialog { width: min(39rem, 100% - 2rem); max-height: 90dvh; border: 1px solid var(--line); border-radius: .9rem; padding: 1.25rem; }
.sample-dialog::backdrop { background: rgb(17 20 23 / 55%); }
.sample-dialog form { display: flex; justify-content: flex-end; margin-block-end: .75rem; }
.sample-dialog img { display: block; width: min(100%, 17rem); height: auto; margin-inline: auto; border-radius: .5rem; }
.sample-details h2 { margin-block-end: .25rem; font-size: 1.2rem; }
.sample-details p { margin: .35rem 0; font-size: .9rem; }
.sample-details [data-dialog-price] { font-weight: 800; }

.site-footer { border-block-start: 1px solid var(--line); background: var(--quiet); }
.footer-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-block: 2rem; }
.footer-inner h2 { margin: 0; font-size: 1rem; }
.footer-inner p { max-width: 24rem; margin: .4rem 0 0; color: var(--muted); font-size: .875rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.mobile-nav { display: none; }

@media (max-width: 63.9rem) {
  .product-grid, .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}

@media (max-width: 47.9rem) {
  html { scroll-padding-block-start: 8rem; }
  .container { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .55rem .75rem; padding-block: .5rem; }
  .brand-link img { width: 6.5rem; }
  .nav-discovery-pill { grid-column: 1 / -1; grid-row: 2; min-height: 2.55rem; padding-inline-start: .65rem; }
  .site-header { position: static; }
  .category-strip { top: 0; }
  .category-scroll-container { justify-content: flex-start; }
  .section-header-row { flex-wrap: wrap; margin-block-end: 1rem; }
  .product-grid, .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product-card-body, .shop-card { padding: .7rem; }
  .product-title { font-size: .88rem; }
  .product-save { inset: .35rem .35rem auto auto; width: 2.75rem; height: 2.75rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer:has(+ .mobile-nav) { padding-block-end: calc(4rem + env(safe-area-inset-bottom)); }
  .mobile-nav { display: flex; position: fixed; z-index: 2; inset: auto 0 0; justify-content: space-around; align-items: stretch; padding-block-end: env(safe-area-inset-bottom); border-block-start: 1px solid var(--line); background: white; }
  .mobile-nav a, .mobile-nav button { display: grid; place-items: center; align-content: center; gap: .25rem; flex: 1; min-height: 3.65rem; padding: .25rem; border: 0; background: transparent; color: var(--ink); font-size: .72rem; text-decoration: none; cursor: pointer; }
  .mobile-nav [aria-pressed='true'] { font-weight: 800; color: var(--blue); }
}
