/* Sub-pages: product pages, privacy, refund */
.subpage .page-main { padding-top: 72px; min-height: 60vh; }
.subpage .section { padding: clamp(24px, 4vw, 48px) 0; }
.narrow-page { max-width: 780px; }
.legal h1 { font-family: "Fraunces", serif; font-size: clamp(34px, 5vw, 52px); margin: 6px 0 6px; letter-spacing: -.02em; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--violet); }
.muted { color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); font-weight: 700; }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.pp-stage { background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid var(--line); }
.pp-stage img, .pp-stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.pp-stage [hidden] { display: none; }
.pp-ph { font-family: "Fraunces", serif; font-size: 34px; padding: 30px; text-align: center; }
.pp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pp-thumb { flex: none; width: 84px; height: 63px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; position: relative; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb.on { border-color: var(--ink); }
.pp-thumb.is-vid span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(23, 20, 31, .35); font-size: 18px; }
.pp-info h1 { font-family: "Fraunces", serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -.02em; }
.pp-lead { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; }
.pp-info .m-secure { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pp-h { font-size: 18px; margin: 30px 0 0; }
.pp-info { container-type: inline-size; }
.pp-facts { list-style: none; padding: 6px; margin: 24px 0 0; display: grid; gap: 0; border-radius: 22px; background: linear-gradient(135deg, #fff 0%, var(--paper) 55%, color-mix(in srgb, var(--c, #FF6B4A) 10%, #fff) 100%); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23,20,31,.04), 0 10px 28px rgba(23,20,31,.06); }
.pp-facts li { --fc: var(--teal); display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 16px; transition: background .2s ease; }
.pp-facts li + li { border-top: 1px dashed color-mix(in srgb, var(--ink) 12%, transparent); }
.pp-facts li:hover { background: color-mix(in srgb, var(--fc) 8%, transparent); }
.pp-facts .f-fix { --fc: var(--violet); }
.pp-facts .f-lic { --fc: var(--coral); }
.f-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--fc) 78%, #fff), var(--fc)); box-shadow: 0 6px 14px color-mix(in srgb, var(--fc) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.35); transform: rotate(-4deg); transition: transform .25s ease; }
.pp-facts li:hover .f-ic { transform: rotate(0) scale(1.06); }
.f-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-tx { display: grid; gap: 1px; min-width: 0; }
.f-tx b { font-size: 15px; line-height: 1.3; color: var(--ink); }
.f-tx small { font-size: 13px; line-height: 1.4; color: var(--muted); }
@container (min-width: 560px) {
  .pp-facts { grid-template-columns: repeat(3, 1fr); }
  .pp-facts li { flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; padding: 16px; }
  .pp-facts li + li { border-top: 0; border-left: 1px dashed color-mix(in srgb, var(--ink) 12%, transparent); }
}
.pp-share { margin-top: 18px; font-size: 14px; color: var(--muted); }
.pp-share a, .linkish { color: var(--ink-2); font-weight: 700; }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pp-related { padding-top: 0 !important; }
.pp-h2 { font-family: "Fraunces", serif; font-size: 30px; margin: 0 0 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rel-img { display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 14%, #fff); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.rel-body small { color: var(--violet); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.rel-body em { font-style: normal; font-weight: 800; }
@media (max-width: 900px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } .rel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rel-grid { grid-template-columns: 1fr; } .subpage .page-main { padding-top: 72px; } }

/* Product page: long description + FAQ */
.pp-more { padding-top: 0 !important; }
.pp-more-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.pp-more-grid.one { grid-template-columns: minmax(0, 780px); }
.prose { color: var(--ink-2); line-height: 1.75; font-size: 17px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
.prose h2 { font-family: "Fraunces", serif; font-size: clamp(24px, 3vw, 30px); }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }
.prose > .pp-h2 + h3, .prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; display: grid; gap: 6px; }
.prose li::marker { color: var(--violet); font-weight: 700; }
.prose a { color: var(--violet); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--sun) 22%, #fff); border: 1px solid color-mix(in srgb, var(--sun) 55%, #fff); color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 18px; display: block; margin: 1.2em 0; }
.prose code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.pp-details .pp-h2 { margin-bottom: 10px; }
.pp-faq .pp-h2 { margin-bottom: 14px; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; overflow: hidden; }
.qa summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--violet); }
.qa[open] summary::after { content: "–"; }
.qa-a { padding: 0 18px 16px; color: var(--ink-2); line-height: 1.65; }
.qa-a p { margin: 0 0 .6em; } .qa-a p:last-child { margin: 0; }
.small-note { font-size: 14px; margin-top: 12px; }
.small-note a { color: var(--violet); font-weight: 700; }

/* Guides */
.guides-hero { padding-bottom: 0 !important; }
.g-h1 { font-family: "Fraunces", serif; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 8px 0 12px; }
.g-meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.g-cover-wrap { max-width: 980px; margin: 8px auto 34px; }
.g-cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; display: block; border: 1px solid var(--line); }
.g-body { padding-bottom: 12px; }
.g-products { margin: 26px 0 0; padding: 22px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.g-prod-list { display: grid; gap: 12px; }
.g-prod { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; color: inherit; text-decoration: none; padding: 10px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.g-prod:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.g-prod-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, #fff); }
.g-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-prod-body { display: grid; gap: 2px; }
.g-prod-body small { color: var(--violet); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.g-prod-body span { color: var(--muted); font-size: 14px; }
.g-prod-cta { font-weight: 800; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-img { display: block; aspect-ratio: 4 / 3; background: var(--bg-2); }
.guide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.guide-body em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.guide-body b { font-size: 18px; line-height: 1.3; }
.guide-body small { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) { .pp-more-grid { grid-template-columns: minmax(0, 1fr); } .guide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } .g-prod { grid-template-columns: 84px 1fr; } .g-prod-cta { grid-column: 1 / -1; text-align: center; } .prose { font-size: 16px; } }
.prose em, .guide-body em, .qa-a em { font-family: var(--sans); font-weight: inherit; }

/* ---------- Product page: never wider than the screen + mobile polish ---------- */
.pp-grid > *, .pp-more-grid > *, .rel-grid > *, .guide-grid > * { min-width: 0; }
.pp-thumbs { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb { scroll-snap-align: start; }
.pp-lead, .pp-info h1, .checks li { overflow-wrap: anywhere; }

/* Sticky buy bar (phones & tablets), shown when the main Buy button is off screen */
.pp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23, 20, 31, .08); transform: translateY(110%); transition: transform .28s var(--ease); display: none; }
.pp-bar.show { transform: none; }
.pp-bar-in { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto; }
.pp-bar-tx { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.pp-bar-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-bar-tx > span { font-weight: 800; font-size: 17px; }
.pp-bar-tx s { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 4px; }
.pp-bar .btn { flex: none; padding: 12px 20px; font-size: 15px; }
@media (max-width: 900px) { .pp-bar { display: block; } body.has-bar .footer { padding-bottom: 90px; } }

@media (max-width: 560px) {
  .subpage .section { padding: 18px 0 26px; }
  .crumbs { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; font-size: 12.5px; margin-bottom: 14px; gap: 6px; }
  .crumbs .crumb-cur { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .pp-stage { border-radius: 20px; }
  .pp-thumbs { gap: 8px; margin-top: 10px; }
  .pp-thumb { width: 68px; height: 51px; border-radius: 10px; }
  .pp-info h1 { font-size: 30px; margin: 6px 0 10px; }
  .pp-lead { font-size: 16px; margin-bottom: 14px; }
  .pp-info .price-row { margin: 4px 0 16px; }
  .pp-info .price-now { font-size: 36px; }
  .pp-h { margin-top: 24px; }
  .pp-share { text-align: center; }
  .pp-h2 { font-size: 25px; margin-bottom: 14px; }
  .prose { font-size: 16px; }
  .qa summary { padding: 14px 44px 14px 16px; font-size: 15px; }
  /* "You may also like": swipeable row instead of three huge cards */
  .rel-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .rel-grid::-webkit-scrollbar { display: none; }
  .rel-card { flex: 0 0 72%; scroll-snap-align: start; border-radius: 18px; }
  .rel-card:hover { transform: none; }
  .rel-body { padding: 12px 14px 14px; }
}

/* Product page layout: gallery + "About this template" on the left, buy box on the right.
   The buy box follows while scrolling (sticks at its top, or at its bottom when taller than the screen), so neither column leaves empty space. */
@media (min-width: 901px) {
  .pp-grid { grid-template-areas: "media info" "details info"; row-gap: clamp(28px, 4vw, 44px); }
  .pp-media { grid-area: media; }
  .pp-info { grid-area: info; position: sticky; top: var(--pp-sticky, 84px); align-self: start; }
  .pp-grid > .pp-details { grid-area: details; }
}
.pp-grid > .pp-details { margin-top: 4px; }
@media (max-width: 900px) { .pp-grid > .pp-details { margin-top: 12px; } }
.pp-more-grid.faq-only { grid-template-columns: minmax(0, 1fr); }
/* FAQ: title on the left, one clean column of questions on the right (no uneven gaps when an answer opens) */
@media (min-width: 901px) {
  .faq-only .pp-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); column-gap: clamp(28px, 5vw, 60px); align-items: start; }
  .faq-only .faq-side { position: sticky; top: 96px; }
}
.faq-side .small-note { margin: 0 0 18px; line-height: 1.6; }
.faq-help { display: grid; gap: 6px; padding: 18px 20px; border-radius: 20px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--c, #FF6B4A) 10%, #fff)); border: 1px solid var(--line); }
.faq-help b { font-size: 16px; }
.faq-help span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.faq-help .btn { justify-self: start; margin-top: 6px; padding: 10px 16px; font-size: 14px; }
.pp-thumb { background: color-mix(in srgb, var(--c, #FF6B4A) 10%, #fff); }
@media (max-width: 900px) {
  .faq-only .pp-faq { display: flex; flex-direction: column; }
  .faq-only .faq-side { display: contents; }
  .faq-only .faq-list { order: 1; }
  .faq-only .faq-help { order: 2; margin-top: 8px; }
}
/* Related + guide cards: three across on tablets so three cards never leave an orphan */
@media (max-width: 900px) and (min-width: 561px) {
  .rel-grid, .pp-related .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rel-body { padding: 12px 14px 14px; }
  .rel-body b { font-size: 15px; line-height: 1.3; }
}
@media (max-width: 560px) { .rel-grid { scroll-padding-inline: 16px; } }
/* Guides index: title lines up with the cards below it */
.guides-hero .narrow-page { max-width: none; }
.guides-hero .narrow-page > * { max-width: 780px; }
/* Guides index: no half-empty last row. With 5 guides (or 2, 8...) the first guide becomes a wide
   feature card over two columns; with 4 (or 7...) over the full row. Tablets: odd counts span the row. */
@media (min-width: 901px) {
  .guides-list > .guide-card:first-child:nth-last-child(3n+2) { grid-column: span 2; }
  .guides-list > .guide-card:first-child:nth-last-child(3n+1):not(:last-child) { grid-column: 1 / -1; }
  .guides-list > .guide-card:first-child:is(:nth-last-child(3n+2), :nth-last-child(3n+1):not(:last-child)) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
  .guides-list > .guide-card:first-child:is(:nth-last-child(3n+2), :nth-last-child(3n+1):not(:last-child)) .guide-img { height: auto; aspect-ratio: auto; min-height: 240px; min-width: 0; overflow: hidden; position: relative; }
  .guides-list > .guide-card:first-child:is(:nth-last-child(3n+2), :nth-last-child(3n+1):not(:last-child)) .guide-img img { position: absolute; inset: 0; object-position: left top; }
  .guides-list > .guide-card:first-child:is(:nth-last-child(3n+2), :nth-last-child(3n+1):not(:last-child)) .guide-body { align-self: center; padding: 28px 30px; gap: 10px; }
  .guides-list > .guide-card:first-child:is(:nth-last-child(3n+2), :nth-last-child(3n+1):not(:last-child)) .guide-body b { font-size: clamp(21px, 1.9vw, 26px); font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
  .guides-list > .guide-card:first-child:is(:nth-last-child(3n+2), :nth-last-child(3n+1):not(:last-child)) .guide-body small { font-size: 15px; }
}
@media (max-width: 900px) and (min-width: 561px) {
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) { grid-column: 1 / -1; }
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) .guide-img { height: auto; aspect-ratio: auto; min-height: 240px; min-width: 0; overflow: hidden; position: relative; }
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) .guide-img img { position: absolute; inset: 0; object-position: left top; }
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) .guide-body { align-self: center; padding: 28px 30px; gap: 10px; }
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) .guide-body b { font-size: clamp(21px, 1.9vw, 26px); font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
  .guides-list > .guide-card:first-child:nth-last-child(2n+1):not(:last-child) .guide-body small { font-size: 15px; }
}
