/* ===== BLACK FARM 黑田市集 — Global Styles ===== */
:root {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --card: #1e1e1e;
  --card-hover: #252525;
  --gold: #d4af37;
  --gold-light: #e8c86a;
  --gold-dark: #b8941f;
  --gold-bg: rgba(212, 175, 55, 0.08);
  --gold-border: rgba(212, 175, 55, 0.3);
  --text: #ffffff;
  --text-soft: #cccccc;
  --text-mute: #888888;
  --text-dim: #555555;
  --border: #2a2a2a;
  --border-light: #333333;
  --danger: #e74c3c;
  --success: #2ecc71;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
  --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  color: var(--text);
}

/* ===== Announcement Bar ===== */
.announcement-bar {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: #1a1a1a;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }

.brand-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-gold);
}

.brand-text { line-height: 1.2; }
.brand-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text);
}
.brand-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  padding: 0 20px;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--gold);
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}
.cart-link:hover {
  background: var(--gold-light);
  color: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
}
.cart-count {
  background: #1a1a1a;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    var(--bg);
  padding: 72px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
}
.btn-gold {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: #1a1a1a;
  text-decoration: none;
}
.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--gold-bg);
  text-decoration: none;
}

/* ===== Container ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 56px 0; }
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .gold-line {
  width: 4px;
  height: 24px;
  background: var(--gold);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--text-mute);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ===== Category Cards ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.category-card:hover {
  border-color: var(--gold-border);
  background: var(--card-hover);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text);
}
.category-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.category-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-img {
  width: 100%;
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.product-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: var(--text-soft);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}
.product-cat {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 600;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
}
.product-price small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

.add-btn {
  background: var(--gold);
  color: #1a1a1a;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
  white-space: nowrap;
}
.add-btn:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}

/* ===== Bundle Section ===== */
.bundle-section {
  background: linear-gradient(180deg, var(--gold-bg) 0%, transparent 100%);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 56px 0;
  margin: 20px 0;
}
.bundle-section .section-title { color: var(--gold); }

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bundle-card {
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.bundle-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.bundle-header {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a1a;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bundle-emoji { font-size: 2.2rem; }
.bundle-name { font-weight: 800; font-size: 1.05rem; }
.bundle-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-top: 2px;
}

.bundle-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.bundle-desc { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 14px; }

.includes-list { list-style: none; margin-bottom: 16px; }
.includes-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.includes-list li:last-child { border-bottom: none; }
.includes-qty { font-weight: 800; color: var(--gold); }

.bundle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}
.bundle-price {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold);
}
.bundle-price small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===== Filter Pills ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: var(--transition);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.active {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
  font-weight: 700;
}
.filter-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ===== Product Detail ===== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-img {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  min-height: 420px;
  position: relative;
}
.detail-info h1 { font-size: 2rem; margin-bottom: 8px; line-height: 1.3; }
.detail-cat {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 600;
}
.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  margin: 20px 0;
}
.detail-price small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mute);
  font-weight: 500;
  margin-top: 4px;
}
.detail-desc {
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.8;
  font-size: 0.95rem;
}

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-label { font-weight: 600; font-size: 0.9rem; color: var(--text-soft); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 40px; height: 40px;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  color: var(--gold);
  transition: var(--transition);
}
.qty-btn:hover { background: var(--gold-bg); }
.qty-value {
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 10px 0;
}

.big-add-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.big-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.detail-includes {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
}
.detail-includes h3 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--gold); text-decoration: none; }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--border-light); }
.cart-item-img {
  width: 72px; height: 72px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.cart-item-type {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cart-item-price { font-weight: 700; color: var(--gold); font-size: 0.95rem; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.cart-item-qty .qty-btn { width: 32px; height: 32px; font-size: 1rem; }
.cart-item-qty .qty-value { width: 36px; font-size: 0.88rem; padding: 6px 0; }
.cart-item-total { font-weight: 800; color: var(--gold); font-size: 1.05rem; min-width: 70px; text-align: right; }
.cart-item-remove {
  color: var(--text-dim);
  font-size: 1.1rem;
  padding: 6px;
  transition: var(--transition);
  cursor: pointer;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 92px;
}
.cart-summary h3 {
  margin-bottom: 18px;
  font-size: 1.15rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold);
}
.checkout-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a1a;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  margin-top: 18px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.checkout-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.checkout-btn:disabled { background: var(--text-dim); cursor: not-allowed; transform: none; box-shadow: none; }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mute);
}
.empty-state-icon { font-size: 4.5rem; margin-bottom: 18px; opacity: 0.5; }
.empty-state h2 { color: var(--text); margin-bottom: 10px; }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.form-card h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-soft);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.payment-option:hover { border-color: var(--gold-border); }
.payment-option.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.payment-option input[type="radio"] {
  accent-color: var(--gold);
  width: 18px; height: 18px;
}
.payment-option-label { font-weight: 600; font-size: 0.92rem; }
.payment-option-desc { font-size: 0.78rem; color: var(--text-mute); margin-top: 2px; }

.order-items { max-height: 280px; overflow-y: auto; margin-bottom: 16px; padding-right: 4px; }
.order-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}
.order-item-name { flex: 1; }
.order-item-name .bundle-tag-inline { color: var(--gold); font-size: 0.7rem; font-weight: 700; }

/* ===== Pay Request ===== */
.pay-box {
  max-width: 520px;
  margin: 48px auto;
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-gold);
}
.pay-box h2 { text-align: center; margin-bottom: 8px; color: var(--gold); }
.pay-box .pay-sub { text-align: center; color: var(--text-mute); font-size: 0.9rem; margin-bottom: 24px; }
.pay-amount {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  margin: 20px 0;
}
.pay-status {
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.pay-status.pending { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-border); }
.pay-status.paid { background: rgba(46, 204, 113, 0.1); color: var(--success); border: 1px solid rgba(46, 204, 113, 0.3); }

.pay-items { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; }
.pay-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ===== Success ===== */
.success-box {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.success-icon {
  width: 80px; height: 80px;
  background: var(--gold-bg);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}
.success-box h1 { color: var(--gold); margin-bottom: 12px; font-size: 2rem; }
.success-box p { color: var(--text-soft); margin-bottom: 8px; }
.success-order-id {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--gold);
  margin: 16px 0;
}

/* ===== 404 ===== */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}
.error-404 .code {
  font-size: 8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer h4 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 700;
}
.footer p, .footer a {
  font-size: 0.85rem;
  color: var(--text-mute);
  line-height: 2;
  display: block;
}
.footer a:hover { color: var(--gold); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
  box-shadow: var(--shadow-gold);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== Loading ===== */
.loading { text-align: center; padding: 60px; color: var(--text-mute); }
.spinner {
  display: inline-block;
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--danger);
  margin: 20px 0;
}
.error-box button {
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .detail-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 48px 16px; }
  .section { padding: 36px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-total { min-width: auto; }
  .pay-amount { font-size: 2rem; }
  .error-404 .code { font-size: 5rem; }
}
