/* =========================================================
   Parley Rum | Products (products.css)
   Clean rewrite: same layout + behavior, clearer structure
   Notes:
   - Built on base.css tokens (colors, radius, shadows)
   - Keeps: chip overlap fix, rounded corners, scene re-order,
     constrained Aging + Shipping images, responsive behavior
   ========================================================= */

/* =========================
   Active nav state (optional)
   ========================= */
.nav a.is-active{
  background: rgba(208,122,45,.18);
  color: var(--text);
  border: 1px solid rgba(120,80,30,.18);
}

/* =========================
   Buttons
   ========================= */
.btn-ghost{
  background: rgba(255,255,255,.55);
}
.btn-ghost:hover{
  background: rgba(255,255,255,.75);
}

/* =========================
   Rope divider
   ========================= */
.rope-divider{
  height: 18px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid rgba(120,80,30,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,0,0,.06)),
    repeating-linear-gradient(
      90deg,
      rgba(184,76,42,.22) 0px,
      rgba(184,76,42,.22) 10px,
      rgba(201,150,46,.22) 10px,
      rgba(201,150,46,.22) 20px
    );
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* =========================================================
   HERO
   ========================================================= */
.hero-wrap{
  padding: 26px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}

/* Reuse visual language used across pages */
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(43,27,15,.78);
}

.kicker::before{
  content:"";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), transparent 55%),
    linear-gradient(180deg, rgba(201,150,46,.9), rgba(208,122,45,.9));
  border: 1px solid rgba(120,80,30,.25);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.hero-sub{
  max-width: 62ch;
  font-size: 16px;
}

.hero-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.55);
  font-size: 12px;
  color: rgba(43,27,15,.78);
}

/* Hero image frame */
.hero-image{
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(120,80,30,.22);
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: var(--sh-soft);
  min-height: 320px;
}

/* Make the image itself match the rounded feel */
.hero-image img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

/* =========================================================
   Section head
   ========================================================= */
.section-head{
  margin-bottom: 18px;
  max-width: 80ch;
}
.section-head p{
  margin-bottom: 0;
}

/* =========================================================
   PRODUCTS (Featured bottles)
   ========================================================= */
.product-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Two-column product card: media + details */
.product-card{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 520px;
}

/* -----------------------------------------
   MEDIA COLUMN
   Fix: reserve top space for chips so they never overlap
   ----------------------------------------- */
.product-media{
  position: relative;

  /* Reserve top space for chip ribbon */
  padding: 64px 14px 14px;

  display: grid;
  place-items: center;

  background:
    radial-gradient(600px 320px at 50% 30%, rgba(208,122,45,.18), transparent 65%),
    radial-gradient(520px 320px at 60% 80%, rgba(43,122,120,.10), transparent 62%),
    rgba(255,255,255,.55);

  border-right: 1px solid rgba(120,80,30,.18);
}

.product-media img{
  width: min(360px, 100%);
  max-height: 400px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
  border-radius: 14px;
}

/* Chip ribbon pinned to the top-left */
.product-ribbon{
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 28px);
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.62);
  color: rgba(43,27,15,.84);
}

.chip-cinnamon{ background: rgba(184,76,42,.14); }
.chip-warm{ background: rgba(208,122,45,.12); }
.chip-spiced{ background: rgba(201,150,46,.14); }
.chip-smooth{ background: rgba(255,255,255,.70); }

/* -----------------------------------------
   BODY COLUMN
   ----------------------------------------- */
.product-body{
  padding: 16px 16px 18px;
}

.product-title-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.product-title{
  margin: 0;
}

.product-mark{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(43,27,15,.55);
}

.product-desc{
  margin-top: 0;
  margin-bottom: 14px;
}

/* Flavor notes block */
.note-block{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.58);
}

.note-k{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(43,27,15,.70);
  margin-bottom: 4px;
}

.note-v{
  font-size: 13px;
  color: rgba(43,27,15,.72);
}

/* Best-for tags */
.best-for{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(208,122,45,.10);
  color: rgba(43,27,15,.78);
  font-size: 12px;
  font-weight: 800;
}

/* Pairings */
.pairings{
  margin-top: 14px;
}

.pairings-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pairings-title{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(43,27,15,.70);
}

.pairings-link{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(43,27,15,.70);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.55);
  text-decoration: none;
}

.pairings-link:hover{
  background: rgba(255,255,255,.75);
  color: var(--text);
}

.pairings-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pair-tile{
  text-decoration: none;
  padding: 12px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.55);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  transition: transform .12s ease, background .12s ease;
  color: var(--text);
}

.pair-tile:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.72);
}

.pair-name{
  display: block;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 4px;
}

.pair-meta{
  display: block;
  font-size: 13px;
  color: rgba(43,27,15,.70);
}

.product-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* =========================================================
   PICK A MOOD (scene cards)
   - Shows more of image by shifting object-position
   - Reorders visually: Spiced first, Cinnamon second
   ========================================================= */
.scene-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* Visual reorder without changing HTML */
.scene-grid .scene:nth-child(1){ order: 2; } /* Cinnamon */
.scene-grid .scene:nth-child(2){ order: 1; } /* Spiced */

.scene{
  margin: 0;
  overflow: hidden;
}

.scene-media{
  height: 360px;
  overflow: hidden;
  border-bottom: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.35);
}

/* Rounded corners on the actual image */
.scene-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

/* Reveal slightly different composition per scene */
.scene-grid .scene:nth-child(2) img{
  object-position: center 65%;
}
.scene-grid .scene:nth-child(1) img{
  object-position: center 55%;
}

.scene-cap{
  padding: 14px 16px;
}

.scene-title{
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(43,27,15,.80);
  margin-bottom: 6px;
}

.scene-text{
  font-size: 13px;
  color: rgba(43,27,15,.72);
}

/* =========================================================
   AGING (barrel section)
   Constrain image so copy never gets squeezed
   ========================================================= */
.aging-wrap{
  padding: 22px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}

.aging-copy{
  min-width: 0;
}

.aging-list{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.aging-list li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.55);
  color: rgba(43,27,15,.78);
}

.bullet{
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(43,27,15,.70);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(208,122,45,.12);
}

.aging-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.aging-image{
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(120,80,30,.22);
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: var(--sh-soft);
  height: 340px;
}

.aging-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

/* =========================================================
   SHIPPING (availability section)
   Constrain image + prevent the text card from stretching weirdly
   ========================================================= */
.ship-wrap{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.ship-image{
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid rgba(120,80,30,.22);
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: var(--sh-soft);
  height: 360px;
}

.ship-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

.ship-card{
  padding: 22px;
  min-width: 0;
}

.ship-card p{
  max-width: 70ch;
}

.ship-points{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.point{
  padding: 12px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(120,80,30,.18);
  background: rgba(255,255,255,.55);
}

.point-k{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(43,27,15,.70);
  margin-bottom: 4px;
}

.point-v{
  font-size: 13px;
  color: rgba(43,27,15,.72);
}

.ship-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  /* Hero stacks */
  .hero-wrap{
    grid-template-columns: 1fr;
  }

  /* Product cards stack */
  .product-card{
    grid-template-columns: 1fr;
  }
  .product-media{
    border-right: none;
    border-bottom: 1px solid rgba(120,80,30,.18);
  }

  /* Notes go vertical */
  .note-block{
    grid-template-columns: 1fr;
  }

  /* Pairings go vertical */
  .pairings-grid{
    grid-template-columns: 1fr;
  }

  /* Scenes become single column */
  .scene-grid{
    grid-template-columns: 1fr;
  }

  /* On mobile, keep HTML order so it reads naturally */
  .scene-grid .scene{
    order: unset;
  }
  .scene-media{
    height: 300px;
  }

  /* Aging stacks */
  .aging-wrap{
    grid-template-columns: 1fr;
  }
  .aging-image{
    height: 300px;
  }

  /* Shipping stacks */
  .ship-wrap{
    grid-template-columns: 1fr;
  }
  .ship-image{
    height: 280px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pair-tile{
    transition: none;
  }
}
