/*
Theme Name: Nerdy.co.za
Theme URI: https://nerdy.co.za
Author: Base64
Description: Custom WooCommerce theme for Nerdy.co.za — server, network and storage hardware. Dark circuit-board palette built on the Nerdy teal.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: nerdy
*/

/*
 * Palette is lifted from the Nerdy.co.za brand assets: the app icon's deep
 * board-navy (#104353) and teal (#029f99), plus the wordmark's orange (#cf4600).
 * Accent variables keep their structural names (--nd-gold / --nd-pink) from the
 * theme this was ported from; the values, not the roles, are what changed.
 */
:root {
  --nd-black: #0b1519;
  --nd-dark: #0e1a20;
  --nd-card: #142631;
  --nd-gold: #14c8bd;         /* primary accent — brand teal, lifted for dark bg */
  --nd-gold-bright: #4ee0d6;
  --nd-teal-deep: #029f99;    /* exact brand teal — fills that carry dark text */
  --nd-pink: #ff6b1f;         /* secondary accent — brand orange, lifted */
  --nd-red: #cf4600;          /* exact brand orange */
  --nd-white: #eef4f6;
  --nd-muted: #8aa2ad;
  --nd-radius: 10px;
  --nd-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nd-font-display: 'Oswald', 'Archivo Narrow', Impact, sans-serif;
  --nd-font-sticker: 'Archivo Black', 'Arial Black', sans-serif;
  --nd-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--nd-black);
  color: var(--nd-white);
  font-family: var(--nd-font);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--nd-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--nd-gold-bright); }

img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

h1, h2, h3, h4 {
  font-family: var(--nd-font-display);
  letter-spacing: .04em;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: 1.4rem; }

.nd-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.nd-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,21,25,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20,200,189,.25);
}
.nd-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1160px; margin: 0 auto;
}
.nd-logo {
  font-family: var(--nd-font-display);
  font-size: 1.7rem; color: var(--nd-white);
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center;
}
.nd-logo span { color: var(--nd-gold); }
/* Wordmark is 589x223 (~2.64:1); heights below are tuned to that ratio. */
.nd-logo img { height: 40px; width: auto; display: block; }
.nd-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nd-nav a {
  color: var(--nd-white); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em;
}
.nd-nav a:hover { color: var(--nd-gold); }
.nd-header-tools { display: flex; align-items: center; gap: 22px; }
.nd-tools-sep { width: 1px; height: 20px; background: #1f3946; flex: none; }
.nd-cart-link { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 600; }
.nd-cart-link svg { width: 23px; height: 23px; }
.nd-burger {
  display: none; place-items: center;
  width: 46px; height: 46px;
  border: 0; border-radius: 14px;
  background: var(--nd-gold); color: #0b1519; cursor: pointer;
  transition: background .18s, color .18s;
}
.nd-burger:hover { background: var(--nd-pink); color: #fff; }
.nd-cart-count {
  background: var(--nd-gold); color: var(--nd-black);
  border-radius: 999px; font-size: .85rem; font-weight: 700;
  padding: 2px 9px; margin-left: 6px; vertical-align: top;
}

/* ---------- Header account (Claude design: Header Account) ---------- */
.nd-acct { position: relative; }
.nd-acct-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--nd-gold); cursor: pointer;
  font: 700 13.5px var(--nd-font); letter-spacing: .06em; white-space: nowrap;
  transition: background .18s, color .18s;
}
.nd-acct-btn:hover { color: var(--nd-gold-bright); }
.nd-acct.is-open .nd-acct-btn { background: var(--nd-gold); color: #0b1519; }
.nd-acct-chev { flex: none; transition: transform .18s; }
.nd-acct.is-open .nd-acct-chev { transform: rotate(180deg); }
.nd-acct-ico { flex: none; }

/* Logged-in trigger: initials chip + greeting */
.nd-acct--in .nd-acct-btn { padding: 7px 14px 7px 7px; color: #fff; gap: 10px; letter-spacing: .03em; }
.nd-acct--in .nd-acct-btn:hover { color: #fff; }
.nd-acct--in.is-open .nd-acct-btn { background: #1b1b1b; color: #fff; }
.nd-acct--in .nd-acct-chev { color: var(--nd-gold); }
.nd-acct-av {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--nd-pink); color: #fff; font: 700 13px/1 var(--nd-font);
}

/* Dropdown */
.nd-acct-menu {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 110;
  width: 266px; padding: 10px; border-radius: 14px;
  background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.55);
  display: flex; flex-direction: column; gap: 8px;
}
.nd-acct-menu[hidden] { display: none !important; }
.nd-acct-menu::before {
  content: ""; position: absolute; top: -7px; right: 34px;
  width: 14px; height: 14px; background: #fff; transform: rotate(45deg);
}
.nd-acct--in .nd-acct-menu { width: 288px; gap: 0; }
.nd-acct-eyebrow {
  padding: 12px 12px 4px;
  font: 700 10.5px var(--nd-font); letter-spacing: .2em; text-transform: uppercase; color: #9ab0ba;
}
.nd-acct-cta {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px; border-radius: 10px;
  background: var(--nd-gold); color: #0b1519 !important;
  font: 700 13px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.nd-acct-cta:hover { background: var(--nd-pink); color: #fff !important; }
.nd-acct-cta--alt { background: #f3f3f3; }
.nd-acct-cta--alt:hover { background: #0b1519; color: #fff !important; }
.nd-acct-sep { height: 1px; background: #eaeaea; margin: 4px 12px; }
.nd-acct--in .nd-acct-sep { margin: 6px 14px; }
.nd-acct-lost { padding: 0 12px 12px; color: #7b939f !important; font-size: 13px; }
.nd-acct-lost:hover { color: #0b1519 !important; }
.nd-acct-head { padding: 14px 14px 12px; border-bottom: 1px solid #eee; margin-bottom: 6px; }
.nd-acct-name { font-family: var(--nd-font-sticker); font-size: 16px; line-height: 1.2; color: #0b1519; }
.nd-acct-email { margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: #8aa2ad; word-break: break-all; }
.nd-acct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 9px;
  color: #0b1519 !important; font: 600 14px/1.3 var(--nd-font);
  transition: background .18s;
}
.nd-acct-row:hover { background: #d9f5f2; }
.nd-acct-pill {
  flex: none; padding: 1px 8px; border-radius: 999px;
  background: var(--nd-gold); color: #0b1519; font: 700 11px/1.6 var(--nd-font);
}
.nd-acct-row--out { color: #d21f6f !important; font-weight: 700; }
.nd-acct-row--out:hover { background: #ffe6d9; }

/* ---------- Buttons ---------- */
.nd-btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce button.button.alt, .wc-block-components-button {
  display: inline-block;
  background: var(--nd-gold);
  color: var(--nd-black) !important;
  font-family: var(--nd-font);
  font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 14px 34px;
  border: none; border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.nd-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce button.button.alt:hover {
  background: var(--nd-gold-bright); transform: translateY(-2px);
  color: var(--nd-black) !important;
}
.nd-btn--ghost {
  background: transparent;
  border: 2px solid var(--nd-gold);
  color: var(--nd-gold) !important;
}
.nd-btn--ghost:hover { background: var(--nd-gold); color: var(--nd-black) !important; }

/* ---------- Hero (desktop "Split slab", design 1b) ---------- */
.nd-hero { background: var(--nd-black); }
.nd-dhero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: 620px; /* never a fixed height — pinned height clipped the CTA row at 1024px */
  border-bottom: 1px solid #1c343f;
}
.nd-dhero-panel {
  background: var(--nd-gold); color: #0b1519;
  padding: 64px clamp(28px, 4vw, 60px) 64px max(clamp(28px, 4vw, 60px), calc((100vw - 1280px) / 2));
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.nd-dhero-chip {
  align-self: flex-start; margin: 0;
  background: #0b1519; color: var(--nd-gold);
  font: 700 11.5px var(--nd-font); letter-spacing: .22em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 8px;
}
.nd-dhero-panel h1 {
  margin: 0; font-family: var(--nd-font-sticker);
  font-size: clamp(44px, 4.4vw, 76px); line-height: .92; letter-spacing: -.04em;
  text-transform: uppercase; color: #0b1519;
}
.nd-dhero-panel h1 .nd-pink { color: var(--nd-pink); }
.nd-dhero-rule { width: 120px; height: 7px; border-radius: 99px; background: #0b1519; }
.nd-dhero-lead {
  margin: 0; max-width: 440px;
  font-size: 19px; line-height: 1.5; color: #2a2010; text-wrap: pretty;
}
.nd-dhero-ctas { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.nd-dhero-btn {
  display: inline-flex; align-items: center; height: 62px; padding: 0 34px;
  border-radius: 999px; background: #0b1519; color: var(--nd-gold);
  font: 700 14px var(--nd-font); letter-spacing: .16em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.nd-dhero-btn:hover { background: var(--nd-pink); color: #fff; }
.nd-dhero-btn--ghost {
  padding: 0 30px; background: transparent;
  border: 2px solid #0b1519; color: #0b1519;
}
.nd-dhero-btn--ghost:hover { background: #0b1519; color: var(--nd-gold); }
.nd-dhero-photo {
  position: relative; background: #0b1519;
  overflow: hidden;
}
.nd-dhero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.nd-dhero-notch {
  position: absolute; left: -1px; top: 0; bottom: 0; width: 70px;
  background: var(--nd-gold); clip-path: polygon(0 0, 100% 0, 0 100%);
}
.nd-dhero-rating {
  position: absolute; right: 28px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(9,17,20,.78); backdrop-filter: blur(4px);
  border: 1px solid #1f3946; border-radius: 16px; padding: 12px 16px;
  font: 700 13.5px var(--nd-font); color: #fff;
}
.nd-dhero-stars { color: var(--nd-gold); font-size: 15px; letter-spacing: 2px; }

/* ---------- Pillars ---------- */
.nd-pillars { padding: 90px 0; background: var(--nd-dark); }
.nd-pillars-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px; margin-top: 40px;
}
.nd-pillar {
  background: var(--nd-card);
  border: 1px solid rgba(20,200,189,.18);
  border-radius: var(--nd-radius);
  padding: 40px 30px; text-align: center;
  transition: transform .2s, border-color .2s;
}
.nd-pillar:hover { transform: translateY(-6px); border-color: var(--nd-gold); }
.nd-pillar-icon { margin-bottom: 18px; }
.nd-pillar-icon img { height: 84px; width: auto; }
.nd-pillar h3 { color: var(--nd-gold); }
.nd-pillar p { color: var(--nd-muted); margin: 0; }

/* ---------- Story ---------- */
.nd-story { padding: 100px 0; }
.nd-story-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center;
}
.nd-story h2 span { color: var(--nd-gold); }
.nd-story p { color: var(--nd-muted); font-size: 1.05rem; }
.nd-story .nd-btn { margin-top: 18px; }
.nd-story-img img { border-radius: var(--nd-radius); display: block; }

/* ---------- One Bite ---------- */
.nd-onebite { padding: 100px 0; background: var(--nd-dark); }
.nd-onebite-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 56px; align-items: center;
}
.nd-onebite h2 { color: var(--nd-gold); }
.nd-onebite p { color: var(--nd-muted); font-size: 1.05rem; }
.nd-onebite-img img { border-radius: var(--nd-radius); display: block; }

/* ---------- Featured products ---------- */
.nd-shop-strip { padding: 90px 0; background: var(--nd-dark); }
.nd-section-head { text-align: center; margin-bottom: 10px; }
.nd-section-kicker {
  margin: 0 0 6px;
  font: 700 11px var(--nd-font); letter-spacing: .24em; text-transform: uppercase;
  color: var(--nd-pink);
}
.nd-section-sub { text-align: center; color: var(--nd-muted); margin: 0 0 40px; }

/* ---------- WooCommerce product cards (Claude design) ---------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 0 0 1em; padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }
.woocommerce ul.products li.product.nd-card,
.woocommerce-page ul.products li.product.nd-card {
  float: none; width: auto; margin: 0; padding: 0;
  background: #101f26;
  border: 1px solid #172c36;
  border-radius: 12px;
  overflow: hidden; text-align: left;
  display: flex; flex-direction: column;   /* equal-height cards, CTA pinned low */
  transition: transform .2s, border-color .2s;
}
.woocommerce ul.products li.product.nd-card:hover { transform: translateY(-4px); border-color: var(--nd-gold); }

/* Product photos here are mixed-aspect supplier shots (rack servers, DIMMs,
   transceivers), so the box is fixed and the image is contained inside it —
   `cover` crops a 4U chassis into an unrecognisable stripe. */
.nd-card-media { position: relative; background: #0e1a20; }
.nd-card-media img {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain; padding: 12px;
  margin: 0; border-radius: 0;
}
.nd-card.outofstock .nd-card-media img { opacity: .42; filter: grayscale(.55); }
.nd-card-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--nd-pink); color: #fff;
  font: 700 11px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.nd-card-sale {
  position: absolute; top: 14px; right: 14px;
  background: var(--nd-gold); color: #0b1519;
  font: 800 11px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.woocommerce span.onsale { display: none; } /* replaced by .nd-card-sale pill */

.nd-card-oos {
  position: absolute; top: 14px; right: 14px;
  background: #0b1519; color: #a9bcc5; border: 1px solid #294a59;
  font: 700 11px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}

/* YITH wishlist heart, pinned bottom-right of the photo. */
.nd-card-wish { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.nd-card-wish .yith-wcwl-add-to-wishlist { margin: 0; }
.nd-card-wish a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(11,21,25,.82); border: 1px solid #294a59;
  color: var(--nd-white); font-size: 0; line-height: 0;
  transition: border-color .18s, color .18s;
}
.nd-card-wish a:hover { border-color: var(--nd-gold); color: var(--nd-gold); }
.nd-card-wish a i, .nd-card-wish a svg, .nd-card-wish a img { font-size: 15px; width: 15px; height: 15px; }
.nd-card-wish .yith-wcwl-wishlistaddedbrowse, .nd-card-wish .yith-wcwl-wishlistexistsbrowse { color: var(--nd-pink); }
.nd-card-wish .feedback { display: none; }

/* Long hardware names (SKU-laden, 100+ chars) get a hard cap so cards in a row
   keep a common height; the full name is on the product page. */
.nd-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.nd-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 52px; }
.nd-card-name {
  font: 700 13.5px var(--nd-font); letter-spacing: .03em;
  line-height: 1.4; color: var(--nd-white);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nd-card-name:hover { color: var(--nd-gold); }

.nd-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px; min-height: 20px;
}
.nd-card-stock {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11.5px var(--nd-font); letter-spacing: .07em; text-transform: uppercase;
  color: #6ddcc9;
}
.nd-card-stock i { width: 7px; height: 7px; border-radius: 50%; background: #37c98f; flex: none; }
.nd-card-stock.is-out { color: #93a9b4; }
.nd-card-stock.is-out i { background: #6f8894; }
.nd-card-sku {
  font: 500 11px var(--nd-font-mono); letter-spacing: .02em; color: #6f8894;
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Prices set in mono: line up down a column of cards and read as spec data,
   which is what they are on a parts catalogue. */
.nd-card-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.nd-card-was,
.nd-card-was .amount { font: 500 12px var(--nd-font-mono); color: #7e96a2; text-decoration: line-through; }
.nd-card-chip {
  background: var(--nd-gold);
  border-radius: 7px; padding: 5px 11px;
  font: 700 14px var(--nd-font-mono); line-height: 1.4; white-space: nowrap;
}
.nd-card-chip, .nd-card-chip .amount, .nd-card-chip bdi { color: #0b1519; }
.nd-card-chip del, .nd-card-chip del .amount { color: rgba(11,21,25,.5); }
.nd-card-chip ins { text-decoration: none; }

.woocommerce ul.products li.product.nd-card .button {
  width: 100%; min-height: 52px; margin: 16px 0 0;
  border: 2px solid var(--nd-pink); border-radius: 12px;
  background: #162b34; color: #fff !important;
  font: 700 12.5px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  cursor: pointer; transition: all .18s;
}
/* CTA sits on the card floor whatever the name wrapped to. */
.woocommerce ul.products li.product.nd-card .button,
.woocommerce ul.products li.product.nd-card .added_to_cart { margin-top: auto; }
.woocommerce ul.products li.product.nd-card .added_to_cart { margin-top: 10px; }

/* Out of stock: Woo swaps the CTA for a "Read more" link — quiet it down so it
   reads as an invitation to look, not a buy button that failed. */
.woocommerce ul.products li.product.nd-card.outofstock .button {
  border-color: #294a59; background: transparent; color: #a9bcc5 !important;
}
.woocommerce ul.products li.product.nd-card.outofstock .button::after {
  background: #294a59; color: #c9d6dc;
}
.woocommerce ul.products li.product.nd-card.outofstock .button:hover {
  border-color: var(--nd-gold); background: transparent; color: var(--nd-white) !important;
}
.woocommerce ul.products li.product.nd-card.outofstock .button:hover::after {
  background: var(--nd-gold); color: #0b1519;
}
.woocommerce ul.products li.product.nd-card .button::after {
  content: "\2192"; display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--nd-pink); color: #fff; font-size: 13px; letter-spacing: 0;
}
.woocommerce ul.products li.product.nd-card .button:hover {
  background: var(--nd-pink); border-color: var(--nd-pink); color: #fff !important; transform: translateY(-2px);
}
.woocommerce ul.products li.product.nd-card .button.loading { opacity: .6; }
.woocommerce ul.products li.product.nd-card .button.added::after { content: "\2713"; }
.woocommerce ul.products li.product.nd-card .added_to_cart {
  display: block; margin-top: 10px; text-align: center;
  font: 600 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nd-gold);
}

/* Shop archive header (Claude design) */
.woocommerce-shop .woocommerce-products-header { margin-bottom: 44px; }
.woocommerce-shop h1.page-title {
  margin: 0;
  font-family: var(--nd-font-sticker);
  font-size: clamp(56px, 7vw, 72px);
  line-height: .88; letter-spacing: -.03em; text-transform: uppercase;
}
.woocommerce-shop h1.page-title::before {
  content: "Server, network & storage hardware"; display: block;
  font: 600 11px var(--nd-font); letter-spacing: .24em; text-transform: uppercase;
  color: var(--nd-pink); margin-bottom: 12px;
}
.woocommerce-shop h1.page-title::after {
  content: ""; display: block; width: 120px; height: 6px;
  background: var(--nd-pink); border-radius: 4px; margin-top: 14px;
}
/* Category archives reuse the same title treatment. */
.tax-product_cat .woocommerce-products-header { margin-bottom: 44px; }
.tax-product_cat h1.page-title {
  margin: 0;
  font-family: var(--nd-font-sticker);
  font-size: clamp(40px, 5vw, 58px);
  line-height: .95; letter-spacing: -.02em; text-transform: uppercase;
}
.tax-product_cat .term-description { color: var(--nd-muted); max-width: 70ch; margin-top: 14px; }

/* ---------- Single product (Claude design: Product Page) ---------- */
.nd-pp-crumb {
  font: 600 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  color: #7e96a2; margin-bottom: 22px;
}
.nd-pp-crumb a { color: #7e96a2; }
.nd-pp-crumb a:hover { color: var(--nd-gold); }
.nd-pp-crumb-sep { color: #3f3f3f; margin: 0 6px; }
.nd-pp-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 56px; align-items: start;
}
.nd-pp-media {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid #1c343f;
}
.nd-pp-media img.nd-pp-img, .nd-pp-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
}
.nd-pp-pill {
  position: absolute; top: 16px; left: 16px;
  background: var(--nd-pink); color: #fff;
  font: 700 11px var(--nd-font); letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.nd-pp-zoom {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 999px;
  background: #fff; color: #0b1519 !important;
  display: grid; place-items: center;
  transition: background .18s;
}
.nd-pp-zoom:hover { background: var(--nd-gold); }
/* Product names here run 80-100 characters (make, model, spec, part number),
   not the short names this size was originally set for — hence the smaller,
   fluid size, sentence case and normal tracking, which stop a long name from
   swallowing the viewport. */
.nd-pp-title {
  margin: 0; font-family: var(--nd-font-sticker);
  font-size: clamp(24px, 2.1vw, 34px); line-height: 1.14; letter-spacing: -.01em;
  text-transform: none;   /* overrides the base h1 rule */
  color: var(--nd-white);
}
.nd-pp-pricerow { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; flex-wrap: wrap; }
.nd-pp-price, .nd-pp-price .amount, .nd-pp-price bdi {
  color: #0b1519;
  font-family: var(--nd-font-sticker); font-weight: 400; font-size: 24px; line-height: 1.3;
}
.nd-pp-price {
  display: inline-block; background: var(--nd-gold);
  padding: 9px 18px; border-radius: 10px; transform: rotate(-3deg);
  box-shadow: 5px 5px 0 var(--nd-pink);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nd-pp-price:hover { transform: rotate(-3deg) translate(-2px,-3px); box-shadow: 8px 9px 0 var(--nd-pink); }
.nd-pp-was, .nd-pp-was .amount { font: 500 15px var(--nd-font); color: #7e96a2; }
.nd-pp-stock { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px var(--nd-font); color: #8fd39f; }
.nd-pp-stock-dot { width: 8px; height: 8px; border-radius: 99px; background: #4ec46a; }
.nd-pp-lead { margin: 0 0 26px; max-width: 460px; }
.nd-pp-lead p { margin: 0 0 10px; font-size: 17px; line-height: 1.55; color: #a9bcc5; text-wrap: pretty; }
.nd-pp-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.nd-pp-qty {
  display: flex; align-items: center; gap: 2px;
  background: #101f26; border: 2px solid var(--nd-gold); border-radius: 999px; padding: 4px;
}
.nd-pp-step {
  width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: transparent; color: var(--nd-gold);
  font-family: var(--nd-font-sticker); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s;
}
.nd-pp-step:hover { background: var(--nd-gold); color: #0b1519; }
.nd-pp-qty-in {
  width: 45px; border: 0; background: transparent; text-align: center;
  font-family: var(--nd-font-sticker); font-size: 19px; color: #fff;
  -moz-appearance: textfield; appearance: textfield;
}
.nd-pp-qty-in::-webkit-outer-spin-button, .nd-pp-qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nd-pp-qty-in:focus { outline: none; }
.nd-pp-add {
  height: 62px; padding: 0 34px; border: 3px solid var(--nd-gold); border-radius: 999px;
  background: var(--nd-gold); color: #0b1519;
  font: 700 14px var(--nd-font); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box;
  transition: border-color .16s ease;
}
.nd-pp-add svg { flex: none; }
.nd-pp-add:hover { border-color: var(--nd-pink); }
/* Ink on teal, not orange on teal — the two accents have too little contrast
   against each other to carry the running line total. */
.nd-pp-add-total {
  font-family: var(--nd-font-mono); font-weight: 700; font-size: 17px;
  letter-spacing: -.01em; text-transform: none; color: #0b1519;
}
.nd-pp-chips { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.nd-pp-chips i { display: none; }
.nd-pp-chips span {
  border: 1px solid #1f3946; border-radius: 999px; padding: 9px 14px;
  font: 700 11px var(--nd-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nd-gold);
}
.nd-pp-oos {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 18px 20px; border: 1px solid #294a59; border-radius: 12px; background: #101f26;
}
.nd-pp-oos-t { font: 700 14px var(--nd-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nd-pink); }
.nd-pp-oos-ask {
  font: 600 12.5px var(--nd-font); letter-spacing: .1em; text-transform: uppercase;
  color: var(--nd-gold); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.nd-pp-desc { margin-top: 64px; padding-top: 34px; border-top: 1px solid #192f39; }
.nd-pp-desc-title,
.nd-pp-desc-body h2 {
  margin: 10px 0 18px; font-family: var(--nd-font-sticker);
  font-size: 32px; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; color: var(--nd-white);
}
.nd-pp-desc-body { max-width: 720px; }
.nd-pp-desc-body p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: #a9bcc5; text-wrap: pretty; }
@media (max-width: 900px) {
  .nd-pp-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .nd-pp-title { font-size: clamp(21px, 4.4vw, 27px); }
}
@media (max-width: 560px) {
  .nd-pp-form { flex-wrap: nowrap; gap: 10px; margin: 0 -10px; }
  .nd-pp-qty { padding: 4px; gap: 0; }
  .nd-pp-step { width: 36px; height: 38px; font-size: 18px; }
  .nd-pp-qty-in { width: 36px; font-size: 18px; }
  .nd-pp-add {
    flex: 1; min-width: 0; height: 56px; padding: 0 12px;
    flex-direction: column; justify-content: center; align-items: center; gap: 1px;
    font-size: 11.5px; letter-spacing: .08em; line-height: 1.1; white-space: nowrap;
  }
  .nd-pp-add svg { display: none; }
  .nd-pp-add-total { font-size: 15px; }
  .nd-pp-chips {
    flex-wrap: nowrap; justify-content: space-between; gap: 0; margin: 16px -10px 0;
    border: 1px solid #1f3946; border-radius: 14px; padding: 12px 10px;
  }
  .nd-pp-chips span {
    border: 0; padding: 0 5px; font-size: 10.5px; letter-spacing: .04em;
    text-align: center; line-height: 1.25;
  }
  .nd-pp-chips i { display: block; width: 5px; height: 5px; border-radius: 99px; background: var(--nd-pink); flex: none; }
  .nd-pp-desc { margin-top: 26px; padding-top: 22px; }
}

.woocommerce-page .nd-page-wrap, .nd-page-wrap { padding: 60px 0 90px; }

.woocommerce .quantity .qty {
  background: var(--nd-card); color: var(--nd-white);
  border: 1px solid rgba(20,200,189,.3); border-radius: 6px; padding: 10px;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--nd-card); color: var(--nd-white);
  border: 1px solid rgba(20,200,189,.3); border-radius: 6px; padding: 12px;
}
.woocommerce table.shop_table {
  border-color: rgba(20,200,189,.2); background: var(--nd-card); border-radius: var(--nd-radius);
}
.woocommerce table.shop_table td, .woocommerce table.shop_table th {
  border-color: rgba(20,200,189,.12); color: var(--nd-white);
}
.woocommerce-cart .cart-collaterals .cart_totals h2 { color: var(--nd-white); }
.woocommerce .woocommerce-breadcrumb { color: var(--nd-muted); }
.woocommerce .woocommerce-breadcrumb a { color: var(--nd-gold); }
/* ---------- Catalogue: sidebar, search, toolbar ---------- */
/* Sidebar beside the grid. 1112px of container - 236 aside - 32 gap = 844px,
   which fits three 232px cards; the grid min is dropped from the full-width
   280px for exactly that reason. */
.nd-shop-layout {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px; align-items: start;
}
.nd-shop-main { min-width: 0; }
.nd-shop-main ul.products,
.woocommerce .nd-shop-main ul.products {
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 22px;
}
/* Scrolls with the page until it pins, then scrolls internally: the full
   category list is ~820px tall and would otherwise strand its last few rows
   below the fold of a 768px laptop screen once it pinned. */
.nd-shop-side {
  position: sticky; top: 88px;
  max-height: calc(100vh - 108px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  scrollbar-width: thin; scrollbar-color: #294a59 transparent;
}

.nd-search {
  display: flex; align-items: center; gap: 8px;
  background: #101f26; border: 1px solid #294a59; border-radius: 999px;
  padding: 5px 5px 5px 14px;
}
.nd-search:focus-within { border-color: var(--nd-gold); }
.nd-search-ico { color: #7e96a2; flex: none; }
.nd-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 7px 0;
  background: transparent; border: 0; color: var(--nd-white);
  font: 500 13px var(--nd-font);
}
.nd-search input[type="search"]::placeholder { color: #7e96a2; }
.nd-search input[type="search"]:focus { outline: none; }
.nd-search input[type="search"]::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.nd-search button {
  flex: none; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--nd-gold); color: #0b1519;
  font: 700 11px var(--nd-font); letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px;
}
.nd-search button:hover { background: var(--nd-white); }

.nd-cats { display: flex; flex-direction: column; gap: 3px; margin: 0; padding: 0; }
.nd-cats-head {
  font: 700 11px var(--nd-font); letter-spacing: .22em; text-transform: uppercase;
  color: #7e96a2; padding-bottom: 9px; margin-bottom: 7px;
  border-bottom: 1px solid #1f3946;
}
.nd-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--nd-white);
  font: 600 12px var(--nd-font); letter-spacing: .05em; text-transform: uppercase;
  transition: border-color .18s, background .18s, color .18s;
}
.nd-cat span {
  font: 600 11px var(--nd-font-mono); letter-spacing: 0; color: #7e96a2;
}
.nd-cat:hover { background: #101f26; border-color: #294a59; color: var(--nd-gold); }
.nd-cat.is-on { background: var(--nd-gold); border-color: var(--nd-gold); color: #0b1519; }
.nd-cat.is-on span { color: rgba(11,21,25,.62); }

/* Below the sidebar breakpoint the aside stacks above the grid and the
   category list goes back to wrapped chips — a 20-item vertical list would
   push the products a screen and a half down. */
@media (max-width: 900px) {
  .nd-shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .nd-shop-side { position: static; max-height: none; overflow: visible; gap: 16px; }
  .nd-cats { flex-direction: row; flex-wrap: wrap; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid #1f3946; }
  .nd-cats-head { flex: 0 0 100%; padding: 0; margin: 0; border: 0; }
  .nd-cat { border-radius: 999px; border-color: #294a59; background: #101f26; padding: 8px 14px; }
  .nd-cat span { padding-left: 8px; border-left: 1px solid #294a59; }
  .nd-cat.is-on span { border-left-color: rgba(11,21,25,.28); }
  .nd-shop-main ul.products,
  .woocommerce .nd-shop-main ul.products { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
}

.nd-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin: 0 0 24px;
}
.nd-toolbar::before, .nd-toolbar::after { content: none; }
.woocommerce .nd-toolbar .woocommerce-result-count,
.woocommerce .nd-toolbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce-result-count {
  color: var(--nd-muted);
  font: 500 13px var(--nd-font-mono); letter-spacing: .01em;
}
.woocommerce .woocommerce-ordering select {
  background: #101f26; color: var(--nd-white);
  border: 1px solid #294a59; border-radius: 999px;
  padding: 10px 16px; font: 600 12px var(--nd-font);
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.woocommerce .woocommerce-ordering select:focus { outline: 2px solid var(--nd-gold); outline-offset: 2px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--nd-card); color: var(--nd-white); border-top-color: var(--nd-gold);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--nd-gold); }
.woocommerce div.product form.cart div.quantity { margin-right: 12px; }
/* Pagination: 75 products over 4 pages, so this is a real control, not trim. */
.woocommerce nav.woocommerce-pagination { margin: 44px 0 0; }
.woocommerce nav.woocommerce-pagination ul {
  border: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0; margin: 0; overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid #294a59; border-radius: 12px;
  background: #101f26; color: var(--nd-white);
  font: 600 14px var(--nd-font-mono);
  transition: background .18s, border-color .18s, color .18s;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
  background: var(--nd-gold); border-color: var(--nd-gold); color: var(--nd-black);
}

/* ---------- Generic content ---------- */
.nd-content { padding: 60px 0 90px; }
.nd-content .entry-content { max-width: 780px; margin: 0 auto; color: var(--nd-muted); }
.nd-content .entry-content h2, .nd-content .entry-content h3 { color: var(--nd-white); }

/* ---------- Footer band (Claude design) ---------- */
.ndf { background: #0b1519; color: #fff; }
.ndf-ticker {
  display: flex; align-items: center; justify-content: center; gap: 26px;
  background: var(--nd-gold); color: #0b1519; padding: 11px 20px; white-space: nowrap;
}
.ndf-ticker span {
  font: 700 11.5px var(--nd-font); letter-spacing: .2em; text-transform: uppercase;
}
.ndf-ticker i { width: 6px; height: 6px; border-radius: 99px; background: var(--nd-pink); flex: none; }
.ndf-pad { padding: 64px 48px 30px; }
.ndf-shell { max-width: 1180px; margin: 0 auto; }
.ndf-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 26px 48px; align-items: start;
}
.ndf a { color: #fff; }
.ndf a:hover { color: var(--nd-gold); }
.ndf-logo img { height: 46px; width: auto; display: block; margin-bottom: 16px; }
#ndf-news { scroll-margin-top: 110px; }
.ndf-blurb { margin: 0; max-width: 320px; color: #9db2bc; font-size: 15px; line-height: 1.6; }
.ndf-news { display: flex; gap: 10px; margin-top: 22px; max-width: 340px; }
.ndf-news input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #1f3946; background: #101f26;
  color: #fff; font: 400 14.5px var(--nd-font); outline: none;
}
.ndf-news input::placeholder { color: #78919d; }
.ndf-news input:focus { border-color: var(--nd-gold); }
.ndf-news button {
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--nd-gold); color: #0b1519;
  font: 700 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background .18s, color .18s;
}
.ndf-news button:hover { background: var(--nd-pink); color: #fff; }
.ndf-hint { margin-top: 10px; font-size: 12.5px; color: #6f8894; }
.ndf-news-done {
  margin: 22px 0 0; display: inline-block;
  background: #101f26; border: 1px solid var(--nd-gold); border-radius: 999px;
  padding: 12px 20px; color: var(--nd-gold); font-size: 14px;
}
.ndf-head {
  font: 700 10.5px var(--nd-font); letter-spacing: .22em; text-transform: uppercase;
  color: var(--nd-gold); margin-bottom: 16px;
}
.ndf-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.ndf-links a { color: #c9d6dc; }
.ndf-links a:hover { color: var(--nd-gold); }
.ndf-contact .ndf-links a.ndf-ul {
  color: #fff; border-bottom: 2px solid #23404e; align-self: flex-start; padding-bottom: 2px;
}
.ndf-contact .ndf-links a.ndf-ul:hover { color: var(--nd-gold); border-color: var(--nd-gold); }
.ndf-addr {
  margin: 18px 0 0; font-style: normal;
  color: #9db2bc; font-size: 14px; line-height: 1.7;
}
.ndf-socials { display: flex; gap: 10px; margin-top: 20px; }
.ndf-soc {
  width: 46px; height: 46px; border-radius: 12px;
  background: #101f26; border: 1px solid #1f3946;
  display: grid; place-items: center;
  color: var(--nd-gold) !important;
  transition: all .18s;
}
.ndf-soc svg { width: 21px; height: 21px; fill: currentColor; display: block; }
.ndf-soc--fb:hover { background: var(--nd-gold); color: #0b1519 !important; border-color: var(--nd-gold); }
.ndf-soc--ig:hover { background: var(--nd-pink); color: #fff !important; border-color: var(--nd-pink); }
.ndf-soc--wa:hover { background: #25d366; color: #0b1519 !important; border-color: #25d366; }
.ndf-handle { margin-top: 12px; font-size: 13px; color: #6f8894; }
.ndf-sign {
  font-family: var(--nd-font-sticker);
  font-size: clamp(18px, calc(6.4vw - 6px), 76px);
  white-space: nowrap;
  line-height: .82; letter-spacing: -.045em; text-transform: uppercase;
  color: #12222a; margin: 44px 0 18px; user-select: none;
}
.ndf-div { height: 1px; background: #192f39; margin-bottom: 20px; }
.ndf-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-bottom: 8px;
}
.ndf-copy { font-size: 13px; color: #6f8894; }
.ndf-pay { display: flex; flex-wrap: wrap; gap: 10px; font: 700 10px var(--nd-font); letter-spacing: .12em; color: #5e5e5e; }
.ndf-pay span { padding: 6px 10px; border: 1px solid #1c343f; border-radius: 6px; }

@media (max-width: 1060px) {
  .ndf-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 34px 36px; }
  .ndf-contact { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .ndf-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .ndf-brand, .ndf-contact { grid-column: 1 / -1; }
  .ndf-pad { padding: 40px 22px 24px; }
  .ndf-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ndf-news { flex-direction: column; max-width: none; }
  .ndf-news input { flex: none; width: 100%; }
  .ndf-news button { width: 100%; }
  .ndf-ticker { flex-wrap: wrap; white-space: normal; gap: 8px 14px; padding: 10px 18px; }
  .ndf-ticker span { font-size: 10px; letter-spacing: .14em; }
}

/* ---------- Reviews ---------- */
.nd-reviews { padding: 90px 0; background: var(--nd-dark); }
.nd-reviews-head { text-align: center; margin-bottom: 12px; }
.nd-reviews-head h2 { font-family: var(--nd-font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .04em; }
.nd-reviews-head h2 span { color: var(--nd-gold); }
.nd-reviews-sub {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--nd-muted); margin-bottom: 40px; flex-wrap: wrap;
}
.nd-reviews-sub img { height: 22px; }
.nd-reviews-sub strong { color: var(--nd-white); }
.nd-stars { color: #fbbc04; letter-spacing: 2px; font-size: 1.05rem; }
.nd-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.nd-review {
  background: var(--nd-card); border: 1px solid rgba(20,200,189,.15);
  border-radius: var(--nd-radius); padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.nd-review-top { display: flex; align-items: center; gap: 12px; }
.nd-review-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--nd-pink); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nd-review-name { font-weight: 700; color: var(--nd-white); line-height: 1.2; }
.nd-review-meta { color: var(--nd-muted); font-size: .8rem; }
.nd-review p { color: var(--nd-muted); margin: 0; font-size: .95rem; }
.nd-review-glogo { margin-left: auto; height: 20px; }
.nd-reviews-cta { text-align: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.nd-faq { max-width: 780px; margin: 0 auto; }
.nd-faq details { scroll-margin-top: 110px; }
.nd-faq details {
  background: var(--nd-card); border: 1px solid rgba(20,200,189,.18);
  border-radius: var(--nd-radius); margin-bottom: 14px; overflow: hidden;
}
.nd-faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--nd-white);
  list-style: none; position: relative; padding-right: 48px;
}
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--nd-gold); font-size: 1.4rem; font-weight: 700;
}
.nd-faq details[open] summary::after { content: '\2013'; }
.nd-faq details[open] summary { color: var(--nd-gold); }
.nd-faq details p { padding: 0 22px 18px; margin: 0; color: var(--nd-muted); }

/* ---------- Contact ---------- */
.nd-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.nd-contact-info h2 { font-family: var(--nd-font-display); font-size: 2.2rem; margin-bottom: 18px; }
.nd-contact-info h2 span { color: var(--nd-gold); }
.nd-contact-info p { color: var(--nd-muted); }
.nd-contact-list { list-style: none; padding: 0; margin: 24px 0; }
.nd-contact-list li { margin-bottom: 14px; color: var(--nd-muted); }
.nd-contact-list a { color: var(--nd-gold); text-decoration: none; }
.nd-contact-list a:hover { text-decoration: underline; }
.nd-form { background: var(--nd-card); border: 1px solid rgba(20,200,189,.18); border-radius: var(--nd-radius); padding: 30px; }
.nd-form label { display: block; font-weight: 700; color: var(--nd-white); margin-bottom: 6px; font-size: .9rem; }
.nd-form input[type=text], .nd-form input[type=email], .nd-form textarea {
  width: 100%; box-sizing: border-box; margin-bottom: 18px;
  background: var(--nd-dark); border: 1px solid rgba(20,200,189,.25);
  border-radius: 10px; color: var(--nd-white); padding: 12px 14px; font-family: inherit;
}
.nd-form input:focus, .nd-form textarea:focus { outline: 2px solid var(--nd-gold); border-color: transparent; }
.nd-form-notice {
  background: rgba(20,200,189,.12); border: 1px solid var(--nd-gold);
  border-radius: 10px; padding: 14px 18px; color: var(--nd-gold); margin-bottom: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nd-story-grid, .nd-onebite-grid, .nd-contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Cart page (Claude design) ---------- */
.nd-cart-page {
  background: #eef4f6; color: #0b1519;
  padding: 56px 48px 96px;
}
.nd-cart-container { max-width: 1180px; margin: 0 auto; }
.nd-cart-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.nd-cart-title {
  margin: 0; color: #0b1519;
  font-family: var(--nd-font-sticker);
  font-size: clamp(60px, 9vw, 96px); line-height: .84;
  letter-spacing: -.035em; text-transform: uppercase;
}
.nd-cart-badge {
  display: inline-block; transform: rotate(-4deg);
  background: var(--nd-pink); color: #fff;
  padding: 7px 14px; border-radius: 6px;
  font: 700 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.nd-cart-rule { height: 3px; background: #0b1519; margin: 24px 0 36px; }
.nd-cart-page .woocommerce-notices-wrapper .woocommerce-message,
.nd-cart-page .woocommerce-notices-wrapper .woocommerce-info {
  background: #fff; border: 2px solid #0b1519; border-radius: 10px; color: #0b1519;
  padding: 14px 18px; margin: 0 0 20px; list-style: none;
}
.nd-cart-page .woocommerce-notices-wrapper a { color: var(--nd-pink); }
.nd-cart-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 48px; align-items: start; }
.nd-cart-lines { display: flex; flex-direction: column; gap: 18px; }
.nd-cart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 4px; }
.nd-cart-lines-label { font: 600 11px var(--nd-font); letter-spacing: .2em; text-transform: uppercase; color: #6f8894; }
.nd-cart-clear {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px;
  color: #0b1519 !important; font: 700 13px var(--nd-font); letter-spacing: .04em;
  border-bottom: 3px solid var(--nd-pink);
}
.nd-cart-clear:hover { color: var(--nd-pink) !important; }
.nd-cart-clear svg { width: 16px; height: 16px; }
.nd-clear-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 2px dashed var(--nd-pink); border-radius: 14px; padding: 16px 20px;
}
.nd-clear-panel[hidden] { display: none; }
.nd-clear-copy { min-width: 220px; flex: 1; }
.nd-clear-title { font-family: var(--nd-font-sticker); font-size: 17px; letter-spacing: -.01em; color: #0b1519; }
.nd-clear-blurb { font-size: 13.5px; color: #5c5c5c; margin-top: 3px; }
.nd-clear-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.nd-clear-keep, .nd-clear-yes {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
  font: 700 12.5px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
}
.nd-clear-keep { border: 2px solid #0b1519; color: #0b1519 !important; }
.nd-clear-keep:hover { background: var(--nd-gold); color: #0b1519 !important; }
.nd-clear-yes { border: 2px solid var(--nd-pink); background: var(--nd-pink); color: #fff !important; }
.nd-clear-yes:hover { background: #0b1519; border-color: #0b1519; color: #fff !important; }
.nd-cart-row {
  display: grid; grid-template-columns: 112px minmax(0,1fr) auto;
  gap: 24px; align-items: center;
  background: #fff; border: 2px solid #0b1519; border-radius: 14px;
  padding: 18px 22px; box-shadow: 6px 6px 0 #0b1519;
}
.nd-cart-thumb img { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; border: 1px solid #d6cdb6; display: block; }
.nd-cart-cat { font: 600 11px var(--nd-font); letter-spacing: .2em; text-transform: uppercase; color: var(--nd-pink); }
.nd-cart-name { font-family: var(--nd-font-sticker); font-size: 25px; line-height: 1.1; margin-top: 5px; letter-spacing: -.01em; }
.nd-cart-name a { color: #0b1519; }
.nd-cart-name a:hover { color: var(--nd-pink); }
.nd-cart-meta { font-size: 14.5px; color: #5c5c5c; margin-top: 5px; }
.nd-cart-actions { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.nd-qty { display: inline-flex; align-items: center; height: 44px; border: 2px solid #0b1519; border-radius: 999px; overflow: hidden; background: #eef4f6; }
.nd-qty-btn { width: 44px; height: 40px; border: 0; background: transparent; font-size: 19px; cursor: pointer; color: #0b1519; line-height: 1; }
.nd-qty-btn:hover { background: var(--nd-gold); }
.nd-cart-page input.nd-qty-input {
  width: 44px; border: 0; background: transparent; text-align: center;
  font: 700 16px var(--nd-font); color: #0b1519; padding: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.nd-qty-input::-webkit-outer-spin-button, .nd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nd-cart-remove {
  width: 44px; height: 44px; flex: none;
  border: 2px solid #0b1519; border-radius: 999px;
  background: transparent; color: #0b1519 !important;
  display: inline-grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.nd-cart-remove:hover { background: var(--nd-pink); border-color: var(--nd-pink); color: #fff !important; }
.nd-cart-sticker {
  align-self: flex-start; transform: rotate(var(--tilt, 3deg));
  background: var(--nd-gold); border: 2px solid #0b1519; border-radius: 8px;
  padding: 8px 14px; font-family: var(--nd-font-sticker); font-size: 20px; color: #0b1519;
}
.nd-cart-sticker .amount, .nd-cart-sticker bdi { color: #0b1519; }
.nd-cart-sticker-m { display: none; align-self: auto; padding: 6px 12px; font-size: 18px; }
.nd-cart-under { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 8px 4px 0; }
.nd-cart-back { font: 700 14px var(--nd-font); letter-spacing: .04em; color: #0b1519 !important; border-bottom: 3px solid var(--nd-gold); }
.nd-cart-back:hover { color: var(--nd-pink) !important; }
.nd-cart-vat { font-size: 13.5px; color: #6f8894; }
.nd-cart-update { display: none; }
.nd-cart-summary {
  position: sticky; top: 96px;
  background: #0b1519; color: #fff; border-radius: 16px; padding: 30px 28px;
}
.nd-summary-label { font: 600 11px var(--nd-font); letter-spacing: .22em; text-transform: uppercase; color: var(--nd-gold); }
.nd-summary-rows { display: flex; flex-direction: column; gap: 13px; margin: 22px 0; font-size: 15px; color: #c9d6dc; }
.nd-summary-row { display: flex; justify-content: space-between; }
.nd-summary-val, .nd-summary-val .amount, .nd-summary-val bdi { color: #fff; }
.nd-summary-div { height: 1px; background: #1f3946; }
.nd-summary-total { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 4px; font: 700 16px var(--nd-font); color: #fff; }
.nd-summary-total strong, .nd-summary-total .amount, .nd-summary-total bdi {
  font-family: var(--nd-font-sticker); font-weight: 400; font-size: 34px;
  color: var(--nd-gold); letter-spacing: -.02em;
}
.nd-summary-total small { display: none; }
.nd-ship-box { margin: 20px 0 24px; padding: 16px; border-radius: 12px; background: #12222a; border: 1px solid #1e3743; }
.nd-ship-msg { font: 500 13.5px var(--nd-font); color: #fff; margin-bottom: 10px; }
.nd-ship-bar { height: 7px; border-radius: 99px; background: #1f3946; overflow: hidden; }
.nd-ship-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--nd-gold), var(--nd-pink)); transition: width .35s ease; }
.nd-checkout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 58px; border: 0; border-radius: 999px;
  background: var(--nd-gold); color: #0b1519 !important;
  font: 700 15px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nd-checkout-btn:hover { background: var(--nd-pink); color: #fff !important; }
.nd-pay-row { display: flex; justify-content: center; gap: 14px; margin-top: 18px; font: 600 10px var(--nd-font); letter-spacing: .12em; color: #7e96a2; }

/* Empty cart */
.nd-empty-panel { background: #0b1519; color: #fff; border-radius: 18px; padding: 64px 44px; text-align: center; }
.nd-empty-zero {
  width: 112px; height: 112px; margin: 0 auto 26px; border-radius: 20px;
  border: 1px dashed #294a59; display: grid; place-items: center;
  font-family: var(--nd-font-sticker); font-size: 34px; color: var(--nd-gold);
}
.nd-empty-title { margin: 0; color: #fff; font-family: var(--nd-font-sticker); font-size: clamp(30px, 5vw, 40px); line-height: .95; letter-spacing: -.02em; text-transform: none; }
.nd-empty-copy { margin: 16px auto 30px; max-width: 360px; color: #9ab0ba; font-size: 15.5px; line-height: 1.6; }
.nd-empty-btn { display: inline-flex; width: auto; padding: 0 34px; }
.nd-empty-picks { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.nd-empty-pick img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid #1e3743; display: block; }

@media (max-width: 1080px) {
  .nd-cart-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .nd-cart-summary { position: static; }
}
@media (max-width: 640px) {
  .nd-clear-acts { width: 100%; }
  .nd-clear-keep, .nd-clear-yes { flex: 1; justify-content: center; padding: 0 12px; }
  .nd-cart-row { grid-template-columns: 88px minmax(0,1fr); gap: 12px 16px; align-items: start; padding: 16px; }
  .nd-cart-thumb img { width: 88px; height: 88px; }
  .nd-cart-actions { gap: 8px; flex-wrap: nowrap; margin-top: 16px; }
  .nd-qty { height: 44px; flex: none; }
  .nd-qty-btn { width: 32px; height: 44px; font-size: 17px; }
  .nd-cart-page input.nd-qty-input { width: 20px; font-size: 15px; }
  .nd-cart-sticker { display: none; }
  .nd-cart-sticker-m { display: inline-block; font-size: 15px; padding: 5px 8px; flex: none; }
  .nd-cart-remove { width: 44px; height: 44px; }
  .nd-cart-page { padding: 32px 20px 48px; }
}
@media (max-width: 480px) {
  /* Controls don't fit beside the 88px thumb on narrow phones — span the full card width. */
  .nd-cart-actions { margin-left: -104px; justify-content: space-between; }
}

/* ---------- Checkout page (Claude design) ---------- */
.nd-ck-page {
  background: #eef4f6; color: #0b1519;
  padding: 52px 24px 88px;
}
.nd-ck-container { max-width: 1180px; margin: 0 auto; }
.nd-ck-crumbs {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font: 700 11px var(--nd-font); letter-spacing: .2em; text-transform: uppercase; color: #8a8275;
}
.nd-ck-crumbs a { color: #0b1519; }
.nd-ck-crumbs a:hover { color: var(--nd-pink); }
.nd-ck-crumbs .is-now { color: var(--nd-pink); }
.nd-ck-head { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.nd-ck-title {
  margin: 0; color: #0b1519;
  font-family: var(--nd-font-sticker);
  font-size: clamp(56px, 8vw, 88px); line-height: .84;
  letter-spacing: -.035em; text-transform: uppercase;
}
.nd-ck-badge {
  display: inline-block; transform: rotate(-3deg);
  background: var(--nd-gold); border: 2px solid #0b1519; color: #0b1519;
  padding: 7px 14px; border-radius: 7px;
  font: 700 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 14px;
}
.nd-ck-rule { height: 3px; background: #0b1519; margin: 26px 0 36px; }

.nd-ck-page .woocommerce-error, .nd-ck-page .woocommerce-message, .nd-ck-page .woocommerce-info {
  background: #fff; border: 2px solid #0b1519; border-radius: 10px; color: #0b1519;
  padding: 14px 18px 14px 44px; margin: 0 0 20px;
}
.nd-ck-page .woocommerce-error li { color: #0b1519; }
.nd-ck-page .woocommerce-error::before { color: var(--nd-pink); }
.nd-ck-page .woocommerce-message::before, .nd-ck-page .woocommerce-info::before { color: var(--nd-pink); }
.nd-ck-page .woocommerce-error a, .nd-ck-page .woocommerce-message a, .nd-ck-page .woocommerce-info a { color: var(--nd-pink); }

.nd-ck-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 48px; align-items: start; }
.nd-ck-main { display: flex; flex-direction: column; gap: 20px; }
.nd-ck-card {
  background: #fff; border: 2px solid #0b1519; border-radius: 14px;
  padding: 24px; box-shadow: 6px 6px 0 #0b1519;
}
.nd-ck-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.nd-ck-num {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #0b1519; color: var(--nd-gold);
  font: 800 14px var(--nd-font);
}
.nd-ck-card-head h2 {
  margin: 0; color: #0b1519;
  font-family: var(--nd-font-sticker); font-size: 19px;
  letter-spacing: -.01em; text-transform: none; line-height: 1.2;
}

/* Fields */
.nd-ck-card .woocommerce-billing-fields > h3,
.nd-ck-card .woocommerce-billing-fields__field-wrapper + h3 { display: none; }
.nd-ck-card .woocommerce-billing-fields__field-wrapper,
.nd-ck-card .woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px;
}
.nd-ck-card p.form-row { margin: 0; padding: 0; float: none; width: auto; }
.nd-ck-card .form-row-wide { grid-column: 1 / -1; }
.nd-ck-card .form-row label {
  display: block; font: 700 10.5px var(--nd-font);
  letter-spacing: .18em; text-transform: uppercase;
  color: #66838f; margin-bottom: 7px;
}
.nd-ck-card .form-row .required { color: var(--nd-pink); text-decoration: none; }
.nd-ck-card .form-row .optional { color: #93a9b4; }
.nd-ck-page form .form-row input.input-text,
.nd-ck-page form .form-row select,
.nd-ck-page form .form-row textarea {
  width: 100%; box-sizing: border-box; height: 52px;
  border: 2px solid #0b1519; border-radius: 10px;
  background: #fff; color: #0b1519; padding: 0 14px;
  font: 500 15.5px var(--nd-font); outline: none;
}
.nd-ck-page form .form-row textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.nd-ck-page form .form-row input.input-text::placeholder,
.nd-ck-page form .form-row textarea::placeholder { color: #93a9b4; }
.nd-ck-page form .form-row input.input-text:focus,
.nd-ck-page form .form-row select:focus,
.nd-ck-page form .form-row textarea:focus {
  border-color: var(--nd-pink);
  box-shadow: 0 0 0 4px rgba(255,107,31,.16);
}
.nd-ck-page form .form-row select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 49%, #0b1519 50%), linear-gradient(-45deg, transparent 49%, #0b1519 50%);
  background-size: 8px 8px;
  background-position: calc(100% - 20px) 23px, calc(100% - 13px) 23px;
  background-repeat: no-repeat;
}
.nd-ck-page .form-row.woocommerce-invalid input.input-text,
.nd-ck-page .form-row.woocommerce-invalid select { border-color: var(--nd-pink); }

/* Ship to a different address toggle */
.nd-ck-card #ship-to-different-address {
  margin: 20px 0 0; font-family: var(--nd-font); font-size: 14.5px;
  font-weight: 500; letter-spacing: 0; text-transform: none; color: #234050;
}
.nd-ck-card #ship-to-different-address label { display: flex; align-items: center; gap: 11px; cursor: pointer; margin: 0; }
.nd-ck-card #ship-to-different-address input,
.nd-ck-card .woocommerce-account-fields input[type=checkbox] {
  width: 20px; height: 20px; accent-color: var(--nd-pink); cursor: pointer; margin: 0;
}
.nd-ck-card .shipping_address { margin-top: 16px; }
.nd-ck-card .woocommerce-account-fields label { display: flex; align-items: center; gap: 11px; font: 500 14.5px var(--nd-font); text-transform: none; letter-spacing: 0; color: #234050; }

/* Step 2 — shipping options */
#nd-ship-options { display: flex; flex-direction: column; gap: 12px; }
.nd-ship-opt {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 2px solid #d5e2e7; border-radius: 11px; background: #fff;
  cursor: pointer; transition: all .15s;
}
.nd-ship-opt:hover { border-color: var(--nd-pink); }
.nd-ship-opt.is-on, .nd-ship-opt:has(input:checked) { border-color: #0b1519; background: #d9f5f2; }
.nd-ship-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nd-ship-dot {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #0b1519; background: #fff;
}
.nd-ship-dot span { width: 11px; height: 11px; border-radius: 50%; background: transparent; }
.nd-ship-opt.is-on .nd-ship-dot span, .nd-ship-opt:has(input:checked) .nd-ship-dot span { background: var(--nd-pink); }
.nd-ship-txt { flex: 1; min-width: 0; }
.nd-ship-name { display: block; font: 700 15px var(--nd-font); color: #0b1519; }
.nd-ship-note { display: block; font: 400 13.5px var(--nd-font); color: #66838f; margin-top: 2px; }
.nd-ship-price, .nd-ship-price .amount, .nd-ship-price bdi { flex: none; font: 700 15px var(--nd-font); color: #0b1519; }
.nd-ship-price.is-free { color: #0f8a4d; }
.nd-ck-noship { margin: 0; font: 400 14px var(--nd-font); color: #66838f; }

#billing_country_field, #shipping_country_field { display: none !important; }

/* Step 3 — payment */
.nd-ck-paynote { margin: -12px 0 18px 42px; font: 400 13.5px var(--nd-font); color: #66838f; }
.nd-ck-page #payment, .woocommerce-checkout .nd-ck-page #payment { background: transparent; border-radius: 0; }
.nd-ck-page #payment ul.wc_payment_methods::before,
.nd-ck-page #payment ul.wc_payment_methods::after { content: none; display: none; }
.nd-ck-page #payment ul.wc_payment_methods {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 0; padding: 0; list-style: none; border: 0;
}
.nd-ck-page #payment li.wc_payment_method {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 14px; margin: 0;
  border: 2px solid #d5e2e7; border-radius: 11px; background: #fff;
  cursor: pointer; transition: all .15s; line-height: 1.4;
}
.nd-ck-page #payment li.wc_payment_method:hover { border-color: var(--nd-pink); }
.nd-ck-page #payment li.wc_payment_method:has(input:checked) { border-color: #0b1519; background: #d9f5f2; }
.nd-ck-page #payment li.wc_payment_method input.input-radio { position: absolute; opacity: 0; pointer-events: none; }
.nd-ck-page #payment li.wc_payment_method label {
  display: block; margin: 0; padding: 0; cursor: pointer;
  font: 700 15px var(--nd-font); color: #0b1519;
}
.nd-ck-page #payment div.payment_box {
  background: transparent; padding: 0; margin: 0; width: auto;
  font: 400 12.5px var(--nd-font); color: #66838f;
}
.nd-ck-page #payment div.payment_box::before { display: none; }
.nd-ck-page #payment div.payment_box p { margin: 0; font-size: 12.5px; }
.nd-ck-page #payment .place-order { padding: 0; margin: 0; }
.nd-ck-page .woocommerce-privacy-policy-text p { margin: 16px 0 0; font: 400 12.5px/1.6 var(--nd-font); color: #66838f; }
.nd-ck-page .woocommerce-privacy-policy-text a { color: var(--nd-pink); }
.nd-ck-page #place_order { display: none; }
.nd-ck-page #payment .woocommerce-terms-and-conditions-wrapper { margin: 16px 0 0; }

/* Order note */
.nd-ck-note { margin-top: 18px; border-top: 2px dashed #d5e2e7; padding-top: 16px; }
.nd-ck-note summary {
  cursor: pointer; list-style: none;
  font: 700 13.5px var(--nd-font); color: var(--nd-pink);
}
.nd-ck-note summary::-webkit-details-marker { display: none; }
.nd-ck-note .form-row { margin-top: 12px; }
.nd-ck-note .form-row label { display: none; }

.nd-ck-terms { margin: 2px 4px 0; font: 400 13.5px/1.6 var(--nd-font); color: #66838f; }
.nd-ck-terms a { color: #0b1519; text-decoration: underline; }
.nd-ck-terms a:hover { color: var(--nd-pink); }

/* Summary panel */
.nd-ck-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.nd-ck-panel { background: #0b1519; color: #fff; border-radius: 16px; padding: 28px 26px; }
.nd-ck-panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.nd-ck-panel-label { font: 700 11px var(--nd-font); letter-spacing: .22em; text-transform: uppercase; color: var(--nd-gold); }
.nd-ck-edit { font: 600 12.5px var(--nd-font); color: #9ab0ba !important; text-decoration: underline; }
.nd-ck-edit:hover { color: var(--nd-gold) !important; }
.nd-ck-lines { display: flex; flex-direction: column; gap: 16px; }
.nd-ck-line { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.nd-ck-line-thumb { position: relative; width: 56px; height: 56px; }
.nd-ck-line-thumb img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; display: block; }
.nd-ck-line-qty {
  position: absolute; top: -6px; right: -6px;
  display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--nd-gold); color: #0b1519; border: 2px solid #0b1519;
  font: 800 11px var(--nd-font);
}
.nd-ck-line-name { font: 600 13.5px/1.35 var(--nd-font); color: #fff; }
.nd-ck-line-each { font: 400 12.5px var(--nd-font); color: #8fa6b1; margin-top: 2px; }
.nd-ck-line-each dl.variation { margin: 4px 0 0; font-size: 12px; }
.nd-ck-line-total, .nd-ck-line-total .amount, .nd-ck-line-total bdi { font: 700 14.5px var(--nd-font); color: #fff; }
.nd-ck-div { height: 1px; background: #1e3743; margin: 22px 0; }
.nd-ck-rows { display: flex; flex-direction: column; gap: 12px; font: 500 14.5px var(--nd-font); color: #c9d6dc; }
.nd-ck-row { display: flex; justify-content: space-between; gap: 12px; }
.nd-ck-row-val, .nd-ck-row-val .amount, .nd-ck-row-val bdi { color: #fff; }
.nd-ck-row .woocommerce-remove-coupon { color: var(--nd-pink); font-size: 12px; margin-left: 6px; }
.nd-ck-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 4px; font: 700 16px var(--nd-font); color: #fff; }
.nd-ck-total-val, .nd-ck-total-val .amount, .nd-ck-total-val bdi {
  font-family: var(--nd-font-sticker); font-weight: 400; font-size: 34px;
  color: var(--nd-gold); letter-spacing: -.02em;
}
.nd-ck-total-val small { display: none; }
.nd-ck-shipbox { margin: 18px 0 4px; padding: 14px 16px; border-radius: 12px; background: #12222a; border: 1px solid #1e3743; }
.nd-ck-shipmsg { font: 500 13px var(--nd-font); color: #fff; margin-bottom: 10px; }
.nd-ck-shipbar { height: 7px; border-radius: 99px; background: #1f3946; overflow: hidden; }
.nd-ck-shipbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--nd-gold), var(--nd-pink)); transition: width .35s ease; }

/* Coupon */
.nd-ck-coupon, .woocommerce form.checkout_coupon.nd-ck-coupon {
  display: flex !important; flex-wrap: wrap; gap: 9px; margin: 18px 0 20px;
  border: 0; padding: 0; background: none; border-radius: 0;
}
.nd-ck-panel .woocommerce-error, .nd-ck-panel .woocommerce-message, .nd-ck-panel .woocommerce-info,
.woocommerce .nd-ck-panel ul.woocommerce-error, .woocommerce .nd-ck-panel ul.woocommerce-message {
  flex: 1 1 100%; margin: 0 0 4px; width: 100%;
  background: #12222a; border: 1px solid #1e3743; border-radius: 9px;
  color: #fff; font: 500 12.5px/1.5 var(--nd-font); padding: 10px 12px; list-style: none;
}
.nd-ck-panel .woocommerce-error::before, .nd-ck-panel .woocommerce-message::before,
.nd-ck-panel .woocommerce-info::before { display: none; }
.nd-ck-panel .woocommerce-error li, .nd-ck-panel .woocommerce-message li {
  margin: 0; padding: 0; color: #ffb3c8; list-style: none;
}
.nd-ck-panel .woocommerce-message li { color: #c9f5d9; }
.nd-ck-coupon input {
  flex: 1; min-width: 0; height: 44px;
  border: 1px solid #23404e; border-radius: 9px;
  background: #0f0f0f; color: #fff; padding: 0 12px;
  font: 500 14px var(--nd-font); outline: none;
}
.nd-ck-coupon input::placeholder { color: #78919d; }
.nd-ck-coupon input:focus { border-color: var(--nd-gold); }
.nd-ck-coupon button {
  height: 44px; padding: 0 16px;
  border: 1px solid var(--nd-gold); border-radius: 9px;
  background: transparent; color: var(--nd-gold);
  font: 700 12.5px var(--nd-font); cursor: pointer; transition: all .15s;
}
.nd-ck-coupon button:hover { background: var(--nd-gold); color: #0b1519; }

/* CTA */
.nd-ck-cta {
  width: 100%; min-height: 60px;
  border: 2px solid var(--nd-pink); border-radius: 14px;
  background: #162b34; color: #fff;
  font: 700 13.5px var(--nd-font); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .18s; padding: 10px 16px;
}
.nd-ck-cta:hover { background: var(--nd-pink); transform: translateY(-2px); }
.nd-ck-cta-total::before { content: "· "; }
.nd-ck-cta-total, .nd-ck-cta-total .amount, .nd-ck-cta-total bdi { color: #fff; }
.nd-ck-cta-icon {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--nd-pink); color: #fff; font-size: 13px; letter-spacing: 0;
}
.nd-ck-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font: 500 12px var(--nd-font); color: #8fa6b1; }

/* Good to know */
.nd-ck-know {
  background: #fff; border: 2px solid #0b1519; border-radius: 14px;
  padding: 18px 20px; box-shadow: 6px 6px 0 #0b1519;
}
.nd-ck-know-label { font: 800 10.5px var(--nd-font); letter-spacing: .18em; text-transform: uppercase; color: var(--nd-pink); margin-bottom: 10px; }
.nd-ck-know ul { margin: 0; padding-left: 18px; font: 500 13.5px/1.7 var(--nd-font); color: #234050; }

@media (max-width: 1080px) {
  .nd-ck-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .nd-ck-side { position: static; }
}
@media (max-width: 640px) {
  .nd-ck-page { padding: 32px 18px 56px; }
  .nd-ck-card .woocommerce-billing-fields__field-wrapper,
  .nd-ck-card .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
  .nd-ck-card .form-row-wide, .nd-ck-card .form-row-first, .nd-ck-card .form-row-last { grid-column: auto; }
}

/* Order received (checkout done) */
.woocommerce-order {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 90px;
}
.woocommerce-order .woocommerce-thankyou-order-received {
  font-family: var(--nd-font-sticker);
  font-size: clamp(28px, 4vw, 40px); color: var(--nd-gold);
  margin: 0 0 28px; line-height: 1.1;
}
.woocommerce-order ul.woocommerce-thankyou-order-details {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--nd-card); border: 1px solid rgba(20,200,189,.2);
  border-radius: var(--nd-radius); padding: 20px 8px; margin: 0 0 40px;
}

/* ---------- Mobile site (Claude design: Nerdy.co.za Mobile Site) ---------- */

/* Mobile-only pieces, hidden on desktop */
.nd-mhero, .nd-mtraits, .nd-shop-more, .nd-reviews-nav, .nd-mbar { display: none; }

/* Fullscreen menu overlay */
.nd-mnav {
  position: fixed; inset: 0; z-index: 300;
  background: #0b1519; overflow: auto;
  animation: nd-fade .18s ease both;
}
.nd-mnav[hidden] { display: none !important; }
@media (min-width: 783px) { .nd-mnav { display: none !important; } }
html.nd-lock { overflow: hidden; }
@keyframes nd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nd-mi-in {
  from { opacity: 0; transform: translateY(26px) rotate(-2deg); }
  to { opacity: 1; transform: none; }
}
.nd-mnav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid #192f39;
}
.nd-mnav-top .nd-logo img { height: 34px; }
.nd-mnav-close {
  width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid #1f3946; background: #101f26; color: var(--nd-gold);
  display: grid; place-items: center; cursor: pointer;
  transition: background .18s, color .18s;
}
.nd-mnav-close:hover { background: var(--nd-gold); color: #0b1519; }
/* Account block inside the mobile menu */
.nd-macct { padding: 14px 16px 2px; }
.nd-macct-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  background: #0e1a1f; border: 1px solid #1c343f;
}
.nd-macct-av {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--nd-pink); color: #fff; font: 700 15px/1 var(--nd-font);
}
.nd-macct-id { flex: 1; min-width: 0; }
.nd-macct-hi { color: #fff; font: 700 15px/1.25 var(--nd-font); }
.nd-macct-sub { color: #8aa2ad; font-size: 12.5px; line-height: 1.35; }
.nd-macct-view {
  flex: none; font: 700 12px var(--nd-font);
  letter-spacing: .12em; text-transform: uppercase;
}
.nd-macct-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.nd-macct-b {
  display: grid; place-items: center; height: 48px; border-radius: 14px;
  background: #101f26; border: 1px solid #1c343f; color: #fff;
  font: 700 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  transition: background .18s, color .18s, border-color .18s;
}
.nd-macct-b:hover { border-color: var(--nd-gold); color: #fff; }
.nd-macct-b--gold { background: var(--nd-gold); border-color: var(--nd-gold); color: #0b1519; }
.nd-macct-b--gold:hover { background: var(--nd-gold-bright); border-color: var(--nd-gold-bright); color: #0b1519; }
.nd-mnav-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 14px 16px 6px;
}
.nd-mi {
  display: flex; align-items: center; gap: 11px;
  height: 62px; padding: 0 14px; border-radius: 15px;
  background: #101f26; border: 1px solid #1c343f; color: #fff;
  font: 700 13px var(--nd-font); letter-spacing: .09em; text-transform: uppercase;
  animation: nd-mi-in .42s cubic-bezier(.2,.9,.25,1) both;
  transition: background .18s, color .18s, border-color .18s;
}
.nd-mi:nth-child(1) { animation-delay: .04s; }
.nd-mi:nth-child(2) { animation-delay: .09s; }
.nd-mi:nth-child(3) { animation-delay: .14s; }
.nd-mi:nth-child(4) { animation-delay: .19s; }
.nd-mi:nth-child(5) { animation-delay: .24s; }
.nd-mi:nth-child(6) { animation-delay: .29s; }
.nd-mi svg { color: var(--nd-gold); flex: none; }
.nd-mi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-mi:hover { background: var(--nd-gold); color: #0b1519; border-color: var(--nd-gold); }
.nd-mi:hover svg { color: #0b1519; }

/* Mobile menu: the site's real WordPress menu, above the category tiles. */
.nd-mnav-links { padding: 14px 16px 0; }
.nd-mnav-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nd-mnav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; color: #fff; border-bottom: 1px solid #1c343f;
  font-family: var(--nd-font-display); font-size: 26px;
  letter-spacing: .03em; text-transform: uppercase; line-height: 1;
}
.nd-mnav-links a::after { content: "\2192"; color: var(--nd-gold); font-size: 18px; }
.nd-mnav-links a:hover { color: var(--nd-gold); }
.nd-mnav-links li.current-menu-item > a { color: var(--nd-gold); }

.nd-mnav-pop { padding: 16px 16px 4px; }
.nd-mnav-pop-eyebrow {
  font: 700 10px var(--nd-font); letter-spacing: .22em; text-transform: uppercase;
  color: var(--nd-pink); margin-bottom: 10px;
}
.nd-mnav-pop-list { display: flex; flex-direction: column; gap: 8px; }
.nd-mnav-pop-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px; border-radius: 14px;
  background: #101f26; border: 1px solid #1c343f; color: #fff;
  transition: border-color .18s;
}
.nd-mnav-pop-list a:hover { border-color: var(--nd-gold); }
.nd-mnav-pop-list img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.nd-mnav-pop-name { flex: 1; min-width: 0; font: 600 13.5px/1.25 var(--nd-font); }
.nd-mnav-pop-price { font-family: var(--nd-font-sticker); font-size: 14px; color: var(--nd-gold); flex: none; }
.nd-mnav-pop-price del { color: #6f8894; font: 400 11px var(--nd-font); margin-right: 5px; }
.nd-mnav-pop-price ins { text-decoration: none; }
.nd-mnav-foot { padding: 14px 16px 26px; display: flex; flex-direction: column; gap: 10px; }
.nd-mnav-duo { display: flex; gap: 10px; }
.nd-mnav-duo a {
  flex: 1; height: 52px; border: 1px solid #1f3946; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #101f26; color: var(--nd-gold);
  font: 700 11.5px var(--nd-font); letter-spacing: .1em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.nd-mnav-duo a:hover { background: var(--nd-gold); color: #0b1519; }
.nd-mnav-soc { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }
.nd-mnav-soc-btn {
  width: 46px; height: 46px; border-radius: 12px;
  background: #101f26; border: 1px solid #1f3946;
  display: grid; place-items: center;
  color: var(--nd-gold) !important;
  transition: all .18s;
}
.nd-mnav-soc-btn svg { width: 21px; height: 21px; fill: currentColor; display: block; }
.nd-mnav-soc--fb:hover { background: var(--nd-gold); color: #0b1519 !important; border-color: var(--nd-gold); }
.nd-mnav-soc--ig:hover { background: var(--nd-pink); color: #fff !important; border-color: var(--nd-pink); }
.nd-mnav-soc--wa:hover { background: #25d366; color: #0b1519 !important; border-color: #25d366; }

@media (max-width: 782px) {
  /* Header */
  .nd-header { background: rgba(11,21,25,.94); border-bottom: 1px solid #192f39; }
  .nd-header-inner { padding: 12px 16px; }
  .nd-logo img { height: 32px; }
  .nd-nav { display: none; }
  .nd-burger { display: grid; }
  /* Account lives in the fullscreen menu on mobile, not the header bar. */
  .nd-header-tools { gap: 10px; }
  .nd-acct, .nd-tools-sep { display: none; }
  .nd-cart-link {
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px; padding: 0 15px; border-radius: 14px;
    border: 1px solid #1f3946; background: #101f26; color: var(--nd-gold);
    font: 700 12.5px/1 var(--nd-font); letter-spacing: .1em; text-transform: uppercase;
    transition: background .18s, color .18s;
  }
  .nd-cart-link:hover { background: var(--nd-gold); color: #0b1519; }
  .nd-cart-link svg { width: 18px; height: 18px; }
  .nd-cart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 20px; height: 20px; padding: 0 5px; margin: 0;
    border-radius: 99px; background: var(--nd-pink); color: #fff;
    font: 700 11px/20px var(--nd-font); text-align: center;
  }
  section[id] { scroll-margin-top: 72px; }

  /* Front page section order per mobile design */
  .nd-front { display: flex; flex-direction: column; }
  .nd-front .nd-mhero { order: 0; }
  .nd-front .nd-shop-strip { order: 1; }
  .nd-front .nd-mtraits { order: 2; }
  .nd-front .nd-story { order: 3; }
  .nd-front .nd-reviews { order: 4; }
  .nd-hero, .nd-pillars, .nd-onebite { display: none; }

  /* Hero card */
  .nd-mhero { display: block; padding: 28px 18px 34px; background: #0b1519; }
  .nd-mhero-card { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid #1c343f; }
  .nd-mhero-card img { display: block; width: 100%; height: 250px; object-fit: cover; }
  .nd-mhero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,25,.15) 0%, rgba(11,21,25,.9) 68%, #0b1519 100%); }
  .nd-mhero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 18px; }
  .nd-mhero-kicker { margin: 0; font: 700 10.5px var(--nd-font); letter-spacing: .24em; text-transform: uppercase; color: var(--nd-gold); }
  .nd-mhero h1 {
    margin: 8px 0 0; font-family: var(--nd-font-sticker); font-size: 38px;
    line-height: .94; letter-spacing: -.035em; text-transform: uppercase; color: #fff;
  }
  .nd-mhero h1 .nd-yellow { color: var(--nd-gold); }
  .nd-mhero h1 .nd-pink { color: var(--nd-pink); }
  .nd-mhero-lead { margin: 16px 2px 0; font-size: 16px; line-height: 1.55; color: #a9bcc5; }
  .nd-mhero-ctas { display: flex; gap: 10px; margin-top: 18px; }
  .nd-mhero-ctas .nd-btn {
    flex: 1.3; display: flex; align-items: center; justify-content: center;
    height: 58px; padding: 0; border-radius: 16px;
    font-size: 13.5px; letter-spacing: .14em;
  }
  .nd-mhero-ctas .nd-btn--ghost { flex: 1; }

  /* Shop strip: compact horizontal product cards */
  .nd-shop-strip { padding: 34px 0 38px; background: #0e1a1f; border-top: 1px solid #172c36; }
  .nd-section-head { text-align: left; margin: 0; }
  .nd-section-head h2 { font-family: var(--nd-font-sticker); font-size: 30px; line-height: 1; letter-spacing: -.03em; margin: 0 0 4px; }
  .nd-section-sub { text-align: left; margin: 0 0 20px; font-size: 15px; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; gap: 14px; }
  .woocommerce ul.products li.product.nd-card,
  .woocommerce-page ul.products li.product.nd-card {
    display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 14px;
    padding: 12px; border-radius: 18px;
    background: #0b1519; border-color: #1c343f; overflow: visible;
  }
  .woocommerce ul.products li.product.nd-card:hover { transform: none; }
  .nd-card-media { border-radius: 13px; overflow: hidden; }
  .nd-card-media img { height: 112px; aspect-ratio: auto; padding: 6px; }
  .nd-card-badge { display: none; }
  /* 36px target on a 112px thumb leaves no room and clips at the card edge. */
  .nd-card-wish { display: none; }
  .nd-card-oos { top: 7px; right: 7px; padding: 4px 7px; font-size: 9.5px; }
  .nd-card-sale {
    top: 7px; right: auto; left: 7px; padding: 4px 7px;
    border-radius: 6px; font-size: 9px;
    background: var(--nd-gold); color: #0b1519;
  }
  .nd-card-body { padding: 0; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
  .nd-card-head { display: block; min-height: 0; }
  .nd-card-price { transform: none; margin-top: 6px; justify-content: flex-start; }
  .nd-card-chip { background: transparent; padding: 0; border-radius: 0; font-family: var(--nd-font-sticker); font-size: 19px; }
  .nd-card-chip, .nd-card-chip .amount, .nd-card-chip bdi { color: var(--nd-gold); }
  .nd-card-chip del, .nd-card-chip del .amount { color: #6f8894; }
  .woocommerce ul.products li.product.nd-card .button {
    margin-top: 10px; min-height: 44px; padding: 8px 10px;
    border: 0; border-radius: 12px; background: var(--nd-pink);
    font-size: 11px; letter-spacing: .1em; gap: 6px;
    white-space: nowrap;
  }
  .woocommerce ul.products li.product.nd-card .button::after {
    background: transparent; width: auto; height: auto; font-size: 14px;
  }
  .woocommerce ul.products li.product.nd-card .button:hover { background: var(--nd-gold); color: #0b1519 !important; transform: none; }
  .woocommerce ul.products li.product.nd-card .button:hover::after { color: #0b1519; }
  .nd-shop-more {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin-top: 16px; height: 54px; padding: 0;
    border-radius: 16px; border-color: #1f3946; color: #fff !important;
    font-size: 12.5px;
  }
  .nd-shop-more:hover { border-color: var(--nd-gold); color: var(--nd-gold) !important; background: transparent; transform: none; }

  /* Traits band (pink) */
  .nd-mtraits { display: block; padding: 38px 18px; background: var(--nd-pink); color: #fff; }
  .nd-mtraits-kicker { margin: 0; font: 700 10.5px var(--nd-font); letter-spacing: .24em; text-transform: uppercase; color: #0b1519; }
  .nd-mtraits h2 {
    margin: 10px 0 14px; font-family: var(--nd-font-sticker); font-size: 32px;
    line-height: .98; letter-spacing: -.035em; text-transform: uppercase; color: #fff;
  }
  .nd-mtraits-lead { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.92); }
  .nd-mtraits-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
  .nd-mtrait { display: flex; align-items: center; gap: 12px; background: rgba(11,21,25,.92); border-radius: 14px; padding: 14px 16px; }
  .nd-mtrait-num { font-family: var(--nd-font-sticker); font-size: 15px; color: var(--nd-gold); flex: none; }
  .nd-mtrait-title { font: 700 13px var(--nd-font); letter-spacing: .14em; text-transform: uppercase; color: #fff; flex: none; width: 82px; }
  .nd-mtrait-copy { font-size: 13.5px; line-height: 1.45; color: #a9bcc5; min-width: 0; }
  .nd-mtraits-cta {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin-top: 20px; height: 56px; border-radius: 16px;
    background: #0b1519; color: var(--nd-gold);
    font: 700 13px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
    transition: background .18s, color .18s;
  }
  .nd-mtraits-cta:hover { background: var(--nd-gold); color: #0b1519; }

  /* Story */
  .nd-story { padding: 38px 0; background: #0b1519; }
  .nd-story-grid { grid-template-columns: 1fr; gap: 0; }
  .nd-story-img { display: none; }
  .nd-story h2 { font-family: var(--nd-font-sticker); font-size: 30px; line-height: 1; letter-spacing: -.03em; }
  .nd-story p { font-size: 15.5px; }
  .nd-story .nd-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 54px; padding: 0; margin-top: 20px;
    border-radius: 16px; background: transparent;
    border: 2px solid var(--nd-gold); color: var(--nd-gold) !important;
    font-size: 12.5px;
  }
  .nd-story .nd-btn:hover { background: var(--nd-gold); color: #0b1519 !important; transform: none; }

  /* Reviews rail */
  .nd-reviews { padding: 36px 0 40px; background: #0e1a1f; border-top: 1px solid #172c36; }
  .nd-reviews-head { text-align: left; margin-bottom: 0; }
  .nd-reviews-head h2 { font-family: var(--nd-font-sticker); font-size: 28px; line-height: 1; letter-spacing: -.03em; }
  .nd-reviews-sub { justify-content: flex-start; margin-bottom: 0; font-size: 13px; }
  .nd-reviews-grid {
    display: flex; overflow-x: auto; gap: 12px;
    padding: 18px 24px 10px; margin: 0 -24px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .nd-reviews-grid::-webkit-scrollbar { display: none; }
  .nd-review {
    flex: none; width: 270px; scroll-snap-align: center;
    background: #0b1519; border: 1px solid #1c343f; border-radius: 18px; padding: 18px;
  }
  .nd-reviews-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .nd-reviews-hint { font: 600 11.5px var(--nd-font); letter-spacing: .14em; text-transform: uppercase; color: #6f8894; }
  .nd-reviews-btns { display: flex; gap: 10px; }
  .nd-reviews-btns button {
    width: 46px; height: 46px; border-radius: 14px;
    border: 1px solid #1f3946; background: #0b1519; color: var(--nd-gold);
    display: grid; place-items: center; cursor: pointer;
    transition: background .18s, color .18s, border-color .18s;
  }
  .nd-reviews-btns button:hover { background: var(--nd-gold); color: #0b1519; border-color: var(--nd-gold); }
  .nd-reviews-cta { margin-top: 18px; }
  .nd-reviews-cta .nd-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 56px; padding: 0; border-radius: 16px; font-size: 12.5px;
  }

  /* Sticky bottom cart bar */
  .nd-mbar {
    position: sticky; bottom: 0; z-index: 90;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 14px;
    background: rgba(11,21,25,.95); backdrop-filter: blur(10px);
    border-top: 1px solid #192f39;
  }
  .nd-mbar.is-empty { display: none; }
  .nd-mbar-info { min-width: 0; }
  .nd-mbar-label { font: 600 10px var(--nd-font); letter-spacing: .18em; text-transform: uppercase; color: #8aa2ad; }
  .nd-mbar-total, .nd-mbar-total .amount, .nd-mbar-total bdi { font-family: var(--nd-font-sticker); font-size: 19px; color: var(--nd-gold); }
  .nd-mbar-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    height: 52px; border-radius: 14px;
    background: var(--nd-gold); color: #0b1519 !important;
    font: 700 12.5px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
    transition: background .18s, color .18s;
  }
  .nd-mbar-btn:hover { background: var(--nd-pink); color: #fff !important; }
}

/* ---------- My Account (Claude design: Nerdy.co.za My Account) ---------- */
/*
 * The artboard sits on #0b0b0b with #141414 / #121212 cards. This page keeps
 * the theme's --nd-black ground, so the card greys are shifted up by the same
 * step to preserve the design's figure/ground order.
 */
.nd-my-page { padding: 52px 48px 96px; }
.nd-my-container { max-width: 1180px; margin: 0 auto; }

.nd-my-eyebrow {
  display: inline-block; transform: rotate(-2deg);
  background: var(--nd-pink); color: #fff;
  padding: 6px 13px; border-radius: 5px;
  font: 700 11px var(--nd-font); letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.nd-my-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.nd-my-title {
  margin: 0; color: var(--nd-white);
  font-family: var(--nd-font-sticker);
  font-size: clamp(48px, 6.4vw, 76px); line-height: .85;
  letter-spacing: -.035em; text-transform: uppercase;
}
.nd-my-badge {
  display: inline-block; transform: rotate(-3deg);
  background: var(--nd-gold); color: #0b1519;
  padding: 7px 14px; border-radius: 6px;
  font: 700 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.nd-my-rule { height: 3px; background: #192f39; margin: 22px 0 38px; }

/* Shell: sidebar + panel */
.nd-my-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }

/* Sidebar — WooCommerce floats these two columns at 30%/68%; the grid owns them here. */
.woocommerce-account .nd-my-nav,
.woocommerce-account .nd-my-content { float: none; width: 100%; }
.nd-my-nav { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 112px; }
.nd-my-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nd-my-user {
  display: flex; align-items: center; gap: 13px;
  background: #12222a; border: 1px solid #1d3541; border-radius: 14px; padding: 16px;
}
.nd-my-av {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--nd-pink); color: #fff; font: 700 16px var(--nd-font);
}
.nd-my-user-id { min-width: 0; }
.nd-my-user-name { font: 700 15px/1.3 var(--nd-font); }
.nd-my-user-sub {
  color: #8aa2ad; font-size: 12px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nd-my-nav li a {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px; border-radius: 12px;
  background: #101f26; border: 1px solid #1a303b; color: #d6d6d6;
  font: 600 14.5px var(--nd-font);
  transition: background .18s, color .18s, border-color .18s;
}
.nd-my-nav li a:hover { background: #162b34; border-color: #254452; color: #fff; }
.nd-my-nav li.is-active a {
  background: var(--nd-gold); border-color: var(--nd-gold); color: #0b1519;
  font-weight: 700;
}
.nd-my-nav-ico { display: grid; place-items: center; flex: none; opacity: .85; }
.nd-my-nav li.is-active .nd-my-nav-ico { opacity: 1; }
.nd-my-nav-label { flex: 1; min-width: 0; }
.nd-my-nav-badge { color: #8aa2ad; font-size: 12.5px; font-weight: 700; }
.nd-my-nav li.is-active .nd-my-nav-badge { color: #0b1519; }
.nd-my-out {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px; margin-top: 6px;
  border: 1px solid #3a1f30; border-radius: 12px;
  color: var(--nd-pink) !important; font: 700 14.5px var(--nd-font);
  transition: background .18s, color .18s, border-color .18s;
}
.nd-my-out:hover { background: var(--nd-pink); border-color: var(--nd-pink); color: #fff !important; }

/* Shared pieces */
.nd-my-card {
  background: #101f26; border: 1px solid #1a303b; border-radius: 18px; padding: 30px 32px;
}
.nd-my-card--ghost { background: #171717; border: 1px dashed #254452; }
.nd-my-card--form { max-width: 720px; }
.nd-my-card + .nd-my-card--form { margin-top: 18px; }
.nd-my-card-title {
  margin: 0; padding: 0; color: var(--nd-white);
  font-family: var(--nd-font-sticker); font-size: 20px; line-height: 1.2;
  letter-spacing: -.01em; text-transform: uppercase;
}
.nd-my-lead { margin: 0 0 20px; max-width: 560px; color: #9ab0ba; font-size: 15px; line-height: 1.6; }
.nd-my-hint { color: #6f8894; font-size: 12.5px; line-height: 1.5; margin: -8px 0 16px; }
.nd-my-hint--lead { clear: both; margin: 0 0 20px; color: #8aa2ad; font-size: 14px; }
.nd-my-tag {
  background: var(--nd-gold); color: #0b1519; border-radius: 999px; padding: 4px 11px;
  font: 700 10.5px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
}
.nd-my-pill {
  border-radius: 999px; padding: 6px 14px; white-space: nowrap;
  font: 700 11.5px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
}
.nd-my-pill.is-open { background: #2a2413; border: 1px solid #4a3d12; color: var(--nd-gold); }
.nd-my-pill.is-done { background: #12211a; border: 1px solid #1e3d2d; color: #4fd39a; }
.nd-my-pill.is-off { background: #201414; border: 1px solid #3a2020; color: #c98a8a; }

.nd-my-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border: 2px solid var(--nd-gold); border-radius: 999px;
  background: transparent; color: var(--nd-gold) !important; cursor: pointer;
  font: 700 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.nd-my-btn:hover { background: var(--nd-gold); color: #0b1519 !important; }
.nd-my-btn--wide { height: 56px; padding: 0 34px; font-size: 13px; letter-spacing: .14em; }
.nd-my-btn--sm { height: 44px; padding: 0 20px; }
.nd-my-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border: 1px solid #254452; border-radius: 999px;
  background: transparent; color: #fff !important; cursor: pointer;
  font: 700 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .18s, color .18s;
}
.nd-my-ghost:hover { border-color: var(--nd-gold); color: var(--nd-gold) !important; }

/* Fields */
.nd-my-field { display: block; margin-bottom: 16px; }
.nd-my-label {
  display: block; margin-bottom: 8px; color: #9ab0ba;
  font: 600 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
}
.nd-my-in,
.woocommerce .nd-my-page form .form-row input.input-text,
.woocommerce .nd-my-page form .form-row textarea,
.woocommerce .nd-my-page form .form-row select {
  width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px;
  border: 1px solid #23404e; border-radius: 10px;
  background: #0b1519; color: #fff; font: 500 15px var(--nd-font); outline: none;
  transition: border-color .18s;
}
.nd-my-in:focus,
.woocommerce .nd-my-page form .form-row input.input-text:focus,
.woocommerce .nd-my-page form .form-row select:focus { border-color: var(--nd-gold); }
.nd-my-page ::placeholder { color: #6a6a6a; }
.nd-my-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nd-my-two .nd-my-field { margin-bottom: 0; }
.nd-my-two + .nd-my-field { margin-top: 16px; }
.nd-my-save { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.nd-my-form fieldset { margin: 18px 0 0; }
/* A legend sits on the fieldset border by default; float it back into flow. */
.nd-my-form legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; }

/* Login / register */
.nd-my-login { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.nd-my-login.is-solo { grid-template-columns: minmax(0, 560px); }
.nd-my-login .nd-my-card-title { font-size: 26px; letter-spacing: -.02em; margin-bottom: 22px; }
/* WooCommerce's own login/register box (border + padding) is replaced by the card. */
.nd-my-login form,
.woocommerce .nd-my-login form.login,
.woocommerce .nd-my-login form.register { margin: 0; padding: 0; border: 0; border-radius: 0; }
.nd-my-login .woocommerce-privacy-policy-text p,
.nd-my-login .woocommerce-privacy-policy-text {
  margin: 0 0 20px; color: #7b939f; font-size: 12.5px; line-height: 1.6;
}
.nd-my-login-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 14px 0 26px; font-size: 13.5px;
}
.nd-my-check { display: flex; align-items: center; gap: 9px; color: #b8b8b8; cursor: pointer; }
.nd-my-check input { width: 16px; height: 16px; accent-color: var(--nd-gold); margin: 0; }
.nd-my-login .nd-my-btn { width: 100%; height: 56px; font-size: 14px; letter-spacing: .14em; }
.nd-my-perks { list-style: none; margin: 20px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nd-my-perks li { display: flex; gap: 11px; align-items: flex-start; color: #c8c8c8; font-size: 14px; line-height: 1.5; }
.nd-my-perks span { color: var(--nd-gold); font-weight: 700; }
.nd-my-fineprint { margin: 14px 0 0; color: #7b939f; font-size: 12.5px; line-height: 1.6; }
.nd-my-reg-card { display: flex; flex-direction: column; }

/* Dashboard */
.nd-my-welcome {
  background: #12222a; border: 1px solid #1d3541; border-radius: 18px;
  padding: 30px 32px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
}
.nd-my-welcome-txt { flex: 1; min-width: 260px; }
.nd-my-welcome-hi { font-family: var(--nd-font-sticker); font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.nd-my-welcome p { margin: 10px 0 0; max-width: 440px; color: #9db2bc; font-size: 15px; line-height: 1.6; }
.nd-my-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.nd-my-stat { background: #101f26; border: 1px solid #1a303b; border-radius: 16px; padding: 22px; }
.nd-my-stat-n,
.nd-my-stat-n .amount,
.nd-my-stat-n bdi {
  font-family: var(--nd-font-sticker); font-size: 34px; line-height: 1; color: var(--nd-gold);
}
.nd-my-stat-n.is-pink, .nd-my-stat-n.is-pink .amount, .nd-my-stat-n.is-pink bdi { color: var(--nd-pink); }
.nd-my-stat-l {
  margin-top: 8px; color: #8aa2ad;
  font: 600 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
}
.nd-my-sec { margin-top: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.nd-my-sec-t { font-family: var(--nd-font-sticker); font-size: 20px; letter-spacing: -.01em; text-transform: uppercase; }
.nd-my-sec-more { font: 700 12px var(--nd-font); letter-spacing: .14em; text-transform: uppercase; }
.nd-my-nudge {
  margin-top: 28px; background: #12222a; border: 1px solid #1d3541; border-radius: 16px;
  padding: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.nd-my-nudge-txt { flex: 1; min-width: 240px; }
.nd-my-nudge-t { font: 700 16px var(--nd-font); }
.nd-my-nudge-s { margin-top: 4px; color: #8aa2ad; font-size: 14px; line-height: 1.5; }

/* Order rows (dashboard latest + orders list) */
.nd-my-order {
  background: #101f26; border: 1px solid #1a303b; border-radius: 16px;
  padding: 20px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transition: border-color .18s;
}
.nd-my-sec + .nd-my-order { margin-top: 14px; }
.nd-my-order:hover { border-color: #294a59; }
.nd-my-orders { display: flex; flex-direction: column; gap: 12px; }
.nd-my-order-n {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 12px;
  background: #172c36; color: var(--nd-gold);
  font-family: var(--nd-font-sticker); font-size: 15px;
}
.nd-my-order-id { flex: 1; min-width: 190px; }
.nd-my-order-items { font: 700 15.5px/1.35 var(--nd-font); }
.nd-my-order-meta { margin-top: 3px; color: #8aa2ad; font-size: 13px; }
.nd-my-order-total,
.nd-my-order-total .amount,
.nd-my-order-total bdi {
  font-family: var(--nd-font-sticker); font-size: 18px; color: var(--nd-white);
}
.nd-my-order-total { min-width: 82px; text-align: right; }
.nd-my-order-acts { display: flex; gap: 9px; flex-wrap: wrap; }
.nd-my-pager { display: flex; gap: 10px; margin-top: 20px; }
.nd-my-empty {
  background: #101f26; border: 1px dashed #254452; border-radius: 18px;
  padding: 40px 32px; text-align: center;
}
.nd-my-empty-t { font-family: var(--nd-font-sticker); font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }
.nd-my-empty p { margin: 10px auto 24px; max-width: 380px; color: #9ab0ba; font-size: 15px; line-height: 1.6; }

/* Addresses */
.nd-my-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.nd-my-addresses .nd-my-card { display: flex; flex-direction: column; padding: 26px; }
.nd-my-addr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nd-my-addr { margin: 18px 0 0; color: #cfcfcf; font-size: 15px; font-style: normal; line-height: 1.75; }
.nd-my-addr-empty { margin: 14px 0 0; color: #8aa2ad; font-size: 14.5px; line-height: 1.6; }
.nd-my-addresses a.edit { align-self: flex-start; margin-top: 22px; }

/* Endpoints the design does not draw (edit-address, lost/reset password,
   payment methods, view order) inherit the card chrome from here. */
.nd-my-content > form:not(.nd-my-form),
.nd-my-content > .woocommerce-MyAccount-paymentMethods,
.nd-my-content > .woocommerce-order-details,
.nd-my-content > .woocommerce-customer-details,
.nd-my-content > #payment {
  display: block; background: #101f26; border: 1px solid #1a303b;
  border-radius: 18px; padding: 30px 32px; margin: 0 0 18px; max-width: 760px;
}
.nd-my-content h2, .nd-my-content h3, .nd-my-content legend {
  font-family: var(--nd-font-sticker); font-size: 20px; line-height: 1.2;
  letter-spacing: -.01em; text-transform: uppercase; color: var(--nd-white);
}
.nd-my-content > p { margin: 0 0 20px; color: #9ab0ba; font-size: 15px; line-height: 1.6; }
.nd-my-content .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce-account .nd-my-content .form-row input.input-text,
.woocommerce-account .nd-my-content .form-row textarea,
.woocommerce-account .nd-my-content .form-row select {
  width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px;
  border: 1px solid #23404e; border-radius: 10px;
  background: #0b1519; color: #fff; font: 500 15px var(--nd-font);
}
.woocommerce-account .nd-my-content .form-row textarea { height: auto; padding: 14px 16px; }
.nd-my-content .form-row label {
  display: block; margin-bottom: 8px; color: #9ab0ba;
  font: 600 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
}
.nd-my-content .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 9px; }
.nd-my-content .form-row-first, .nd-my-content .form-row-last { width: 48.5%; float: left; }
.nd-my-content .form-row-last { float: right; }
.nd-my-content .clear { clear: both; }
.nd-my-content .select2-container .select2-selection--single { height: 52px; border-radius: 10px; }
.nd-my-content button[type="submit"],
.nd-my-content .woocommerce-Button,
.nd-my-content a.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border: 2px solid var(--nd-gold); border-radius: 999px;
  background: transparent; color: var(--nd-gold) !important; cursor: pointer;
  font: 700 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.nd-my-content button[type="submit"]:hover,
.nd-my-content .woocommerce-Button:hover,
.nd-my-content a.button:hover { background: var(--nd-gold); color: #0b1519 !important; }
.nd-my-content .nd-my-ghost, .nd-my-content .nd-my-ghost:hover { height: 44px; padding: 0 20px; border-width: 1px; background: transparent; }
.nd-my-content .nd-my-ghost { border-color: #254452; color: #fff !important; }
.nd-my-content .nd-my-ghost:hover { border-color: var(--nd-gold); color: var(--nd-gold) !important; }
.nd-my-content table.shop_table { background: #101f26; border-color: #1a303b; border-radius: 16px; }
.nd-my-content table.shop_table th, .nd-my-content table.shop_table td { border-color: #1a303b; }
.nd-my-content .woocommerce-message,
.nd-my-content .woocommerce-info,
.nd-my-content .woocommerce-error {
  background: #12222a; border: 1px solid #1d3541; border-top: 3px solid var(--nd-gold);
  border-radius: 12px; color: #e6eef1; margin: 0 0 24px;
}
.nd-my-content .woocommerce-error { border-top-color: var(--nd-pink); }

/* Logged-out endpoints WooCommerce renders on its own (lost / reset password):
   a bare form straight inside .woocommerce, so it gets the card chrome here. */
.nd-my-page .woocommerce > p { margin: 0 0 20px; max-width: 640px; color: #9ab0ba; font-size: 15px; line-height: 1.6; }
.nd-my-page .woocommerce > form {
  background: #101f26; border: 1px solid #1a303b; border-radius: 18px;
  padding: 30px 32px; margin: 0; max-width: 560px;
}
.nd-my-page .woocommerce > form .form-row { margin: 0 0 16px; padding: 0; width: 100%; float: none; }
.nd-my-page .woocommerce > form label {
  display: block; margin-bottom: 8px; color: #9ab0ba;
  font: 600 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
}
.woocommerce-account .nd-my-page .woocommerce > form input.input-text {
  width: 100%; box-sizing: border-box; height: 52px; padding: 0 16px;
  border: 1px solid #23404e; border-radius: 10px;
  background: #0b1519; color: #fff; font: 500 15px var(--nd-font);
}
.woocommerce-account .nd-my-page .woocommerce > form button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border: 2px solid var(--nd-gold); border-radius: 999px;
  background: transparent; color: var(--nd-gold) !important; cursor: pointer;
  font: 700 12px var(--nd-font); letter-spacing: .12em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
.woocommerce-account .nd-my-page .woocommerce > form button:hover { background: var(--nd-gold); color: #0b1519 !important; }

/* Login-screen notices sit under the heading, where the design's banner is. */
.nd-my-page .woocommerce-notices-wrapper .woocommerce-error,
.nd-my-page .woocommerce-notices-wrapper .woocommerce-message,
.nd-my-page .woocommerce-notices-wrapper .woocommerce-info {
  background: #1c1416; border: 1px solid #3a2029; border-left: 4px solid var(--nd-pink);
  border-radius: 12px; color: #e8dcdf; padding: 18px 20px 18px 46px; margin: 0 0 34px;
  font-size: 14.5px; line-height: 1.6;
}
.nd-my-page .woocommerce-notices-wrapper .woocommerce-message,
.nd-my-page .woocommerce-notices-wrapper .woocommerce-info {
  background: #101f26; border-color: #1d3541; border-left-color: var(--nd-gold); color: #e6eef1;
}
.nd-my-page .woocommerce-notices-wrapper a { color: var(--nd-gold); }

/* Pieces the mobile artboard adds — off until the 782px block turns them on.
   .nd-my-order-foot is a real element there and transparent here, so the
   status pill stays a direct flex child of the desktop order row. */
.nd-my-ident,
.nd-my-tabs,
.nd-my-again,
.nd-my-order-eyebrow,
.nd-my-order-note { display: none; }
.nd-my-order-foot { display: contents; }

@media (max-width: 900px) {
  .nd-my-page { padding: 40px 24px 72px; }
  .nd-my-shell { grid-template-columns: 1fr; gap: 26px; }
  .nd-my-nav { position: static; top: auto; }
  .nd-my-login, .nd-my-two, .nd-my-addresses { grid-template-columns: 1fr; }
  .nd-my-stats { grid-template-columns: 1fr 1fr; }
  .nd-my-content .form-row-first, .nd-my-content .form-row-last { width: 100%; float: none; }
}

/* ---- Logged-in mobile account (Claude design: Nerdy.co.za My Account Mobile).
   Switches at the theme's header breakpoint so the tab bar arrives with the
   mobile header. Rules that would also hit the logged-out login screen are
   scoped with .logged-in; the rest touch elements that only exist logged in. */
@media (max-width: 782px) {
  .logged-in .nd-my-page { padding: 22px 18px 0; }
  .logged-in .nd-my-container { padding-bottom: 88px; }
  .logged-in .nd-my-title { font-size: 44px; line-height: .86; }
  .logged-in .nd-my-title br { display: none; }
  .logged-in .nd-my-badge, .logged-in .nd-my-rule { display: none; }
  /* Clear the fixed bar so the last footer row stays reachable. */
  body.woocommerce-account.logged-in .ndf { padding-bottom: 80px; }

  .nd-my-ident { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
  .nd-my-ident-av {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--nd-pink); color: #fff; font: 700 14px var(--nd-font);
  }
  .nd-my-ident-eyebrow { font: 600 12px var(--nd-font); letter-spacing: .16em; text-transform: uppercase; color: #8aa2ad; }
  .nd-my-ident-hi { margin-top: 2px; font: 700 16px var(--nd-font); }

  /* Sidebar becomes a pill row above the panel; log out drops to the bottom.
     display:contents lets the shell order all three without moving markup. */
  /* align-items:start comes from the desktop grid; without stretch the pill
     row sizes to max-content and pushes the page wider than the viewport. */
  .nd-my-shell { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .nd-my-nav { display: contents; }
  /* The fixed tab bar already carries these endpoints — no second nav. */
  .nd-my-user, .nd-my-nav ul { display: none; }
  /* The artboard leads with the latest order, then the tiles, then buy-it-again;
     the desktop markup order is welcome → tiles → latest → nudge. */
  .nd-my-content { order: 2; min-width: 0; margin-top: 18px; display: flex; flex-direction: column; }
  .nd-my-content .woocommerce-message,
  .nd-my-content .woocommerce-info,
  .nd-my-content .woocommerce-error { order: -3; }
  .nd-my-order--latest { order: -2; }
  .nd-my-stats { order: -1; }
  .nd-my-out {
    order: 3; justify-content: center; margin-top: 26px; height: 52px;
    font: 700 12.5px var(--nd-font); letter-spacing: .14em; text-transform: uppercase;
  }

  /* Dashboard: latest-order card, two tiles, buy it again. */
  .nd-my-welcome, .nd-my-nudge, .nd-my-sec, .nd-my-stat--spend { display: none; }
  .nd-my-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .nd-my-stat { border-radius: 14px; padding: 18px; }
  .nd-my-stat-n, .nd-my-stat-n .amount, .nd-my-stat-n bdi { font-size: 30px; }
  .nd-my-stat-l { margin-top: 5px; font-size: 11px; }

  /* Order cards. Flattening .nd-my-order-id puts the date and the total on
     one line without a second copy of the total in the markup. */
  .nd-my-order { padding: 18px; gap: 0 10px; border-radius: 16px; align-items: center; }
  .nd-my-order-id { display: contents; }
  .nd-my-order-n {
    order: 1; display: block; width: auto; height: auto; padding: 0;
    background: none; font-size: 14px; white-space: nowrap;
  }
  .nd-my-order-n::before { content: "#"; }
  .nd-my-order .nd-my-pill { order: 2; margin-left: auto; padding: 5px 12px; font-size: 10.5px; }
  .nd-my-order-items { order: 3; width: 100%; margin-top: 12px; font-size: 16px; }
  .nd-my-order-meta { order: 4; display: flex; align-items: baseline; gap: 10px; margin-top: 4px; font-size: 13.5px; }
  .nd-my-order-total { order: 5; min-width: 0; text-align: left; font-size: 16px; }
  .nd-my-order-total::before { content: "·"; margin-right: 10px; color: #294a59; }
  .nd-my-order-acts { order: 6; width: 100%; margin-top: 16px; gap: 10px; }
  .nd-my-order-acts a { flex: 1; height: 46px; padding: 0; }

  /* Latest order: eyebrow + number, then a divided status foot and a wide CTA. */
  .nd-my-order--latest { background: #12222a; border-color: #1d3541; border-left: 4px solid var(--nd-gold); padding: 20px; }
  .nd-my-order-eyebrow {
    order: 0; display: block;
    font: 600 11px var(--nd-font); letter-spacing: .18em; text-transform: uppercase; color: var(--nd-gold);
  }
  .nd-my-order--latest .nd-my-order-n { order: 1; margin-left: auto; color: #8aa2ad; }
  .nd-my-order-amt { font-family: var(--nd-font-sticker); font-size: 15px; color: var(--nd-white); }
  .nd-my-order-sep { color: #294a59; }
  .nd-my-order-foot {
    order: 5; display: flex; width: 100%; align-items: center; gap: 10px;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid #192f39;
  }
  .nd-my-order-foot .nd-my-pill { order: 0; margin-left: 0; }
  .nd-my-order-note { display: block; color: #8aa2ad; font-size: 13px; }
  .nd-my-order--latest .nd-my-ghost {
    order: 6; width: 100%; height: 50px; margin-top: 18px;
    border: 2px solid var(--nd-gold); color: var(--nd-gold) !important;
    font-size: 13px; letter-spacing: .14em;
  }
  .nd-my-order--latest .nd-my-ghost:hover { background: var(--nd-gold); color: #0b1519 !important; }

  /* Buy it again */
  .nd-my-again { display: block; margin-top: 26px; }
  .nd-my-again-t { font-family: var(--nd-font-sticker); font-size: 17px; letter-spacing: -.01em; text-transform: uppercase; }
  .nd-my-again-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
  .nd-my-again-row {
    display: flex; align-items: center; gap: 13px; padding: 14px;
    background: #101f26; border: 1px solid #1a303b; border-radius: 14px;
  }
  .nd-my-again-thumb { display: block; flex: none; width: 56px; height: 56px; border-radius: 11px; background: #172c36; overflow: hidden; }
  .nd-my-again-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .nd-my-again-id { flex: 1; min-width: 0; }
  .nd-my-again-name {
    display: block; color: #fff !important; font: 700 15px var(--nd-font);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nd-my-again-price, .nd-my-again-price .amount, .nd-my-again-price bdi { margin-top: 2px; color: #8aa2ad; font-size: 13px; }
  .nd-my-again-row .nd-my-btn { flex: none; height: 44px; padding: 0 16px; font-size: 11.5px; }
  .nd-my-again-row .added_to_cart { display: none; }

  /* Addresses / details */
  .nd-my-addresses .nd-my-card { padding: 20px; border-radius: 16px; }
  .nd-my-addresses .nd-my-card-title { font-size: 17px; }
  .nd-my-addresses a.edit { width: 100%; align-self: stretch; height: 46px; margin-top: 18px; }
  .nd-my-label { margin-bottom: 7px; font-size: 11.5px; letter-spacing: .14em; }
  .nd-my-field { margin-bottom: 14px; }
  .nd-my-save { margin-top: 16px; }
  .nd-my-save .nd-my-btn { width: 100%; height: 54px; }

  /* Fixed tab bar. Column count follows the endpoints this store actually has. */
  .nd-my-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: #0b1519; border-top: 1px solid #192f39;
    padding: 8px 6px calc(12px + env(safe-area-inset-bottom));
  }
  .nd-my-tabs a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    height: 52px; text-align: center; color: #7b939f !important;
    font: 600 10.5px var(--nd-font); letter-spacing: .06em; text-transform: uppercase;
  }
  .nd-my-tabs a.is-active { color: var(--nd-gold) !important; font-weight: 700; }
  .nd-my-tab-ico { display: grid; place-items: center; }
}

@media (max-width: 560px) {
  /* Logged-out login screen only — the .logged-in rules above outrank these. */
  .nd-my-page { padding: 32px 18px 64px; }
  .nd-my-title { font-size: clamp(40px, 13vw, 56px); }
  .nd-my-card, .nd-my-welcome, .nd-my-card--form { padding: 20px; }
  .nd-my-content > form:not(.nd-my-form) { padding: 20px; }
  /* Woo floats the button inside its notices; at this width it lands mid-sentence.
     Stack it on its own line — DOM order varies per notice, so don't reorder. */
  .nd-my-content .woocommerce-message .button,
  .nd-my-content .woocommerce-info .button,
  .nd-my-content .woocommerce-error .button {
    float: none; display: flex; width: 100%; margin: 14px 0 0;
  }
}

/* ---------- Elementor pages (Contact, and the unused "Home") ----------
 * Contact's own top section carries a baked-in `#111` background, so the page
 * was already authored dark and inherits the theme cleanly — the only things
 * that actually broke are the inline SVG icons, whose `fill="#231F20"` is
 * near-invisible on it. Fix those, match the section ground to the theme, and
 * otherwise leave the Elementor kit alone.
 */
body.elementor-page .nd-content,
body.elementor-page .nd-page-wrap { padding: 0; }

/* ---------- Shop page v2 — Claude "Nerdy Shop Page" + Logo D ---------- */
.nd-logo { text-transform: none; letter-spacing: 0; }
.nd-logo-d {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 7px 13px 7px 10px; border: 1.5px solid rgba(47,212,188,.55);
  border-radius: 8px; background: linear-gradient(180deg,#123037,#0d2429);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.nd-logo-leds { display: flex; flex-direction: column; gap: 4px; }
.nd-logo-leds i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #20464d; }
.nd-logo-leds i:first-child { background: #2fd4bc; box-shadow: 0 0 7px rgba(47,212,188,.8); }
.nd-logo-leds i:nth-child(2) { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,.65); }
.nd-logo-divider { width: 1.5px; height: 27px; background: rgba(47,212,188,.25); }
.nd-logo-word { display: flex; align-items: baseline; color: #f2fbfa; font: 22px/1.05 var(--nd-font-sticker); letter-spacing: -.05em; }
.nd-logo-word small { margin-left: 4px; color: #2fd4bc; font: 700 9px var(--nd-font-mono); letter-spacing: .12em; }
.nd-logo-vents { display: flex; gap: 3px; margin-left: 2px; }
.nd-logo-vents i { display: block; width: 2px; height: 21px; border-radius: 2px; background: rgba(47,212,188,.26); }
.nd-logo-vents i:nth-child(2) { opacity: .7; }.nd-logo-vents i:nth-child(3) { opacity: .45; }

body.woocommerce-shop, body.tax-product_cat, body.search-results { background-color: #0a1a1f; background-image: radial-gradient(circle at 1px 1px,rgba(47,212,188,.075) 1px,transparent 0); background-size: 26px 26px; }
body.woocommerce-shop .nd-container, body.tax-product_cat .nd-container,
body.search-results .nd-container { max-width: 1600px; padding-left: clamp(20px,3.5vw,56px); padding-right: clamp(20px,3.5vw,56px); }
body.woocommerce-shop .nd-page-wrap, body.tax-product_cat .nd-page-wrap,
body.search-results .nd-page-wrap { padding-top: 34px; }
.woocommerce-shop .woocommerce-products-header, .tax-product_cat .woocommerce-products-header { margin-bottom: 26px; }
.woocommerce-shop h1.page-title { font-size: clamp(42px,5vw,64px); }

.nd-search-band { position: relative; margin: 0 0 28px; padding: 20px 0; border-top: 1px solid rgba(47,212,188,.14); border-bottom: 1px solid rgba(47,212,188,.14); }
.nd-search-band::after { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: linear-gradient(180deg,rgba(13,36,41,.92),rgba(10,26,31,.8)); }
.nd-search-band .nd-search { max-width: none; border: 1.5px solid rgba(47,212,188,.3); border-radius: 14px 5px 14px 5px; background: #0b2126; padding: 6px 6px 6px 18px; }
.nd-search-band .nd-search input[type="search"] { height: 44px; font-size: 15px; }
.nd-search-band .nd-search button { height: 44px; padding: 0 22px; border-radius: 10px 4px 10px 4px; background: #f97316; font-weight: 800; letter-spacing: .16em; }

.nd-shop-layout { grid-template-columns: 296px minmax(0,1fr); gap: clamp(24px,2.5vw,44px); }
.nd-shop-side { top: 108px; max-height: calc(100vh - 128px); padding: 22px 20px; border: 1px solid rgba(47,212,188,.2); border-radius: 22px 8px 22px 8px; background: #0b2126; }
.nd-cats-title { display: flex; align-items: center; justify-content: space-between; }
.nd-cats-title strong { color: #fff; font: 17px var(--nd-font-sticker); text-transform: uppercase; }
.nd-cats-title a { color: #f97316; font: 700 11px var(--nd-font); letter-spacing: .14em; text-transform: uppercase; }
.nd-cats-rule { width: 64px; height: 4px; margin: 6px 0 14px; border-radius: 3px; background: #f97316; transform: rotate(-1.4deg); }
.nd-cat { min-height: 42px; border-radius: 12px 5px 12px 5px; color: #b6cccd; font-size: 12.5px; }
.nd-cat + .nd-cat { border-top: 1px dashed rgba(47,212,188,.13); }
.nd-cat.is-on { background: rgba(47,212,188,.12); border-color: rgba(47,212,188,.5); color: #fff; }

.nd-toolbar { padding: 14px 18px; margin-bottom: 20px; border: 1px solid rgba(47,212,188,.18); border-radius: 16px 6px 16px 6px; background: #0b2126; }
.woocommerce .woocommerce-ordering select { height: 42px; border-color: rgba(47,212,188,.3); border-radius: 11px 4px 11px 4px; background: #0a1a1f; }
.nd-shop-main ul.products, .woocommerce .nd-shop-main ul.products { grid-template-columns: repeat(auto-fill,minmax(256px,1fr)); gap: 18px; }
.woocommerce ul.products li.product.nd-card, .woocommerce-page ul.products li.product.nd-card { background: #0b2126; border-color: rgba(47,212,188,.18); border-radius: 18px 6px 18px 6px; }
.woocommerce ul.products li.product.nd-card:hover { border-color: #f97316; }
.nd-card-media { aspect-ratio: 4/3; background: repeating-linear-gradient(135deg,#12292f 0 10px,#0f2429 10px 20px); }
.nd-card-media img { height: 100%; aspect-ratio: auto; }
.nd-card-badge { top: 12px; left: 12px; border-radius: 999px; background: #f97316; color: #0a1a1f; transform: rotate(-2deg); }
.nd-card-sale { top: 12px; right: 12px; background: #2fd4bc; transform: rotate(3deg); }
.nd-card-body { padding: 16px; }
.nd-card-head { display: block; min-height: 0; }
.nd-card-name { min-height: 58px; font-size: 15px; line-height: 1.3; }
.nd-card-price { flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px; margin-top: 6px; }
.nd-card-chip { border-radius: 8px 3px 8px 3px; font-size: 16px; transform: rotate(-1.5deg); }
.woocommerce ul.products li.product.nd-card .button { min-height: 48px; border-color: #f97316; border-radius: 12px 4px 12px 4px; background: transparent; }
.woocommerce ul.products li.product.nd-card .button::after { width: auto; height: auto; border: 0; background: transparent; }

@media (max-width: 1180px) {
  .nd-shop-layout { grid-template-columns: 1fr; }
  .nd-shop-side { position: static; max-height: none; order: 2; }
  .nd-cats { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nd-cats-title, .nd-cats-rule { flex-basis: 100%; }
  .nd-cat { border: 1px solid rgba(47,212,188,.18) !important; }
}
@media (max-width: 760px) {
  .nd-logo-d { gap: 8px; padding: 6px 9px 6px 7px; }
  .nd-logo-word { font-size: 19px; }.nd-logo-word small { font-size: 7px; }
  .nd-logo-vents i:nth-child(3) { display: none; }
  .nd-search-band { padding: 14px 0; }
  .nd-toolbar { align-items: stretch; flex-direction: column; }
  .woocommerce .woocommerce-ordering, .woocommerce .woocommerce-ordering select { width: 100%; }
}
body.elementor-page .elementor { background: var(--nd-black); color: var(--nd-white); }
body.elementor-page .elementor > .elementor-section:first-child { background-color: var(--nd-black) !important; }

/* Icon glyphs authored as near-black fills. */
body.elementor-page .elementor svg [fill="#231F20"],
body.elementor-page .elementor svg [fill="#231f20"],
body.elementor-page .elementor svg [fill="#000000"],
body.elementor-page .elementor svg [fill="#000"] { fill: var(--nd-gold); }

body.elementor-page .elementor a { color: var(--nd-gold); }
body.elementor-page .elementor a:hover { color: var(--nd-gold-bright); }
body.elementor-page .elementor input:not([type="submit"]),
body.elementor-page .elementor textarea,
body.elementor-page .elementor select {
  background: #101f26; color: var(--nd-white); border: 1px solid #294a59;
}
