/* ============================================================
   eVehicle — NX SINGLE PRODUCT (woocommerce/single-product.php)
   Gallery · buy box · tabs (description, specifications, reviews,
   shipping) · sticky buy bar. Carousels + cards: nx-core.css.
   Breakpoints: 1024 / 900 / 600 / 480.
   ============================================================ */

.nx-product-page { padding-top: calc(var(--header-height, 108px) + 8px); background: var(--nx-bg); overflow-x: clip; }
.nx-product-page .ev-wc-main-content { display: contents; }

/* Breadcrumb */
.nx-pd-crumbs .nx-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 16px 0 20px;
  font: 500 .8rem/1.35 var(--nx-font); color: var(--nx-muted);
}
.nx-pd-crumbs .nx-crumbs a { color: var(--nx-muted); transition: color .2s; }
.nx-pd-crumbs .nx-crumbs a:hover { color: var(--nx-text); }
.nx-pd-crumbs .nx-crumb-sep { opacity: .45; }
.nx-pd-crumbs .nx-crumb:last-child { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--nx-text); }

/* ── Top: gallery + summary ──────────────────────────────── */
.nx-pd-top { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.nx-pd-media { position: sticky; top: calc(var(--header-height, 108px) - var(--nx-topbar-h, 0px) + 20px); min-width: 0; }
.nx-pd-summary { min-width: 0; padding-top: 4px; }

/* Gallery */
.nx-gallery { display: grid; gap: 14px; }
.nx-gallery.has-thumbs { grid-template-columns: 76px minmax(0, 1fr); }
.nx-gallery-stage {
  position: relative; grid-column: 1 / -1; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 28px;
  background: radial-gradient(110% 85% at 50% 0%, #ffffff 0%, #f1f5f3 55%, #e2eae6 100%);
  border: 1px solid #e3eae6;
}
.nx-gallery.has-thumbs .nx-gallery-stage { grid-column: 2; grid-row: 1; }
.nx-gallery-track {
  display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none;
}
.nx-gallery-track::-webkit-scrollbar { display: none; }
.nx-gallery-track:focus-visible { box-shadow: inset 0 0 0 3px rgba(0, 200, 150, .5); border-radius: inherit; }
.nx-gallery-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.nx-gallery-slide > a, .nx-gallery-slide > img { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.nx-gallery-slide img { width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 6%; }
.nx-gallery .nx-pcard-badges { top: 18px; left: 18px; z-index: 3; }
.nx-gallery .nx-badge { height: 28px; padding: 0 12px; font-size: .66rem; }

.nx-gallery-actions { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.nx-gallery-act {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--nx-text); font-size: 1rem; box-shadow: 0 8px 20px -10px rgba(5, 13, 10, .5);
  transition: transform .3s var(--nx-ease), color .2s;
}
.nx-gallery-act:hover { transform: scale(1.08); }
.nx-gallery-act.active { color: #e11d48; }

.nx-gallery-nav {
  position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: #fff; color: var(--nx-text);
  box-shadow: 0 10px 24px -12px rgba(5, 13, 10, .55); opacity: 0; transition: opacity .25s, transform .3s var(--nx-ease);
}
.nx-gallery-nav.is-prev { left: 14px; }
.nx-gallery-nav.is-next { right: 14px; }
.nx-gallery-stage:hover .nx-gallery-nav:not(:disabled), .nx-gallery-nav:focus-visible { opacity: 1; }
.nx-gallery-nav:hover { transform: scale(1.06); }
.nx-gallery-nav:disabled { cursor: default; }

.nx-gallery-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: none; justify-content: center; gap: 6px; pointer-events: none; }
.nx-gallery-dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(5, 13, 10, .2); transition: width .3s var(--nx-ease), background .3s; }
.nx-gallery-dots span.is-active { width: 22px; background: var(--nx-ink); }
.nx-gallery-count {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--nx-muted); font: 600 .74rem/1 var(--nx-font); box-shadow: 0 4px 12px -6px rgba(5, 13, 10, .3);
}
.nx-gallery-count b { color: var(--nx-text); }

.nx-gallery-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; scrollbar-width: none; }
.nx-gallery-thumbs::-webkit-scrollbar { display: none; }
.nx-gallery-thumb {
  position: relative; flex: none; width: 76px; height: 76px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--nx-line);
  transition: border-color .2s, transform .25s var(--nx-ease);
}
.nx-gallery-thumb img { width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 6px; }
.nx-gallery-thumb:hover { transform: translateY(-2px); }
.nx-gallery-thumb.is-active { border-color: var(--nx-ink); }
.nx-gallery-thumb.is-video::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(5, 13, 10, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.nx-gallery-thumb.is-video img { object-fit: cover; padding: 0; }

/* Video slide (YouTube loads only on click) */
.nx-gallery-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--nx-ink); }
.nx-gallery-play img { object-fit: cover; padding: 0; opacity: .85; }
.nx-gallery-play-ic {
  position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--nx-emerald); color: var(--nx-ink); box-shadow: 0 16px 36px -12px rgba(0, 200, 150, .9); transition: transform .3s var(--nx-ease);
}
.nx-gallery-play:hover .nx-gallery-play-ic { transform: scale(1.08); }
.nx-gallery-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Full-screen viewer (built by nx-product.js) */
.nx-lightbox {
  position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column;
  background: rgba(5, 13, 10, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
}
.nx-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.nx-lightbox-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.nx-lightbox-track::-webkit-scrollbar { display: none; }
.nx-lightbox-track figure { flex: 0 0 100%; display: grid; place-items: center; margin: 0; padding: 64px 16px 48px; scroll-snap-align: center; }
.nx-lightbox-track img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.nx-lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff;
}
.nx-lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.nx-lightbox-count { position: absolute; top: 26px; left: 0; right: 0; text-align: center; font: 600 .82rem/1 var(--nx-font); color: var(--nx-on-dark-muted); pointer-events: none; }

/* ── Summary ─────────────────────────────────────────────── */
.nx-pd-eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nx-pd-cat, .nx-pd-brand {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font: 700 .66rem/1 var(--nx-font); letter-spacing: .13em; text-transform: uppercase; transition: background .2s, border-color .2s;
}
.nx-pd-cat { background: #e3f7ee; color: var(--nx-emerald-700); }
.nx-pd-cat:hover { background: #d2f1e3; color: var(--nx-emerald-700); }
.nx-pd-brand { background: var(--nx-surface); border: 1px solid var(--nx-line); color: var(--nx-text); }
.nx-pd-brand:hover { border-color: var(--nx-text); color: var(--nx-text); }

.nx-pd-summary .product_title {
  margin: 0; color: var(--nx-text); text-wrap: balance;
  font: 700 clamp(1.65rem, 2.6vw, 2.45rem)/1.14 var(--nx-font-display); letter-spacing: -.03em;
}
.nx-pd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font: 500 .88rem/1.2 var(--nx-font); color: var(--nx-muted); }
.nx-pd-rating .nx-stars { font-size: 1rem; }
.nx-pd-rating b { color: var(--nx-text); }
.nx-pd-rating a { color: var(--nx-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10, 20, 17, .3); }
.nx-pd-rating a:hover { text-decoration-color: currentColor; }
.nx-pd-sold { display: inline-flex; align-items: center; gap: 10px; }
.nx-pd-sold::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #b9c7c0; }

.nx-pd-summary > .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 22px 0 0;
  font: 800 clamp(1.85rem, 3vw, 2.45rem)/1.1 var(--nx-font-display); letter-spacing: -.03em; color: var(--nx-text);
}
.nx-pd-summary .price del { order: 2; font: 500 1.05rem/1.2 var(--nx-font); letter-spacing: 0; color: var(--nx-muted); }
.nx-pd-summary .price ins { order: 1; text-decoration: none; background: none; }
.nx-pd-price-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.nx-pd-save {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--nx-volt); color: var(--nx-ink); font: 700 .78rem/1 var(--nx-font);
}
.nx-pd-taxnote { font: 500 .78rem/1.4 var(--nx-font); color: var(--nx-muted); }

.nx-pd-summary .woocommerce-product-details__short-description { margin-top: 22px; font: 400 1rem/1.7 var(--nx-font); color: #3c4c45; }
.woocommerce-product-details__short-description > * + * { margin-top: .7em; }
.woocommerce-product-details__short-description ul { padding-left: 1.2em; list-style: disc; }
.woocommerce-product-details__short-description ol { padding-left: 1.3em; list-style: decimal; }

/* Fits */
.nx-pd-fits { margin-top: 22px; padding: 16px 16px 14px; border-radius: 20px; background: var(--nx-surface); border: 1px solid var(--nx-line); }
.nx-pd-label { display: block; margin-bottom: 10px; font: 700 .68rem/1 var(--nx-font); letter-spacing: .13em; text-transform: uppercase; color: var(--nx-muted); }
.nx-pd-fits-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-pd-fit {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px;
  background: #edf7f2; border: 1px solid #d7ede3; color: var(--nx-ink); font: 600 .84rem/1 var(--nx-font);
  transition: border-color .2s, background .2s;
}
.nx-pd-fit:hover { border-color: var(--nx-emerald); background: #dff5ea; color: var(--nx-ink); }
.nx-pd-fit .nx-vt-svg { flex: none; width: 30px; height: 30px; max-width: none; padding: 5px; border-radius: 50%; background: #fff; color: var(--nx-emerald-700); }
.nx-pd-compat { margin-top: 10px; font: 400 .86rem/1.5 var(--nx-font); color: var(--nx-muted); }
.nx-pd-compat b { color: var(--nx-text); font-weight: 600; }

/* Stock */
.nx-pd-stock { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font: 600 .88rem/1.3 var(--nx-font); color: var(--nx-emerald-700); }
.nx-pd-stock::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(0, 165, 124, .16); }
.nx-pd-stock.is-low { color: #b45309; }
.nx-pd-stock.is-low::before { box-shadow: 0 0 0 4px rgba(180, 83, 9, .14); }
.nx-pd-stock.is-out { color: var(--nx-muted); }
.nx-pd-stock.is-out::before { box-shadow: none; }

/* Add to cart */
.nx-pd-summary form.cart { margin: 18px 0 0; }
.nx-pd-summary form.cart:not(.variations_form), .nx-pd-summary .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.nx-pd-summary .quantity {
  display: flex; align-items: center; flex: none; height: 56px; padding: 4px; border-radius: 999px;
  background: var(--nx-surface); border: 1.5px solid var(--nx-line);
}
.nx-pd-summary .quantity:focus-within { border-color: var(--nx-text); }
.nx-qty-btn {
  display: grid; place-items: center; width: 44px; height: 46px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--nx-text); font: 500 1.4rem/1 var(--nx-font); transition: background .2s;
}
.nx-qty-btn:hover { background: var(--nx-bg); }
.nx-pd-summary .quantity input.qty {
  width: 42px; height: 46px; padding: 0; border: 0; outline: 0; background: none; text-align: center;
  font: 700 1rem/1 var(--nx-font); color: var(--nx-text); -moz-appearance: textfield;
}
.nx-pd-summary .quantity input.qty::-webkit-outer-spin-button, .nx-pd-summary .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nx-pd-summary .quantity:has(input[type="hidden"]) { display: none; } /* sold individually */

.nx-pd-summary .single_add_to_cart_button {
  position: relative; flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--nx-emerald); color: var(--nx-ink); font: 700 1rem/1 var(--nx-font); letter-spacing: -.01em;
  box-shadow: 0 16px 34px -14px rgba(0, 200, 150, .85); transition: transform .25s var(--nx-ease), background .25s, box-shadow .25s;
}
.nx-pd-summary .single_add_to_cart_button::before {
  content: ''; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 10.3a1.5 1.5 0 0 0 1.5 1.2h8.3a1.5 1.5 0 0 0 1.5-1.1L20.5 8H6.1'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 10.3a1.5 1.5 0 0 0 1.5 1.2h8.3a1.5 1.5 0 0 0 1.5-1.1L20.5 8H6.1'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nx-pd-summary .single_add_to_cart_button:hover { transform: translateY(-2px); background: #1fe0ae; box-shadow: 0 20px 40px -14px rgba(0, 200, 150, .9); }
.nx-pd-summary .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; transform: none; }
.nx-pd-summary .single_add_to_cart_button.loading { pointer-events: none; }
.nx-pd-summary .single_add_to_cart_button.loading::before {
  -webkit-mask: none; mask: none; width: 18px; height: 18px; background: transparent;
  border: 2.5px solid rgba(5, 13, 10, .25); border-top-color: currentColor; border-radius: 50%; animation: nx-spin .7s linear infinite;
}
.nx-pd-summary .single_add_to_cart_button.added::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E");
}
.nx-pd-summary .nx-buy-now { flex: 1 1 100%; height: 56px; font-size: 1rem; }
.nx-pd-summary .nx-buy-now:hover { --b-bg: var(--nx-ink-4); }
.nx-pd-summary .added_to_cart { display: none; }
.nx-pd-cart-msg { flex: 1 1 100%; margin: 0; padding: 12px 16px; border-radius: 14px; background: #fdecef; color: #9f1239; font: 500 .86rem/1.5 var(--nx-font); }
.nx-pd-cart-msg:empty { display: none; }

/* Variable products */
.nx-pd-summary table.variations { width: 100%; margin: 0 0 4px; border: 0; border-collapse: collapse; }
.nx-pd-summary table.variations tr, .nx-pd-summary table.variations th, .nx-pd-summary table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
.nx-pd-summary table.variations th.label { padding-bottom: 8px; }
.nx-pd-summary table.variations th.label label { font: 700 .7rem/1 var(--nx-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nx-muted); }
.nx-pd-summary table.variations td.value { position: relative; padding-bottom: 18px; }
.nx-pd-summary table.variations select {
  width: 100%; height: 50px; padding: 0 42px 0 16px; border: 1.5px solid var(--nx-line); border-radius: 14px; cursor: pointer;
  font: 600 1rem/1 var(--nx-font); color: var(--nx-text); -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356675f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.nx-pd-summary table.variations td.has-swatches select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nx-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-swatch {
  min-width: 52px; height: 44px; padding: 0 16px; border: 1.5px solid var(--nx-line); border-radius: 14px; cursor: pointer;
  background: #fff; color: var(--nx-text); font: 600 .9rem/1 var(--nx-font); transition: border-color .2s, background .2s, color .2s;
}
.nx-swatch:hover { border-color: var(--nx-text); }
.nx-swatch.is-active { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }
.nx-swatch:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.nx-pd-summary .reset_variations { display: inline-block; margin-top: 10px; font: 600 .8rem/1 var(--nx-font); color: var(--nx-muted); text-decoration: underline; }
.nx-pd-summary .single_variation_wrap { width: 100%; }
.nx-pd-summary .woocommerce-variation { margin-bottom: 14px; }
.nx-pd-summary .woocommerce-variation-price .price { font: 800 1.6rem/1.2 var(--nx-font-display); color: var(--nx-text); }
.nx-pd-summary .woocommerce-variation-availability .stock { margin: 6px 0 0; font: 600 .86rem/1.3 var(--nx-font); color: var(--nx-emerald-700); }
.nx-pd-summary .woocommerce-variation-availability .out-of-stock { color: var(--nx-muted); }

/* Grouped / external */
.nx-pd-summary table.group_table { width: 100%; margin-bottom: 14px; border-collapse: collapse; }
.nx-pd-summary table.group_table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--nx-line); vertical-align: middle; }

/* Assurances */
.nx-pd-assure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.nx-pd-assure li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--nx-surface); border: 1px solid var(--nx-line); }
.nx-pd-assure-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--nx-ink); color: var(--nx-emerald); font-size: .92rem; }
.nx-pd-assure b { display: block; font: 700 .86rem/1.3 var(--nx-font); color: var(--nx-text); }
.nx-pd-assure small { display: block; margin-top: 3px; font: 400 .76rem/1.45 var(--nx-font); color: var(--nx-muted); }

/* Meta (SKU, category, tags) */
.nx-pd-summary .product_meta {
  display: flex; flex-direction: column; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--nx-line);
  font: 500 .82rem/1.5 var(--nx-font); color: var(--nx-muted);
}
.nx-pd-summary .product_meta > span { display: block; }
.nx-pd-summary .product_meta :is(a, .sku) { color: var(--nx-text); }
.nx-pd-summary .product_meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10, 20, 17, .25); }

/* ── Tabs ────────────────────────────────────────────────── */
.nx-pd-more { padding-top: clamp(48px, 7vw, 88px); }
.nx-pd-more .woocommerce-tabs {
  padding: 6px clamp(18px, 3vw, 40px) clamp(24px, 3vw, 40px);
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 28px;
}
.nx-pd-more ul.tabs {
  display: flex; gap: 4px; margin: 0; padding: 6px 0 0; overflow-x: auto; scrollbar-width: none;
  list-style: none; border-bottom: 1px solid var(--nx-line);
}
.nx-pd-more ul.tabs::-webkit-scrollbar { display: none; }
.nx-pd-more ul.tabs li { flex: none; margin: 0; }
.nx-pd-more ul.tabs li a {
  display: block; margin-bottom: -1px; padding: 16px 16px 14px; border-bottom: 2.5px solid transparent; white-space: nowrap;
  font: 600 .95rem/1 var(--nx-font); color: var(--nx-muted); transition: color .2s, border-color .2s;
}
.nx-pd-more ul.tabs li a:hover { color: var(--nx-text); }
.nx-pd-more ul.tabs li.active a { color: var(--nx-text); border-bottom-color: var(--nx-emerald); }
.nx-pd-more .woocommerce-Tabs-panel { padding-top: 28px; }

/* Description (editor content) */
.nx-pd-more .woocommerce-Tabs-panel--description { max-width: 820px; font: 400 1rem/1.75 var(--nx-font); color: #33433c; }
.woocommerce-Tabs-panel--description > * + * { margin-top: 1em; }
.woocommerce-Tabs-panel--description :is(h2, h3, h4) { margin-top: 1.6em; font-family: var(--nx-font-display); letter-spacing: -.02em; line-height: 1.25; color: var(--nx-text); }
.woocommerce-Tabs-panel--description h2 { font-size: 1.5rem; }
.woocommerce-Tabs-panel--description h3 { font-size: 1.22rem; }
.woocommerce-Tabs-panel--description h4 { font-size: 1.05rem; }
.woocommerce-Tabs-panel--description ul { padding-left: 1.3em; list-style: disc; }
.woocommerce-Tabs-panel--description ol { padding-left: 1.4em; list-style: decimal; }
.woocommerce-Tabs-panel--description li + li { margin-top: .35em; }
.woocommerce-Tabs-panel--description a { color: var(--nx-emerald-700); text-decoration: underline; }
.woocommerce-Tabs-panel--description img { border-radius: 16px; }
.woocommerce-Tabs-panel--description table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.woocommerce-Tabs-panel--description :is(th, td) { padding: 10px 12px; border: 1px solid var(--nx-line); text-align: left; }
.woocommerce-Tabs-panel--description blockquote { padding: 14px 18px; border-left: 3px solid var(--nx-emerald); background: var(--nx-bg); border-radius: 0 12px 12px 0; }

/* Specifications */
.nx-pd-more .shop_attributes { width: 100%; max-width: 820px; border-collapse: collapse; }
.nx-pd-more .shop_attributes :is(th, td) { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--nx-line); text-align: left; vertical-align: top; font: 500 .92rem/1.5 var(--nx-font); }
.nx-pd-more .shop_attributes th { width: 34%; font-weight: 600; color: var(--nx-muted); }
.nx-pd-more .shop_attributes td { color: var(--nx-text); }
.nx-pd-more .shop_attributes tr:nth-child(odd) :is(th, td) { background: #f8faf9; }
.nx-pd-more .shop_attributes td p { margin: 0; }
.nx-pd-more .shop_attributes td a { text-decoration: underline; text-underline-offset: 3px; }

/* Shipping + FAQ */
.nx-pd-ship { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; max-width: 920px; }
.nx-pd-ship h3 { margin-bottom: 10px; font: 700 1.08rem/1.3 var(--nx-font-display); color: var(--nx-text); }
.nx-pd-ship p { color: #3c4c45; line-height: 1.7; }
.nx-pd-ship p + p { margin-top: .7em; }
.nx-pd-ship a { color: var(--nx-emerald-700); font-weight: 600; text-decoration: underline; }
.nx-pd-faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.nx-pd-faq details { border: 1px solid var(--nx-line); border-radius: 16px; background: #fff; }
.nx-pd-faq summary { padding: 16px 18px; cursor: pointer; font: 600 .96rem/1.4 var(--nx-font); list-style: none; }
.nx-pd-faq summary::-webkit-details-marker { display: none; }
.nx-pd-faq summary::after { content: '+'; float: right; color: var(--nx-muted); font-weight: 500; }
.nx-pd-faq details[open] summary::after { content: '−'; }
.nx-pd-faq details > div { padding: 0 18px 16px; color: #3c4c45; line-height: 1.7; }

/* Reviews */
.nx-rev-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; margin-bottom: 28px; padding: 24px; border-radius: 22px; background: var(--nx-bg); }
.nx-rev-score { display: flex; flex-direction: column; gap: 6px; }
.nx-rev-score b { font: 800 3.2rem/1 var(--nx-font-display); letter-spacing: -.04em; color: var(--nx-text); }
.nx-rev-score .nx-stars { font-size: 1.15rem; }
.nx-rev-score small { font: 500 .8rem/1.3 var(--nx-font); color: var(--nx-muted); }
.nx-rev-bars { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.nx-rev-bars li { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 10px; font: 600 .8rem/1 var(--nx-font); color: var(--nx-muted); }
.nx-rev-bar { height: 8px; overflow: hidden; border-radius: 8px; background: #dde6e1; }
.nx-rev-bar span { display: block; height: 100%; border-radius: inherit; background: #f5b301; }

#reviews .woocommerce-Reviews-title { margin-bottom: 16px; font: 700 1.2rem/1.3 var(--nx-font-display); color: var(--nx-text); }
#reviews .woocommerce-noreviews { color: var(--nx-muted); }
#reviews .commentlist { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
#reviews .commentlist .children { margin: 12px 0 0 40px; list-style: none; }
#reviews .comment_container { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--nx-line); border-radius: 18px; background: #fff; }
#reviews .comment_container img.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; }
#reviews .comment-text { flex: 1; min-width: 0; }
#reviews .comment-text .meta { margin: 6px 0 8px; font: 500 .8rem/1.4 var(--nx-font); color: var(--nx-muted); }
#reviews .woocommerce-review__author { color: var(--nx-text); font-weight: 700; }
#reviews .woocommerce-review__verified { color: var(--nx-emerald-700); font-style: normal; }
#reviews .comment-text .description p { margin: 0; line-height: 1.65; color: #33433c; }
#reviews .comment-text .description p + p { margin-top: .6em; }

.star-rating { position: relative; display: inline-block; height: 1em; overflow: hidden; font-size: .9rem; line-height: 1; letter-spacing: 1.5px; vertical-align: middle; }
.star-rating::before { content: '★★★★★'; color: #d5ded9; }
.star-rating span { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: '★★★★★'; position: absolute; top: 0; left: 0; color: #f5b301; }

#review_form_wrapper { margin-top: 28px; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: var(--nx-bg); }
#review_form .comment-reply-title { display: block; margin-bottom: 16px; font: 700 1.15rem/1.3 var(--nx-font-display); color: var(--nx-text); }
#review_form .comment-form > p { margin: 0 0 14px; }
#review_form label { display: block; margin-bottom: 6px; font: 600 .82rem/1.3 var(--nx-font); color: var(--nx-text); }
#review_form :is(input[type="text"], input[type="email"], textarea) {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--nx-line); border-radius: 14px; outline: 0;
  background: #fff; font: 400 1rem/1.5 var(--nx-font); color: var(--nx-text); transition: border-color .2s, box-shadow .2s;
}
#review_form :is(input[type="text"], input[type="email"], textarea):focus { border-color: var(--nx-emerald); box-shadow: 0 0 0 3px rgba(0, 200, 150, .18); }
#review_form textarea { min-height: 130px; resize: vertical; }
#review_form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
#review_form .comment-form-cookies-consent label { margin: 0; font-weight: 500; color: var(--nx-muted); }
#review_form .form-submit input[type="submit"] {
  height: 50px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--nx-ink); color: #fff; font: 700 .95rem/1 var(--nx-font); transition: background .2s;
}
#review_form .form-submit input[type="submit"]:hover { background: var(--nx-ink-4); }
#review_form p.stars { margin: 0; line-height: 1; }
#review_form p.stars span { display: inline-flex; gap: 4px; }
#review_form p.stars a { position: relative; display: inline-block; width: 1em; height: 1em; overflow: hidden; font-size: 1.9rem; color: transparent; text-decoration: none; }
#review_form p.stars a::before { content: '★'; position: absolute; inset: 0; line-height: 1; color: #cfd9d3; transition: color .15s; }
#review_form p.stars.selected a::before { color: #f5b301; }
#review_form p.stars.selected a.active ~ a::before { color: #cfd9d3; }
#review_form p.stars:hover a::before { color: #f5b301 !important; }
#review_form p.stars a:hover ~ a::before { color: #cfd9d3 !important; }

/* Carousels after the tabs */
.nx-product-page .nx-pcarousel:last-of-type { padding-bottom: clamp(64px, 8vw, 110px); }

/* ── Sticky buy bar ──────────────────────────────────────── */
.nx-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 940; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--nx-line); box-shadow: 0 -18px 40px -24px rgba(5, 13, 10, .35);
  transform: translateY(110%); transition: transform .45s var(--nx-ease);
}
.nx-buybar.is-shown { transform: none; }
.nx-buybar-in { display: flex; align-items: center; gap: 14px; }
.nx-buybar-img { flex: none; }
.nx-buybar-img img { display: block; width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: var(--nx-bg); }
.nx-buybar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nx-buybar-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 .9rem/1.3 var(--nx-font-display); color: var(--nx-text); }
.nx-buybar-price { font: 800 1rem/1.2 var(--nx-font-display); color: var(--nx-text); }
.nx-buybar-price del { margin-right: 6px; font: 500 .78rem var(--nx-font); color: var(--nx-muted); }
.nx-buybar-price ins { text-decoration: none; background: none; }
.nx-buybar-btn { flex: none; height: 48px; padding: 0 26px; }
body.nx-buybar-on .back-to-top { bottom: 92px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nx-pd-top { gap: 32px; }
  .nx-pd-assure { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nx-pd-top { grid-template-columns: minmax(0, 1fr); }
  .nx-pd-media { position: static; }
  .nx-gallery.has-thumbs { grid-template-columns: minmax(0, 1fr); }
  .nx-gallery.has-thumbs .nx-gallery-stage { grid-column: 1; }
  .nx-gallery-thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; }
  .nx-gallery-thumb { width: 68px; height: 68px; border-radius: 14px; }
  .nx-pd-assure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .nx-product-page { padding-top: var(--header-height, 98px); }
  .nx-pd-crumbs .nx-crumbs { padding: 12px 0 14px; font-size: .76rem; }
  .nx-pd-top { gap: 22px; }
  .nx-gallery-stage { border-radius: 22px; }
  .nx-gallery-thumbs, .nx-gallery-nav { display: none; }
  .nx-gallery-dots { display: flex; }
  .nx-gallery-count { left: auto; right: 14px; bottom: 12px; }
  .nx-gallery .nx-pcard-badges { top: 14px; left: 14px; }
  .nx-gallery-actions { top: 12px; right: 12px; }
  .nx-gallery-act { width: 40px; height: 40px; }

  .nx-pd-summary .product_title { font-size: clamp(1.45rem, 6.4vw, 1.75rem); }
  .nx-pd-summary > .price { margin-top: 18px; font-size: 1.9rem; }
  .nx-pd-summary .single_add_to_cart_button { flex-basis: 0; padding: 0 18px; }
  .nx-pd-assure { gap: 8px; }
  .nx-pd-assure li { flex-direction: column; gap: 10px; padding: 12px; }
  .nx-pd-assure small { display: none; }

  .nx-pd-more .woocommerce-tabs { padding: 2px 16px 22px; border-radius: 22px; }
  .nx-pd-more ul.tabs li a { padding: 15px 12px 13px; font-size: .9rem; }
  .nx-pd-more .shop_attributes :is(th, td) { padding: 12px 10px; font-size: .88rem; }
  .nx-pd-more .shop_attributes th { width: 42%; }
  .nx-pd-ship { grid-template-columns: minmax(0, 1fr); }
  .nx-rev-summary { padding: 18px; }
  #reviews .comment_container { padding: 14px; }
  #reviews .commentlist .children { margin-left: 16px; }

  .nx-buybar-in { gap: 10px; }
  .nx-buybar-img img { width: 42px; height: 42px; }
  .nx-buybar-btn { height: 44px; padding: 0 18px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-gallery-track { scroll-behavior: auto; }
  .nx-buybar, .nx-lightbox { transition: none; }
}
