:root {
  --bg: #181810;
  --shell: #07080c;
  --panel: #0a0b11;
  --line: #242838;
  --text: #f1eee4;
  --muted: #a6acbb;
  --gold: #d8bf62;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(60% 60% at 8% 10%, rgba(216, 191, 98, 0.08), transparent 72%),
    radial-gradient(45% 40% at 96% 0%, rgba(216, 191, 98, 0.06), transparent 78%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

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

.shell {
  width: min(100% - 2rem, 1200px);
  margin: 1.5rem auto;
  border: 1px solid rgba(216, 191, 98, 0.18);
  border-radius: 26px;
  background: linear-gradient(170deg, #06070d 0%, #070810 52%, #06070b 100%);
  padding: 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(216, 191, 98, 0.35);
  object-fit: cover;
}

.back-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid #2a2d3c;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.product-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #090a10, #05060a);
}

.gallery-panel { padding: 0.8rem; }

.main-image-wrap {
  border: 1px solid #242837;
  border-radius: 12px;
  overflow: hidden;
}

.main-image {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.thumb-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.thumb {
  border: 1px solid #282c3a;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #10131d;
  cursor: pointer;
}

.thumb.active { border-color: var(--gold); }

.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.info-panel {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  color: var(--gold);
}

h1, h2, h3 { margin: 0; font-family: "Cormorant Garamond", serif; }

h1 { font-size: clamp(2rem, 2.6vw, 3rem); }

.type {
  margin: 0.2rem 0 0;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.07em;
  font-size: 0.82rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid #232735;
  border-bottom: 1px solid #232735;
  padding: 0.65rem 0;
}

.price {
  margin: 0;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
}

.size { margin: 0; color: var(--muted); font-size: 0.84rem; }

.notes {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.notes li { color: var(--muted); font-size: 0.84rem; }

.order-box {
  border: 1px solid #2a2d3b;
  border-radius: 12px;
  background: #0b0e17;
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.order-row label { font-size: 0.85rem; color: var(--muted); }

.qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2e3344;
  border-radius: 999px;
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: #151928;
  color: var(--text);
  cursor: pointer;
}

.qty-input {
  width: 54px;
  height: 34px;
  border: 0;
  text-align: center;
  background: #101320;
  color: var(--text);
}

.btn-order {
  margin-top: 0.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #1d1608;
  background: linear-gradient(135deg, #9f843f, #ddc96f 55%, #f2e19d);
}

.btn-secondary {
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  border: 1px solid #2a2d3c;
  color: var(--text);
  font-size: 0.84rem;
}

.helper { margin: 0; color: #99a0b4; font-size: 0.76rem; }

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

@media (max-width: 640px) {
  .shell { width: min(100% - 1rem, 1200px); margin: 0.5rem auto; border-radius: 16px; }
  .topbar { flex-direction: column; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
