/* ============================================
   武汉玉多全勺商贸有限公司 · 商城样式
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary: #1e3a5f;
  --primary-dark: #152a47;
  --primary-light: #2d5286;
  --accent: #c9a96e;
  --accent-dark: #b08d4f;
  --accent-light: #dfc494;
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-alt: #f4f3ef;
  --border: #e6e4de;
  --text: #1f2933;
  --text-sub: #6b7280;
  --text-muted: #9ca3af;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(30,58,95,0.12);
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Announcement Bar --- */
.announcement {
  background: var(--primary);
  color: #ffffffd0;
  font-size: 12px;
  text-align: center;
  padding: 6px 0;
  letter-spacing: 0.5px;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -1px;
}
.logo-text { font-size: 16px; font-weight: 600; color: var(--text); }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--primary); background: var(--surface-alt); }
.main-nav a.active {
  color: var(--primary);
  background: rgba(30,58,95,0.06);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

.icon-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  transition: all .2s ease;
  position: relative;
}
.icon-btn:hover { background: var(--surface-alt); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.8; }

.cart-badge {
  position: absolute;
  top: 6px; right: 6px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* --- Hero Banner --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 85% 70%, 70% 40%, 50% 100%, 30% 50%, 15% 80%, 0 30%);
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-tag {
  display: inline-block;
  background: rgba(201,169,110,0.2);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero p { font-size: 16px; opacity: 0.85; margin-bottom: 32px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201,169,110,0.35); }

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--accent-light);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: rgba(30,58,95,0.04); }

.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* --- Section --- */
.section {
  padding: 64px 0;
}
.section-alt { background: var(--surface-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px; height: 24px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}
.section-sub {
  color: var(--text-sub);
  font-size: 14px;
  margin-top: 4px;
  margin-left: 16px;
}
.section-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}
.section-more svg { width: 16px; height: 16px; }
.section-more:hover { color: var(--primary-light); }

/* --- Categories --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all .25s ease;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.category-icon {
  width: 48px; height: 48px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: var(--primary);
  transition: all .25s ease;
}
.category-card:hover .category-icon {
  background: var(--primary);
  color: white;
}
.category-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.category-name { font-size: 14px; font-weight: 500; color: var(--text); }

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .3s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-img-wrap {
  aspect-ratio: 1;
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tag-new { background: var(--primary); color: white; }
.tag-hot { background: var(--danger); color: white; }
.tag-sale { background: var(--accent); color: white; }

.product-info {
  padding: 16px;
}
.product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  color: var(--danger);
  font-size: 18px;
  font-weight: 700;
}
.product-price small { font-size: 11px; font-weight: 400; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.product-rating {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; color: var(--text-sub);
}
.product-rating svg { width: 14px; height: 14px; color: var(--accent); }

/* --- Product Detail Page --- */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}
.detail-gallery { display: flex; flex-direction: column; gap: 16px; }
.detail-main-img {
  aspect-ratio: 1;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.detail-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}
.detail-thumb.active { border-color: var(--primary); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 20px;
}
.detail-price-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1px solid #ffe0e0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.detail-current-price {
  color: var(--danger);
  font-size: 32px;
  font-weight: 700;
}
.detail-current-price small { font-size: 14px; font-weight: 400; margin-right: 2px; }
.detail-origin-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 12px;
}
.detail-discount {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.detail-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.detail-label {
  width: 80px;
  color: var(--text-sub);
  font-size: 13px;
  flex-shrink: 0;
}
.detail-value { font-size: 14px; color: var(--text); }

.detail-variants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.variant-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: all .2s;
}
.variant-btn:hover { border-color: var(--primary); }
.variant-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30,58,95,0.06);
}

.quantity-select {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.quantity-select button {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  background: var(--surface-alt);
  font-size: 16px;
}
.quantity-select button:hover { color: var(--primary); background: var(--surface); }
.quantity-select input {
  width: 56px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  color: var(--text);
  -moz-appearance: textfield;
}
.quantity-select input::-webkit-inner-spin-button,
.quantity-select input::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.detail-actions .btn { flex: 1; justify-content: center; padding: 16px; font-size: 15px; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 2px solid var(--border);
  margin-top: 40px;
  margin-bottom: 0;
}
.tab {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); }
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}
.tab-content {
  padding: 32px 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text);
}

/* --- Filter Sidebar --- */
.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-sidebar {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  position: sticky;
  top: 96px;
}
.filter-group { margin-bottom: 28px; }
.filter-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: color .2s;
}
.filter-item:hover, .filter-item.active { color: var(--primary); }
.filter-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.products-count { color: var(--text-sub); font-size: 13px; }
.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

/* --- Cart Page --- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.cart-main {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cart-header {
  display: grid;
  grid-template-columns: 40px 1fr 120px 140px 40px;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.cart-item {
  display: grid;
  grid-template-columns: 40px 1fr 120px 140px 40px;
  gap: 16px;
  padding: 20px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-check {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.cart-product {
  display: flex;
  gap: 16px;
}
.cart-product img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.cart-product-info h4 { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.cart-product-info p { font-size: 12px; color: var(--text-muted); }
.cart-price { font-size: 15px; font-weight: 600; color: var(--danger); }
.cart-total-price { font-size: 16px; font-weight: 700; color: var(--danger); }
.cart-remove {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .2s;
}
.cart-remove:hover { color: var(--danger); background: rgba(239,68,68,0.08); }
.cart-remove svg { width: 18px; height: 18px; stroke-width: 1.8; }

.cart-summary {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
}
.cart-summary h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-sub);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.summary-row.total .amount { font-size: 24px; color: var(--danger); }

.empty-cart {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-sub);
}
.empty-cart-icon {
  width: 80px; height: 80px;
  background: var(--surface-alt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.empty-cart-icon svg { width: 36px; height: 36px; stroke-width: 1.5; }

/* --- Checkout Page --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}
.checkout-main { display: flex; flex-direction: column; gap: 24px; }
.checkout-section {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 28px;
}
.checkout-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.checkout-section-head .step-num {
  width: 28px; height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.checkout-section-head h3 { font-size: 16px; font-weight: 600; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}
.form-item input, .form-item select, .form-item textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s;
  background: var(--surface);
  color: var(--text);
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.payment-methods {
  display: flex;
  gap: 12px;
}
.payment-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  font-weight: 500;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.selected {
  border-color: var(--primary);
  background: rgba(30,58,95,0.04);
}
.payment-option .dot {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
}
.payment-option.selected .dot { border-color: var(--primary); }
.payment-option.selected .dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- Toast / Notification --- */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform .25s ease;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-icon {
  width: 72px; height: 72px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal-icon svg { width: 36px; height: 36px; color: white; stroke-width: 2; }
.modal h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.modal p { color: var(--text-sub); font-size: 14px; margin-bottom: 24px; }
.modal-order-no {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 24px;
}

/* --- About Page --- */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}
.about-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.about-hero p { opacity: 0.85; font-size: 16px; }

.about-section { padding: 64px 0; }
.about-section-alt { background: var(--surface-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.35;
}
.about-text p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat-card {
  text-align: center;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-label { font-size: 13px; color: var(--text-sub); }

.about-license {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.license-item {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}
.license-item:last-child { border-bottom: none; }
.license-label {
  width: 160px;
  flex-shrink: 0;
  color: var(--text-sub);
  font-size: 14px;
}
.license-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: #ffffffb0;
  padding: 56px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: white; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: 16px; }
.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  padding: 5px 0;
  color: #ffffffb0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent-light); }
.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  line-height: 1.7;
}
.footer-contact p svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.footer-bottom a { color: #ffffffb0; }
.footer-bottom a:hover { color: var(--accent-light); }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-sub);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp .5s ease-out both;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; padding: 28px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .filter-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 30px; }
  .cart-header { display: none; }
  .cart-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .cart-check { display: none; }
  .cart-price, .cart-total-price { display: none; }
  .cart-product img { width: 70px; height: 70px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-methods { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
