/* ================================================================
   Neo Skin Demo — its own styling
   ================================================================
   Everything the try-on demo shares (base, header, loading, the
   product page's layout, type, labels, buttons, the phone layout) is
   demo.css. This file is only what a skincare page adds: its category
   dropdowns, the type eyebrow, How to apply, the concern and skin-type
   tags, the scan icon, Key ingredients, and its phone image.

   The accent is demo.css's --accent / --cta-gradient / --cta-glow:
   neoskin-demo.js writes the client's own colours into them.
   ================================================================ */

/* Soft accent fills, derived from the one accent so a client's colours
   carry through */
:root {
  --accent-soft-bg: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-soft-fg: color-mix(in srgb, var(--accent) 70%, #000);
}

/* ─── Category dropdowns ───────────────────────────────────────── */

.cat-dropdown {
  position: fixed;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 8px;
  min-width: 220px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.cat-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Accordion group: a product type header + its 6 products */
.cat-dd-group {
  border-radius: 8px;
  overflow: hidden;
}
.cat-dd-group + .cat-dd-group {
  margin-top: 2px;
}

.cat-dd-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font:
    700 11px/1 'Open Sans',
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2a2a2a;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cat-dd-subhead:hover {
  background: #f4f1ec;
}
.dd-chev {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
  color: #888;
}
.cat-dd-group.expanded .dd-chev {
  transform: rotate(180deg);
}

.cat-dd-lines {
  display: none;
  padding: 4px 0 6px;
}
.cat-dd-group.expanded .cat-dd-lines {
  display: block;
}

.cat-dd-line {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px 8px 24px;
  background: transparent;
  border: none;
  font:
    500 13px/1.35 'Open Sans',
    sans-serif;
  color: #4a4a4a;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.cat-dd-line:hover {
  background: #f4f1ec;
  color: #1f2421;
}
.cat-dd-line.active {
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
  font-weight: 600;
}

/* ─── Product page: what a skincare page adds ──────────────────── */

/* The product type, above the title, in the accent */
.product-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font:
    700 11px/1 'Open Sans',
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.apply-block {
  margin-top: 18px;
}

/* Concerns and skin types */
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0ece4;
  color: #5a5750;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-soft {
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
}

/* Scan my skin's three-stars mark (Mirror's own icons/three-stars.svg), at
   the Try On icon's 17px height */
.ask-ai-icon {
  width: 15px;
  height: 17px;
  flex-shrink: 0;
  background: url('/icons/three-stars.svg') center / contain no-repeat;
}

/* ─── Key ingredients ─────────────────────────────────────────────── */

.ingredients-section {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

/* The product title's type, a step smaller */
.section-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 36px;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ingredient-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 22px;
}

.ingredient-card h4 {
  font:
    700 13px/1 'Open Sans',
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.ingredient-card p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
}

/* The phone layout's image, hidden on desktop */
.mobile-image-container {
  display: none;
}

/* ─── Phones (the shared layout: demo.css) ──────────────────────── */

@media (max-width: 768px) {
  .mobile-product-info .product-eyebrow {
    justify-content: center;
    margin-bottom: 8px;
  }

  /* The try-on demo's image panel */
  .mobile-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-bottom: 24px;
    border-radius: 8px;
    background: #f5f3f0;
  }

  .mobile-about-product .tag-row {
    justify-content: center;
  }

  .mobile-image-container img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
  }

  .ingredients-section {
    margin-top: 48px;
    padding-top: 36px;
  }

  .section-title {
    font-size: 24px;
  }
}
