/* Anahata v2 — PDP FAQ. Figma 1473:915 "Frequently Asked Questions" (1785:4000). */

.pdp-faq {
  display: flex;
  justify-content: center;
  padding: 0 var(--a-gutter); /* was 17px — matches the product page's 20px gutter */
}

.pdp-faq__card {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: var(--a-space-2);
  padding: 0 var(--a-space-4);
  background: var(--a-surface);
  border-radius: var(--a-radius);
  overflow: hidden;
}

/* the gradient strip spans the full card, past the 15px side padding */
.pdp-faq__head {
  display: flex;
  align-items: center;
  gap: var(--a-space-3);
  min-height: 39px;
  margin: 0 calc(var(--a-space-4) * -1);
  padding: 0 var(--a-space-5);
  background: var(--a-gradient-brand);
  border-radius: var(--a-radius) var(--a-radius) 0 0;
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-body);
  line-height: normal;
  color: var(--a-on-dark);
}

.pdp-faq__head-icon {
  display: flex;
  color: var(--a-on-dark);
}

.pdp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-space-3);
  padding: var(--a-space-3) 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--a-font-body);
  font-weight: 500;
  font-size: var(--a-fs-body);
  line-height: normal;
  color: var(--a-ink);
}

.pdp-faq__q::-webkit-details-marker {
  display: none;
}

.pdp-faq__q:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 2px;
}

/* Figma turns the dropdown chevron -90deg so it points right */
.pdp-faq__chevron {
  flex: 0 0 auto;
  display: flex;
  color: var(--a-ink);
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.pdp-faq__item[open] .pdp-faq__chevron {
  transform: rotate(0deg);
}

.pdp-faq__a {
  padding: 0 0 var(--a-space-3);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-m);
  line-height: 1.5;
  color: var(--a-text-muted);
}

.pdp-faq__a > :first-child { margin-top: 0; }
.pdp-faq__a > :last-child { margin-bottom: 0; }

/* 60% tan rule spanning the full card width */
.pdp-faq__rule {
  height: 1px;
  margin: 0 calc(var(--a-space-4) * -1);
  border: 0;
  background: var(--a-tan);
  opacity: 0.6;
}

/* same centred column as the product above it (component-pdp.css) */
@media screen and (min-width: 750px) {
  .pdp-faq {
    max-width: 640px;
    margin-inline: auto;
  }
}

/* ---- Classic style (v1 look, rebuilt 2026-09-28; measured on the live v1
   product page): no card, centred Aboreto heading, a ruled list up to 720px,
   + that turns into × when a question opens. ---- */
.pdp-faq--classic {
  padding-block: calc(var(--a-space-5) * 2);   /* air above and below, as v1 */
}

.pdp-faq--classic .pdp-faq__card {
  max-width: 720px;
  margin-inline: auto;
  gap: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.pdp-faq--classic .pdp-faq__head {
  justify-content: center;
  margin: 0 0 calc(var(--a-space-5) + var(--a-space-1));   /* 24px + the row's 16px = v1's 40px to the first question */
  padding: 0;
  background: none;
  font-family: var(--a-font-display);
  font-weight: 400;
  font-size: var(--a-fs-faq-title);
  line-height: 1.2;
  text-align: center;
  color: var(--a-ink-slate);
}

.pdp-faq--classic .pdp-faq__head-icon,
.pdp-faq--classic .pdp-faq__rule {
  display: none;
}

.pdp-faq--classic .pdp-faq__item {
  padding: calc(var(--a-space-4) + 1px) 0;   /* 16px — v1 */
  border-bottom: 1px solid var(--a-rule-faint);
}

.pdp-faq--classic .pdp-faq__q {
  padding: 0;
  font-family: var(--a-font-body);
  font-weight: 600;
  font-size: var(--a-fs-faq-q);
  line-height: 24px;
  color: var(--a-ink-slate);
}

.pdp-faq--classic .pdp-faq__chevron {
  transform: none;
  transition: transform 0.2s ease;
}

.pdp-faq--classic .pdp-faq__item[open] .pdp-faq__chevron {
  transform: rotate(45deg);   /* + → × */
}

.pdp-faq--classic .pdp-faq__a {
  padding: var(--a-space-3) 0 0;
  color: var(--a-ink-slate);
}

@media screen and (min-width: 750px) {
  .pdp-faq.pdp-faq--classic {
    max-width: calc(720px + var(--a-gutter) * 2);
  }
}
