/*
  NURYA — Pages produit (coffrets)
  Loaded only via sections/nurya-product-hero.liquid, so every rule here
  — including the native-form re-theme at the bottom — only ever applies
  to pages that use these sections (the two coffret product templates).
  No JS, no cart/variant/quantity logic touched: only typography, color
  and spacing on top of the existing native markup and behaviour.
*/

.nurya-product-hero {
  padding-block: var(--nurya-space-2xl);
}

.nurya-product-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nurya-space-2xl);
  max-width: 120rem;
  margin-inline: auto;
  padding-inline: var(--nurya-container-padding-x);
}

@media screen and (min-width: 900px) {
  .nurya-product-hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--nurya-space-3xl);
  }
}

.nurya-product-hero__media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
  perspective: 70rem;
}

@media screen and (min-width: 900px) {
  .nurya-product-hero__media {
    order: 0;
    aspect-ratio: 3 / 4;
  }
}

/* A quiet vitrine glow behind the coffret — same halo language as the
   Coffrets and Les Portes sections, so the product page reads as a
   continuation of the same house, not a different template. */
.nurya-product-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 0;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.22) 0%, rgba(198, 161, 91, 0.07) 45%, transparent 72%);
  filter: blur(4.5rem);
}

/* Grounds the product instead of letting it float: a soft contact
   shadow on the "floor" beneath it, like an object resting under
   gallery light rather than hovering in empty space. */
.nurya-product-hero__media::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 0;
  width: 46%;
  height: 8%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 72%);
  filter: blur(1.2rem);
}

.nurya-product-hero__image {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.8rem 2.4rem rgba(0, 0, 0, 0.5));
  transition: transform var(--nurya-transition-slow), filter var(--nurya-transition-slow);
}

.nurya-product-hero__media:hover .nurya-product-hero__image {
  transform: rotateY(-3deg) scale(1.02);
  filter: drop-shadow(0 2.4rem 2.8rem rgba(0, 0, 0, 0.55));
}

@media (prefers-reduced-motion: reduce) {
  .nurya-product-hero__media:hover .nurya-product-hero__image {
    transform: none;
  }
}

.nurya-product-hero__title {
  margin-top: var(--nurya-space-sm);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.nurya-product-hero__breakdown {
  margin: var(--nurya-space-lg) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--nurya-space-2xs);
}

.nurya-product-hero__breakdown li {
  font-family: var(--nurya-font-heading);
  font-style: italic;
  font-size: var(--nurya-text-lg);
  color: var(--nurya-color-ivory);
  opacity: 0.9;
}

.nurya-product-hero__price {
  margin: var(--nurya-space-lg) 0 0;
  font-family: var(--nurya-font-heading);
  font-size: var(--nurya-title-md);
  color: var(--nurya-color-gold-light);
}

.nurya-product-hero__proof {
  margin: var(--nurya-space-md) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--nurya-space-3xs);
}

.nurya-product-hero__proof li {
  font-family: var(--nurya-font-body);
  font-size: var(--nurya-text-xs);
  letter-spacing: var(--nurya-tracking-wide);
  text-transform: uppercase;
  opacity: 0.6;
}

/* ============ Storytelling / Contents / Trust — shared editorial rhythm ============ */

.nurya-product-story,
.nurya-product-contents,
.nurya-product-trust {
  padding-block: var(--nurya-space-2xl);
  text-align: center;
}

.nurya-product-story .nurya-container,
.nurya-product-contents .nurya-container {
  max-width: 52rem;
}

.nurya-product-story__text {
  margin-top: var(--nurya-space-md);
  opacity: 0.85;
}

.nurya-product-contents__list {
  margin: var(--nurya-space-xl) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--nurya-space-md);
}

.nurya-product-contents__name {
  font-family: var(--nurya-font-heading);
  font-size: var(--nurya-title-sm);
  color: var(--nurya-color-ivory);
}

.nurya-product-contents__volume {
  margin-left: var(--nurya-space-2xs);
  font-family: var(--nurya-font-body);
  font-size: var(--nurya-text-sm);
  color: var(--nurya-ctx-accent);
  opacity: 0.85;
}

.nurya-product-contents__extrait {
  margin-top: var(--nurya-space-xl);
  padding-top: var(--nurya-space-lg);
  border-top: 1px solid var(--nurya-ctx-border);
  font-family: var(--nurya-font-body);
  font-size: var(--nurya-text-xs);
  letter-spacing: var(--nurya-tracking-wide);
  text-transform: uppercase;
  opacity: 0.55;
}

.nurya-product-trust__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--nurya-space-sm) var(--nurya-space-2xl);
}

.nurya-product-trust__list li {
  font-family: var(--nurya-font-body);
  font-size: var(--nurya-text-xs);
  letter-spacing: var(--nurya-tracking-wide);
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============ Native product form — re-themed, not rebuilt ============
   Same markup, same JS, same add-to-cart mechanism as every other
   product page — only color, type and spacing change here. Every rule
   below is scoped under .nurya-product-premium, a class main-product.liquid
   only adds when the loaded product matches one of the two coffrets —
   so no other product page is ever affected, now or in the future. */

/* The background lives here, directly on the section that wraps the
   native form — same reliable pattern as .nurya-theme-dark elsewhere on
   the site (background painted on the visible element itself, not left
   to cascade down from body). This is what closes the white gap under
   the Hero: the wrapper now paints its own black, continuous with the
   Hero and the storytelling sections on either side of it. */
.nurya-product-premium {
  background-color: rgb(11, 11, 13);
}

.nurya-product-premium .yc-single-product {
  max-width: 120rem;
  margin-inline: auto !important;
  padding: var(--nurya-space-2xl) var(--nurya-container-padding-x) var(--nurya-space-3xl);
  color: rgba(246, 241, 231, 0.85);
}

.nurya-product-premium .yc-single-product .product-images {
  display: none;
}

.nurya-product-premium .yc-single-product .product-details {
  max-width: 52rem;
  margin-inline: auto;
}

.nurya-product-premium .yc-single-product .product-name,
.nurya-product-premium .yc-single-product .product-price-container,
.nurya-product-premium .yc-single-product .product-description {
  display: none;
}

.nurya-product-premium .yc-single-product .product-option-title {
  font-family: var(--nurya-font-body);
  font-size: var(--nurya-text-xs);
  letter-spacing: var(--nurya-tracking-wide);
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.7);
}

.nurya-product-premium .yc-single-product .quantity-field {
  width: 12rem;
  border: 1px solid rgba(246, 241, 231, 0.25);
  border-radius: 0;
  background: transparent;
  transition: border-color 300ms ease;
}

.nurya-product-premium .yc-single-product .quantity-field:focus-within {
  border-color: var(--nurya-color-gold-light);
}

.nurya-product-premium .yc-single-product .quantity-input {
  background: transparent;
  color: rgb(246, 241, 231) !important;
  font-family: var(--nurya-font-body);
}

.nurya-product-premium .yc-single-product .decrement-button,
.nurya-product-premium .yc-single-product .increment-button {
  color: rgba(246, 241, 231, 0.55) !important;
  font-size: 1.8rem !important;
}

.nurya-product-premium .yc-single-product .decrement-button:hover,
.nurya-product-premium .yc-single-product .increment-button:hover {
  color: var(--nurya-color-gold-light) !important;
}

.nurya-product-premium .yc-single-product .yc-btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: var(--nurya-tracking-wide);
  font-family: var(--nurya-font-body);
}

/* ============ Sticky COD "Commander maintenant" — harmonized ============ */

.nurya-product-premium .express-checkout-button.is_sticky {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: var(--nurya-tracking-wide);
  font-family: var(--nurya-font-body);
}
