.product {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.product__back {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 20px 24px 0;
}

.product__back:hover { color: var(--terracotta); }

@media (min-width: 720px) {
  .product__back { display: inline-flex; }
}

.product__layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 720px) {
  .product__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    padding: 24px 24px 0;
  }
}

/* ---- Hero image ---- */

.product__hero {
  position: relative;
  width: 100%;
  height: 390px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center 15%;
  overflow: hidden;
  cursor: zoom-in;
}

.product__hero:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .product__hero {
    flex: 1 1 420px;
    max-width: 460px;
    height: 560px;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px var(--gold);
    position: sticky;
    top: 96px;
  }
}

.product__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 46, 31, 0.4) 0%, rgba(74, 46, 31, 0) 22%);
}

@media (min-width: 720px) {
  .product__hero-scrim { display: none; }
}

.product__hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(to bottom,
    rgba(250, 246, 241, 0) 0%,
    rgba(250, 246, 241, 0.35) 45%,
    rgba(250, 246, 241, 0.8) 75%,
    var(--card-alt) 100%);
  pointer-events: none;
}

@media (min-width: 720px) {
  .product__hero-fade { display: none; }
}

.product__hero-back {
  position: absolute;
  top: 44px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

@media (min-width: 720px) {
  .product__hero-back { display: none; }
}

.product__zoom-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 46, 31, 0.72);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

@media (min-width: 720px) {
  .product__zoom-badge {
    bottom: 20px;
    right: 20px;
  }
}

.product__hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold-solid);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

@media (min-width: 720px) {
  .product__hero-badge { top: 52px; }
}

.product__hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

@media (min-width: 720px) {
  .product__hero-dots { display: none; }
}

.product__hero-dots span {
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.product__hero-dots span:first-child {
  width: 16px;
  background: #FFFFFF;
}

/* ---- Info panel ---- */

.product__info {
  position: relative;
  margin-top: 0;
  background: var(--card-alt);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px 24px 0 0;
}

@media (min-width: 720px) {
  .product__info {
    margin-top: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    flex: 1 1 380px;
  }
}

.product__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.product__wishlist {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.3px solid var(--gold);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  cursor: pointer;
}

.product__wishlist svg { fill: none; transition: fill 0.15s ease, color 0.15s ease; }

.product__wishlist.is-active {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.product__wishlist.is-active svg { fill: currentColor; }

.product__subtitle {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 3px 0 0;
}

.product__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.product__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--terracotta);
  font-weight: 700;
}

.product__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product__stars {
  color: var(--gold-solid);
  font-size: 13px;
  letter-spacing: 1px;
}

.product__rating-count {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.product__selectors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.selector-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.selector-pill select {
  appearance: none;
  -webkit-appearance: none;
  background: #FFFFFF;
  border: 1.3px solid var(--gold);
  border-radius: 100px;
  padding: 10px 30px 10px 14px;
  font-size: 12.5px;
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
}

.selector-pill svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--terracotta-dark);
}

.selector-pill__swatch {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
}

.selector-pill--color select {
  padding-left: 32px;
}

.product__divider {
  height: 1px;
  background: var(--hairline);
}

.product__description-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.product__description-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.product__cta-bar {
  position: sticky;
  bottom: 0;
  margin: 8px -22px -24px;
  padding: 14px 22px 22px;
  background: var(--card-alt);
}

@media (min-width: 720px) {
  .product__cta-bar {
    margin: 8px 0 0;
    padding: 16px 0 0;
    background: none;
    border-top: none;
    bottom: 24px;
  }
}

.product__add-btn {
  width: 100%;
  background: rgba(193, 122, 72, 0.08);
  color: #8A4A28;
  border: 1.8px solid #C17A48;
  border-radius: 100px;
  padding: 15px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product__add-btn:hover {
  background: rgba(193, 122, 72, 0.16);
}

.product__add-btn.is-added {
  background: rgba(31, 92, 78, 0.1);
  border-color: var(--green);
  color: var(--green);
}

/* ---- Lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.lightbox[hidden] { display: none; }

.lightbox__image {
  width: 96vw;
  height: 96vh;
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
