:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --paper: #f5f7fb;
  --soft: #edf1f6;
  --surface: rgba(255, 255, 255, .92);
  --accent: #f4b740;
  --accent-2: #315f8a;
  --primary: #2f6f9f;
  --primary-strong: #1f4e72;
  --primary-soft: #e8f0f7;
  --danger: #c83232;
  --hero-bg: url("/static/assets/background/pexels-pixabay-86754.jpg");
  --steel-gradient: linear-gradient(135deg, var(--primary-strong), var(--primary));
  --shadow: 0 18px 55px rgba(31, 41, 51, .12);
  --shadow-soft: 0 12px 32px rgba(31, 41, 51, .08);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --focus: 0 0 0 4px rgba(52, 127, 183, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 80px, rgba(244, 183, 64, .28), transparent 320px),
    linear-gradient(180deg, rgba(245, 247, 251, .78), rgba(245, 247, 251, .90) 520px, rgba(245, 247, 251, .96)),
    var(--hero-bg) center top / cover fixed,
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-main { padding: 32px 0 56px; }

.site-nav {
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(31, 41, 51, .10);
  backdrop-filter: blur(18px);
}

.site-nav__inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-brand img {
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(31, 41, 51, .14);
}

.site-search {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr 44px;
  align-items: center;
  width: min(680px, 100%);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 41, 51, .07);
}

.site-search select,
.site-search input {
  height: 44px;
  border: 0;
  background: transparent;
  outline: 0;
}

.site-search select {
  padding: 0 12px 0 18px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.site-search input { min-width: 0; padding: 0 14px; }

.icon-btn,
.nav-icon-link {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.icon-btn svg,
.nav-icon-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-btn--accent {
  border-color: rgba(49, 95, 138, .22);
  background: linear-gradient(135deg, #fff7df, var(--accent));
}

.nav-icon-link span,
.notif__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.site-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-menu .offcanvas-body {
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.mobile-menu-title,
.mobile-menu-section,
.mobile-menu-overview,
.mobile-guest-tip {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill,
.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.nav-pill svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-pill:hover,
.nav-pill--primary,
.nav-pill.is-active {
  background: var(--steel-gradient);
  border-color: transparent;
  color: #fff !important;
}

.nav-pill:hover { transform: translateY(-1px); }

.nav-pill--muted:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--ink) !important;
}

.nav-pill em {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

.nav-badge {
  background: var(--soft);
  color: var(--accent-2);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  max-width: 180px;
}

.nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switcher select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--ink);
  font-weight: 700;
}

.nav-user img,
.review-card img {
  border-radius: 50%;
}

.notif { position: relative; }

.notif__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  width: min(360px, 92vw);
  max-height: 70vh;
  overflow: auto;
  z-index: 1060;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notif__head,
.notif__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.notif__foot { justify-content: center; border-top: 1px solid var(--line); }

.flash-stack {
  position: fixed;
  top: 92px;
  right: max(18px, calc((100vw - 1320px) / 2));
  z-index: 1080;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
}

.flash-stack .alert {
  margin: 0;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px solid rgba(49, 95, 138, .22);
  border-radius: var(--radius-sm);
  background: rgba(232, 240, 247, .92);
  color: var(--primary-strong);
  font-size: 14px;
}

.guest-banner a { font-weight: 800; white-space: nowrap; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.shop-hero__copy {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(237, 241, 246, .92)),
    var(--hero-bg) center / cover;
  box-shadow: var(--shadow);
}

.shop-hero h1,
.product-detail h1,
.page-heading h1,
.auth-panel h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.shop-hero__lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.hero-metrics strong { color: var(--ink); }

.shop-hero__media {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.shop-hero__media img,
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.product-detail__gallery img {
  width: 100%;
  height: 100%;
  padding: clamp(12px, 3vw, 28px);
  object-fit: contain;
  background: #fff;
}

.thumb-xs {
  width: 110px;
  height: 70px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.thumb-xs > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.hero-product {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 36px rgba(31, 41, 51, .18);
}

.hero-product span,
.hero-product em { color: var(--muted); font-style: normal; }

.catalog-head,
.section-title,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.catalog-head h2,
.section-title h2,
.page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.catalog-count { color: var(--muted); }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sort-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.sort-form .form-select {
  width: auto;
  min-width: 160px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  background-color: #fff;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.category-strip a:hover { border-color: var(--primary); color: var(--primary-strong); }

.category-strip a.active {
  border-color: transparent;
  background: var(--steel-gradient);
  color: #fff;
}

.results-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 14px;
}

.results-context strong { color: var(--ink); }
.results-context a { color: var(--primary-strong); font-weight: 800; white-space: nowrap; }

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 41, 51, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 95, 138, .28);
  box-shadow: var(--shadow-soft);
}

.product-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.product-card__image img { transition: transform .3s ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 222px;
  padding: 16px;
}

.product-card__meta,
.rating-line,
.service-list,
.cart-item__controls small,
.summary-note,
.checkout-line span,
.address-card span {
  color: var(--muted);
  font-size: 13px;
}

.product-card__meta,
.product-card__foot,
.rating-line,
.review-card__head,
.summary-row,
.summary-total,
.checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__meta span:last-child {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #197044;
  font-size: 11px;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.product-card h3 a { text-decoration: none; }

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-card__foot { margin-top: auto; }
.product-card__foot strong { font-size: 20px; }

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-card__actions form { margin: 0; }
.product-card__actions .btn { min-height: 36px; }

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

.product-detail--marketplace {
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1fr) 310px;
  gap: 22px;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.product-breadcrumb a {
  text-decoration: none;
}

.product-detail__gallery {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.product-detail__info {
  padding: clamp(8px, 3vw, 28px) 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
}

.stars { color: #f5a400; letter-spacing: 0; }

.product-detail__desc {
  margin: 20px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.price-line {
  display: grid;
  gap: 4px;
  margin: 22px 0;
}

.price-line strong {
  font-size: 42px;
  line-height: 1;
}

.price-line span { color: var(--muted); }

.market-price-panel {
  display: grid;
  gap: 5px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, var(--soft));
}

.market-price-panel span,
.market-price-panel em {
  color: var(--muted);
  font-style: normal;
}

.market-price-panel strong {
  color: var(--danger);
  font-size: 42px;
  line-height: 1;
}

.commerce-promises {
  display: grid;
  gap: 10px;
}

.commerce-promises > div,
.purchase-card,
.product-info-grid > article,
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 21, 21, .06);
}

.commerce-promises > div {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.commerce-promises span {
  color: var(--muted);
  font-size: 13px;
}

.purchase-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.purchase-card__price {
  color: var(--danger);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.purchase-card p,
.purchase-card li {
  color: var(--muted);
  font-size: 13px;
}

.purchase-card form {
  display: grid;
  gap: 10px;
}

.purchase-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 44px minmax(54px, 1fr) 44px;
  overflow: hidden;
  border: 1px solid rgba(49, 95, 138, .28);
  border-radius: var(--radius-sm);
  background: #fff;
}

.quantity-stepper button {
  min-height: 44px;
  border: 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.quantity-stepper button:hover { background: var(--primary-soft); color: var(--primary-strong); }

.quantity-stepper input.form-control {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: center;
  box-shadow: none;
  appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button { margin: 0; appearance: none; }

.quantity-stepper--compact {
  grid-template-columns: 38px 52px 38px;
  width: 128px;
}

.quantity-stepper--compact button { min-height: 38px; }

.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.product-info-grid > article {
  padding: 18px;
}

.product-info-grid h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.product-spec-desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.product-info-grid dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-info-grid dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.product-info-grid dt,
.feature-list {
  color: var(--muted);
}

.product-info-grid dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.related-section {
  margin-top: 34px;
}

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

.related-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  text-decoration: none;
}

.related-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.related-card span {
  color: var(--muted);
  font-size: 12px;
}

.related-card strong {
  line-height: 1.25;
}

.related-card em {
  color: var(--danger);
  font-style: normal;
  font-weight: 900;
}

.buy-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.buy-box__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
}

.service-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.service-list span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.reviews-section { margin-top: 42px; }

.review-form {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-card__head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-card p { margin: 12px 0 6px; }
.review-card time { color: var(--muted); font-size: 13px; }

.cart-layout,
.checkout-layout,
.auth-layout,
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.cart-list,
.checkout-items,
.ticket-list {
  display: grid;
  gap: 12px;
}

.cart-item,
.checkout-line,
.order-summary,
.auth-panel,
.auth-aside,
.empty-state,
.support-compose,
.ticket-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 10px 34px rgba(31, 41, 51, .08);
  backdrop-filter: blur(16px);
}

.support-layout {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1fr);
}

.support-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.support-stats > div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 21, 21, .06);
}

.support-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-stats strong {
  font-size: 28px;
  line-height: 1;
}

.support-compose {
  position: sticky;
  top: 98px;
  padding: clamp(22px, 4vw, 38px);
}

.support-compose h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.support-compose p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ticket-list--admin {
  max-width: 980px;
}

.ticket-card {
  padding: 18px;
}

.ticket-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ticket-card h2,
.ticket-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

.ticket-card__head p,
.ticket-card time {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.status-pill--answered { background: #eef2ff; color: #364fc7; }
.status-pill--closed { background: #f1f3f5; color: #495057; }

.ticket-message,
.ticket-reply {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ticket-message p,
.ticket-reply p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.ticket-replies {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ticket-reply {
  border-left: 4px solid var(--accent-2);
  background: #fff;
}

.ticket-reply--customer {
  border-left-color: var(--ink);
  background: var(--paper);
}

.ticket-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ticket-actions details {
  position: relative;
}

.ticket-actions summary {
  list-style: none;
  cursor: pointer;
}

.ticket-actions summary::-webkit-details-marker {
  display: none;
}

.ticket-inline-form {
  display: grid;
  gap: 10px;
  width: min(560px, 86vw);
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 21, 21, .08);
}

.admin-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-reply-form__actions {
  display: grid;
  grid-template-columns: 180px auto;
  justify-content: end;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  padding: 14px;
}

.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 30px;
  max-width: 720px;
}

.checkout-progress > * {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.checkout-progress > * + *::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -1px;
  width: 20px;
  height: 1px;
  background: var(--line);
}

.checkout-progress b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.checkout-progress .is-current { color: var(--primary-strong); }
.checkout-progress .is-current b {
  border-color: transparent;
  background: var(--steel-gradient);
  color: #fff;
}

.checkout-progress a:hover { color: var(--primary-strong); }

.cart-item img {
  width: 120px;
  height: 96px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cart-item__image { display: block; }

.cart-item__body {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-item h2 {
  margin: 0;
  font-size: 18px;
}

.cart-item h2 a { text-decoration: none; }
.cart-item h2 a:hover { color: var(--primary-strong); }

.cart-item__body span { color: var(--muted); }

.cart-item__controls {
  width: 128px;
  display: grid;
  gap: 4px;
}

.cart-item__remove {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}

.cart-item__remove:hover { color: var(--danger); }

.cart-item__price {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 110px;
}

.cart-item__price span { color: var(--muted); }
.cart-item__price strong { color: var(--danger); }

.order-summary {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.order-summary,
.checkout-line,
.address-card { border-radius: var(--radius); }

.order-summary h2 { margin: 0; font-size: 22px; }

.summary-row,
.summary-total {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.summary-total strong {
  font-size: 24px;
  color: var(--danger);
}

.checkout-line {
  padding: 18px;
}

.checkout-line > div {
  display: grid;
  gap: 4px;
}

.checkout-line > div:last-child {
  justify-items: end;
}

.address-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

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

.payment-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-form legend {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 800;
}

.payment-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.payment-options label {
  align-items: flex-start;
  min-height: 64px;
  padding: 11px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.payment-options label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(52, 127, 183, .12);
}

.payment-options input { margin-top: 2px; accent-color: var(--primary); }

.payment-options label span {
  display: grid;
  gap: 2px;
  font-weight: 800;
}

.payment-options small { color: var(--muted); font-size: 11px; font-weight: 600; }

.address-select-form { display: grid; gap: 18px; }

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

.address-choice {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.address-choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 2px rgba(52, 127, 183, .12);
}

.address-choice input { position: absolute; opacity: 0; pointer-events: none; }

.address-choice__check {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.address-choice:has(input:checked) .address-choice__check {
  border: 6px solid var(--primary);
}

.address-choice__content { display: grid; gap: 4px; min-width: 0; }
.address-choice__content > span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.address-choice__content em {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #197044;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.address-select-actions { display: flex; justify-content: space-between; gap: 10px; }

.admin-product-form {
  max-width: 720px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 21, 21, .06);
}

.admin-image-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-image-preview img {
  width: 180px;
  height: 120px;
  object-fit: fill;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-order-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-order-stats > div,
.admin-table-card,
.admin-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 21, 21, .06);
}

.admin-order-stats > div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.admin-order-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-order-stats strong {
  font-size: 30px;
  line-height: 1;
}

.admin-table-card {
  overflow: hidden;
}

.admin-table-card thead th {
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-order-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.admin-order-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
}

.admin-detail-card {
  padding: 18px;
}

.admin-detail-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-detail-card h2 {
  margin: 0;
  font-size: 22px;
}

.admin-detail-card__head strong {
  font-size: 26px;
  color: var(--danger);
}

.admin-order-items {
  display: grid;
  gap: 12px;
}

.admin-order-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-order-item img,
.admin-order-item__placeholder {
  width: 96px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-order-item__media {
  display: block;
  text-decoration: none;
}

.admin-order-item h3 a,
.order-product-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.admin-order-item h3 a:hover,
.order-product-link:hover {
  text-decoration: underline;
}

.order-thumb {
  width: 76px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.admin-order-item img {
  object-fit: fill;
}

.admin-order-item__placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.admin-order-item h3 {
  margin: 0;
  font-size: 17px;
}

.admin-order-item p,
.admin-order-item span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-order-item__amount {
  display: grid;
  justify-items: end;
  min-width: 120px;
}

.admin-order-item__amount strong {
  color: var(--danger);
  font-size: 18px;
}

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

.customer-order-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(21, 21, 21, .06);
}

.customer-order-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-order-card h2 {
  margin: 0;
  font-size: 20px;
}

.customer-order-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.customer-order-card__side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.customer-order-card__side strong {
  color: var(--danger);
  font-size: 24px;
}

.detail-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.detail-kv span {
  color: var(--muted);
}

.detail-kv strong {
  text-align: right;
  word-break: break-word;
}

.detail-address {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
  line-height: 1.65;
}

.auth-layout {
  max-width: 980px;
  margin: 24px auto;
}

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

.register-panel {
  max-width: 900px;
  margin: 0 auto;
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(260px, .44fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1060px;
  margin: 18px auto;
}

.profile-card,
.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.profile-card {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.profile-card h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.profile-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(31, 41, 51, .16);
}

.profile-panel {
  padding: clamp(22px, 4vw, 36px);
}

.avatar-picker {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
  backdrop-filter: blur(12px);
}

.avatar-picker h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.avatar-picker span {
  color: var(--muted);
}

.profile-avatar-picker {
  margin-top: 8px;
}

.avatar-mode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.avatar-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.avatar-mode input {
  accent-color: var(--primary);
}

.avatar-upload-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #b8c3d1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.avatar-upload-box small {
  color: var(--muted);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 12px;
}

.avatar-option {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  cursor: pointer;
}

.avatar-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid transparent;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 21, 21, .08);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.avatar-option input:checked + img {
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 111, 159, .24);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
  gap: 22px;
  max-width: 1100px;
  margin: 18px auto;
  align-items: start;
}

.login-card,
.login-commercial {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 41, 51, .14);
}

.login-card {
  padding: clamp(24px, 4vw, 46px);
  background: rgba(255, 255, 255, .82);
  min-height: 560px;
  backdrop-filter: blur(18px);
}

.login-card__head h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.login-card__head p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.guest-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 240, 247, .72);
  backdrop-filter: blur(10px);
}

.guest-callout p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-commercial {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 560px;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 78% 8%, rgba(244, 183, 64, .38), transparent 280px),
    linear-gradient(135deg, rgba(20, 31, 45, .78), rgba(47, 111, 159, .56)),
    var(--hero-bg) center / cover;
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
}

.login-commercial::before {
  content: "";
  position: absolute;
  inset: auto -42px -42px auto;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

.login-commercial::after {
  content: "";
  position: absolute;
  inset: 90px auto auto 34px;
  width: 90px;
  height: 90px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  transform: rotate(14deg);
}

.login-commercial__badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 41, 51, .18);
}

.login-commercial__top {
  display: grid;
  gap: 20px;
}

.login-commercial h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 420px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.login-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-stats span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.promise-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .78);
}

.promise-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.auth-panel,
.auth-aside {
  padding: clamp(24px, 4vw, 42px);
}

.auth-panel h1 { font-size: clamp(30px, 4vw, 48px); }

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-aside {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(31, 41, 51, .92), rgba(47, 111, 159, .78)),
    var(--hero-bg) center / cover;
  color: #fff;
}

.auth-aside span { color: var(--accent); font-weight: 800; }
.auth-aside h2 { margin: 12px 0 18px; }
.auth-aside ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, .76); }

.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 260px;
  padding: 32px;
}

.empty-state--compact { min-height: 120px; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn { border-radius: 999px; font-weight: 750; }
.btn-dark {
  background: linear-gradient(135deg, #245a84, #347fb7);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(47, 111, 159, .22);
}
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.form-control,
.form-select {
  border-radius: 8px;
  border-color: rgba(49, 95, 138, .22);
  background-color: rgba(255, 255, 255, .70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(52, 127, 183, .72);
  box-shadow: 0 0 0 .2rem rgba(52, 127, 183, .16);
}

.pagination .page-link {
  color: var(--ink);
  border-color: var(--line);
}

.pagination .active .page-link {
  background: var(--steel-gradient);
  border-color: transparent;
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background: #f1f3f5;
  border-color: var(--line);
  pointer-events: none;
}

@media (max-width: 1199.98px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .site-menu.offcanvas {
    --bs-offcanvas-width: 100vw;
    width: 100vw !important;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-left: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(245, 247, 251, .97), rgba(245, 247, 251, .995)),
      var(--hero-bg) center / cover;
  }

  .site-menu .offcanvas-header {
    align-items: flex-start;
    min-height: 118px;
    padding: max(18px, env(safe-area-inset-top)) 18px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(14px);
    flex: 0 0 auto;
  }

  .mobile-menu-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .mobile-menu-title img {
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(31, 41, 51, .14);
  }

  .mobile-menu-title h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
  }

  .mobile-menu-title span {
    display: block;
    max-width: 240px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-menu-section {
    display: block;
    margin: 2px 0 0;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .mobile-menu-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-menu-overview > div {
    display: grid;
    gap: 4px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 51, .06);
  }

  .mobile-menu-overview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-menu-overview strong {
    font-size: 26px;
    line-height: 1;
  }

  .mobile-guest-tip {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: var(--muted);
    line-height: 1.55;
  }

  .site-nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-actions {
    justify-self: end;
    gap: 6px;
  }

  .site-actions .icon-btn,
  .site-actions .nav-icon-link,
  .site-actions .navbar-toggler {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
  }

  .site-search {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    grid-template-columns: minmax(82px, 30%) 1fr 42px;
    border-radius: 14px;
  }

  .site-search select,
  .site-search input,
  .site-search .icon-btn {
    height: 42px;
  }

  .site-search select {
    width: 100%;
    min-width: 0;
    padding: 0 8px 0 12px;
  }

  .site-search input {
    padding: 0 10px;
  }

  .site-menu .offcanvas-body {
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px 20px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .nav-links a,
  .nav-pill,
  .nav-badge {
    justify-content: flex-start;
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(31, 41, 51, .06);
    overflow: hidden;
  }

  .nav-pill span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .nav-pill svg {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .nav-pill--primary,
  .nav-pill:hover {
    background: var(--steel-gradient);
    border-color: transparent;
    color: #fff !important;
    transform: none;
  }

  .nav-user {
    max-width: none;
    justify-content: flex-start;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .language-switcher select {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background-color: #fff;
  }

  .notif { align-self: center; }

  .notif__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 72px;
    width: auto;
    max-height: min(70vh, 520px);
  }

  .product-detail,
  .product-detail--marketplace,
  .cart-layout,
  .checkout-layout,
  .auth-layout,
  .login-shell,
  .profile-shell,
  .admin-order-detail,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .shop-hero__copy,
  .shop-hero__media {
    min-height: 300px;
  }

  .product-detail__gallery,
  .order-summary,
  .purchase-card,
  .profile-card,
  .admin-order-side,
  .support-compose {
    position: static;
  }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-form { grid-template-columns: 1fr; }
  .purchase-card { position: static; }
}

@media (max-width: 800px) {
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero__copy,
  .shop-hero__media { min-height: 300px; }
}

@media (max-width: 640px) {
  .site-main { padding-top: 20px; }
  .site-nav__inner { min-height: 0; }
  .site-brand img {
    width: 30px;
    height: 30px;
  }
  .site-brand span {
    max-width: 118px;
    font-size: 16px;
  }
  .site-search { grid-template-columns: 88px 1fr 42px; }
  .site-search select { font-size: 13px; }
  .site-search input { font-size: 14px; }
  .shop-hero__copy { padding: 24px; }
  .shop-hero__media { min-height: 250px; }
  .shop-hero h1 { font-size: 42px; }
  .catalog-head,
  .section-title,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .catalog-toolbar,
  .sort-form { width: 100%; justify-content: space-between; }
  .sort-form .form-select { flex: 1; min-width: 0; }
  .results-context { align-items: flex-start; flex-direction: column; gap: 7px; }
  .product-grid { grid-template-columns: 1fr; }
  .nav-links {
    grid-template-columns: 1fr;
  }
  .mobile-menu-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-info-grid,
  .related-grid,
  .address-choice-grid,
  .payment-options {
    grid-template-columns: 1fr;
  }
  .checkout-progress { justify-content: space-between; margin-bottom: 22px; }
  .checkout-progress > * { padding: 0 4px; font-size: 11px; flex-direction: column; gap: 5px; text-align: center; }
  .checkout-progress > * + *::before { top: 14px; left: -12px; width: 20px; }
  .address-select-actions { flex-direction: column-reverse; }
  .address-select-actions .btn { width: 100%; }
  .flash-stack { top: 78px; right: 16px; width: calc(100vw - 32px); }
  .guest-callout,
  .avatar-mode-list,
  .login-stats,
  .admin-order-stats,
  .support-stats {
    grid-template-columns: 1fr;
  }
  .login-commercial {
    min-height: auto;
  }
  .cart-item {
    grid-template-columns: 86px 1fr;
  }
  .cart-item img {
    width: 86px;
    height: 86px;
  }
  .cart-item__body {
    flex-direction: column;
  }
  .cart-item__price {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
  }
  .buy-box__row { grid-template-columns: 1fr; }
  .admin-image-preview { grid-template-columns: 1fr; }
  .admin-image-preview img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .admin-order-item {
    grid-template-columns: 76px 1fr;
  }
  .admin-order-item img,
  .admin-order-item__placeholder {
    width: 76px;
    height: 64px;
  }
  .admin-order-item__amount {
    grid-column: 1 / -1;
    justify-items: start;
  }
  .customer-order-card {
    align-items: stretch;
    flex-direction: column;
  }
  .customer-order-card__side {
    justify-items: start;
  }
  .ticket-card__head,
  .admin-reply-form__actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card,
  .product-card__image img,
  .skip-link,
  .category-strip a { transition: none; }
}
