:root {
  --ink: #1A1A1A;
  --ink-soft: rgba(26,26,26,0.75);
  --muted: #7a7a7a;
  --line: #e8e6e1;
  --bg: #faf9f6;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
}
header {
  background: #fff; border-bottom: 1px solid var(--line);
}
.nav { max-width: 1280px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 22px; display: block; }
.nav-actions { display: flex; gap: 24px; align-items: center; font-size: 13px; letter-spacing: 0.04em; }
.nav-actions a, .nav-actions button { color: var(--ink); text-decoration: none; background: none; border: none; cursor: pointer; font: inherit; padding: 6px 0; letter-spacing: 0.04em; }
.nav-actions a:hover, .nav-actions button:hover { opacity: 0.65; }
.btn { padding: 12px 28px; background: var(--ink); color: #fff !important; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); cursor: pointer; text-decoration: none; transition: all 0.15s; display: inline-block; }
.btn:hover { background: #fff; color: var(--ink) !important; }
.btn-secondary { padding: 12px 28px; background: #fff; color: var(--ink) !important; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--ink); cursor: pointer; transition: all 0.15s; display: inline-block; text-decoration: none; }
.btn-secondary:hover { background: var(--ink); color: #fff !important; }

.crumb { max-width: 1280px; margin: 0 auto; padding: 24px 32px 0; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

.product { max-width: 1280px; margin: 0 auto; padding: 32px 32px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-img-wrap {
  background: #fff; border: 1px solid var(--line); aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.product-img-wrap .placeholder { color: var(--muted); font-size: 64px; opacity: 0.3; }

.product-info { padding: 8px 0; }
.product-brand { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.product-name { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 24px; text-transform: uppercase; }
.product-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 28px; }
.product-meta span + span { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }

.stock-pill { display: inline-block; padding: 4px 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px; }
.stock-pill.in { background: #f0f4ec; color: #2d5016; }
.stock-pill.low { background: #fdf6e3; color: #8a6d1d; }
.stock-pill.out { background: #faeded; color: #842020; }

.price-block { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.price-main { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-main small { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-left: 6px; }
.price-pallet { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.price-locked { background: #f4f2ed; padding: 18px 20px; font-size: 13px; color: var(--muted); text-align: center; cursor: pointer; letter-spacing: 0.04em; text-transform: uppercase; }
.price-locked:hover { background: #ebe8e1; }

.qty-row { display: flex; gap: 10px; align-items: center; }
.qty-row input { width: 80px; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; font-family: inherit; text-align: center; }
.qty-row input:focus { outline: none; border-color: var(--ink); }
.qty-row .btn { flex: 1; padding: 14px 24px; }

.product-detail { margin-top: 36px; }
.product-detail h3 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.detail-grid { display: grid; grid-template-columns: 140px 1fr; gap: 8px 20px; font-size: 13px; line-height: 1.5; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; color: var(--ink); }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 14px 22px; font-size: 13px; z-index: 200; opacity: 0; transform: translateY(8px); transition: all 0.2s; letter-spacing: 0.04em; }
.toast.show { opacity: 1; transform: translateY(0); }

footer { margin-top: 64px; padding: 48px 32px; background: var(--ink); color: rgba(255,255,255,0.7); text-align: center; font-size: 12px; letter-spacing: 0.04em; }
footer img { height: 18px; margin-bottom: 16px; opacity: 0.85; }
footer .footer-line { margin: 6px 0; }

@media (max-width: 880px) {
  .product { grid-template-columns: 1fr; gap: 28px; padding: 20px 20px 64px; }
  .product-name { font-size: 26px; }
  .nav { padding: 16px 20px; flex-wrap: wrap; gap: 8px; }
  .nav-actions { gap: 14px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-actions a, .nav-actions button { padding: 4px 0; }
  .crumb { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 520px) {
  .nav-actions { gap: 12px; font-size: 11.5px; }
  .nav-actions .btn-secondary { padding: 8px 14px; font-size: 11px; }
}
