/* ══════════════════════════════════════════════════════════════════════════
   VICE SWEETY — PRODUCT PAGE STYLES (LIGHT THEME)
   Miami bright Art Deco · Clean, elegant · White & pastel surfaces
══════════════════════════════════════════════════════════════════════════ */

.product-page {
  padding-top: 7rem;
  background: var(--bg);
}

/* ───────────────────────────────────────────────────────────────────────
   BREADCRUMB
─────────────────────────────────────────────────────────────────────── */

.breadcrumb {
  padding: 2rem 6vw 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: all 0.3s;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--accent);
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────────────
   MAIN PRODUCT SECTION
─────────────────────────────────────────────────────────────────────── */

.product-hero {
  padding: 3rem 6vw 5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6vw;
  align-items: start;
}

/* ───────────────────────────────────────────────────────────────────────
   PRODUCT GALLERY
─────────────────────────────────────────────────────────────────────── */

.product-gallery {
  position: sticky;
  top: 7rem;
}

.product-img-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1rem;
  position: relative;
  border: 1px solid rgba(26,16,37,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.product-img-main img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  mix-blend-mode: normal;
  transition: opacity 0.4s ease;
}

.product-thumbnails {
  display: flex;
  gap: 0.8rem;
}

.product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  border: 2px solid var(--surface-hover);
  transition: all 0.3s;
}

.product-thumb.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.product-thumb:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ───────────────────────────────────────────────────────────────────────
   PRODUCT INFO
─────────────────────────────────────────────────────────────────────── */

.product-info {
  padding-top: 1rem;
}

.product-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #d8296a);
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.product-category {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-category::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

.product-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.product-subtitle {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.product-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(26,16,37,0.1), transparent);
  margin: 2rem 0;
}

.product-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

/* ───────────────────────────────────────────────────────────────────────
   COMPOSITION / LAYERS
─────────────────────────────────────────────────────────────────────── */

.product-section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.product-layers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.product-layer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(26,16,37,0.08);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.product-layer:hover {
  border-color: var(--accent);
  background: rgba(230,59,122,0.04);
  box-shadow: var(--shadow-sm);
}

.product-layer-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d8296a);
  flex-shrink: 0;
}

.product-layer-text {
  font-size: 0.9rem;
  color: var(--text);
}

/* ───────────────────────────────────────────────────────────────────────
   ALLERGENS & INGREDIENTS
─────────────────────────────────────────────────────────────────────── */

.product-allergens {
  margin-bottom: 2.5rem;
}

.allergen-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.allergen-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  color: var(--accent);
  background: transparent;
  transition: all 0.3s var(--ease-out);
}

.allergen-tag:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ───────────────────────────────────────────────────────────────────────
   PRICING & QUANTITY
─────────────────────────────────────────────────────────────────────── */

.product-pricing {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.product-price {
  flex-grow: 1;
}

.product-price-main {
  font-family: var(--mono);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.product-price-unit {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-quantity {
  display: flex;
  align-items: center;
  border: 1px solid rgba(26,16,37,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface);
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.quantity-btn:hover {
  background: rgba(230,59,122,0.08);
  color: var(--accent);
}

.quantity-input {
  width: 3rem;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.quantity-input:focus {
  outline: none;
}

/* ───────────────────────────────────────────────────────────────────────
   PRODUCT CTA
─────────────────────────────────────────────────────────────────────── */

.product-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.product-cta-primary {
  flex: 1;
  min-width: 200px;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), #d8296a);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.product-cta-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.product-cta-primary:active {
  transform: scale(0.98);
}

.product-cta-secondary {
  padding: 1.2rem 2.5rem;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-full);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: none;
}

.product-cta-secondary:hover {
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ───────────────────────────────────────────────────────────────────────
   PRODUCT FEATURES
─────────────────────────────────────────────────────────────────────── */

.product-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26,16,37,0.08);
}

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.feature-title {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────────────────────
   RELATED PRODUCTS / RECOMMENDATIONS
─────────────────────────────────────────────────────────────────────── */

.related-products {
  padding: 4rem 6vw;
  background: var(--bg);
  margin-top: 4rem;
  border-top: 1px solid rgba(26,16,37,0.08);
}

.related-products-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.related-item {
  background: var(--surface);
  border: 1px solid rgba(26,16,37,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.related-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.related-item-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-elevated);
}

.related-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.related-item:hover .related-item-image img {
  transform: scale(1.08);
}

.related-item-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-item-name {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.related-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.related-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-item-price {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
}

.related-item-cta {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d8296a);
  color: #fff;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.related-item-cta:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
}

/* ───────────────────────────────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: 1fr;
    padding: 2rem 4vw 3rem;
  }

  .product-gallery {
    position: relative;
    top: auto;
  }

  .product-cta-group {
    flex-direction: column;
  }

  .product-cta-primary,
  .product-cta-secondary {
    width: 100%;
  }

  .related-products {
    padding: 3rem 4vw;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-page {
    padding-top: 5rem;
  }

  .product-hero {
    padding: 1.5rem 3vw 2rem;
  }

  .product-name {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .product-pricing {
    gap: 1rem;
  }

  .product-price-main {
    font-size: 1.8rem;
  }

  .product-cta-group {
    flex-direction: column;
  }

  .product-cta-primary,
  .product-cta-secondary {
    width: 100%;
  }

  .product-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-products {
    padding: 2rem 3vw;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    padding: 1rem 3vw 0;
    font-size: 0.6rem;
  }

  .allergen-tags {
    gap: 0.6rem;
  }

  .allergen-tag {
    font-size: 0.55rem;
    padding: 0.4rem 0.7rem;
  }
}
