/* NexGen shop (phase 2): shop front page, category pages, parts finder, product page help.
   Markup in woocommerce/archive-product.php and nexgen/inc/shop.php. Card and chip styles come from inner.css. */

.ngx .btn--ghost { background: transparent; color: var(--white); box-shadow: 0 0 0 2px rgba(255, 255, 255, .55) inset; }
.ngx .btn--ghost:hover { background: var(--white); color: var(--ink); }
.ngx .sr-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* section headings shared by the shop sections */
.ngx .shave__h { margin: 10px 0 8px; font-family: var(--f-h); font-size: clamp(26px, 3.2vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; text-transform: uppercase; }
.ngx .shave__p { margin: 0 0 26px; max-width: 640px; color: var(--teal); font-weight: 600; }
.ngx .shave__p a { border-bottom: 2px solid var(--lime); font-weight: 800; color: var(--ink); }

/* 1. two starting points */
.ngx .sdoors { padding: 34px 0 10px; }
.ngx .sdoors__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.ngx .sdoor { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 34px 34px 30px; border-radius: 28px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.ngx .sdoor:hover { transform: translateY(-4px); }
.ngx .sdoor--have { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.ngx .sdoor--have:hover { box-shadow: 0 0 0 2px var(--ink) inset, 10px 10px 0 var(--ink); }
.ngx .sdoor--new { background: var(--ink); color: var(--white); }
.ngx .sdoor--new:hover { box-shadow: 10px 10px 0 var(--lime); }
.ngx .sdoor__k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.ngx .sdoor__h { font-family: var(--f-h); font-size: clamp(24px, 2.6vw, 36px); font-weight: 800; line-height: 1.05; text-transform: uppercase; max-width: 14ch; }
.ngx .sdoor__p { max-width: 46ch; font-weight: 600; line-height: 1.5; opacity: .9; }
.ngx .sdoor__go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; font-weight: 800; }
.ngx .sdoor__go svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.ngx .sdoor:hover .sdoor__go svg { transform: translateX(5px); }
.ngx .sdoor--new .sdoor__go { color: var(--lime); }
.ngx .sdoor::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 26px solid currentColor; opacity: .07; pointer-events: none; }

/* 2. which stage do you have / what do you need */
.ngx .shave { padding: 60px 0 30px; scroll-margin-top: 110px; }
.ngx .srange { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 52px; }
.ngx .srange__c { position: relative; display: block; margin: 0; overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .3s, transform .35s var(--ease); }
.ngx .srange__c:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--ink); }
.ngx .srange__c img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ngx .srange__t { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px 20px; }
.ngx .srange__t b { font-family: var(--f-h); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.ngx .srange__t small { font-size: 14px; color: var(--teal); font-weight: 600; }
.ngx .srange__tick { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--ink); }
.ngx #ngx-r-p:checked ~ .srange [for="ngx-r-p"], .ngx #ngx-r-s:checked ~ .srange [for="ngx-r-s"] { box-shadow: 0 0 0 3px var(--ink), 8px 8px 0 var(--lime); }
.ngx #ngx-r-p:checked ~ .srange [for="ngx-r-p"] .srange__tick, .ngx #ngx-r-s:checked ~ .srange [for="ngx-r-s"] .srange__tick { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2A25' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 22px no-repeat; }
.ngx #ngx-r-p:focus-visible ~ .srange [for="ngx-r-p"], .ngx #ngx-r-s:focus-visible ~ .srange [for="ngx-r-s"] { outline: 3px solid var(--teal); outline-offset: 4px; }
.ngx #ngx-r-p:checked ~ .sneed .only-s, .ngx #ngx-r-s:checked ~ .sneed .only-p { display: none; }
.ngx .shave__step2 { margin-top: 4px; }

.ngx .sneed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.ngx .sneed__c { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .35s var(--ease); }
.ngx a.sneed__c:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--lime); }
.ngx .sneed__c img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper); }
.ngx .sneed__h { display: block; margin: 16px 20px 4px; font-family: var(--f-h); font-size: 18px; font-weight: 800; line-height: 1.2; }
.ngx .sneed__p { display: block; margin: 0 20px 20px; color: var(--teal); font-weight: 600; font-size: 15px; }
.ngx .sneed__c--mod { box-shadow: 0 0 0 2px var(--ink); }
.ngx .sneed__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 20px 20px; }
.ngx .sneed__btns .chip { padding: 7px 13px; font-size: 13px; }

/* 3. parts finder */
.ngx .sparts { padding: 56px 0 60px; background: var(--white); scroll-margin-top: 100px; }
.ngx .sparts--cat { background: transparent; padding-top: 30px; }
.ngx .sparts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 30px; }
.ngx .pf { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.ngx .pf__chart { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #ececec; box-shadow: 0 0 0 1px var(--line); }
.ngx .pf__chart img { display: block; width: 100%; height: auto; }
.ngx .pf__dot { position: absolute; z-index: 1; transform: translate(-50%, -50%); }
.ngx .pf__dot span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 0 0 2px var(--ink), 0 4px 12px rgba(14, 42, 37, .35); transition: transform .25s var(--ease), background-color .25s, color .25s; animation: pfpulse 2.6s ease-in-out infinite; }
.ngx .pf__dot em { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); padding: 7px 12px; border-radius: 10px; background: var(--ink); color: var(--white); font-style: normal; font-weight: 700; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.ngx .pf__dot:hover, .ngx .pf__dot:focus-visible { z-index: 3; }
.ngx .pf__dot:hover span, .ngx .pf__dot:focus-visible span { transform: scale(1.18); background: var(--ink); color: var(--lime); animation: none; }
.ngx .pf__dot:hover em, .ngx .pf__dot:focus-visible em { opacity: 1; transform: translate(-50%, 0); }
@keyframes pfpulse { 0%, 100% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 0 rgba(219, 244, 80, .9); } 50% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px rgba(219, 244, 80, 0); } }
.ngx .pf__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ngx .pf__list a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--paper); transition: background-color .2s, box-shadow .2s; }
.ngx .pf__list a:hover { background: var(--lime-soft); box-shadow: 0 0 0 2px var(--ink); }
.ngx .pf__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 12px; }
.ngx .pf__list img { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--white); }
.ngx .pf__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ngx .pf__t b { font-size: 14px; }
.ngx .pf__t small { font-size: 13px; font-weight: 700; color: var(--teal); }
.ngx .pf__t small del { opacity: .55; }
.ngx .pf__t small ins { text-decoration: none; }
/* list hover lights up its number on the chart */
.ngx .pf:has(a[data-dot="pf-dot-1"]:hover) #pf-dot-1 span, .ngx .pf:has(a[data-dot="pf-dot-2"]:hover) #pf-dot-2 span,
.ngx .pf:has(a[data-dot="pf-dot-3"]:hover) #pf-dot-3 span, .ngx .pf:has(a[data-dot="pf-dot-4"]:hover) #pf-dot-4 span,
.ngx .pf:has(a[data-dot="pf-dot-5"]:hover) #pf-dot-5 span, .ngx .pf:has(a[data-dot="pf-dot-6"]:hover) #pf-dot-6 span,
.ngx .pf:has(a[data-dot="pf-dot-7"]:hover) #pf-dot-7 span, .ngx .pf:has(a[data-dot="pf-dot-8"]:hover) #pf-dot-8 span,
.ngx .pf:has(a[data-dot="pf-dot-9"]:hover) #pf-dot-9 span, .ngx .pf:has(a[data-dot="pf-dot-10"]:hover) #pf-dot-10 span,
.ngx .pf:has(a[data-dot="pf-dot-11"]:hover) #pf-dot-11 span, .ngx .pf:has(a[data-dot="pf-dot-12"]:hover) #pf-dot-12 span,
.ngx .pf:has(a[data-dot="pf-dot-13"]:hover) #pf-dot-13 span, .ngx .pf:has(a[data-dot="pf-dot-14"]:hover) #pf-dot-14 span { transform: scale(1.3); background: var(--ink); color: var(--lime); animation: none; }
.ngx .pf--one { display: block; }
/* one part: a ring around it, so the part itself stays visible */
.ngx .pf--one .pf__dot span { width: 76px; height: 76px; font-size: 0; background: transparent; box-shadow: 0 0 0 5px var(--lime), 0 0 0 7px var(--ink); animation: pfring 2.2s ease-in-out infinite; }
@keyframes pfring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ngx .pf--one .pf__dot:hover span, .ngx .pf--one .pf__dot:focus-visible span { background: transparent; transform: scale(1.08); }
.ngx .pf--one .pf__dot em { bottom: calc(100% + 14px); }
.ngx .pf--one .pf__dot em { opacity: 1; transform: translate(-50%, 0); }

/* 4. category tiles */
.ngx .scats { padding: 64px 0 70px; }
.ngx .scats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.ngx .scat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 20px; border-radius: 24px; overflow: hidden; color: var(--white); background: var(--ink); isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s; }
.ngx .scat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ngx .scat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 42, 37, 0) 30%, rgba(14, 42, 37, .88) 100%); }
.ngx .scat:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--lime); }
.ngx .scat:hover img { transform: scale(1.06); }
.ngx .scat__t { display: flex; flex-direction: column; gap: 4px; }
.ngx .scat__t b { font-family: var(--f-h); font-size: 19px; font-weight: 800; line-height: 1.15; text-transform: uppercase; }
.ngx .scat__t small { font-weight: 600; font-size: 14px; opacity: .85; }
.ngx .scat__n { position: absolute; top: 16px; left: 16px; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 12px; }

/* 5. send us a photo */
.ngx .phelp { padding: 0 0 70px; }
.ngx .phelp__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 50px; align-items: center; padding: 46px 48px; border-radius: 30px; background: var(--ink); color: var(--white); }
.ngx .phelp__h { margin: 12px 0 10px; font-family: var(--f-h); font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.ngx .phelp__p { margin: 0; max-width: 56ch; opacity: .85; font-weight: 500; line-height: 1.6; }
.ngx .phelp__btns { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.ngx .phelp__note { margin: 4px 0 0; text-align: center; font-size: 14px; opacity: .75; }
.ngx .phelp__note a { color: var(--lime); border-bottom: 1px solid currentColor; }

/* category page */
.ngx .chero { padding: 30px 0 18px; }
.ngx .chero__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 50px; align-items: center; }
.ngx .chero__lead { margin: 14px 0 22px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; line-height: 1.45; max-width: 34ch; }
.ngx .chero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ngx .chero__img { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 2px var(--ink), 10px 10px 0 var(--lime); }
.ngx .chero__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ngx .cchips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 6px; }
.ngx-shop .ngx .svc { padding-top: 30px; scroll-margin-top: 100px; }

/* product cards: extras over inner.css .spc */
.ngx .spc__img { position: relative; }
.ngx .spc__sale { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); font-weight: 800; font-size: 12px; }
.ngx .spc__d { margin: 0; color: var(--teal); font-size: 14px; line-height: 1.45; }
.ngx .spc__buy { display: flex; gap: 8px; margin-top: auto; }
.ngx .spc__buy input { width: 64px; padding: 8px 10px; border: 0; border-radius: 999px; box-shadow: 0 0 0 2px var(--line) inset; font-weight: 800; text-align: center; background: var(--paper); }
.ngx .spc__buy .btn { flex: 1; margin: 0; }

/* product page: help box + where it fits */
.ngx.ngx-phelp { margin: 18px 0 8px; padding: 18px 20px; border-radius: 18px; background: var(--lime-soft); box-shadow: 0 0 0 1px var(--line); }
.ngx-phelp__h { margin: 0 0 4px; font-family: var(--f-h); font-weight: 800; font-size: 16px; }
.ngx-phelp__p { margin: 0 0 12px; font-size: 14px; }
.ngx-phelp__btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ngx.ngx-pwhere { clear: both; display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px 40px; align-items: center; margin: 30px 0 40px; padding: 30px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.ngx-pwhere__h { margin: 10px 0 8px; font-family: var(--f-h); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.ngx-pwhere a { border-bottom: 2px solid var(--lime); font-weight: 800; }

/* pack sizes: on cards and on the product page */
.ngx .spc__pack { align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: var(--lime); font-weight: 800; font-size: 13px; }
.ngx.ngx-pack { margin: 16px 0 18px; padding: 16px 18px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 2px var(--ink), 6px 6px 0 var(--lime); }
.ngx-pack__h { margin: 0 0 8px; font-family: var(--f-h); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.ngx-pack__rows { margin: 0; padding: 0; list-style: none; }
.ngx-pack__rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.ngx-pack__rows li:first-child { border-top: 0; }
.ngx-pack__l { min-width: 96px; color: var(--teal); font-weight: 700; font-size: 14px; }
.ngx-pack__n { font-size: 18px; }
.ngx-pack__p { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--teal); }
.ngx-pack__p del { opacity: .55; }
.ngx-pack__p ins { text-decoration: none; }
/* how-to video under the summary */
.ngx.ngx-pvid { clear: both; display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px 40px; align-items: center; margin: 30px 0 10px; padding: 30px; border-radius: 26px; background: var(--ink); color: var(--white); }
.ngx-pvid .tag { color: var(--lime); }
.ngx-pvid .ngx-pwhere__h { color: var(--white); }
.ngx-pvid a { color: var(--lime); border-bottom: 2px solid currentColor; font-weight: 800; }
.ngx-pvid .player { border-radius: 20px; }
.ngx-pvid .player button { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.ngx-pvid .player button svg { width: 30px; height: 30px; }

@media (max-width: 1100px) {
  .ngx .scats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ngx .pf { grid-template-columns: 1fr; }
  .ngx .pf__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .ngx .sdoors__in, .ngx .srange, .ngx .chero__in, .ngx .phelp__in, .ngx.ngx-pwhere, .ngx.ngx-pvid { grid-template-columns: 1fr; }
  .ngx.ngx-pvid, .ngx.ngx-pwhere { padding: 22px; }
  .ngx .sneed { grid-template-columns: 1fr 1fr; }
  .ngx .scats__grid { grid-template-columns: 1fr 1fr; }
  .ngx .pf__list { grid-template-columns: 1fr 1fr; }
  .ngx .chero__img { order: -1; }
  .ngx .phelp__in { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .ngx .sdoor { min-height: 0; padding: 26px 22px 22px; }
  .ngx .srange { gap: 12px; }
  .ngx .sneed { grid-template-columns: 1fr; gap: 12px; }
  .ngx .sneed__c:not(.sneed__c--mod) { flex-direction: row; align-items: center; }
  .ngx .sneed__c:not(.sneed__c--mod) img { width: 110px; flex: none; aspect-ratio: 1; }
  .ngx .sneed__c:not(.sneed__c--mod) .sneed__h { margin: 0 14px 2px; font-size: 16px; }
  .ngx .sneed__c:not(.sneed__c--mod) .sneed__p { margin: 0 14px; font-size: 14px; }
  .ngx a.sneed__c:not(.sneed__c--mod) { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; align-content: center; }
  .ngx a.sneed__c:not(.sneed__c--mod) img { grid-row: 1 / 3; }
  .ngx .scats__grid { gap: 10px; }
  .ngx .scat { min-height: 200px; padding: 14px; }
  .ngx .scat__t b { font-size: 15px; }
  .ngx .scat__t small { display: none; }
  .ngx .pf__dot span { width: 19px; height: 19px; font-size: 10px; box-shadow: 0 0 0 1.5px var(--ink); animation: none; }
  .ngx .pf__list { grid-template-columns: 1fr; }
  .ngx .spc__buy { flex-direction: column; }
  .ngx .spc__buy input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ngx .pf__dot span { animation: none; } }
