:root {
  --bg: #f6f3ee;
  --surface: #fffdf8;
  --surface-2: #eef3f0;
  --ink: #252525;
  --muted: #6e6a63;
  --line: #ded8ce;
  --accent: #1f5d50;
  --accent-2: #a04735;
  --gold: #b58b45;
  --shadow: 0 18px 45px rgba(40, 34, 25, 0.1);
  --radius: 8px;
}
.gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.gallery-thumbnails button{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;padding:4px}.gallery-thumbnails button.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.gallery-thumbnails img{display:block;width:100%;aspect-ratio:1;object-fit:contain}

.variant-selector{display:grid;gap:7px;margin:18px 0}.variant-selector label{color:#626b65;font-size:13px;font-weight:700}.variant-selector select{width:100%;border:1px solid #cfd6d1;border-radius:7px;background:#fff;padding:11px 12px;font:inherit}.variant-selector select:focus{border-color:#205b45;outline:2px solid rgba(32,91,69,.12)}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-bar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(220px, 420px) auto;
  gap: 20px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 12px;
}

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

.brand-logo {
  display: block;
  width: min(220px, 28vw);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  color: var(--surface);
  border-radius: 50%;
  font-size: 14px;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.search {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  background: transparent;
}

.search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
}

.quick-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.quick-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.quick-nav span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: white;
  font-size: 12px;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 14px;
  overflow: visible;
}

.category-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.category-nav a:hover,
.category-nav a.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.category-menu {
  position: relative;
  flex: 0 0 auto;
}

.category-menu summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}

.category-menu summary::-webkit-details-marker { display: none; }
.category-menu.active summary,
.category-menu[open] summary,
.category-menu summary:hover {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

.category-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  width: min(520px, calc(100vw - 48px));
  max-height: min(520px, 70vh);
  overflow-y: auto;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(31, 40, 36, 0.16);
  padding: 10px;
}

.category-menu-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 12px;
}

.category-menu-panel img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.mobile-tabbar {
  display: none;
}

.customer-service-float {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(31, 93, 80, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}

.customer-service-float:hover {
  transform: translateY(-2px);
  background: #174a40;
}

.customer-service-float svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 89;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(35, 43, 40, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.has-customer-service .back-to-top {
  bottom: 92px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #f2f7f5;
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .customer-service-float {
    right: 14px;
    bottom: 82px;
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    right: 15px;
    bottom: 82px;
    width: 44px;
    height: 44px;
  }

  .has-customer-service .back-to-top {
    bottom: 142px;
  }
}

.app-shell {
  max-width: 1180px;
  min-height: 62vh;
  margin: 0 auto;
  padding: 28px 24px 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  min-height: 420px;
}

.hero-slider-only {
  grid-template-columns: minmax(0, 1fr);
}

.hero-slider-only .hero-slider {
  min-height: 460px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 0;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  margin: 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 78px);
  font-weight: 500;
  line-height: 0.96;
}

.hero p,
.page-title p {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  text-align: center;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
}

.btn.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn.danger {
  border-color: #b23b2e;
  background: #b23b2e;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.56));
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: relative;
  max-width: 430px;
}

.slide-content h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.slider-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin: 54px 0 18px;
}

.section-head h2,
.panel h2,
.page-title h1 {
  margin: 0;
}

.section-head h2,
.panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.section-head p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.shop-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.shop-benefits > div {
  display: grid;
  gap: 3px;
  padding: 20px 24px;
}

.shop-benefits > div + div {
  border-left: 1px solid var(--line);
}

.shop-benefits strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

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

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(248, 248, 245, 0.96));
  content: "";
}

.category-tile img {
  width: 82px;
  height: 82px;
  min-height: 0;
  margin-bottom: 38px;
  padding: 0;
  object-fit: contain;
  transition: transform 280ms ease;
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile > span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.category-tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.category-tile small {
  color: var(--muted);
  font-size: 12px;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card-link {
  display: block;
}

.product-card-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform 260ms ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--accent);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(25, 35, 30, 0.08);
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.product-card-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 9px 14px;
}

.product-card-category {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-card-rating {
  display: flex;
  gap: 6px;
  align-items: center;
}

.product-card-rating span,
.product-rating-line > span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.product-card-rating small {
  color: var(--muted);
}

.quick-add {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.favorite-button {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c83f45;
  padding: 0;
  font-size: 25px;
  line-height: 1;
}

.favorite-button:hover {
  background: #fff0f1;
}

.favorite-button.is-favorite {
  color: #d32635;
}

.favorite-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-rating-line {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 4px 0 14px;
  font-size: 13px;
}

.product-rating-line a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-sales-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.product-rating-line a + .product-sales-count {
  margin-left: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.product-sales-count svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-favorite {
  width: 40px;
  height: 40px;
  font-size: 29px;
}

.product-info h3 {
  min-height: 42px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.price {
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
}

.category-band {
  margin-top: 44px;
}

.page-title {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pager button,
.qty button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 13px;
}

.pager button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
}

.gallery-main {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 12px 30px rgba(40, 34, 25, 0.08);
}

.gallery-main img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 16px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .gallery-main:hover img {
    transform: scale(1.035);
  }
}

.detail-copy {
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-copy h1 {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.05;
}

.delivery-summary {
  display: grid;
  gap: 4px;
  margin: 20px 0 4px;
  border-left: 3px solid var(--accent);
  background: rgba(238, 243, 240, 0.72);
  padding: 13px 15px;
}

.delivery-summary strong {
  font-size: 14px;
}

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

.purchase-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.purchase-assurance > * {
  display: grid;
  gap: 2px;
  padding-right: 10px;
}

.purchase-assurance strong {
  color: var(--ink);
  font-size: 12px;
}

.purchase-assurance small {
  color: var(--muted);
  font-size: 10px;
}

.mobile-purchase-bar {
  display: none;
}

.detail-text,
.policy-page p {
  color: var(--muted);
}

.policy-page {
  max-width: 920px;
  margin-inline: auto;
}

.policy-content {
  color: var(--muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.product-description {
  width: 100%;
  max-width: 920px;
  overflow-wrap: anywhere;
}

.product-description-section {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.product-description h2,
.product-description h3 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.product-description p {
  margin: 10px 0;
}

.product-description ul,
.product-description ol {
  padding-left: 24px;
}

.product-description img {
  display: block;
  height: auto;
  width: 100%;
  max-height: 720px;
  margin: 18px 0;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface-2);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .product-description img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow);
  }
}

.product-description a {
  color: var(--accent);
  text-decoration: underline;
}

.product-category {
  display: grid;
  gap: 3px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
}

.product-category:hover {
  border-color: var(--accent);
}

.product-category span,
.product-category small {
  color: var(--muted);
  font-size: 13px;
}

.product-category strong {
  color: var(--accent);
  font-size: 17px;
}

.detail-images {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.detail-images img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.related-products {
  margin-top: 54px;
}

.product-reviews {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 132px;
  outline: none;
}

.review-section-head {
  align-items: center;
}

.review-summary {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-summary > strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.review-summary > div {
  display: grid;
  gap: 2px;
}

.review-summary span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.review-stars {
  color: #d79a18;
  font-size: 17px;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.review-list {
  border-top: 1px solid var(--line);
}

.review-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 30px 20px;
}

.review-empty strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.review-empty p {
  margin: 0;
  font-size: 13px;
}

.review-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #edf2ee;
  color: var(--accent);
  font-weight: 700;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 4px;
}

.review-meta > span {
  border-radius: 4px;
  background: #edf3ef;
  color: var(--accent);
  padding: 2px 6px;
  font-size: 11px;
}

.review-meta time {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.review-item p {
  margin: 8px 0 0;
  color: #555d58;
  line-height: 1.7;
}

.review-form {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.review-form h3 {
  margin: 0;
  font-size: 18px;
}

.review-form p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.review-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.review-form textarea {
  min-height: 120px;
  resize: vertical;
}

.review-form .btn {
  width: 100%;
}

.review-submit-notice {
  display: grid;
  gap: 4px;
  border-left: 3px solid #d79a18;
  background: #fff8e7;
  padding: 10px 12px;
  color: #6f531f;
  font-size: 12px;
}

.review-submit-notice[hidden] {
  display: none;
}

.review-submit-notice a {
  color: var(--accent);
  font-weight: 700;
}

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

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

.panel,
.cart-line,
.order-line,
.login-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel {
  padding: 20px;
}

.cart-line,
.order-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
}

.cart-line img,
.order-line img {
  width: 86px;
  height: 86px;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-line h3,
.order-line h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

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

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  border-bottom: 0;
  font-size: 20px;
  font-weight: 700;
}

.login-box {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.member-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.member-card,
.member-stats,
.member-actions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.member-card {
  background: var(--ink);
  color: #fff;
}

.member-card h2 {
  margin: 8px 0;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.member-card p {
  margin: 0;
  color: #d8d0c4;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.member-stats strong {
  display: block;
  color: var(--accent-2);
  font-size: 26px;
}

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

.member-actions {
  display: grid;
  gap: 10px;
}

.account-tools {
  display: grid;
  gap: 10px;
}

.account-tools button {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
}

.account-tools button:hover {
  border-color: var(--accent);
}

.account-tools strong {
  font-size: 15px;
}

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

.login-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
}

.login-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  padding: 5px 10px;
  font-size: 13px;
}

.empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #28251f;
  color: #f7f1e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 8px 0;
  color: #d8d0c4;
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  transform: translateY(18px);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

body.zoom-open {
  overflow: hidden;
}

.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(18, 18, 16, 0.94);
}

.image-zoom-modal.open {
  display: block;
}

.image-zoom-stage {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: auto;
  place-items: center;
  padding: 76px 28px 28px;
}

.image-zoom-stage img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.16s ease;
  user-select: none;
}

.image-zoom-toolbar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 101;
  display: flex;
  gap: 7px;
}

.image-zoom-toolbar button {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 20, 18, 0.8);
  color: #fff;
  padding: 0 11px;
}

.image-zoom-toolbar [data-zoom-reset] {
  min-width: 64px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .header-bar,
  .hero,
  .product-detail,
  .cart-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-preview {
    grid-template-columns: 1fr;
  }

  .quick-nav {
    justify-content: flex-start;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 560px) {
  .storefront-page {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .storefront-page.is-product-route {
    padding-bottom: calc(130px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-bar,
  .app-shell,
  .category-nav,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(190px, 56vw);
    height: 44px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    display: none;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search input {
    padding: 9px 13px;
  }

  .search button {
    min-width: 76px;
    padding: 0 13px;
  }

  .quick-nav {
    display: none;
  }

  .category-nav {
    display: none;
    gap: 4px;
    scrollbar-width: thin;
  }

  .category-nav.mobile-open {
    position: fixed;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 29;
    display: grid;
    max-height: 42vh;
    flex-wrap: wrap;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(31, 40, 36, 0.2);
    padding: 12px;
  }

  .category-menu { position: static; }
  .category-menu summary { border-color: var(--line); }
  .category-menu-panel {
    position: static;
    grid-template-columns: 1fr;
    width: auto;
    max-height: 28vh;
    margin-top: 6px;
    box-shadow: none;
  }

  .category-nav a {
    border-color: var(--line);
    padding: 7px 11px;
    font-size: 13px;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 62px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    box-shadow: 0 -6px 22px rgba(31, 40, 36, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    padding: 2px;
    font-size: 11px;
  }

  .mobile-tabbar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar a.active,
  .mobile-tabbar button.active {
    color: var(--accent);
    font-weight: 700;
  }

  .mobile-tab-icon-wrap {
    position: relative;
    display: grid;
    place-items: center;
  }

  .mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    display: grid;
    min-width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 9px;
    background: #d32635;
    color: #fff;
    padding: 0 4px;
    font-size: 9px;
    line-height: 1;
  }

  .storefront-page .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .app-shell {
    padding-top: 20px;
    padding-bottom: 38px;
  }

  .hero {
    min-height: auto;
    gap: 18px;
  }

  .hero-copy {
    padding: 12px 0;
  }

  .hero h1,
  .page-title h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .hero-actions,
  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 18px;
  }

  .hero-slider {
    min-height: 320px;
  }

  .hero-slider-only .hero-slider {
    min-height: 300px;
  }

  .shop-benefits {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .shop-benefits > div {
    padding: 13px 16px;
  }

  .shop-benefits > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .category-tile { min-height: 132px; }

  .category-tile img {
    width: 66px;
    height: 66px;
    min-height: 0;
    margin-bottom: 36px;
  }

  .category-tile > span {
    right: 11px;
    bottom: 10px;
    left: 11px;
    display: grid;
    gap: 2px;
  }

  .category-tile strong { font-size: 14px; }

  .category-tile small {
    font-size: 10px;
  }

  .slide {
    padding: 20px;
  }

  .slide-content {
    padding-right: 52px;
  }

  .slide-content h2 {
    font-size: 27px;
  }

  .slider-controls {
    right: 14px;
    bottom: 14px;
    flex-direction: column;
  }

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

  .product-info {
    gap: 6px;
    padding: 10px;
  }

  .product-info h3 {
    min-height: 39px;
    font-size: 13px;
  }

  .product-badge {
    top: 7px;
    left: 7px;
  }

  .product-card-footer {
    min-height: 44px;
    padding: 7px 10px;
  }

  .quick-add {
    width: 30px;
    height: 30px;
  }

  .product-info .meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .product-info .price {
    font-size: 16px;
  }

  .category-band,
  .related-products,
  .product-description-section,
  .product-reviews {
    margin-top: 34px;
  }

  .page-title,
  .section-head {
    display: block;
  }

  .page-title {
    margin-bottom: 18px;
  }

  .section-head {
    margin-top: 36px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .section-head .btn,
  .page-title .btn {
    width: 100%;
    margin-top: 12px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .review-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-form {
    order: -1;
  }

  .review-meta time {
    width: 100%;
    margin-left: 0;
  }

  .product-detail {
    gap: 20px;
  }

  .detail-copy {
    padding-top: 2px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .purchase-assurance {
    gap: 8px;
  }

  .mobile-purchase-bar {
    position: fixed;
    right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 31;
    display: grid;
    grid-template-columns: 46px minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.98);
    padding: 9px 12px;
    box-shadow: 0 -8px 24px rgba(31, 40, 36, 0.1);
    backdrop-filter: blur(12px);
  }

  .mobile-purchase-bar > button {
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
  }

  .mobile-buy-favorite {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .mobile-add-cart {
    border: 1px solid var(--accent);
    background: #fff;
    color: var(--accent);
  }

  .mobile-buy-now {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
  }

  .is-product-route .customer-service-float {
    bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .is-product-route .back-to-top {
    bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .is-product-route.has-customer-service .back-to-top {
    bottom: calc(192px + env(safe-area-inset-bottom));
  }

  .is-product-route .toast {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }

  .product-category {
    margin: 17px 0;
  }

  .detail-images {
    gap: 10px;
    margin-top: 30px;
  }

  .cart-line,
  .order-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

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

  .cart-line > .qty {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }

  .cart-line .qty .danger {
    margin-left: auto;
  }

  .order-line .status {
    grid-column: 2;
    justify-self: start;
  }

  .panel,
  .login-box,
  .member-card,
  .member-stats,
  .member-actions {
    padding: 15px;
  }

  .member-stats {
    gap: 4px;
  }

  .member-stats strong {
    font-size: 22px;
  }

  .account-tools button {
    min-height: 58px;
  }

  .pager {
    flex-wrap: wrap;
  }

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

  .toast {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    text-align: center;
  }

  .image-zoom-stage {
    padding: 70px 12px 20px;
  }

  .image-zoom-stage img {
    max-width: 96vw;
    max-height: 78vh;
  }

  .gallery-main img {
    padding: 10px;
  }

  .image-zoom-toolbar {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 360px) {
  .product-grid {
    gap: 8px;
  }

  .product-info {
    padding: 8px;
  }
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  max-width: 880px;
  margin: 0 auto 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
  padding: 48px;
  background: #27342e;
  color: #fff;
}

.auth-intro h2 {
  margin: 14px 0;
  font-size: 30px;
  line-height: 1.25;
}

.auth-intro p {
  margin: 0;
  color: #d5ded9;
}

.auth-form {
  align-content: center;
  padding: 38px;
  border: 0;
  border-radius: 0;
}

.auth-form h2,
.account-section h2 {
  margin: 0;
}

.auth-form p,
.account-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(31, 37, 33, 0.12);
  font-weight: 700;
}

.captcha-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 8px;
}

.captcha-row strong {
  display: grid;
  min-height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2ec;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.captcha-row button {
  border: 0;
  background: transparent;
  color: var(--accent);
  white-space: nowrap;
}

.auth-submit {
  width: 100%;
}

.auth-demo {
  font-size: 12px;
  text-align: center;
}

.account-dashboard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 60px;
}

.account-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.account-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #27342e;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.account-sidebar > span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}

.account-sidebar nav {
  display: grid;
  margin: 10px 0;
  border-top: 1px solid var(--line);
}

.account-sidebar nav a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.account-sidebar nav a.active {
  color: var(--accent);
  font-weight: 700;
}

.account-main {
  display: grid;
  gap: 18px;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-summary div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.account-summary div:last-child {
  border-right: 0;
}

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

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

.account-summary strong {
  margin-top: 5px;
  font-size: 24px;
}

.account-section {
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.account-section-head {
  margin-bottom: 18px;
}

.account-order {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.account-order:first-child {
  border-top: 0;
}

.account-order img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface-2);
}

.account-order div {
  display: grid;
  gap: 3px;
}

.account-order span,
.account-order small {
  color: var(--muted);
}

.order-total {
  justify-items: end;
}

.pay-order-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
}

.pay-order-link:hover {
  background: var(--ink);
}

.account-empty {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

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

.account-shortcuts a {
  display: grid;
  gap: 5px;
  min-height: 104px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.account-shortcuts a:hover {
  border-color: var(--accent);
}

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

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

.account-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.account-form input,
.account-form select {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.account-form .wide {
  grid-column: 1 / -1;
}

.account-form .btn {
  justify-self: start;
}

.password-form {
  max-width: 640px;
}

.favorites-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 580px;
  }

  .auth-intro {
    min-height: auto;
    padding: 30px;
  }

  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    position: static;
  }

  .account-sidebar nav {
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .account-sidebar nav a {
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    text-align: center;
  }

  .account-sidebar nav a:last-child {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .auth-form {
    padding: 22px 16px;
  }

  .auth-intro {
    padding: 24px 20px;
  }

  .auth-intro h2 {
    font-size: 24px;
  }

  .captcha-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .captcha-row button {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px 0;
  }

  .account-sidebar nav {
    grid-template-columns: 1fr;
  }

  .account-sidebar nav a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .account-summary div {
    padding: 14px 10px;
  }

  .account-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-summary div {
    border-bottom: 1px solid var(--line);
  }

  .account-summary div:nth-child(2n) {
    border-right: 0;
  }

  .account-summary div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .account-shortcuts {
    grid-template-columns: 1fr;
  }

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

  .account-section {
    padding: 16px;
  }

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

  .account-form .wide {
    grid-column: auto;
  }

  .account-order {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .account-order img {
    width: 54px;
    height: 54px;
  }

  .order-total {
    grid-column: 2;
    justify-items: start;
  }
}

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

.checkout-column {
  display: grid;
  gap: 16px;
}

.checkout-heading h2,
.checkout-summary h2 {
  margin: 0;
}

.checkout-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-address .account-form {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.checkout-address .account-form .wide {
  grid-column: auto;
}

.saved-address-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #f4f8f5;
  padding: 14px;
  cursor: pointer;
}

.checkout-address-select {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-address-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: #f4f8f5;
  padding: 10px 12px;
  color: var(--ink);
}

.checkout-address-select select:disabled {
  border-color: var(--line);
  background: #ededeb;
  color: #777d78;
}

.checkout-address-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.saved-address-choice > input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.saved-address-choice > span {
  display: grid;
  gap: 4px;
}

.saved-address-choice small,
.saved-address-choice span span {
  color: var(--muted);
}

.address-required {
  margin-top: 14px;
  border-left: 3px solid #a77520;
  background: #faf5e9;
  padding: 10px 12px;
  color: #6f531f;
}

.address-form.is-locked input:disabled,
.address-form.is-locked select:disabled {
  border-color: #d9d9d4;
  background: #ededeb;
  color: #777d78;
  opacity: 1;
  cursor: not-allowed;
}

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

.checkout-login {
  margin-top: 16px;
}

.checkout-summary > .btn {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-title {
  align-items: end;
}

.checkout-step {
  color: var(--muted);
  font-size: 13px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  margin-bottom: 60px;
}

.payment-main,
.payment-sidebar {
  display: grid;
  gap: 16px;
}

.payment-sidebar {
  position: sticky;
  top: 108px;
}

.payment-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.payment-panel h2 {
  margin: 0;
  font-size: 19px;
}

.payment-panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.payment-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.payment-method {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
}

.payment-method.selected {
  border-color: var(--accent);
  background: #f4f8f5;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.payment-method input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.payment-method > span:last-child {
  display: grid;
  gap: 3px;
}

.payment-method small {
  color: var(--muted);
  line-height: 1.35;
}

.payment-mark {
  display: grid;
  width: 48px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #27342e;
  font-size: 11px;
  font-weight: 800;
}

.card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-brands span {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 700;
}

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

.payment-form-grid label,
.payment-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.payment-form-grid .wide {
  grid-column: 1 / -1;
}

.payment-form-grid input,
.payment-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

.payment-notice {
  display: grid;
  gap: 6px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  padding: 18px;
}

.paypay-notice strong {
  color: #d9272e;
  font-size: 24px;
}

.payment-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
}

.payment-choice-note {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.payment-choice-note > div {
  display: grid;
  gap: 5px;
}

.payment-choice-note span {
  color: var(--muted);
  font-size: 13px;
}

.payment-action {
  flex: 0 0 auto;
  min-width: 128px;
}

.order-payment-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.order-payment-summary > div span {
  color: var(--muted);
}

.order-payment-summary .payment-total {
  margin-top: 4px;
  border-bottom: 0;
  font-size: 17px;
}

.payment-total strong {
  color: var(--accent);
  font-size: 22px;
}

.payment-address h2 {
  margin-bottom: 12px;
}

.payment-address p {
  margin: 7px 0;
  color: var(--muted);
}

.payment-address > span {
  color: var(--muted);
}

.payment-address .address-form {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.payment-address .address-form .wide {
  grid-column: auto;
}

.payment-address-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.payment-contact-page {
  max-width: 760px;
  margin: 0 auto 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 38px;
  text-align: center;
}

.payment-contact-status {
  display: inline-flex;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--accent);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.payment-contact-page h2 {
  margin: 22px 0 28px;
  color: #c62828;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}

.payment-contact-page h2 a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.payment-contact-order {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-contact-order div {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}

.payment-contact-order div:last-child {
  border-right: 0;
}

.payment-contact-order span,
.payment-contact-order strong {
  display: block;
}

.payment-contact-order span {
  color: var(--muted);
  font-size: 13px;
}

.payment-contact-order strong {
  margin-top: 5px;
}

.payment-contact-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.payment-page-header {
  grid-template-columns: 1fr auto;
}

.payment-page-main {
  min-height: calc(100vh - 100px);
}

.payment-contact-address {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px;
  text-align: left;
}

.payment-contact-address span {
  color: var(--muted);
  font-size: 13px;
}

.payment-contact-address p {
  margin: 5px 0 0;
}

@media (max-width: 900px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .checkout-step {
    display: none;
  }

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

  .payment-form-grid .wide {
    grid-column: auto;
  }

  .payment-panel {
    padding: 16px;
  }

  .payment-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-choice-note,
  .payment-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-contact-page {
    padding: 24px 16px;
  }

  .payment-contact-page h2 {
    font-size: 20px;
  }

  .payment-contact-order {
    grid-template-columns: 1fr;
  }

  .payment-contact-order div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .payment-contact-order div:last-child {
    border-bottom: 0;
  }
}
