:root {
  --bg0: #000000;
  --bg1: #090101;
  --ink: #b8877c;
  --muted: #8e5e54;
  --ember: #7a2a18;
  --wood: #2a0806;
  --line: rgba(58, 22, 14, 0.18);
  --shadow: 0 24px 70px rgba(7, 2, 2, 0.65);
  --r: 22px;
  --max: 1240px;
  --fontFamily1: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --fontFamily2: "MedievalSharp", cursive;
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--fontFamily1);
  background: radial-gradient(1100px 700px at 70% 20%, rgba(90, 40, 18, 0.06), transparent 55%),radial-gradient(900px 600px at 20% 70%, rgba(55, 20, 12, 0.05), transparent 60%),linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
  padding: 32px 18px 54px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--ember);
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.sheet {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  background: transparent;
  padding-bottom: 28px;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 22px;
}
.topbar .pill {
  margin-right: 35px;
  margin-top: -15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-copy h1 {
  margin: 0;
  font-family: var(--fontFamily2);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  font-size: 34px;
  position: relative;
  top: 10px;
}
.wax {
  width: 48px;
  height: 48px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 30%, rgba(10, 0, 0, 0.45), transparent 55%),
  linear-gradient(135deg, rgba(24, 1, 1, 0.25), rgba(26, 4, 4, 0.2)),
  var(--wood);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  top: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.wax img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10,6,4,.35);
  backdrop-filter: blur(6px);
  font-family: var(--fontFamily1);
  font-size: 15px;
}
.pill:hover {
  border-color: rgb(75, 44, 1);
  color: #754e06;
}
.tagline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  margin-left: 8px;
  font-size: 0.60rem;
  letter-spacing: 0.15em;
  opacity: 0.85;
}
.tagline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.tagline::after {
  content: "";
  width: 55px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.nav-buttons {
  display: flex;
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: radial-gradient(900px 340px at 10% 10%, rgba(120, 58, 24, 0.06), transparent 45%),rgba(8, 3, 2, 0.44);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}
.product-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(34, 3, 3, 0.22);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.product-category.large {
  margin-bottom: 14px;
  font-size: 12px;
}
.product-page {
  padding: 10px 0 18px;
}
.product-detail-panel {
  padding: 20px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .95fr);
  gap: 24px;
  align-items: start;
}
.product-gallery {
  min-width: 0;
}
.product-main-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.product-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(34, 3, 3, 0.22);
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.product-thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(34, 3, 3, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.product-thumb:hover, .product-thumb.active {
  border-color: rgba(165, 106, 42, 0.45);
  box-shadow: 0 0 0 1px rgba(165, 106, 42, 0.22) inset;
  transform: translateY(-1px);
}
.product-info-top {
  margin-bottom: 18px;
}
.product-detail-title {
  margin: 0 0 12px;
  font-family: var(--fontFamily2);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--ink);
}
.product-detail-price {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}
.product-detail-short {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.detail-block {
  margin-top: 18px;
}
.detail-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-family: var(--fontFamily2);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
}
.product-detail-copy {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
  font-size: 14px;
}
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}
.btn {
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(39, 3, 3, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn:hover {
  transform: translateY(-1px);
  color: #7a2a18;
  border-color: rgb(75, 44, 1);
  background: rgb(41, 23, 1);
  box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}
.btn.primary {
  padding: 11px 17px;
  font-weight: 500;
  border-color: rgba(18, 1, 1, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(99, 12, 12, 0.28), 
  transparent 55%),linear-gradient(180deg, rgba(61, 3, 3, 0.22), rgba(0,0,0,.1));
  box-shadow: 0 0 14px rgba(120, 60, 30, 0.22);
}
.btn.primary:hover {
  color: #7a2a18;
  border-color: rgb(75, 44, 1);
  background: rgb(41, 23, 1);
  box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}
.btn.backTo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  padding: 0 23px;
  border-radius: 14px;
  line-height: 1;
  gap: 0;
  position: relative;
  top: 9px;
}
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  height: 96vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 64px;
}
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #120605;
}
.lightbox-close, .lightbox-nav {
  border: 1px solid var(--line);
  background: rgba(34, 3, 3, 0.72);
  color: var(--ink);
  cursor: pointer;
  border-radius: 14px;
  z-index: 2;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.lightbox-close:hover, .lightbox-nav:hover {
  border-color: rgb(75, 44, 1);
  background: rgb(41, 23, 1);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 72px;
  font-size: 42px;
  line-height: 1;
  opacity: .85;
}
.lightbox-prev {
  left: 12px;
}
.lightbox-next {
  right: 12px;
}
.footer {
  margin-top: 60px;
  color: rgba(116, 77, 77, 0.75);
  font-size: 12px;
  letter-spacing: .06em;
  text-align: left;
  hyphens: auto;
}

@media (max-width: 640px) {
  body {
    padding: 18px 12px 34px;
  }
  .wax {
    width: 38px;
    height: 38px;
    border-radius: 15px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
  }
  .topbar .pill {
    margin: 0;
  }
  .brand-copy h1 {
    font-size: clamp(26px, 7vw, 32px);
    position: relative;
    top: 8px;
  }
  .tagline {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    margin-left: 2px;
    gap: 4px;
  }
  .tagline::before {
    width: 19px;
  }
  .tagline::after {
    width: 42px;
  }
  .panel, .product-detail-panel {
    padding: 16px;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .product-actions .btn {
    justify-content: center;
    width: 100%;
  }
  .lightbox-dialog {
    width: 100vw;
    height: 100vh;
    padding: 0 4px;
  }
  .lightbox-nav {
    width: 40px;
    height: 56px;
    font-size: 28px;
  }
  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }
}
