/* Namcovi Naturals — product pages (product-page.php). Layout: option C, picked by the owner Oct 9 2026.
   Loaded only on product pages. Tokens (colours, fonts, buttons) come from main.css.
   The big name, then section 1 (the product + the buy box), section 2 (the story in rows), ways, questions. */

.namcovi-product { --panel: #F7ECEC; --soft: #F4F1EC; }

/* ---------- the name, set huge ---------- */
.pc-name { padding-top: clamp(20px, 3vw, 40px); border-bottom: var(--rule) solid var(--ink); overflow: hidden; }
.pc-name__row { display: flex; justify-content: space-between; align-items: end; gap: 0.6em 1em; flex-wrap: wrap; margin-bottom: 0.6em; }
.pc-name .crumb { margin: 0; }
.pc-name .wordmark { font-size: min(14vw, 15rem); line-height: 0.82; color: var(--red); }

/* ---------- section 1: the product beside the buy box ---------- */
.pc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
/* the pouch is the first thing you see: big, square, on a soft red glow */
.pc-hero { margin: 0; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 46%, #FFFFFF 0%, var(--panel) 46%, #EBCFCF 100%); }
.pc-hero img { width: auto; max-width: 78%; height: 90%; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(115, 13, 16, 0.28)); }
.pc-hero--photo img { width: 100%; max-width: none; height: 100%; object-fit: cover; filter: none; }

.pc-buy { padding: clamp(20px, 2.4vw, 32px); border: var(--rule) solid var(--ink); border-radius: var(--radius); background: var(--card); }
.pc-buy__price { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin-bottom: 1em; padding-bottom: 1em; border-bottom: var(--rule) dashed var(--ink); }
.pc-buy__price b { font-size: 1.8rem; font-weight: 800; }
.pc-legend { display: flex; gap: 0.5em; margin: 0 0 0.6em; font-family: var(--font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; }
.pc-legend b { color: var(--green); letter-spacing: 0.04em; }

/* sizes: each one is its own page, so they are links */
.pc-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 1.2em; }
.pc-size { display: grid; gap: 2px; justify-items: center; padding-bottom: 0.7em; overflow: hidden; border: var(--rule) solid var(--ink); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.pc-size__tag { justify-self: stretch; padding: 0.35em 0.3em; background: var(--ink); color: var(--card); font-family: var(--font-body); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.pc-size__big { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.9rem; line-height: 1; padding-top: 0.3em; }
.pc-size__small { font-size: 0.85rem; font-weight: 700; }
.pc-size:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.pc-size[aria-current="page"] { background: var(--red); color: var(--card); }
.pc-size[aria-current="page"] .pc-size__tag { background: var(--card); color: var(--red); }

/* quantity + the add-to-cart button, the loudest thing in the box */
.pc-buyrow { display: flex; gap: 10px; align-items: stretch; margin-top: 0.4em; }
.pc-qty { flex: none; display: flex; align-items: center; border: var(--rule) solid var(--ink); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); }
.pc-qty button { width: 2.6em; height: 100%; min-height: 3em; border: 0; border-radius: var(--radius-pill); background: none; color: inherit; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.pc-qty button:disabled { opacity: 0.3; cursor: default; }
.pc-qty output { min-width: 1.6em; text-align: center; font-weight: 800; }
.pc-add { position: relative; overflow: hidden; flex: 1; min-width: 0; min-height: 3.7em; font-size: 1.05rem; letter-spacing: 0.1em; box-shadow: 5px 6px 0 var(--ink); }
.pc-add svg { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-add:hover { background: #8E1216; box-shadow: 3px 4px 0 var(--ink); }
.pc-add::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%); transform: translateX(-120%); animation: pc-shine 4.5s ease-in-out 1.2s infinite; }
@keyframes pc-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.pc-note { margin: 0.8em 0 0; font-size: 0.86rem; }
.pc-sub { margin: 1em 0 0; font-weight: 700; font-size: 0.92rem; }
.pc-sub:has(.pc-soon) { opacity: 0.75; }
.pc-soon { display: inline-block; margin-left: 0.5em; padding: 0.15em 0.65em; border-radius: var(--radius-pill); background: var(--green); color: var(--card); font-family: var(--font-body); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.2em; }
.pc-checks { list-style: none; margin: 1.2em 0 0; padding: 1.1em 0 0; border-top: var(--rule) dashed var(--ink); display: grid; gap: 0.55em; font-size: 0.95rem; }
.pc-checks li { display: flex; gap: 0.7em; align-items: flex-start; line-height: 1.4; }
.pc-checks li::before {
  content: ""; flex: none; width: 1.25em; height: 1.25em; margin-top: 0.1em; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- section 2: the story, words beside a picture, sides alternating ---------- */
.pc-story { border-top: var(--rule) solid var(--ink); }
.pc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 6vw, 88px); }
.pc-row + .pc-row { border-top: var(--rule) dashed var(--ink); }
.pc-row--flip > :first-child { order: 2; }
.pc-say h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 0.45em; }
.pc-say p { font-size: 1.08rem; }
.pc-say p:last-child { margin-bottom: 0; }
.pc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pc-photo { position: relative; margin: 0; }
.pc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.pc-pair .pc-photo img { aspect-ratio: 4 / 5; }
.pc-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 0.35em 0.9em; border: var(--rule) solid var(--ink); border-radius: var(--radius-pill); background: var(--card); font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- ways to use + questions ---------- */
.pc-section { padding-block: clamp(56px, 8vw, 112px); }
.pc-h2 { font-weight: 760; text-align: center; margin: 0 auto 0.4em; max-width: 18ch; }
.pc-lede { text-align: center; margin: 0 auto clamp(28px, 3.6vw, 48px); font-size: 1.1rem; }
.pc-ways { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.pc-use { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; margin: 0; display: grid; gap: 0.8em; align-content: start; }
.pc-use img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--rule) solid currentColor; border-radius: var(--radius); }
.pc-use figcaption b { display: block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1; margin-bottom: 0.25em; }
.pc-faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 10px; }
.pc-acc { border: var(--rule) solid var(--ink); border-radius: 12px; background: var(--card); }
.pc-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 0.95em 1.1em; cursor: pointer; list-style: none; font-weight: 800; font-size: 1.05rem; }
.pc-acc summary::-webkit-details-marker { display: none; }
.pc-acc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; font-weight: 400; }
.pc-acc[open] summary::after { content: "\2013"; }
.pc-acc__body { padding: 0 1.1em 1.1em; }
.pc-acc__body p { margin: 0; }

/* ---------- the bar that follows you once the buy box has scrolled away ---------- */
.pc-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--card); border-top: var(--rule) solid var(--ink); transform: translateY(110%); transition: transform 0.25s ease; }
.pc-bar.is-on { transform: none; }
.pc-bar .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.pc-bar img { width: 44px; height: 54px; object-fit: contain; }
.pc-bar img.is-photo { width: 50px; height: 50px; object-fit: cover; border-radius: 10px; }
.pc-bar__words { margin-right: auto; display: grid; min-width: 0; line-height: 1.2; }
.pc-bar__words b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 500; font-size: 1.35rem; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-bar__words span { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pc-bar .btn { padding: 0.8em 1.5em; }

/* labels, tags and buttons use the typed mono, like the rest of the site */
.pc-size__tag, .pc-soon, .pc-legend, .pc-photo figcaption, .pc-bar__words span { font-family: var(--font-body); }

/* ---------- tablet + phone: everything stacks; the product first, then the buy box ---------- */
@media (max-width: 960px) {
  .pc-grid, .pc-row { grid-template-columns: minmax(0, 1fr); }
  .pc-row--flip > :first-child { order: 0; }
}
@media (max-width: 520px) {
  .pc-pair { grid-template-columns: minmax(0, 1fr); }
  .pc-bar img { display: none; }
  .pc-bar .btn { padding-inline: 1em; font-size: 0.78rem; }
}
@media (max-width: 420px) {
  .pc-add { padding-inline: 0.8em; gap: 0.4em; font-size: 0.86rem; letter-spacing: 0.05em; }
  .pc-qty button { width: 2.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-add::after { content: none; }
  .pc-bar { transition: none; }
}
