:root {
  --gold: #f6cc78;
  --gold-2: #c89235;
  --ivory: #fff8e8;
  --text: rgba(255, 252, 239, 0.9);
  --muted: rgba(255, 252, 239, 0.68);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(5, 8, 7, 0.66);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(3, 6, 6, 0.92), rgba(3, 6, 6, 0.52), rgba(3, 6, 6, 0.94)),
    url("./assets/gem-mine.webp") center / cover fixed;
  font-family: Inter, system-ui, sans-serif;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 64% 22%, rgba(238, 250, 255, 0.2), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(246, 204, 120, 0.16), transparent 30%),
    rgba(3, 6, 6, 0.42);
  pointer-events: none;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid transparent;
  background-clip: padding-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 64px);
  color: var(--ivory);
  background: rgba(5, 8, 7, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.product-hero {
  min-height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: minmax(320px, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(22px, 5vw, 70px) clamp(18px, 5vw, 78px);
}

.gallery {
  display: grid;
  gap: 14px;
}

.main-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 204, 120, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

#main-image,
.main-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.main-video {
  display: none;
  background: #020404;
}

.main-image-wrap.show-video #main-image {
  display: none;
}

.main-image-wrap.show-video .main-video {
  display: block;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.thumb {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 7, 0.5);
  cursor: pointer;
}

.thumb.active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(246, 204, 120, 0.3), 0 0 24px rgba(246, 204, 120, 0.16);
}

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

.video-thumb {
  display: grid;
  place-items: center;
  color: var(--ivory);
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(246, 204, 120, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(5, 8, 7, 0.7);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-thumb span::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
  background: var(--gold);
  filter: drop-shadow(0 0 16px rgba(246, 204, 120, 0.45));
}

.purchase-panel,
.detail-grid article {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 34%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.purchase-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.58);
}

h1 {
  font-size: clamp(54px, 7vw, 104px);
}

h2 {
  font-size: clamp(40px, 5vw, 76px);
}

h3 {
  font-size: 30px;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.price-card {
  display: grid;
  gap: 6px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid rgba(246, 204, 120, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(246, 204, 120, 0.14));
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 0;
}

.trust-strip span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 204, 120, 0.2);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.price-label,
.option-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#local-price {
  color: var(--ivory);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1;
}

#price-note,
.shipping-note,
.summary,
.detail-grid p,
.care-section p {
  color: var(--muted);
  line-height: 1.55;
}

.option-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.size-option,
.ring-size-option,
.buy-button {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.size-option,
.ring-size-option {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
}

.size-option,
.ring-size-option {
  cursor: pointer;
  font-weight: 900;
}

.size-option.active,
.ring-size-option.active {
  color: #120e04;
  background: linear-gradient(135deg, #fff5ca, #e5ac45);
  border-color: rgba(246, 204, 120, 0.62);
}

.ring-size-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ring-size-option {
  min-width: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ring-size-option:hover,
.size-option:hover {
  border-color: rgba(246, 204, 120, 0.52);
  background: rgba(246, 204, 120, 0.12);
}

.ring-size-option.active:hover,
.size-option.active:hover {
  background: linear-gradient(135deg, #fff5ca, #e5ac45);
}

.summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 14px;
}

.buy-button {
  min-height: 56px;
  color: #120e04;
  background: linear-gradient(135deg, #fff5ca, #e5ac45);
  border-color: rgba(246, 204, 120, 0.48);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 34px rgba(232, 174, 74, 0.22);
}

.shipping-note {
  margin: 16px 0 0;
  font-size: 13px;
}

.details-section,
.care-section,
.trust-section,
.faq-section {
  padding: clamp(54px, 7vw, 90px) clamp(18px, 5vw, 78px);
}

.details-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  background: rgba(3, 6, 6, 0.62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.detail-grid article,
.trust-grid article {
  padding: 22px;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  background: rgba(8, 14, 13, 0.55);
}

.trust-grid article,
.faq-section details {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 34%),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.trust-grid p,
.faq-section p {
  color: var(--muted);
  line-height: 1.6;
}

.faq-section {
  display: grid;
  gap: 12px;
  background: rgba(3, 6, 6, 0.62);
  border-top: 1px solid var(--line);
}

.faq-section h2 {
  margin-bottom: 10px;
}

.faq-section details {
  padding: 18px 20px;
}

.faq-section summary {
  color: var(--ivory);
  cursor: pointer;
  font-weight: 900;
}

.care-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.care-section img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(246, 204, 120, 0.24);
  box-shadow: var(--shadow);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 13px 16px;
  color: #120e04;
  background: #fff4c9;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  pointer-events: none;
}

@media (max-width: 960px) {
  .product-hero,
  .details-section,
  .care-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .product-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .ring-size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .purchase-panel {
    padding: 20px;
  }

  h1 {
    font-size: 52px;
  }
}
