/* Design in the style of a large sports brand's online shop: white surfaces, near-black type, a light grey service
   bar, a slim header with the logo left, the categories in the middle and a search pill right, a grey promo
   strip, a big stage with heavy condensed capitals, square product pictures on light grey, black pill buttons. */
:root {
  --white: #ffffff;
  --grey-50: #f5f5f5;
  --grey-100: #e5e5e5;
  --grey-200: #cacacb;
  --grey-500: #707072;
  --ink: #111111;
  --hover: #707072;
  --flag: #9e3500;
  --red: #d30005;
  --green: #007d48;
  --hh: 60px;
  --sans: "Helvetica Now Text", "Helvetica Neue", Helvetica, "Segoe UI", Roboto, "Liberation Sans", Arial, sans-serif;
  --display: "Futura Condensed ExtraBold", "Futura", Impact, "Haettenschweiler", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --wide: 1920px;
  --pad: 48px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--hover); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 500; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 24px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.display {
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  line-height: .9; letter-spacing: -.01em;
}

/* Service bar */
.utility { background: var(--grey-50); font-size: 12px; font-weight: 500; }
.utility-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); height: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.utility-left { color: var(--ink); font-weight: 500; }
.utility-links { display: flex; align-items: center; gap: .75rem; }
.utility-links a { color: var(--ink); }
.utility-links a:hover { color: var(--hover); }
.utility-links .sep { color: var(--ink); font-weight: 400; }
.account-user { display: inline-flex; align-items: center; gap: .75rem; }
.account-name { font-weight: 500; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.account-logout { background: none; border: none; padding: 0; cursor: pointer; font-size: 12px; font-weight: 500; color: var(--ink); }
.account-logout:hover { color: var(--hover); }

/* Header: logo – categories – search and bag */
.site-header {
  background: var(--white); position: sticky; top: 0; z-index: 30;
  transition: transform .3s ease;
}
body.header-hidden .site-header { transform: translateY(-100%); }
.header-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); height: 60px;
  display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); justify-self: start; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
#brand-name {
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: 24px; line-height: 1; letter-spacing: .01em; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}
.main-nav {
  display: flex; align-items: center; gap: .25rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  max-width: min(760px, 50vw);
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  flex: 0 0 auto; padding: 18px 12px 16px; font-size: 16px; font-weight: 500; color: var(--ink);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.main-nav a.active { border-bottom-color: var(--ink); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.header-search {
  display: flex; align-items: center; background: var(--grey-50); border-radius: 100px; height: 40px;
  width: 180px; transition: background .2s ease, width .25s ease;
}
.header-search:hover { background: var(--grey-100); }
.header-search:focus-within { width: 240px; background: var(--grey-100); }
.header-search input {
  border: none; outline: none; background: none; padding: 0 16px 0 2px; flex: 1; min-width: 0; height: 40px; font-size: 16px;
}
.header-search input::placeholder { color: var(--grey-500); }
.header-search input::-webkit-search-cancel-button { display: none; }
.search-btn {
  background: none; border: none; cursor: pointer; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.search-btn:hover { background: var(--grey-200); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); background: none; border: none; cursor: pointer; position: relative; padding: 0;
}
.icon-btn:hover { background: var(--grey-100); color: var(--ink); }
.cart-count {
  position: absolute; top: 15px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 500; line-height: 1;
  pointer-events: none;
}
.cart-count:empty { display: none; }
.menu-btn { display: none; }

/* Promo strip */
.promo { background: var(--grey-50); text-align: center; padding: 8px var(--pad) 10px; min-height: 58px; }
.promo-item { display: flex; flex-direction: column; align-items: center; transition: opacity .35s ease; }
.promo-item.fade { opacity: 0; }
.promo-item strong { font-size: 15px; font-weight: 500; }
.promo-item span { font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

/* Page */
.page { flex: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad) 84px; }
.page.narrow-top { padding-top: 24px; }
.loading { color: var(--grey-500); text-align: center; padding: 6rem 0; }
.empty { text-align: center; padding: 5rem 1rem; color: var(--grey-500); }
.empty h2 { color: var(--ink); }
.empty .btn { margin-top: 1rem; }
.breadcrumb { font-size: 14px; color: var(--grey-500); margin: 24px 0 8px; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--grey-500); }
.breadcrumb a:hover { color: var(--ink); }
.page-title { font-size: 24px; font-weight: 500; margin: 24px 0 24px; }
.page-title.flush, .line-meta.flush { margin-top: 0; }
.line-meta.flush { margin: 0; }
.span-all { grid-column: 1 / -1; }
.inherit, .inherit:hover { color: inherit; }
.stack.spaced { margin-top: 16px; }

/* Stage */
.hero { margin: 0 calc(var(--pad) * -1) 0; }
.hero-media { display: grid; gap: 0; background: var(--grey-50); }
.hero-media.n1 { grid-template-columns: 1fr; }
.hero-media.n1 .hero-tile { aspect-ratio: 16 / 7; }
.hero-media.n2 { grid-template-columns: 1fr 1fr; }
.hero-media.n2 .hero-tile { aspect-ratio: 1 / 1; max-height: 82vh; }
.hero-media.n3 { grid-template-columns: 1fr 1fr 1fr; }
.hero-media.n3 .hero-tile { aspect-ratio: 3 / 4; max-height: 82vh; }
.hero-tile { display: block; overflow: hidden; background: var(--grey-50); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hero-tile:hover img { transform: scale(1.02); }
.hero-copy { text-align: center; padding: 48px var(--pad) 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-eyebrow { font-size: 16px; font-weight: 500; }
.hero-copy h1 { font-size: clamp(48px, 8vw, 96px); margin: 0; max-width: 1200px; }
.hero-copy p { margin: 0; max-width: 640px; font-size: 16px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.hero.dark { background: var(--ink); margin-bottom: 0; }
.hero.dark .hero-copy { padding: clamp(64px, 12vw, 160px) var(--pad); color: #fff; }
.hero.dark h1, .hero.dark .hero-eyebrow { color: #fff; }

/* Sections of the start page */
.section { margin-top: 84px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-tools { display: flex; align-items: center; gap: 12px; }
.section-tools a { font-size: 16px; font-weight: 500; margin-right: 8px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--grey-50); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.round-btn:hover { background: var(--grey-100); }
.round-btn[disabled] { opacity: .35; cursor: default; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--grey-50); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.03); }
.cat-tile .placeholder { font-size: 96px; }
.cat-tile .btn { position: absolute; left: 48px; bottom: 48px; }
.member {
  margin-top: 84px; text-align: center; padding: 84px var(--pad); background: var(--grey-50);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.member h2 { font-size: clamp(40px, 6vw, 72px); margin: 0; }
.member p { margin: 0; max-width: 560px; }

/* Listing */
.listing-head {
  position: sticky; top: var(--hh); z-index: 10; background: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 16px 0 16px; transition: top .3s ease;
}
body.header-hidden .listing-head { top: 0; }
.listing-head h1 { margin: 0; font-size: 24px; }
.listing-tools { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.tool-btn {
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0;
  font-size: 16px; font-weight: 400; color: var(--ink);
}
.tool-btn:hover { color: var(--hover); }
.sort-wrap { display: inline-flex; align-items: center; gap: 4px; }
.sort-wrap label { white-space: nowrap; }
.sort {
  border: none; background: none; padding: 0 2px; font-size: 16px; font-weight: 500; cursor: pointer; color: var(--ink);
}
.listing { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; transition: grid-template-columns .3s ease; }
.listing.no-filter { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
.listing.no-filter .filter-col { visibility: hidden; overflow: hidden; }
.filter-col { position: sticky; top: calc(var(--hh) + 72px); max-height: calc(100vh - var(--hh) - 90px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 24px; }
body.header-hidden .filter-col { top: 72px; }
.filter-list { list-style: none; margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--grey-100); }
.filter-list a, .filter-list button {
  display: block; padding: 4px 0 8px; font-size: 16px; font-weight: 500; color: var(--ink); background: none; border: none;
  text-align: left; cursor: pointer; width: 100%;
}
.filter-list a:hover, .filter-list button:hover { color: var(--hover); }
.filter-list a.active { text-decoration: underline; text-underline-offset: 4px; }
.filter-group { border-bottom: 1px solid var(--grey-100); padding: 0 0 20px; margin-bottom: 20px; }
.filter-group h3 { font-size: 16px; font-weight: 500; margin: 0 0 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; font-size: 16px; }
.check input {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1px solid var(--grey-200); border-radius: 4px;
  margin: 0; cursor: pointer; display: grid; place-content: center; flex: 0 0 20px;
}
.check input:hover { border-color: var(--ink); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.search-tag { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 12px; }
.listing.no-filter .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; position: relative; min-width: 0; }
.card-image { display: block; aspect-ratio: 1 / 1; background: var(--grey-50); overflow: hidden; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.quick {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.card:hover .quick, .quick:focus-visible { opacity: 1; transform: none; }
.quick:hover { background: var(--ink); color: #fff; }
.quick[disabled] { opacity: .5; }
.card-body { padding: 12px 0 0; display: flex; flex-direction: column; color: var(--ink); }
.card-body:hover { color: var(--ink); }
.card-flag { font-size: 16px; font-weight: 500; color: var(--flag); }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.5; }
.card-sub, .card-meta { font-size: 16px; color: var(--grey-500); line-height: 1.5; }
.card-price { font-size: 16px; font-weight: 500; margin-top: 8px; }
.placeholder {
  width: 100%; height: 100%; min-height: 80px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-stretch: condensed; font-weight: 800; font-size: 72px; color: var(--grey-200); background: var(--grey-50);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff; border-radius: 100px;
  padding: 6px 20px; min-height: 40px; cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.5;
  transition: background .2s ease, color .2s ease, border-color .2s ease; white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
.btn.light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.light:hover { background: var(--grey-100); border-color: var(--grey-100); color: var(--ink); }
.btn.outline { background: var(--white); color: var(--ink); border-color: var(--grey-200); }
.btn.outline:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.btn.xl { min-height: 60px; padding: 18px 24px; }
.btn.block { width: 100%; }
.btn[disabled] { background: var(--grey-100); border-color: var(--grey-100); color: var(--grey-500); cursor: default; }
.link-btn { background: none; border: none; color: var(--ink); cursor: pointer; padding: 0; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--hover); }

/* Product page */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) 456px; gap: 48px; align-items: start;
  max-width: 1440px; margin: 48px auto 0;
}
.product-image { aspect-ratio: 1 / 1; background: var(--grey-50); overflow: hidden; border-radius: 8px; position: sticky; top: calc(var(--hh) + 24px); }
body.header-hidden .product-image { top: 24px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .placeholder { font-size: 160px; }
.product-info { padding-right: 8px; }
.product-info h1 { font-size: 24px; font-weight: 500; margin: 0; }
.product-sub { font-size: 16px; font-weight: 500; color: var(--grey-500); margin: 0 0 12px; }
.product-flag { font-size: 16px; font-weight: 500; color: var(--flag); margin-bottom: 4px; }
.product-price { font-size: 16px; font-weight: 500; margin: 0 0 32px; }
.size-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.size-head span { color: var(--grey-500); font-weight: 400; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 7px; border-radius: 8px; }
.size-block.error .sizes { outline: 1px solid var(--red); outline-offset: 4px; }
.size-error { color: var(--red); font-size: 14px; margin: 10px 0 0; }
.size {
  height: 48px; border: 1px solid var(--grey-100); border-radius: 4px; background: var(--white);
  cursor: pointer; text-align: center; font-size: 16px;
}
.size:hover { border-color: var(--ink); }
.size.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 24px; font-size: 16px; font-weight: 500; }
.stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--grey-100); border-radius: 100px; height: 40px;
  background: var(--white);
}
.stepper button {
  width: 40px; height: 38px; border: none; background: none; cursor: pointer; font-size: 18px; color: var(--ink);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--grey-100); }
.stepper span { min-width: 28px; text-align: center; font-size: 16px; }
.buy-actions { display: flex; flex-direction: column; gap: 12px; }
.benefits { list-style: none; margin: 32px 0 0; padding: 0; font-size: 16px; }
.benefits li { padding: 4px 0 4px 32px; position: relative; }
.benefits li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 12px; height: 6px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}
.product-desc { white-space: pre-line; margin: 32px 0 0; font-size: 16px; line-height: 1.75; }
.accordion { border-top: 1px solid var(--grey-100); margin-top: 40px; }
.accordion details { border-bottom: 1px solid var(--grey-100); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 24px 0; font-size: 20px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); margin-right: 6px; transition: transform .2s ease; }
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion details p { margin: 0 0 24px; font-size: 16px; line-height: 1.75; }

/* Basket and checkout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 48px; align-items: start; max-width: 1100px; margin: 40px auto 0; }
.bag-note { background: var(--grey-50); padding: 12px 20px; margin-bottom: 24px; font-size: 14px; }
.bag-note strong { display: block; font-size: 15px; font-weight: 500; }
.bag-line { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--grey-100); }
.bag-line:first-of-type { padding-top: 0; }
.thumb { width: 164px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--grey-50); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .placeholder { font-size: 48px; min-height: 0; }
.line-head { display: flex; justify-content: space-between; gap: 1rem; }
.line-title { font-size: 16px; font-weight: 500; }
.line-meta { color: var(--grey-500); font-size: 16px; }
.line-amount { font-size: 16px; font-weight: 500; white-space: nowrap; text-align: right; }
.line-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.summary h2 { font-size: 24px; margin-bottom: 24px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 16px; }
.sum-row.total { border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); margin: 16px 0 24px; padding: 16px 0; font-weight: 500; }
.pay-hint { font-size: 14px; color: var(--grey-500); margin: 0 0 24px; }
.summary .note { text-align: center; }
.form-section h2 { font-size: 20px; margin: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--grey-500); }
.field input, .field textarea {
  border: 1px solid var(--grey-200); border-radius: 8px; background: var(--white); padding: 0 16px; height: 56px; font-size: 16px;
}
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field textarea { min-height: 110px; padding: 14px 16px; resize: vertical; }
.note { font-size: 14px; color: var(--grey-500); margin-top: 16px; }
.note a { color: var(--grey-500); text-decoration: underline; }
.guest-hint { font-size: 16px; margin: -8px 0 24px; }
.guest-hint a { text-decoration: underline; }

/* Orders */
.orders { max-width: 1100px; margin: 0 auto; border-top: 1px solid var(--grey-100); }
.order-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center;
  padding: 24px 8px; border-bottom: 1px solid var(--grey-100); color: var(--ink);
}
.order-row:hover { background: var(--grey-50); color: var(--ink); }
.order-no { font-weight: 500; }
.badge {
  display: inline-block; padding: 2px 12px; font-size: 14px; font-weight: 500; border-radius: 100px;
  background: var(--grey-50); color: var(--ink); white-space: nowrap;
}
.badge.wait { background: #fff1e8; color: var(--flag); }
.badge.paid { background: #e8f5ee; color: var(--green); }
.order-page { max-width: 1100px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.order-title h1 { font-size: 24px; margin: 0 0 4px; }
.block-title { font-size: 20px; font-weight: 500; margin: 0 0 16px; }
.payment-box { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; background: var(--grey-50); padding: 32px; border-radius: 8px; }
.qr { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 8px; }
.qr img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.kv { display: grid; grid-template-columns: max-content 1fr auto; gap: 8px 20px; align-items: center; margin: 16px 0 0; }
.kv dt { color: var(--grey-500); font-size: 16px; }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.kv .link-btn { font-size: 14px; }
.lines-table { width: 100%; border-collapse: collapse; }
.lines-table th { text-align: left; font-size: 14px; font-weight: 500; color: var(--grey-500); padding: 8px 4px; border-bottom: 1px solid var(--grey-100); }
.lines-table td { padding: 16px 4px; border-bottom: 1px solid var(--grey-100); }
.lines-table .num { text-align: right; white-space: nowrap; }

/* Sign in and registration */
.auth { max-width: 460px; margin: 48px auto 0; }
.auth-logo { width: 48px; height: 48px; margin-bottom: 24px; }
.auth h1 { font-size: 28px; line-height: 1.25; margin-bottom: 8px; }
.auth-intro { color: var(--grey-500); margin: 0 0 32px; }
.auth-box h2 { font-size: 20px; margin-bottom: 8px; }
.auth-box .line-meta { margin: 0 0 20px; }
.auth-box .field { margin-bottom: 16px; }
.auth-box .btn { margin-top: 8px; }
.auth-box p { margin: 16px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 16px; color: var(--grey-500); margin: 40px 0; font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--grey-100); }
.no-access { max-width: 560px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--grey-100); }
.footer-inner {
  max-width: var(--wide); margin: 0 auto; padding: 40px var(--pad) 32px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; font-size: 14px;
}
.footer-col h4 { font-size: 16px; font-weight: 500; margin-bottom: 20px; }
.footer-col p { margin: 0; color: var(--grey-500); max-width: 360px; }
.footer-col a { display: block; padding: 4px 0; color: var(--grey-500); font-weight: 500; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--wide); margin: 0 auto; padding: 16px var(--pad) 32px; display: flex; justify-content: space-between; gap: 1rem;
  font-size: 12px; color: var(--grey-500); width: 100%;
}

/* Added to the bag */
.added {
  position: fixed; top: calc(var(--hh) + 8px); right: var(--pad); width: 400px; max-width: calc(100vw - 32px); z-index: 40;
  background: var(--white); border-radius: 0 0 24px 24px; padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  animation: drop .25s ease;
}
body.header-hidden .added { top: 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.added-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 16px; font-weight: 500; }
.added-head span { display: inline-flex; align-items: center; gap: 8px; }
.added-head .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.added-head .icon-btn { width: 32px; height: 32px; }
.added-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; margin-bottom: 24px; }
.added-item .thumb { width: 96px; border-radius: 4px; }
.added-item .placeholder { font-size: 32px; }
.added-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Drawer for phones */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, .4); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--white); overflow-y: auto;
  padding: 16px 24px 32px; animation: slide .25s ease;
}
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.drawer-nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 24px; font-weight: 500; color: var(--ink);
}
.drawer-nav a::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(45deg); }
.drawer-account { margin-top: 40px; }
.drawer-account p { color: var(--grey-500); font-size: 20px; font-weight: 500; line-height: 1.3; margin: 0 0 24px; }
.drawer-account .row { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-account .links { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.drawer-account .links a, .drawer-account .links button { font-size: 16px; font-weight: 500; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }

/* Toast and dialog */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 100px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  transition: opacity .25s ease, transform .25s ease; max-width: min(92vw, 560px); z-index: 80; white-space: pre-line; font-size: 16px; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); border-radius: 16px; }
.dialog-layer { position: fixed; inset: 0; background: rgba(17, 17, 17, .4); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 1rem; }
.dialog { background: var(--white); padding: 32px; max-width: 460px; width: 100%; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.dialog p { white-space: pre-line; margin-top: 0; font-size: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing.no-filter .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --pad: 24px; }
  .header-inner { grid-template-columns: auto 1fr; height: 60px; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-search { width: 40px; background: none; }
  .header-search:hover { background: none; }
  .header-search input { display: none; }
  .header-search.open { position: absolute; left: var(--pad); right: var(--pad); width: auto; top: 10px; background: var(--grey-50); z-index: 2; }
  .header-search.open input { display: block; }
  .header-inner { position: relative; }
  .utility { display: none; }
  .listing, .listing.no-filter { grid-template-columns: 1fr; gap: 0; }
  .listing.no-filter .filter-col { display: none; }
  .filter-col { position: static; max-height: none; padding: 8px 0 16px; }
  .filter-list { display: flex; gap: 8px; flex-wrap: wrap; }
  .filter-list li { flex: 0 0 auto; }
  .filter-list a { padding: 6px 16px; border: 1px solid var(--grey-200); border-radius: 100px; }
  .filter-list a.active { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
  .grid, .listing.no-filter .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; }
  .carousel { grid-auto-columns: 72%; }
  .cat-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cat-grid > * { scroll-snap-align: start; }
  .cat-tile .btn { left: 24px; bottom: 24px; }
  .product { grid-template-columns: 1fr; gap: 24px; margin-top: 16px; }
  .product-image { position: static; border-radius: 0; margin: 0 calc(var(--pad) * -1); }
  .two-col, .payment-box { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  .quick { opacity: 1; transform: none; width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .hero-media.n2, .hero-media.n3 { grid-template-columns: 1fr; }
  .hero-media.n2 .hero-tile:not(:first-child), .hero-media.n3 .hero-tile:not(:first-child) { display: none; }
  .hero-media .hero-tile, .hero-media.n1 .hero-tile { aspect-ratio: 4 / 5; max-height: 70vh; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .added { right: 0; left: 0; top: 0; width: auto; max-width: none; border-radius: 0 0 24px 24px; }
  body.header-hidden .added { top: 0; }
}
@media (max-width: 600px) {
  .listing-tools .sort-wrap label { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row .order-amount { grid-column: 2; }
  .bag-line { grid-template-columns: 96px minmax(0, 1fr); }
  .thumb { width: 96px; }
  .section { margin-top: 56px; }
  .section-tools .round-btn { display: none; }
  .hero-copy h1 { font-size: 48px; }
  .hero-actions .btn { min-width: 140px; }
  .kv { grid-template-columns: max-content 1fr; }
  .kv .link-btn { grid-column: 2; justify-self: start; margin-top: -4px; }
  .added-actions { grid-template-columns: 1fr; }
}
