:root {
  --nav: #292929;
  --nav-soft: #333333;
  --deep: #000000;
  --accent: #ff8562;
  --warm: #ff8562;
  --paper: #ffffff;
  --soft: #f8f8f8;
  --ink: #000000;
  --muted: #777777;
  --line: #dddddd;
  --tile: #ebebeb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: TildaSans, Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(280px, 620px) auto;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding: 10px 6vw;
  color: #ffffff;
  background: rgba(41, 41, 41, 0.9);
  border-bottom: 0;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 0;
  object-fit: cover;
  display: block;
}

.brand strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.82;
}

.site-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  color: var(--ink);
  font: 300 15px/1.35 TildaSans, Arial, sans-serif;
}

.site-search input:focus {
  outline: 0;
}

.site-search button {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 18px;
  background: #000000;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

.top-action-link {
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  padding: 9px 12px;
  color: #ffffff;
  background: transparent;
}

.top-action-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--nav);
}

.top-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-transform: none;
}

.top-user-email {
  display: block;
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 0;
  padding: 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

.top-logout-button {
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  padding: 9px 12px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.top-logout-button:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.top-user-email:hover {
  text-decoration: underline;
}

.cart-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 4px;
  padding: 8px 10px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-nav-button span {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  color: var(--nav);
  font-size: 12px;
}

.hero {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 90px 6vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(41, 41, 41, 0.78), rgba(41, 41, 41, 0.22)),
    url("/site/assets/banner1.jpg") center top/cover;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.23;
}

h2 {
  margin-bottom: 10px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.23;
}

.hero p:last-child,
.section-head p {
  max-width: 720px;
  color: inherit;
  font-size: 18px;
  line-height: 1.55;
}

.section {
  padding: 90px 6vw;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  border-radius: 0;
  background: var(--nav);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--category-bg);
  background-position: center;
  background-size: cover;
  opacity: 0.96;
  transition: transform 220ms ease, opacity 220ms ease;
}

.category-card:hover::before {
  transform: scale(1.04);
  opacity: 1;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.64));
}

.category-card span {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  text-transform: uppercase;
}

.popular-shops {
  padding-top: 18px;
  background: var(--soft);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.shop-card {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  border-color: #bdbdbd;
}

.shop-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000000;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.shop-card small {
  color: var(--muted);
  font-size: 13px;
}

.shop-page {
  display: grid;
  gap: 28px;
}

.shop-page-cover {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
  background-position: center;
  background-size: cover;
}

.shop-page-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.18));
}

.shop-page-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  max-width: 760px;
  min-height: 340px;
  padding: 38px;
  color: #fff;
}

.shop-page-logo {
  width: 112px;
  height: 112px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.shop-page-logo-fallback {
  display: inline-grid;
  place-items: center;
  color: var(--nav);
  font-size: 44px;
  font-weight: 800;
}

.shop-page-info .eyebrow,
.shop-page-info h1,
.shop-page-info p {
  color: #fff;
}

.shop-page-info h1 {
  margin: 4px 0 10px;
  font-size: 42px;
  line-height: 1.05;
}

.shop-page-info p {
  max-width: 620px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.shop-page-products-head span {
  color: var(--muted);
  font-weight: 700;
}

.catalog {
  background: #fff;
  border-top: 0;
}

.catalog-head {
  align-items: end;
}

.ghost-link,
#resetFilters {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 80ms ease;
}

.ghost-link:hover,
#resetFilters:hover {
  border-color: #bdbdbd;
  background: var(--soft);
}

.ghost-link:active,
#resetFilters:active {
  transform: translateY(1px);
}

.ghost-link:disabled,
.ghost-link.is-loading {
  cursor: progress;
  border-color: #bdbdbd;
  background: #eeeeee;
  color: #777777;
  opacity: 1;
}

.ghost-link.is-loading {
  position: relative;
}

.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 34px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.filters label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

select {
  min-width: 260px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: block;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  transition: opacity 180ms ease;
}

.product-card:hover {
  opacity: 0.88;
}

.product-image {
  aspect-ratio: 1 / 1;
  background: var(--tile);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 16px 0 0;
}

.product-brand {
  color: var(--accent);
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
}

.product-title {
  min-height: 54px;
  margin: 8px 0 12px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

.product-code {
  margin: -4px 0 12px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.35;
}

.product-seller,
.detail-seller {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-size: 18px;
  font-weight: 400;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.stock {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  display: none;
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
}

.product-detail {
  border-top: 1px solid var(--line);
  background: #fff;
}

.detail-back {
  display: inline-block;
  margin-bottom: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: 0;
  background: var(--tile);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery {
  position: relative;
}

.gallery-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: rgba(17, 17, 17, 0.68);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-button:hover {
  background: rgba(17, 17, 17, 0.86);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: rgba(17, 17, 17, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.detail-info {
  padding-top: 4px;
}

.detail-brand {
  margin-bottom: 10px;
}

.detail-title {
  margin-bottom: 18px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.23;
}

.detail-code {
  margin: -8px 0 18px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.35;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-price-row .price {
  font-size: 22px;
}

.detail-stock {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}

.product-detail-description {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.buy-button,
.quick-buy-button {
  min-width: 220px;
  border: 0;
  border-radius: 4px;
  padding: 14px 30px;
  font: 700 14px/1 TildaSans, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.buy-button {
  background: #000000;
  color: #fff;
}

.buy-button:hover {
  background: var(--nav);
}

.quick-buy-button {
  border: 1px solid #000000;
  background: #fff;
  color: var(--deep);
}

.quick-buy-button:hover {
  background: var(--soft);
}

.buy-button:disabled {
  cursor: default;
  background: var(--nav-soft);
}

.product-detail-empty {
  display: block;
}

.info-page {
  min-height: 58vh;
  border-top: 1px solid var(--line);
  background: #fff;
}

.legal-page {
  min-height: 58vh;
  border-top: 1px solid var(--line);
  background: #fff;
}

.legal-document {
  max-width: 900px;
}

.legal-document h1 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--deep);
}

.legal-lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.legal-document section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.legal-document section h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.legal-document section p {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.about-highlight {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.about-highlight strong {
  font-size: 20px;
}

.about-highlight span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.payment-page {
  max-width: 860px;
}

.payment-page h1 {
  margin-bottom: 34px;
  color: var(--deep);
  font-family: TildaSans, Arial, sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.23;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px;
}

.payment-block h2 {
  margin-bottom: 18px;
  color: var(--deep);
  font-family: TildaSans, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.17;
}

.payment-block p {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.payment-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #e5e5e5;
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.payment-badges-soft span {
  background: #f0f0f0;
  color: #8a8a8a;
}

.checkout-page {
  min-height: 68vh;
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 22px;
  padding-bottom: 22px;
}

.checkout-form {
  max-width: 1470px;
  margin: 0 auto;
}

.checkout-form h1 {
  margin-bottom: 16px;
  color: var(--deep);
  font-family: TildaSans, Arial, sans-serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.17;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.checkout-column {
  min-width: 0;
  transition: filter 180ms ease, opacity 180ms ease;
}

.checkout-column-locked {
  filter: blur(1px);
  opacity: 0.36;
  pointer-events: none;
  user-select: none;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--deep);
}

.checkout-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.checkout-step h2 {
  margin: 0;
  font: 600 17px/1.15 TildaSans, Arial, sans-serif;
}

.checkout-field {
  display: grid;
  gap: 3px;
  margin-bottom: 9px;
}

.checkout-field span,
.pickup-info span {
  color: #808895;
  font-size: 15px;
  line-height: 1.15;
}

.checkout-field b {
  color: #d71920;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #9aa1aa;
  border-radius: 0;
  padding: 2px 0 6px;
  background: #fff;
  color: var(--deep);
  font: 300 15px/1.25 TildaSans, Arial, sans-serif;
}

.checkout-field textarea {
  resize: vertical;
  min-height: 52px;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  outline: 0;
  border-bottom-color: var(--deep);
}

.checkout-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 8px 0;
  color: var(--deep);
  font-size: 14px;
  line-height: 1.25;
}

.checkout-check-inline {
  display: inline-grid;
  grid-template-columns: 22px auto;
  margin-top: 8px;
}

.checkout-check input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.pickup-info {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin: 10px 0 6px;
}

.pickup-info p {
  margin: 5px 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.pickup-info strong {
  font-size: 15px;
}

.checkout-map {
  width: 100%;
  height: 120px;
  border: 0;
  background: var(--soft);
}

.checkout-summary {
  margin: 8px 0 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-summary h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.checkout-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.checkout-line strong {
  color: var(--deep);
  white-space: nowrap;
}

.checkout-line-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--deep);
  font-size: 15px;
}

.checkout-empty p {
  margin-bottom: 8px;
  color: var(--muted);
}

.checkout-empty a {
  text-decoration: underline;
}

.checkout-submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 0;
  padding: 13px 16px;
  background: var(--nav);
  color: #fff;
  font: 700 16px/1 TildaSans, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.checkout-submit:disabled {
  cursor: default;
  background: #e8ebef;
  color: #b8bdc3;
}

.checkout-notice {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

.checkout-notice-success {
  color: #1f6b3a;
}

.checkout-notice-error {
  color: #b42318;
}

.account-page {
  min-height: 68vh;
  border-top: 1px solid var(--line);
  background: #fff;
}

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.account-head h1,
.account-block h1 {
  margin-bottom: 10px;
}

.account-status {
  color: var(--muted);
  font-size: 16px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
}

.account-auth-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-block {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.account-block-muted {
  background: var(--soft);
}

.account-block h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.17;
}

.account-auth-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  background: #fff;
}

.account-auth-card h1,
.account-auth-card h2 {
  margin: 0 0 22px;
  font-size: 42px;
  line-height: 1.23;
  font-weight: 600;
}

.account-auth-card .account-form {
  flex: 1;
  grid-template-rows: auto auto auto 1fr;
}

.account-auth-card .buy-button,
.account-auth-card .quick-buy-button {
  min-height: 56px;
  font-size: 18px;
  line-height: 1.2;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form label,
.admin-author-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-form input,
.account-form select,
.account-form textarea,
.admin-token-form input,
.admin-author-grid input,
.admin-author-grid select,
.admin-author-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: 300 15px/1.35 TildaSans, Arial, sans-serif;
}

.account-form textarea,
.admin-author-grid textarea {
  resize: vertical;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.password-field input {
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.password-toggle {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 0 4px 4px 0;
  background: var(--soft);
  color: var(--ink);
  font: 700 12px/1 TildaSans, Arial, sans-serif;
  text-transform: none;
  cursor: pointer;
}

.password-toggle:hover {
  background: #e8e2d8;
}

.file-link {
  display: inline-block;
  width: fit-content;
  color: var(--deep);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: underline;
  text-transform: none;
}

.file-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.image-thumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.image-thumb {
  display: block;
  width: 82px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--tile);
  overflow: hidden;
}

.image-thumb:hover {
  border-color: var(--deep);
}

.image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.form-notice {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-notice-success {
  color: #1f6b3a;
}

.form-notice-error,
.danger-link {
  color: #b42318;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.account-row strong,
.account-row span {
  display: block;
}

.account-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.account-row .account-row-comment {
  color: #b42318;
  line-height: 1.35;
}

.account-row-main {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-row-main:hover strong {
  text-decoration: underline;
}

.account-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.author-product-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-product-form-actions .buy-button,
.author-product-form-actions .quick-buy-button {
  width: fit-content;
  min-width: min(220px, 100%);
}

.author-start-actions {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(220px, auto);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.author-start-actions .quick-buy-button,
.author-start-actions .buy-button {
  min-width: min(280px, 100%);
}

.author-shop-entry {
  display: grid;
  gap: 16px;
}

.author-shop-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-shop-shortcuts .buy-button,
.author-shop-shortcuts .quick-buy-button {
  width: fit-content;
  min-width: min(240px, 100%);
}

.author-shop,
.author-products,
.author-shop-settings {
  display: grid;
  gap: 18px;
}

.author-shop-head,
.author-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.author-shop-head h2,
.author-products-head h3 {
  margin: 0;
}

.author-shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-shop-tabs button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: 700 13px/1 TildaSans, Arial, sans-serif;
  cursor: pointer;
}

.author-shop-tabs button.active {
  border-color: var(--nav);
  background: var(--nav);
  color: #fff;
}

.author-product-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
}

.author-shop-settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-shop-settings-actions .buy-button,
.author-shop-settings-actions .quick-buy-button {
  width: auto;
}

.empty-inline {
  margin: 0;
  color: var(--muted);
}

.admin-token-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-token-form input {
  width: min(320px, 42vw);
}

.admin-section {
  display: grid;
  gap: 14px;
}

.admin-section + .admin-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.admin-section-head span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
}

.admin-section-toggle {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--soft);
  cursor: pointer;
  list-style: none;
}

.admin-section-toggle::-webkit-details-marker {
  display: none;
}

.admin-section-toggle::marker {
  content: "";
}

.admin-section-toggle h2::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.admin-shop-section[open] .admin-section-toggle h2::after {
  content: "-";
}

.admin-shop-section .admin-list {
  margin-top: 12px;
}

.admin-application {
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.admin-application summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
}

.admin-application summary::marker {
  color: var(--muted);
}

.admin-application summary span {
  min-width: 0;
  color: var(--deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-application summary small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-application summary small.admin-history-status-approved {
  color: #1f6b3a;
}

.admin-application summary small.admin-history-status-rejected {
  color: #b42318;
}

.admin-application-body {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.admin-application-data {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-application-data div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.admin-application-data dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-application-data dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-application-data a {
  color: var(--deep);
  text-decoration: underline;
}

.admin-author {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.admin-author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-registration .admin-author-grid {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-contract-field {
  min-width: 0;
}

.admin-contract-field input {
  border-color: var(--line);
  font-weight: 300;
}

.admin-contract-field small {
  display: none;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 14px;
}

.admin-action-notice {
  flex-basis: 100%;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.admin-action-notice-error {
  color: #b42318;
}

.admin-account-section.section {
  padding: 24px 4vw 22px;
}

.admin-account-section .account-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-account-section .account-head .eyebrow {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.1;
}

.admin-account-section .account-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.admin-account-section .account-head .ghost-link {
  padding: 8px 14px;
  min-height: 34px;
}

.admin-account-section .admin-section {
  gap: 6px;
}

.admin-account-section .admin-section + .admin-section {
  margin-top: 12px;
  padding-top: 10px;
}

.admin-account-section .admin-section-head h2 {
  font-size: 21px;
  line-height: 1.1;
}

.admin-account-section .admin-section-head span {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  font-size: 14px;
}

.admin-account-section .empty-inline {
  font-size: 14px;
  line-height: 1.2;
}

.admin-account-section .account-list {
  gap: 6px;
}

.admin-account-section .admin-section-toggle {
  padding: 9px 12px;
}

.admin-account-section .admin-section-toggle h2::after {
  width: 20px;
  height: 20px;
  font-size: 16px;
}

.admin-account-section .admin-shop-section .admin-list {
  margin-top: 6px;
}

.admin-account-section .admin-application summary {
  gap: 10px;
  padding: 9px 12px;
}

.admin-account-section .admin-application summary span {
  font-size: 15px;
  line-height: 1.15;
}

.admin-account-section .admin-application summary small {
  font-size: 11px;
  line-height: 1.15;
}

.admin-account-section .admin-application-body {
  gap: 10px;
  padding: 0 12px 12px;
}

.admin-account-section .admin-application-data {
  gap: 8px;
  padding-top: 10px;
}

.admin-account-section .admin-application-data div {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
}

.admin-account-section .admin-application-data dt {
  font-size: 11px;
}

.admin-account-section .admin-application-data dd {
  font-size: 13px;
  line-height: 1.3;
}

.admin-account-section .admin-author-grid {
  gap: 8px;
}

.admin-account-section .admin-registration .admin-author-grid {
  padding-top: 10px;
}

.admin-account-section .admin-author-grid label {
  gap: 4px;
  font-size: 11px;
}

.admin-account-section .admin-author-grid input,
.admin-account-section .admin-author-grid select,
.admin-account-section .admin-author-grid textarea {
  padding: 7px 9px;
  font-size: 13px;
  line-height: 1.25;
}

.admin-account-section .admin-actions {
  gap: 6px;
}

.admin-account-section .admin-actions span {
  font-size: 12px;
}

.admin-account-section .admin-actions .ghost-link {
  padding: 7px 10px;
  font-size: 12px;
}

.admin-account-section .admin-action-notice {
  font-size: 12px;
}

.admin-product-body {
  gap: 18px;
}

.admin-product-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-product-photo {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--tile);
  border: 1px solid var(--line);
}

.admin-product-data {
  padding-top: 0;
  border-top: 0;
}

.admin-product-comment {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-product-comment textarea {
  min-height: 92px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  text-transform: none;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.34);
}

.cart-backdrop[hidden],
.cart-drawer[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 31;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -18px 0 42px rgba(0, 0, 0, 0.18);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: #fff;
  background: var(--nav);
}

.cart-head h2 {
  margin: 0;
  font-size: 22px;
}

.cart-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-item-image {
  width: 76px;
  height: 76px;
  border-radius: 0;
  object-fit: cover;
  background: var(--tile);
}

.cart-item-title {
  margin: 0 0 5px;
  font-family: TildaSans, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.25;
}

.cart-item-brand,
.cart-item-stock {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-price {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-button,
.cart-remove {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--deep);
  cursor: pointer;
}

.cart-qty-button {
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-remove {
  margin-left: auto;
  padding: 7px 9px;
  font-size: 12px;
}

.cart-footer {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 18px;
}

.cart-clear-button,
.checkout-button {
  width: 100%;
  border-radius: 4px;
  padding: 14px 18px;
  font: 700 16px/1 TildaSans, Arial, sans-serif;
  cursor: pointer;
}

.cart-clear-button {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--deep);
}

.checkout-button {
  border: 0;
  background: #000000;
  color: #fff;
}

.cart-clear-button:disabled,
.checkout-button:disabled {
  cursor: default;
}

.cart-clear-button:disabled {
  color: #9a9a9a;
  background: #f3f3f3;
}

.checkout-button:disabled {
  background: #9a9a9a;
}

footer {
  color: #fff;
  background: var(--nav);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.2fr) minmax(260px, 0.7fr);
  gap: 26px;
  padding: 26px 6vw;
  background: var(--nav);
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  line-height: 1.25;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .category-grid,
  .product-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-page-info {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .account-layout,
  .admin-author-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section-head,
  .account-head {
    display: block;
  }

  .admin-token-form {
    align-items: stretch;
    margin-top: 14px;
  }

  .admin-token-form,
  .account-row {
    display: grid;
  }

  .admin-application summary,
  .admin-product-layout,
  .admin-application-data div {
    grid-template-columns: 1fr;
  }

  .admin-product-photo {
    width: min(220px, 100%);
  }

  .admin-application summary {
    gap: 6px;
  }

  .admin-token-form input {
    width: 100%;
  }

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .author-start-actions {
    grid-template-columns: 1fr;
  }

  .author-start-actions .quick-buy-button,
  .author-start-actions .buy-button {
    width: 100%;
  }

  .shop-page-cover,
  .shop-page-info {
    min-height: 280px;
  }

  .shop-page-info {
    padding: 24px;
  }

  .shop-page-info h1 {
    font-size: 32px;
  }

  .checkout-step h2 {
    font-size: 18px;
  }

  .checkout-page {
    padding-top: 18px;
  }

  .checkout-form h1 {
    margin-bottom: 14px;
  }

  .checkout-grid {
    gap: 22px;
  }

  .checkout-map {
    height: 96px;
  }

  .pickup-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .top-actions {
    margin-top: 16px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 360px;
    padding: 70px 6vw;
  }

  .category-grid,
  .product-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    display: block;
  }

  #resetFilters {
    margin-top: 12px;
  }

  select {
    width: 100%;
    min-width: 0;
  }
}
