/* ============================================================
   Fragrance PDP – Frontend Styles
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --fpdp-gold:        #a07850;
  --fpdp-dark:        #111111;
  --fpdp-text:        #222222;
  --fpdp-muted:       #666666;
  --fpdp-light-bg:    #faf9f7;
  --fpdp-border:      #e0dcd6;
  --fpdp-radius:      4px;
  --fpdp-transition:  0.28s ease;
  --fpdp-font:        inherit;
}

/* ── Shared Utilities ──────────────────────────────────────── */
.fpdp-no-data {
  font-size: 13px;
  color: #999;
  font-style: italic;
  padding: 12px;
  border: 1px dashed #ccc;
  border-radius: var(--fpdp-radius);
}

/* ============================================================
   ACCORDIONS
   ============================================================ */
.fpdp-accordions {
  border-top: 1px solid var(--fpdp-border);
}

.fpdp-accordion-item {
  border-bottom: 1px solid var(--fpdp-border);
}

.fpdp-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--fpdp-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fpdp-text);
  transition: color var(--fpdp-transition);
}

.fpdp-accordion-header:hover {
  color: var(--fpdp-gold);
}

.fpdp-accordion-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform var(--fpdp-transition);
}

.fpdp-icon-chevron {
  width: 18px;
  height: 18px;
}

.fpdp-accordion-header[aria-expanded="true"] .fpdp-accordion-icon {
  transform: rotate(180deg);
}

.fpdp-accordion-body {
  overflow: hidden;
  max-height: 0; /* collapsed by default - JS sets to scrollHeight on open */
  transition: max-height 0.35s ease;
}

.fpdp-accordion-inner {
  padding: 4px 0 24px;
}

/* ============================================================
   FRAGRANCE PROFILE PANEL
   ============================================================ */
.fpdp-fragrance-profile-panel,
.fpdp-fragrance-profile {
  /* shared */
}

.fpdp-notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.fpdp-note-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fpdp-note-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0ece6;
}

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

.fpdp-note-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fpdp-gold);
  margin-bottom: 4px;
}

.fpdp-note-description {
  font-size: 13px;
  color: var(--fpdp-muted);
  margin: 0;
}

.fpdp-profile-extras {
  font-size: 13px;
  color: var(--fpdp-text);
  border-top: 1px solid var(--fpdp-border);
  padding-top: 12px;
  margin-top: 4px;
}

.fpdp-profile-extras p {
  margin: 4px 0;
}

/* Standalone Fragrance Profile widget (dark variant) */
.fpdp-fragrance-profile {
  padding: 40px 24px;
  background-color: var(--fpdp-dark);
}

.fpdp-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.fpdp-note-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--fpdp-radius);
}

.fpdp-note-image-wrap {
  position: relative;
}

.fpdp-note-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.fpdp-note-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.fpdp-note-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.fpdp-note-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}

.fpdp-note-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.fpdp-profile-meta {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.fpdp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fpdp-meta-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.fpdp-meta-value {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   PRODUCT OVERVIEW / SPECS
   ============================================================ */
.fpdp-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.fpdp-spec-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.fpdp-spec-icon {
  width: 48px;
  height: 48px;
}

.fpdp-spec-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fpdp-spec-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fpdp-spec-label {
  font-size: 12px;
  color: var(--fpdp-muted);
  line-height: 1.3;
}

.fpdp-spec-value {
  font-size: 12px;
  color: var(--fpdp-text);
  line-height: 1.3;
}

/* ============================================================
   USAGE & APPLICATION
   ============================================================ */
.fpdp-usage-panel,
.fpdp-usage-application {
  /* shared */
}

.fpdp-usage-banner {
  margin-bottom: 20px;
  border-radius: var(--fpdp-radius);
  overflow: hidden;
}

.fpdp-usage-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.fpdp-usage-heading {
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: var(--fpdp-text);
  margin: 0 0 12px;
}

.fpdp-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fpdp-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fpdp-text);
}

.fpdp-step-number {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--fpdp-gold);
  min-width: 28px;
}

.fpdp-step-text {
  color: var(--fpdp-muted);
}

/* ============================================================
   DELIVERY INFORMATION
   ============================================================ */
.fpdp-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.fpdp-delivery-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fpdp-delivery-icon {
  width: 44px;
  height: 44px;
}

.fpdp-delivery-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fpdp-delivery-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fpdp-delivery-title {
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--fpdp-text);
  display: block;
}

.fpdp-delivery-desc {
  font-size: 12px;
  color: var(--fpdp-muted);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   EMPTY STATE PANELS
   ============================================================ */
.fpdp-empty-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  background: #fdf8f4;
  border: 1px dashed #d4c4b0;
  border-radius: 6px;
}

.fpdp-empty-icon {
  font-size: 24px;
  line-height: 1;
}

.fpdp-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

.fpdp-empty-instructions {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

.fpdp-empty-instructions strong {
  color: #a07850;
}

/* ============================================================
   KEY HIGHLIGHTS
   ============================================================ */
.fpdp-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fpdp-highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fpdp-highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fpdp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fpdp-highlight-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fpdp-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fpdp-highlight-label {
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  color: var(--fpdp-text);
}

.fpdp-highlight-value {
  font-size: 12px;
  color: var(--fpdp-muted);
  margin: 0;
}

/* Usage summary block */
.fpdp-usage-summary {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--fpdp-border);
}

.fpdp-summary-text {
  font-size: 13px;
  color: var(--fpdp-muted);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   FRAGRANCE TIMELINE  —  Milestone Layout
   ============================================================ */
.fpdp-timeline {
  background-color: #0e0e0e;
  padding: 70px 40px 80px;
  box-sizing: border-box;
}

/* ── Intro text ──────────────────────────────────────────── */
.fpdp-tl-intro {
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.fpdp-tl-heading {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c8a96e;
  margin: 0 0 20px;
  font-weight: 400;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 1px solid #c8a96e;
}

.fpdp-tl-subtext {
  font-size: 13px;
  font-style: italic;
  color: #888;
  line-height: 1.8;
  margin: 0;
}

/* ── Track wrapper (holds line-row + cards-row) ─────────── */
.fpdp-tl-track-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Milestone line row ──────────────────────────────────── */
.fpdp-tl-line-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  padding: 0 142px;
}

.fpdp-tl-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fpdp-tl-milestone-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c8a96e;
  font-weight: 500;
}

/* Dot: outer ring + inner filled circle */
.fpdp-tl-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #c8a96e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0e0e0e;
}

.fpdp-tl-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #c8a96e;
}

/* Horizontal line between dots */
.fpdp-tl-line {
  flex: 1;
  height: 1px;
  background-color: #c8a96e;
  opacity: 0.5;
}

/* ── Cards row ───────────────────────────────────────────── */
.fpdp-tl-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fpdp-tl-stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical connector line from dot to card */
.fpdp-tl-connector {
  width: 1px;
  height: 40px;
  background-color: #c8a96e;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Card ────────────────────────────────────────────────── */
.fpdp-tl-card {
  width: 100%;
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 110, 0.15);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.fpdp-tl-card:hover {
  border-color: rgba(200, 169, 110, 0.4);
  transform: translateY(-4px);
}

.fpdp-tl-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.fpdp-tl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fpdp-tl-card:hover .fpdp-tl-img {
  transform: scale(1.05);
}

/* Empty image placeholder */
.fpdp-tl-card-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
}

.fpdp-tl-img-placeholder {
  font-size: 40px;
  opacity: 0.4;
}

/* Card text body */
.fpdp-tl-card-body {
  padding: 20px;
}

.fpdp-tl-card-title {
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  color: #c8a96e;
  margin: 0 0 10px;
  line-height: 1.3;
}

.fpdp-tl-card-desc {
  font-size: 12px;
  font-style: italic;
  color: #888;
  margin: 0;
  line-height: 1.7;
  text-align: justify;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .fpdp-tl-cards-row {
    grid-template-columns: 1fr;
  }

  .fpdp-tl-line-row {
    display: none; /* hide horizontal milestone track on mobile */
  }

  .fpdp-tl-connector {
    display: none;
  }

  /* Show milestone label above each card instead */
  .fpdp-tl-stage-col::before {
    content: attr(data-milestone);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c8a96e;
    margin-bottom: 8px;
    display: block;
  }

  .fpdp-timeline {
    padding: 40px 20px 60px;
  }
}

/* legacy selector kept for backwards compat */
.fpdp-stage-text-only {
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--fpdp-radius);
}

/* ============================================================
   DISCOVER MORE
   ============================================================ */
.fpdp-discover-more {
  padding: 40px 0;
}

.fpdp-discover-heading {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fpdp-text);
  margin: 0 0 24px;
}

.fpdp-discover-heading strong {
  font-weight: 700;
}

.fpdp-discover-grid {
  display: grid;
  gap: 20px;
}

.fpdp-discover-grid.fpdp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fpdp-discover-grid.fpdp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fpdp-discover-grid.fpdp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 600px) {
  .fpdp-discover-grid.fpdp-cols-3,
  .fpdp-discover-grid.fpdp-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fpdp-discover-product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.fpdp-discover-product-image {
  overflow: hidden;
  border-radius: var(--fpdp-radius);
  margin-bottom: 10px;
  background: #f5f3f0;
}

.fpdp-discover-product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fpdp-discover-product-link:hover img {
  transform: scale(1.05);
}

.fpdp-discover-product-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fpdp-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.fpdp-discover-product-price {
  font-size: 13px;
  color: var(--fpdp-muted);
}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 480px) {
  .fpdp-specs-grid,
  .fpdp-delivery-grid {
    grid-template-columns: 1fr;
  }
}
