/* ==========================================================
   product.css — Gator Tobacco Vitola Landing Page
   Layout: Asymmetric 2-col desktop / single-col mobile
   Tokens: inherits from base.css design system
   ========================================================== */

/* ── 1. PAGE FOUNDATION ──────────────────────────────────── */
.product-page {
  background-color: var(--color-surface); /* #181210 */
  min-height: 100vh;
  min-height: 100svh;
}

/* ── 2. BREADCRUMB TRAIL ─────────────────────────────────── */
.product-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.85rem 2rem 0.25rem;
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
}

.product-breadcrumb .bc-link {
  color: var(--color-primary);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.18s;
}

.product-breadcrumb .bc-link:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-breadcrumb .bc-sep {
  color: var(--color-on-surface-variant);
  opacity: 0.35;
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}

.product-breadcrumb .bc-current {
  color: var(--color-on-surface-variant);
  opacity: 0.55;
  /* Truncate long product names elegantly */
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .product-breadcrumb {
    padding: 0.75rem 1.25rem 0.25rem;
    font-size: 0.575rem;
  }
}

/* ── 3. BACK NAVIGATION ──────────────────────────────────── */
.product-back-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  color: var(--color-on-surface-variant);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  width: fit-content;
  cursor: pointer;
}
.product-back-nav:hover {
  color: var(--color-primary);
}
.product-back-nav .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.2s;
}
.product-back-nav:hover .material-symbols-outlined {
  transform: translateX(-3px);
}

/* ── 3. PRIMARY LAYOUT GRID ──────────────────────────────── */
.product-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  min-height: calc(100vh - var(--header-height, 72px));
  align-items: start;
}

@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    padding: 0 1.5rem 5rem;
  }
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    padding: 0 1rem 4rem;
    gap: 2rem;
  }
}

/* ── 4. LEFT COLUMN — ASSET FRAME ────────────────────────── */
.product-image-col {
  position: sticky;
  top: calc(var(--header-height, 72px) + 2rem);
  padding: 2rem 3rem 2rem 0;
}

@media (max-width: 1024px) {
  .product-image-col {
    padding: 2rem 2rem 2rem 0;
  }
}

@media (max-width: 768px) {
  .product-image-col {
    position: static;
    padding: 0;
  }
}

/* Image container with gold border glow */
.product-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface-container-low);
  border: 1px solid rgba(197, 160, 89, 0.15);
  box-shadow:
    0 0 0 1px rgba(197, 160, 89, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.55);
  aspect-ratio: 3 / 4;
}

@media (max-width: 768px) {
  .product-image-frame {
    aspect-ratio: 4 / 3;
  }
}

/* The product photo itself */
.cigar-asset-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.cigar-asset-thumb:hover {
  transform: scale(1.025);
}

/* Subtle gradient overlay at the bottom of the image */
.product-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(13, 11, 9, 0.75), transparent);
  pointer-events: none;
}

/* Brand watermark inside image frame */
.product-image-brand-mark {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 183, 125, 0.7);
}

/* ── 5. RIGHT COLUMN — PROFILE DATA ──────────────────────── */
.product-info-col {
  padding: 2rem 0 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .product-info-col {
    padding: 2rem 0 2rem 2rem;
  }
}

@media (max-width: 768px) {
  .product-info-col {
    padding: 0;
    gap: 1.75rem;
  }
}

/* ── 6. HEADER IDENTITY BLOCK ────────────────────────────── */
.product-brand-label {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.85;
  margin-bottom: 0.625rem;
  display: block;
}

.product-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-on-surface);
  line-height: 1.15;
  margin: 0;
}

/* Gold accent divider */
.gold-accent-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--color-primary-container),
    rgba(197, 160, 89, 0.25),
    transparent
  );
  margin: 0;
  width: 60%;
}

/* ── 7. BLEND BREAKDOWN MATRIX ───────────────────────────── */
.blend-matrix {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.15);
  background: var(--color-surface-container-low);
}

.blend-matrix-title {
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  padding: 1rem 1.25rem 0.625rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.blend-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.07);
  transition: background 0.2s;
}
.blend-row:last-child {
  border-bottom: none;
}
.blend-row:hover {
  background: rgba(255, 183, 125, 0.04);
}

.blend-row-label {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  min-width: 4.5rem;
  flex-shrink: 0;
}

.blend-row-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-on-surface);
  line-height: 1.4;
  font-weight: 400;
}

/* ── 8. PHYSICAL SPECIFICATIONS PANEL ───────────────────── */
.specs-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .specs-panel {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  background: var(--color-surface-container-low);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.25s, background 0.25s;
}
.spec-card:hover {
  border-color: rgba(197, 160, 89, 0.3);
  background: var(--color-surface-container);
}

.spec-card-label {
  font-family: var(--font-label);
  font-size: 0.575rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-on-surface-variant);
  opacity: 0.8;
}

.spec-card-value {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-on-surface);
  line-height: 1.2;
}

/* Strength intensity bar */
.strength-bar-track {
  height: 3px;
  background: rgba(197, 160, 89, 0.12);
  border-radius: 100px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(to right, var(--color-primary-container), var(--color-primary));
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  width: 0; /* animated in by JS */
}

/* ── 9. ORIGIN CHIP ──────────────────────────────────────── */
.product-origin-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 30, 28, 0.6);
  border: 1px solid rgba(85, 67, 54, 0.6);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-on-surface-variant);
}
.product-origin-chip .material-symbols-outlined {
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* ── 10. EXCLUSIVITY NOTICE CARD ─────────────────────────── */
.exclusivity-notice-card {
  background: linear-gradient(
    135deg,
    rgba(30, 22, 16, 0.9),
    rgba(20, 14, 10, 0.95)
  );
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(197, 160, 89, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Subtle gold corner accent */
.exclusivity-notice-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.08), transparent 70%);
  pointer-events: none;
}

.exclusivity-tag {
  font-family: var(--font-label);
  font-size: 0.575rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.exclusivity-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--color-primary-container);
  flex-shrink: 0;
}

.exclusivity-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-on-surface-variant);
  font-weight: 300;
  max-width: 32rem;
}

.location-signature {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 183, 125, 0.55);
  padding-top: 0.25rem;
  border-top: 1px solid rgba(197, 160, 89, 0.1);
}

/* ── 11. SCROLL REVEAL — PANEL ANIMATION ──────────────────── */
.reveal-panel {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 12. ERROR / NOT FOUND STATE ─────────────────────────── */
.product-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 1rem;
  padding: 3rem;
}
.product-not-found .material-symbols-outlined {
  font-size: 3rem;
  color: var(--color-outline);
}
.product-not-found h2 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--color-on-surface);
}
.product-not-found p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-on-surface-variant);
  max-width: 24rem;
}

/* ── 13. RESPONSIVE SPACING TWEAKS ──────────────────────── */
@media (max-width: 512px) {
  .product-back-nav {
    padding: 1rem;
  }
  .product-title {
    font-size: 1.625rem;
  }
  .blend-row-value {
    font-size: 0.825rem;
  }
  .exclusivity-notice-card {
    padding: 1.25rem 1rem;
  }
}
