:root {
  --ink: #171412;
  --muted: #6f675f;
  --paper: #f7f4ef;
  --panel: #fffaf3;
  --line: #ded3c4;
  --gold: #9b7a3f;
  --wine: #6e263d;
  --forest: #203a32;
  --shadow: 0 24px 70px rgba(23, 20, 18, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 211, 196, 0.8);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand-block,
.header-actions,
.desktop-nav,
.top-category-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions {
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
}

.brand-block h1,
.hero h2,
.section-heading h2,
.panel h2,
.admin-sidebar h2 {
  margin: 0;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 4px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-tab {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
}

.nav-link.active {
  border-color: rgba(155, 122, 63, 0.32);
  background: rgba(155, 122, 63, 0.14);
  color: var(--ink);
}

.admin-tab.active {
  border-color: var(--gold);
  color: var(--ink);
}

.top-category-nav {
  gap: 3px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  background: #fffdf9;
  color: var(--ink);
}

.icon-button,
.secondary-button,
.primary-button {
  min-height: 42px;
  border-radius: 4px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.primary-button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf9;
}

.primary-button:disabled,
.secondary-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.cart-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}

.cart-toggle span,
.cart-toggle strong {
  white-space: nowrap;
}

.header-actions select {
  width: auto;
  min-width: 112px;
}

.hero {
  position: relative;
  min-height: min(620px, 76vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #211a16;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(23, 20, 18, 0.82), rgba(23, 20, 18, 0.24)),
    url("/uploads/product-images/200873135848275_2.png"),
    url("../../backend/uploads/product-images/200873135848275_2.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding: 0 clamp(18px, 6vw, 72px) clamp(34px, 8vw, 92px);
  color: #fffaf3;
}

.hero-content h2 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
  max-width: 760px;
}

.hero-content p:last-child {
  max-width: 520px;
  color: rgba(255, 250, 243, 0.82);
  font-size: 18px;
}

.product-search-band {
  padding: 18px clamp(18px, 5vw, 64px) 0;
}

.product-search-form {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.product-search-form input {
  min-height: 42px;
}

.view {
  display: none;
  padding: clamp(28px, 5vw, 64px);
}

.view.active,
.admin-panel.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading.compact {
  align-items: center;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.category-pill {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 16px;
  border-radius: 4px;
}

.category-pill.active {
  border-color: var(--gold);
  background: #efe4d2;
}

.product-category-list {
  display: grid;
  gap: clamp(30px, 5vw, 58px);
}

.product-category-section {
  display: grid;
  gap: 18px;
}

.product-category-section + .product-category-section {
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.category-section-heading {
  margin-bottom: 0;
}

.category-section-heading h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.category-section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.product-card {
  border-bottom: 1px solid var(--line);
  background: #fffaf3;
}

.product-image-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
}

.product-card img,
.product-image-button img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

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

.product-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.product-card p {
  min-height: 44px;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.55;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.panel,
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.narrow-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.stacked-form,
.grid-form {
  display: grid;
  gap: 16px;
}

label span,
.form-field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.admin-sidebar {
  align-self: start;
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}

.admin-content {
  min-width: 0;
}

.admin-login-page {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
}

.admin-login-page .admin-login {
  width: min(480px, 100%);
}

.admin-login,
.admin-panel {
  padding: 24px;
}

.admin-panel {
  display: none;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
}

.grid-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.full-span {
  grid-column: 1 / -1;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.editor-toolbar button {
  border: 1px solid var(--line);
  background: #fffdf9;
  min-height: 34px;
  padding: 0 10px;
}

.rich-editor {
  min-height: 180px;
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 14px;
  outline: none;
  cursor: text;
  line-height: 1.7;
  user-select: text;
  -webkit-user-select: text;
}

.rich-textarea,
.rich-composer {
  width: 100%;
  min-height: 220px;
  font: inherit;
}

.rich-composer {
  overflow-y: auto;
  white-space: normal;
}

.rich-composer:empty::before {
  content: attr(data-placeholder);
  color: #9c8f80;
  pointer-events: none;
}

.rich-composer p,
.rich-composer div {
  margin: 0 0 10px;
}

.rich-editor:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(155, 122, 63, 0.14);
}

.admin-list,
.result-list,
.cart-items {
  display: grid;
  gap: 12px;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.order-customer-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  margin: 10px 0;
}

.order-customer-details p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.order-customer-details span {
  display: inline-block;
  min-width: 76px;
  color: var(--muted);
}

.order-customer-details strong {
  color: var(--ink);
  font-weight: 600;
}

.order-admin-actions {
  display: grid;
  gap: 10px;
  min-width: 150px;
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.45);
  color: #b42318;
}

.inline-form {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(460px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header,
.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.cart-summary {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.customer-service-widget {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 46;
  display: grid;
  gap: 8px;
}

.customer-float-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(23, 20, 18, 0.18);
  color: #fff;
  text-decoration: none;
}

.customer-float-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.customer-float-button.telegram {
  background: #229ed9;
}

.customer-float-button.facebook {
  background: #1877f2;
}

.customer-float-button.instagram {
  background: radial-gradient(circle at 30% 100%, #feda75 0 18%, #fa7e1e 32%, #d62976 56%, #962fbf 76%, #4f5bd5 100%);
}

.customer-float-button.tiktok {
  background: #050505;
}

.customer-float-button.back-top {
  border: 1px solid rgba(23, 20, 18, 0.14);
  background: #ececec;
  color: var(--ink);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 20, 18, 0.56);
}

.modal {
  position: relative;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: clamp(20px, 4vw, 38px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
  min-height: 36px;
  min-width: 36px;
  padding: 0 10px;
}

.daily-notice-modal .modal {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 46px);
}

.daily-notice-content {
  display: grid;
  gap: 18px;
  padding-top: 16px;
  text-align: center;
}

.daily-notice-content h2 {
  margin: 0;
  color: #b42318;
}

.daily-notice-content p {
  margin: 0;
  line-height: 1.9;
}

.daily-notice-content a {
  color: var(--gold);
  font-weight: 700;
}

.daily-notice-content .primary-button {
  justify-self: center;
  min-width: 160px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 28px;
}

.product-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: start;
}

.product-media-panel {
  display: grid;
  gap: 14px;
}

.product-gallery {
  position: relative;
  overflow: hidden;
  background: #211a16;
  touch-action: pan-y;
}

.product-gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.product-gallery img {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  display: block;
  background: #211a16;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 250, 243, 0.72);
  background: rgba(23, 20, 18, 0.48);
  color: #fffaf3;
  font-size: 30px;
}

.gallery-arrow.prev {
  left: 12px;
}

.gallery-arrow.next {
  right: 12px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.gallery-dots button.active {
  background: var(--gold);
}

.product-info-panel {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 18px;
}

.product-info-panel h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-price {
  font-size: 26px;
}

.product-summary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: 110px minmax(140px, auto) minmax(140px, auto);
  gap: 12px;
  align-items: end;
}

.quantity-control input {
  min-height: 42px;
}

.rich-content {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  line-height: 1.8;
}

.product-detail-notice {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: rgba(180, 35, 24, 0.06);
}

.product-detail-notice h3 {
  margin: 0 0 8px;
  color: #b42318;
}

.product-detail-notice p {
  margin: 0;
}

.product-detail-notice a {
  color: var(--gold);
  font-weight: 700;
}

.rich-content img,
.rich-content video,
.rich-editor img,
.rich-editor video {
  max-width: 100%;
  height: auto;
}

.rich-content video,
.rich-editor video {
  display: block;
  margin: 16px 0;
  background: #211a16;
}

.related-products-section {
  margin-top: clamp(34px, 6vw, 78px);
  padding-top: clamp(24px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

.related-heading {
  margin-bottom: 18px;
}

.related-heading h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.related-controls {
  display: flex;
  gap: 8px;
}

.related-controls .secondary-button {
  min-width: 42px;
  padding: 0 12px;
  font-size: 24px;
}

.related-carousel {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.related-product-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 88px) / 5);
  gap: 22px;
}

.related-product-card {
  min-width: 0;
  scroll-snap-align: start;
  border-bottom: 1px solid var(--line);
  background: #fffaf3;
}

.related-product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.related-product-body {
  display: grid;
  gap: 8px;
  padding: 14px 0 16px;
}

.related-product-body h4 {
  min-height: 46px;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.rich-media {
  position: relative;
  margin: 16px 0;
}

.media-remove-button {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
  min-height: 30px;
  padding: 0 10px;
}

.product-detail img,
.product-detail video {
  width: 100%;
  display: block;
  background: #221d19;
}

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

.cart-page-layout,
.payment-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 24px;
  align-items: start;
}

.cart-page-items {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fffdf9;
}

.cart-line img {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 38px 34px 38px;
  align-items: center;
  justify-items: center;
  gap: 6px;
}

.quantity-stepper .secondary-button {
  min-height: 36px;
  padding: 0;
  width: 38px;
}

.cart-page-summary,
.payment-form,
.payment-page-box {
  padding: 22px;
}

.cart-page-summary {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(222, 211, 196, 0.68);
}

.summary-line.total {
  border-bottom: 0;
  font-size: 18px;
}

.payment-page-box {
  position: sticky;
  top: 102px;
}

.payment-summary-list {
  display: grid;
  gap: 2px;
}

.payment-success {
  padding: 14px;
  border: 1px solid var(--forest);
  background: rgba(32, 58, 50, 0.12);
}

.payment-complete {
  display: grid;
  gap: 16px;
}

.payment-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f0e7d8;
  border: 1px solid var(--line);
}

.payment-waiting-panel {
  max-width: 780px;
}

.payment-confirm-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.payment-countdown {
  margin: 0;
  text-align: center;
  color: #d32222;
  font-weight: 700;
}

.payment-countdown strong {
  font-variant-numeric: tabular-nums;
}

.payment-transfer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.7;
}

.payment-transfer-row > span:first-child {
  flex: 0 0 auto;
}

.payment-required-amount {
  color: #e02020;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.payment-address-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.payment-copy-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.payment-qr-box {
  width: min(260px, 100%);
  min-height: 240px;
  justify-self: center;
  border-style: solid;
  background: #fff;
}

.payment-warning,
.payment-help {
  margin: 0;
  color: #ff4b5c;
  line-height: 1.8;
}

.payment-tips-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.payment-tips-panel h3 {
  margin: 0;
  color: #ff650f;
}

.payment-tips-panel p {
  margin: 0;
  line-height: 1.8;
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}

.field-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.copy-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.copy-address-button {
  white-space: nowrap;
  color: var(--gold);
}

.copy-status {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--forest);
  font-size: 13px;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--gold);
  color: var(--muted);
  text-align: center;
}

.qr-box img,
.qr-box svg {
  width: min(220px, 100%);
  height: auto;
}

.auto-qr {
  display: block;
  background: #fff;
  shape-rendering: crispEdges;
}

.hidden {
  display: none !important;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(30px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #171412;
  color: #fffaf3;
}

.site-footer h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
}

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

.footer-grid p {
  color: rgba(255, 250, 243, 0.74);
  line-height: 1.7;
}

.footer-grid a {
  color: #fffaf3;
  font-weight: 700;
}

.footer-payment-list span {
  display: block;
}

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

  .admin-layout,
  .product-detail,
  .product-detail-page,
  .checkout-grid,
  .cart-page-layout,
  .payment-page-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .product-info-panel,
  .cart-page-summary,
  .payment-page-box {
    position: static;
  }

  .payment-confirm-card,
  .payment-tips-panel {
    padding: 18px;
  }
}

@media (max-width: 680px) {
  body[data-active-view="product"] .hero,
  body[data-active-view="cart"] .hero,
  body[data-active-view="orders"] .hero,
  body[data-active-view="payment"] .hero,
  body[data-active-view="shop"][data-active-category]:not([data-active-category="all"]) .hero {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
    max-width: 100%;
  }

  .desktop-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .product-search-band {
    padding: 14px clamp(18px, 4vw, 56px) 0;
  }

  .product-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-category-nav {
    flex: 0 0 auto;
  }

  .grid-form {
    grid-template-columns: 1fr;
  }

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

  .customer-service-widget {
    right: 12px;
    bottom: 16px;
    gap: 7px;
  }

  .customer-float-button {
    width: 42px;
    height: 42px;
  }

  .order-customer-details {
    grid-template-columns: 1fr;
  }

  .product-card-body {
    padding: 12px 0 14px;
  }

  .product-card h3 {
    font-size: 16px;
  }

  .product-card p {
    min-height: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-actions .secondary-button,
  .product-actions .primary-button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 14px;
  }

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

  .related-controls {
    display: none;
  }

  .related-carousel {
    margin-right: calc(clamp(18px, 4vw, 56px) * -1);
    padding-right: clamp(18px, 4vw, 56px);
  }

  .related-product-track {
    grid-auto-columns: minmax(190px, 58vw);
    gap: 14px;
  }

  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .cart-line img {
    width: 72px;
  }

  .cart-line > strong,
  .cart-line > button,
  .quantity-stepper {
    grid-column: 2;
    justify-self: start;
  }

  .payment-transfer-row {
    flex-wrap: wrap;
  }

  .payment-transfer-row.address-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .payment-address-text {
    font-size: 12px;
  }

  .payment-qr-box {
    min-height: 220px;
  }

  .hero-content h2 {
    font-size: 42px;
  }

  .section-heading,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .copy-address-row {
    grid-template-columns: 1fr;
  }

  .related-product-track {
    grid-auto-columns: minmax(210px, 76vw);
  }
}
