/* ==========================================================================
   Bloomy — Product Detail page styles.
   Loads after style.css. Reuses .container, .btn, .breadcrumb,
   .section-heading, and .product-grid/.product-card from style.css.
   ========================================================================== */

.product-detail-page {
  padding-block: 32px 80px;
}

.not-found {
  text-align: center;
  padding-block: 80px;
}

.not-found p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
}

/* ---- Two-column layout: image left, info right ---- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 96px;
  background-color: hsl(var(--primary) / 0.05);
  border-radius: var(--radius);
  padding: 32px;
}

.product-detail[hidden] {
  display: none;
}

.product-detail__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.product-detail__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.product-detail__name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
}

.product-detail__description {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ---- Composition box ---- */
.composition-box {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.composition-box__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 6px;
}

.composition-box__text {
  font-size: 0.95rem;
}

.product-detail__price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: hsl(var(--primary));
  margin-bottom: 16px;
}

/* ---- Sold-out-today advisory (orange, deliberately distinct from the
   discontinued badge — this state is informational, not blocking) ---- */
.sold-out-advisory {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b5670a;
  background-color: #fdf1e0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.sold-out-advisory svg {
  flex-shrink: 0;
}

.sold-out-advisory[hidden] {
  display: none;
}

/* ---- Quantity stepper + Add to cart ---- */
.product-detail__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

/* ---- Static feature mini-cards (kept local — only one page uses them
   so far; promote to style.css if a second page ever needs the same
   compact icon-free title/desc pair) ---- */
.detail-features {
  display: flex;
  gap: 16px;
}

.detail-features > .detail-feature {
  flex: 1;
  min-width: 0;
}

.detail-feature {
  background-color: hsl(var(--background));
  border-radius: 14px;
  padding: 14px 18px;
}

.detail-feature__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.detail-feature__desc {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

/* ---- Related products section spacing ---- */
.related-products {
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 20px;
  }

  .product-detail__name {
    font-size: 1.75rem;
  }

  .detail-features {
    flex-direction: column;
  }

  .product-detail__actions {
    flex-wrap: wrap;
  }

  .product-detail__actions #add-to-cart {
    flex: 1 1 100%;
    justify-content: center;
  }
}
