/* ==========================================================================
   AKNAS — single product page
   ========================================================================== */

.akn-crumb {
  padding: 16px var(--akn-pad);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--akn-grey); border-bottom: 1px solid var(--akn-line);
}
.akn-crumb a:hover { color: var(--akn-ink); }
.akn-crumb span { margin: 0 8px; opacity: .5; }

/* ── gallery ──────────────────────────────────────────────────────────── */
/* Desktop geometry is the approved product.html exactly: a 76px thumb column
   beside a 3:4 main image, 6px gutters, sticky.
   On mobile the main image is the hero and the thumbnails are the picker, so
   the picker sits BELOW it. column-reverse flips the two source-ordered
   children without touching DOM order — which matters, because the desktop grid
   below places the thumb column from source order. */
.akn-gal { position: relative; display: flex; flex-direction: column-reverse; }
.akn-thumbs-above .akn-gal { flex-direction: column; }

.akn-gal-main { aspect-ratio: 3/4; background: var(--akn-paper-2); overflow: hidden; position: relative; }
.akn-gal-main img { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.akn-gal-main img.akn-on { opacity: 1; }
.akn-gal-flag {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--akn-oxblood); color: var(--akn-onink);
  font-size: 9px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; padding: 6px 10px;
}
/* Sold out is not a money state, so it takes ink rather than the money colour. */
.akn-gal-flag--ink { background: var(--akn-ink); color: var(--akn-paper); }

.akn-gal-thumbs { display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.akn-gal-thumbs::-webkit-scrollbar { display: none; }
.akn-gal-thumbs button {
  position: relative;
  flex: 0 0 68px; aspect-ratio: 3/4; overflow: hidden;
  border: 1px solid transparent; background: var(--akn-paper-2); padding: 0;
}
.akn-gal-thumbs button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.akn-gal-thumbs button[aria-pressed="true"] { border-color: var(--akn-ink); }

@media (min-width: 960px) {
  .akn-gal,
  .akn-thumbs-above .akn-gal {
    display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 6px;
    align-items: start;
    padding: 6px 0 6px 6px;
    position: sticky; top: calc(var(--akn-sticky-top) + 74px);
  }
  .akn-gal-thumbs {
    flex-direction: column; padding: 0;
    overflow: visible;
  }
  .akn-gal-thumbs button { flex: 0 0 auto; width: 100%; }
}

/* Opt-in: cap the desktop image so the buy panel stays in view on a short
   screen. Off by default — the approved HTML is 3:4 all the way up. */
@media (min-width: 960px) {
  .akn-galmode-height .akn-gal { --akn-gal-h: min(78vh, 720px); }
  .akn-galmode-height .akn-gal-main { aspect-ratio: auto; height: var(--akn-gal-h); }
  .akn-galmode-height .akn-gal-thumbs { max-height: var(--akn-gal-h); overflow-y: auto; overflow-x: hidden; }
}

/* ── product layout ───────────────────────────────────────────────────── */
.akn-pd { display: grid; border-bottom: 1px solid var(--akn-line); }
@media (min-width: 960px) {
  .akn-pd { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: start; }
}

/* ── buy panel ────────────────────────────────────────────────────────── */
/* Approved geometry: the page gutter is the panel gutter, and the only desktop
   change is the hairline separating it from the gallery. */
.akn-buy { padding: clamp(28px,3.4vw,54px) var(--akn-pad); }
@media (min-width: 960px) {
  .akn-buy { border-left: 1px solid var(--akn-line); min-height: 100%; }
}
.akn-buy .akn-lbl { color: var(--akn-oxblood); }
.akn-buy h1 { font-size: clamp(34px,4.4vw,54px); margin: 12px 0 0; }
.akn-buy h1 i { font-style: italic; color: var(--akn-grey); }
.akn-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.akn-price-row .akn-now { font-family: 'Bodoni Moda', Didot, Georgia, serif; font-size: 30px; }
.akn-price-row s { font-size: 15px; color: var(--akn-grey); }
.akn-price-row .akn-off {
  background: var(--akn-oxblood); color: var(--akn-onink);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px;
}
.akn-tax { font-size: 12px; color: var(--akn-grey); margin-top: 6px; }
.akn-blurb { color: var(--akn-soft); margin-top: 20px; font-size: 15px; line-height: 1.66; max-width: 44ch; }
.akn-blurb p + p { margin-top: 10px; }

.akn-opt { margin-top: 30px; }
.akn-opt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 11px; }
.akn-opt-h .akn-lbl { color: var(--akn-grey); }
.akn-opt-h .akn-val { font-size: 13px; color: var(--akn-ink); }
.akn-opt-h a {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--akn-soft); border-bottom: 1px solid var(--akn-oxblood); padding-bottom: 2px;
}
.akn-opt-h a:hover { color: var(--akn-ink); }
.akn-shades { display: flex; gap: 9px; flex-wrap: wrap; }
.akn-sh { width: 34px; height: 34px; border: 1px solid var(--akn-line); padding: 3px; transition: .16s; }
.akn-sh i { display: block; width: 100%; height: 100%; }
.akn-sh[aria-pressed="true"] { border-color: var(--akn-ink); }
.akn-sh:hover { border-color: var(--akn-soft); }
.akn-buy .akn-sz { min-width: 50px; padding: 12px 4px; }
/* A shade with no real colour on file renders as a named pill rather than an
   invented hex — wider than a size chip because it carries a word. */
.akn-buy .akn-sz--word { min-width: 0; padding: 12px 14px; }
/* Combinations WooCommerce has no stock for. */
.akn-buy .akn-sz[disabled],
.akn-buy .akn-sh[disabled] { opacity: .3; cursor: not-allowed; }
.akn-buy .akn-sz[disabled] { text-decoration: line-through; }
.akn-buy .akn-stock { margin-top: 13px; }
.akn-buy .akn-stock[hidden] { display: none; }
.akn-price-row s[hidden], .akn-price-row .akn-off[hidden] { display: none; }

/* Spec list inside an accordion panel (Additional information). */
.akn-spec { list-style: none; margin: 0; }
.akn-spec li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--akn-line); font-size: 13.5px;
}
.akn-spec li:first-child { border-top: 1px solid var(--akn-line); }
.akn-spec li span:first-child {
  color: var(--akn-grey); letter-spacing: .09em; text-transform: uppercase; font-size: 11px;
}

.akn-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; align-items: stretch; }
.akn-qtybox { display: inline-flex; align-items: center; border: 1px solid var(--akn-line); }
.akn-qtybox button { width: 42px; height: 50px; color: var(--akn-soft); font-size: 15px; touch-action: manipulation; }
.akn-qtybox button:hover { color: var(--akn-ink); }
.akn-qtybox span { font-size: 13px; min-width: 30px; text-align: center; }
.akn-addbtn {
  flex: 1; min-width: 180px;
  background: var(--akn-oxblood); color: var(--akn-onink);
  padding: 16px 26px; font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; transition: background .18s;
}
.akn-addbtn:hover { background: var(--akn-oxblood-hi); color: var(--akn-onink); }
.akn-wa {
  display: block; margin-top: 10px; border: 1px solid var(--akn-line);
  padding: 14px; text-align: center; font-size: 11.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--akn-soft);
  transition: border-color .18s, color .18s;
}
.akn-wa:hover { border-color: var(--akn-ink); color: var(--akn-ink); }

.akn-assure { margin-top: 26px; border-top: 1px solid var(--akn-line); }
.akn-assure li {
  display: flex; gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--akn-line);
  font-size: 13.5px; color: var(--akn-soft); align-items: baseline;
}
.akn-assure li b {
  font-weight: 400; color: var(--akn-ink); white-space: nowrap;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; min-width: 96px;
}

/* ── accordion ────────────────────────────────────────────────────────── */
.akn-acc { margin-top: 32px; border-top: 1px solid var(--akn-line); }
.akn-acc-i { border-bottom: 1px solid var(--akn-line); }
/* The accordion header is the whole row, is a real <button>, and sits above
   any sibling that might otherwise swallow the tap on touch. */
.akn-acc-b {
  position: relative; z-index: 1;
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 14px; padding: 17px 0; min-height: 52px;
  font-family: Jost, system-ui, sans-serif;
  font-size: 12px; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; text-align: left;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: none; border: 0; color: var(--akn-ink);
}
.akn-acc-b em { pointer-events: none; }
.akn-acc-b em { font-style: normal; color: var(--akn-grey); font-size: 16px; line-height: 1; transition: transform .25s; }
.akn-acc-i.akn-open .akn-acc-b em { transform: rotate(45deg); }
.akn-acc-p { display: none; padding: 0 0 20px; font-size: 14px; line-height: 1.7; color: var(--akn-soft); max-width: 52ch; }
.akn-acc-i.akn-open .akn-acc-p { display: block; }
.akn-acc-p ul { margin: 10px 0 0 16px; list-style: disc; }
.akn-acc-p li { margin-bottom: 5px; }
.akn-acc-p p + p { margin-top: 10px; }

/* ── related rail sizing ──────────────────────────────────────────────── */
.akn-rail--related .akn-pc { flex: 0 0 clamp(210px,55vw,300px); }
.akn-rail--related .akn-pc-meta h3 { font-size: 16px; }
.akn-rail--related .akn-pc-meta .akn-p { font-size: 13.5px; }

/* ── sticky mobile buy bar ────────────────────────────────────────────── */
.akn-stick {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 57;
  background: var(--akn-paper); border-top: 1px solid var(--akn-line);
  display: flex; align-items: center; gap: 12px;
  padding: 11px var(--akn-pad);
  transform: translateY(100%); transition: transform .3s;
}
.akn-stick.akn-open { transform: none; }
.akn-stick .akn-sn { flex: 1; min-width: 0; }
.akn-stick .akn-sn h4 {
  font-family: 'Bodoni Moda', Didot, Georgia, serif; font-weight: 400; font-size: 15px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akn-stick .akn-sn div { font-size: 12px; color: var(--akn-oxblood); }
.akn-stick button {
  background: var(--akn-oxblood);
  color: var(--akn-onink);
  -webkit-text-fill-color: var(--akn-onink);
  font-family: Jost, system-ui, sans-serif;
  padding: 14px 22px; font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  touch-action: manipulation; transition: background-color .18s;
}
.akn-stick button:hover,
.akn-stick button:focus-visible {
  background: var(--akn-oxblood-hi);
  color: var(--akn-onink);
  -webkit-text-fill-color: var(--akn-onink);
}
.akn-stick .akn-sn div { font-family: Jost, system-ui, sans-serif; }
/* Desktop is opt-in — set "Show on desktop" on the widget if the product page
   is long enough to need it. */
@media (min-width: 960px) { .akn-stick:not(.akn-stick--desktop) { display: none; } }
@media (prefers-reduced-motion: reduce) { .akn-stick { transition: none; } }
@media (max-width: 959px) { body.akn-has-stick .akn-footer { padding-bottom: 96px; } }

/* ── size chips read as size codes ────────────────────────────────────── */
/* WooCommerce terms are often stored lower case ("s", "xl"). The design has
   always set sizes in caps; the word pills used for a shade with no colour on
   file keep their own casing. */
.akn-sz { text-transform: uppercase; }
.akn-sz--word { text-transform: none; }

/* ── reviews ──────────────────────────────────────────────────────────── */
/* The card grid is the same hairline .proof grid the homepage uses, so reviews
   on a product page and reviews on the homepage are visibly one component. */
.akn-reviews { border-top: 1px solid var(--akn-line); }
.akn-reviews .akn-sec-h { align-items: flex-end; }

.akn-rev-avg { text-align: right; white-space: nowrap; }
.akn-rev-avg .akn-stars { display: block; }
.akn-rev-avg-n {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--akn-grey);
}

.akn-rev-notice {
  margin: 0 var(--akn-pad) 20px;
  padding: 14px 16px;
  border-top: 2px solid var(--akn-oxblood);
  background: var(--akn-paper-2);
  font-size: 13.5px; color: var(--akn-ink);
}
.akn-rev-notice--err { border-top-color: var(--akn-ink); }

.akn-rev-empty {
  margin: 0 var(--akn-pad) clamp(30px,4vw,48px);
  padding: 30px 0; border-block: 1px solid var(--akn-line);
  color: var(--akn-grey); font-size: 14.5px;
}

/* Reviewer photos — 3:4 like every other Aknas frame. */
.akn-rev-shots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.akn-rev-shot {
  position: relative; display: block;
  flex: 0 0 58px; aspect-ratio: 3/4;
  overflow: hidden; background: var(--akn-paper-2);
  border: 1px solid var(--akn-line);
}
.akn-rev-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.akn-rev-shot:hover { border-color: var(--akn-ink); }

.akn-verified {
  display: inline-block; margin-left: 10px;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--akn-oxblood); border-left: 1px solid var(--akn-line); padding-left: 10px;
}

/* ── review form ──────────────────────────────────────────────────────── */
.akn-rev-form-wrap { padding: clamp(28px,3.4vw,44px) var(--akn-pad); border-top: 1px solid var(--akn-line); }
.akn-rev-form { display: none; margin-top: 26px; max-width: 620px; }
.akn-rev-form.akn-open { display: block; }

.akn-rev-row { margin-bottom: 22px; }
.akn-rev-row .akn-lbl { display: block; color: var(--akn-grey); margin-bottom: 10px; }
.akn-rev-grid { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 620px) { .akn-rev-grid { grid-template-columns: 1fr 1fr; } }
.akn-rev-block { display: block; margin-bottom: 18px; }
.akn-rev-block .akn-lbl,
.akn-rev-grid .akn-lbl { display: block; color: var(--akn-grey); margin-bottom: 8px; }

.akn-rev-form input[type="text"],
.akn-rev-form input[type="email"],
.akn-rev-form textarea {
  width: 100%; background: var(--akn-paper);
  border: 1px solid var(--akn-line); border-radius: 0;
  padding: 14px 15px;
  font-family: Jost, system-ui, sans-serif; font-weight: 300; font-size: 15px;
  color: var(--akn-ink); line-height: 1.5;
}
.akn-rev-form textarea { min-height: 130px; resize: vertical; }
.akn-rev-form input:focus,
.akn-rev-form textarea:focus { border-color: var(--akn-ink); }

/* Star input. Rendered 5→1 in source so the CSS sibling combinator can light
   up the current star and everything before it, with no JS involved. */
.akn-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.akn-rating-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.akn-rating label {
  cursor: pointer; line-height: 1;
  font-size: 24px; color: var(--akn-line);
  transition: color .16s;
}
.akn-rating label::before { content: "★"; }
.akn-rating label .akn-sr {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.akn-rating-in:checked ~ label,
.akn-rating label:hover,
.akn-rating label:hover ~ label { color: var(--akn-oxblood); }
.akn-rating-in:focus-visible + label { outline: 2px solid var(--akn-oxblood); outline-offset: 2px; }

/* File picker — a real input, restyled; never a fake button over a hidden one. */
.akn-file { display: inline-block; position: relative; cursor: pointer; }
.akn-file input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.akn-file-cta {
  display: inline-block; border: 1px solid var(--akn-line);
  padding: 13px 22px; font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--akn-soft);
  transition: border-color .16s, color .16s;
}
.akn-file:hover .akn-file-cta { border-color: var(--akn-ink); color: var(--akn-ink); }
.akn-file-list { margin-top: 10px; }
.akn-file-item { font-size: 12.5px; color: var(--akn-soft); padding: 3px 0; }
.akn-file-item--bad { color: var(--akn-oxblood); }
.akn-file-hint { font-size: 12px; color: var(--akn-grey); margin-top: 8px; line-height: 1.55; }

.akn-rev-note { font-size: 12.5px; color: var(--akn-grey); margin-top: 14px; line-height: 1.6; }
.akn-rev-form .akn-btn-p { margin-top: 6px; }

/* The sticky bar sits flush on the bottom nav — the offset is the nav's real
   measured height (set on <body> by akn-header.js), not a hard-coded guess. */
body.akn-has-botnav { --akn-botnav-h: 64px; }
@media (max-width: 939px) {
  body.akn-has-botnav .akn-stick { bottom: var(--akn-botnav-h); }
}
/* The detail line wraps on a narrow phone; keep it to one line so the bar
   height stays predictable and the hand-off maths above stays true. */
.akn-stick .akn-sn div {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* An option group the customer has to answer before the cart will take it. */
.akn-opt.akn-needs .akn-sz,
.akn-opt.akn-needs .akn-sh { border-color: var(--akn-oxblood); }
.akn-opt.akn-needs .akn-lbl { color: var(--akn-oxblood); }
