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

:root {
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --gold: #c9a84c;
  --gold-light: #e8c87a;
  --text: #e8e4dc;
  --text-muted: #888;
  --radius: 8px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}
.logo span { color: var(--text); font-weight: 300; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-left: 28px;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); }

/* HERO */
.hero {
  text-align: center;
  padding: 80px 40px 60px;
  background: linear-gradient(180deg, #1a1510 0%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text);
  text-transform: uppercase;
}
.hero h1 strong { color: var(--gold); font-weight: 700; }
.hero p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* DISCOUNT BANNER */
.discount-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 40px;
  background: var(--bg2);
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  flex-wrap: wrap;
}
.discount-bar .badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.discount-bar .badge .tag {
  background: var(--gold);
  color: #0f0f0f;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* GRID */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.products-section { padding: 48px 0; }
.section-title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-left: 4px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg2);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.product-card .img-wrap {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card .info {
  padding: 14px;
}
.product-card .name {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.product-card .price .from-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.product-card .price .from-label s {
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 3px;
}
.product-card .price .best-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.product-card .btn-buy {
  font-size: 0.75rem;
  padding: 5px 12px;
  background: var(--gold);
  color: #0f0f0f;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.05em;
}
.product-card .btn-buy:hover { background: var(--gold-light); }

/* PRODUCT DETAIL PAGE */
.product-detail {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail .img-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail img { width: 100%; object-fit: contain; }
.product-detail .detail-info {}
.product-detail h1 {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-detail .origin {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.price-block { margin-bottom: 24px; }
.price-block .current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.price-block .per { font-size: 0.85rem; color: var(--text-muted); }

/* QUANTITY OPTIONS (radio) */
.qty-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.qty-option {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg2); border: 2px solid #2a2a2a;
  border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: border-color 0.2s;
  position: relative;
}
.qty-option:hover { border-color: #555; }
.qty-option.selected { border-color: var(--gold); }
.qty-option input[type=radio] { display: none; }
.qty-option .radio-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #555; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.qty-option.selected .radio-dot { border-color: var(--gold); }
.qty-option.selected .radio-dot::after {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold);
}
.qty-option .opt-label { flex: 1; }
.qty-option .opt-title { font-size: 0.9rem; font-weight: 600; }
.qty-option .opt-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.qty-option .opt-sub .save { color: var(--gold); }
.qty-option .opt-price-col { text-align: right; flex-shrink: 0; }
.qty-option .opt-per-pack { font-size: 1.25rem; font-weight: 800; color: var(--gold); line-height: 1; }
.qty-option .opt-per-pack-base { color: var(--text-muted); font-size: 1rem; font-weight: 600; }
.qty-option .opt-per-pack-label { font-size: 0.72rem; font-weight: 500; margin-left: 1px; }
.qty-option .opt-total { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.qty-option .badge-default {
  position: absolute; top: -10px; right: 12px;
  background: var(--gold); color: #0f0f0f;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 10px;
}

.shipping-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px solid #2a2a2a;
}

.total-line {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
}
.total-line .total-price { color: var(--gold); font-size: 1.3rem; }

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #0f0f0f;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn-checkout:hover { background: var(--gold-light); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin: 24px 0 0 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* FOOTER */
footer {
  border-top: 1px solid #2a2a2a;
  padding: 32px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

@media (max-width: 640px) {
  header { padding: 16px 20px; }
  .hero { padding: 48px 20px 40px; }
  .discount-bar { gap: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 24px 20px; }
}
