/* ============================================================
   FeehaWears — Product Detail page styles
   (loads after styles.css + mobile.css; reuses all tokens)
   ============================================================ */

.pdp { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(40px, 5vw, 72px); }

.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; }
.breadcrumb a { transition: color .25s; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--ink-soft); }

.pdp__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 76px); align-items: start; }

/* ---- Gallery ---- */
.gallery { position: sticky; top: 104px; }
.gallery__main { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery__track { display: flex; height: 100%; transition: transform .55s var(--ease); }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.gallery__tag { position: absolute; top: 16px; left: 16px; z-index: 2;
  background: color-mix(in srgb, var(--ink) 84%, transparent); color: var(--bg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, #ffffff 22%, transparent);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery__thumbs button { flex: 0 0 auto; width: 80px; aspect-ratio: 4/5; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-2); border: 1px solid transparent; opacity: .62; transition: opacity .25s, border-color .25s; }
.gallery__thumbs button.active { opacity: 1; border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__dots { display: none; }

/* ---- Product info ---- */
.pinfo .eyebrow { display: block; margin-bottom: 12px; }
.pinfo h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.02; letter-spacing: -.01em; margin-bottom: 14px; }
.pinfo__rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--ink-soft); font-size: 13px; }
.pinfo__rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.pinfo__price { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--ink);
  display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.pinfo__price .was { text-decoration: line-through; color: var(--ink-faint); font-size: 21px; }
.pinfo__price .save { font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 999px; align-self: center; }
.pinfo__tax { font-size: 12px; color: var(--ink-faint); margin-bottom: 26px; }
.pinfo__desc { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); font-size: 15.5px; line-height: 1.7; margin-bottom: 30px; }

.opt { margin-bottom: 24px; }
.opt__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.opt__label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.opt__label b { color: var(--ink-soft); font-weight: 400; margin-left: 6px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.opt__hint { font-size: 12px; color: var(--accent-ink); cursor: pointer; }
.opt__hint:hover { text-decoration: underline; }

.swatches { display: flex; gap: 12px; }
.swatch { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  transition: box-shadow .2s; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

.sizes { display: flex; gap: 10px; flex-wrap: wrap; }
.size-opt { min-width: 52px; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: 14px; letter-spacing: .03em;
  display: inline-flex; align-items: center; justify-content: center; transition: all .25s var(--ease); }
.size-opt:hover { border-color: var(--ink-soft); }
.size-opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.buybar { display: flex; gap: 12px; align-items: stretch; margin: 30px 0 16px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; flex: 0 0 auto; }
.qty button { width: 46px; height: 56px; font-size: 18px; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.qty button:hover { color: var(--accent-ink); }
.qty span { min-width: 28px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.buybar .btn { flex: 1; justify-content: center; height: 56px; }

.wa-order { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px;
  border-radius: 999px; border: 1px solid #1f9d51; color: #1a8044; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; background: transparent; transition: background .3s, color .3s; }
.wa-order:hover { background: #25D366; color: #fff; border-color: #25D366; }
.wa-order svg { width: 19px; height: 19px; }

.assurance { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 26px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.assurance div { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.assurance svg { width: 20px; height: 20px; color: var(--accent-ink); flex: 0 0 auto; }

/* ---- Accordions ---- */
.accordion { margin-top: 8px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
  font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--ink); text-align: left; }
.acc__head .pm { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.acc__head .pm::before, .acc__head .pm::after { content: ""; position: absolute; background: var(--ink-soft); transition: transform .35s var(--ease); }
.acc__head .pm::before { top: 6px; left: 0; width: 14px; height: 1.5px; }
.acc__head .pm::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.acc.open .acc__head .pm::after { transform: scaleY(0); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc__body-inner { padding-bottom: 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }
.acc__body-inner ul { margin: 0; padding-left: 18px; }
.acc__body-inner li { margin-bottom: 6px; }
.acc.open .acc__body { max-height: 320px; }

/* ---- Related ---- */
.related { padding-top: clamp(48px, 6vw, 88px); }

/* ---- Mobile sticky add bar ---- */
.pdp-bar { display: none; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
  .pdp { padding-top: 14px; padding-bottom: 40px; }
  .breadcrumb { margin-bottom: 16px; font-size: 10.5px; }
  .pdp__grid { grid-template-columns: 1fr; gap: 26px; }

  /* Gallery → swipeable */
  .gallery { position: static; margin-inline: calc(var(--gutter) * -1); }
  .gallery__main { aspect-ratio: 3/4; border-radius: 0; }
  .gallery__track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; transition: none; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__track img { scroll-snap-align: center; }
  .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
  .gallery__dots b { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .3s, background .3s; }
  .gallery__dots b.on { width: 22px; background: var(--accent); }

  .pinfo { padding-top: 4px; }
  .pinfo h1 { font-size: 30px; }
  .buybar { display: none; }
  .assurance { gap: 12px 20px; }

  /* Sticky add-to-bag bar above the tab bar */
  .pdp-bar { display: flex; position: fixed; left: 0; right: 0; z-index: 78;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 14px;
    padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line); }
  .pdp-bar__price { display: flex; flex-direction: column; line-height: 1.1; flex: 1 1 auto; min-width: 0; }
  .pdp-bar__price .now { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar__price .lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Keep the button on one line and never let the price block squeeze it. */
  .pdp-bar .btn { flex: 0 0 auto; justify-content: center; height: 52px; min-width: 150px;
    padding: 0 22px; letter-spacing: .12em; white-space: nowrap; }
  /* Lift the WhatsApp FAB clear ABOVE the sticky add-to-bag bar on product pages
     (WooCommerce sets the .single-product body class). */
  .single-product .wa-fab,
  body.pdp-page .wa-fab { bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 92px); }

  .related { padding-top: 48px; }
}
