
/* New Era shop styles. Every value comes from tokens.css; classes are prefixed ne- */

.ne-page { background: var(--surface); color: var(--ink); font: 400 16px/26px var(--font-sans); margin: 0; min-height: 100%; }
.ne-page *, .ne-page *::before, .ne-page *::after { box-sizing: border-box; }
.ne-page :where(a) { color: inherit; }
.ne-page :where(button, input, select) { font: inherit; color: inherit; }
.ne-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ne-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-8); }
.ne-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; flex: none; }
.ne-icon--sm { width: 16px; height: 16px; }
.ne-muted { color: var(--ink-muted); }
.ne-serif { font-family: var(--font-display); }
.ne-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; font-size: 14px; }
.ne-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.ne-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Type helpers that mirror tokens.json styles */
.ne-display { font: 400 56px/60px var(--font-display); margin: 0; }
.ne-h1 { font: 400 32px/40px var(--font-display); margin: 0; }
.ne-h2 { font: 600 24px/30px var(--font-display); margin: 0; }
.ne-label { font: 500 13px/18px var(--font-sans); letter-spacing: .01em; }
.ne-small { font: 400 14px/22px var(--font-sans); }

/* Announcement + header */
.ne-announce { background: var(--surface-sunken); color: var(--ink-muted); font-size: 13px; line-height: 36px; text-align: center; }
.ne-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.ne-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; }
.ne-nav { display: flex; gap: var(--space-8); font-size: 14px; }
.ne-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.ne-nav a:hover, .ne-nav a[aria-current] { border-bottom-color: var(--ink); }
.ne-logo { display: inline-flex; line-height: 0; }
.ne-logo img { height: 60px; width: auto; }
.ne-logo--sm img { height: 44px; }
.ne-logo--lg img { height: 72px; }
.ne-logo__silver { display: none; }
[data-theme="noir"] .ne-logo__dark { display: none; }
[data-theme="noir"] .ne-logo__silver { display: block; }
.ne-tools { display: flex; justify-content: flex-end; gap: var(--space-4); align-items: center; }
.ne-iconbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: var(--radius-pill); color: var(--ink); }
.ne-iconbtn:hover { background: var(--surface-sunken); }
.ne-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-size: 10px; line-height: 16px; text-align: center; }

/* Breadcrumb */
.ne-crumbs { display: flex; gap: var(--space-2); font-size: 13px; color: var(--ink-muted); padding: var(--space-4) 0; }
.ne-crumbs a { text-decoration: none; }
.ne-crumbs a:hover { color: var(--ink); }

/* Buttons */
.ne-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-8); border: 1px solid transparent; border-radius: var(--radius-none); font: 500 14px/1 var(--font-sans); letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ne-btn--primary { background: var(--action); color: var(--on-action); }
.ne-btn--primary:hover { opacity: .85; }
.ne-btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.ne-btn--secondary:hover { background: var(--ink); color: var(--surface); }
.ne-btn--ghost { background: transparent; color: var(--ink); height: 40px; padding: 0 var(--space-4); border-color: var(--line-strong); }
.ne-btn--block { width: 100%; }
.ne-btn:disabled { background: var(--surface-sunken); color: var(--ink-muted); border-color: transparent; cursor: default; }

/* Chips (sub-categories, active filters) */
.ne-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ne-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: 14px; text-decoration: none; cursor: pointer; }
.ne-chip:hover { border-color: var(--ink); }
.ne-chip[aria-pressed="true"], .ne-chip--on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.ne-chip--filter { background: var(--orchid-mist); border-color: transparent; color: var(--ink); }
.ne-chip--filter .ne-icon { width: 14px; height: 14px; }

/* Form controls */
.ne-field { display: grid; gap: 6px; }
.ne-field__label { font-size: 13px; color: var(--ink-muted); }
.ne-input, .ne-select { height: 48px; width: 100%; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 15px/1 var(--font-sans); }
.ne-input::placeholder { color: var(--ink-muted); }
.ne-select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.ne-select--bare { border: 0; height: 40px; padding-left: 0; width: auto; font-size: 14px; background-position: calc(100% - 20px) 17px, calc(100% - 15px) 17px; }
.ne-field--error .ne-input { border-color: var(--plum); }
.ne-field__hint { font-size: 13px; color: var(--ink-muted); }
.ne-check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; padding: 6px 0; }
.ne-check input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); display: grid; place-items: center; flex: none; cursor: pointer; }
.ne-check input:checked { background: var(--action); border-color: var(--action); }
.ne-check input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--on-action); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.ne-check input[type="radio"] { border-radius: var(--radius-pill); }
.ne-check input[type="radio"]:checked { background: var(--surface); border-color: var(--ink); }
.ne-check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: var(--radius-pill); background: var(--ink); transform: none; }
.ne-check__count { margin-left: auto; color: var(--ink-muted); font-size: 13px; }
.ne-option { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border: 1px solid var(--line); cursor: pointer; }
.ne-option--on { border-color: var(--ink); }
.ne-option__body { flex: 1; }
.ne-option__title { font-weight: 500; font-size: 15px; }
.ne-option__meta { font-size: 13px; color: var(--ink-muted); }

/* Colour swatches and size selector */
.ne-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.ne-swatch { width: 28px; height: 28px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); padding: 0; cursor: pointer; position: relative; background-clip: content-box; }
.ne-swatch--sm { width: 20px; height: 20px; }
.ne-swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); border-radius: var(--radius-pill); }
.ne-sizes { display: flex; gap: var(--space-2); }
.ne-size { min-width: 88px; height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 14px; border-radius: var(--radius-none); }
.ne-size[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ne-size:disabled { color: var(--ink-muted); text-decoration: line-through; cursor: default; }

/* Quantity stepper */
.ne-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); height: 40px; }
.ne-stepper button { width: 40px; height: 38px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.ne-stepper button:hover { background: var(--surface-sunken); }
.ne-stepper span { min-width: 32px; text-align: center; font-size: 14px; }

/* Accordion */
.ne-acc { border-top: 1px solid var(--line); }
.ne-acc details { border-bottom: 1px solid var(--line); }
.ne-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-size: 15px; font-weight: 500; }
.ne-acc summary::-webkit-details-marker { display: none; }
.ne-acc summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--ink-muted); }
.ne-acc details[open] summary::after { content: "\2212"; }
.ne-acc__body { padding: 0 0 var(--space-4); font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* Bag drawings stand in for product photography */
.ne-photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface-product); display: grid; place-items: center; overflow: hidden; color: var(--mauve); }
.ne-photo > svg.ne-bag { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1; }
.ne-photo--square { aspect-ratio: 1; }
.ne-photo--wide { aspect-ratio: auto; height: 100%; }
.ne-tag { position: absolute; top: var(--space-4); left: var(--space-4); font-size: 13px; color: var(--orchid); font-weight: 500; }
.ne-wish { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.ne-wish[aria-pressed="true"] .ne-icon { fill: currentColor; }

/* Product card + grid */
.ne-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-16) var(--space-8); }
.ne-grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.ne-card { display: block; text-decoration: none; color: var(--ink); }
.ne-card__name { margin: var(--space-4) 0 0; font: 500 14px/20px var(--font-sans); }
.ne-card__price { margin: 2px 0 0; font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.ne-card__colors { display: flex; gap: 6px; margin-top: 10px; }
.ne-card__colors i { width: 10px; height: 10px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); }

/* Listing page */
.ne-listhead { display: flex; justify-content: space-between; align-items: flex-end; padding: var(--space-8) 0 var(--space-4); }
.ne-toolbar { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: var(--space-4); }
.ne-listing { display: grid; grid-template-columns: 248px 1fr; gap: var(--space-16); padding: var(--space-8) 0 var(--space-16); }
.ne-filters { display: grid; align-content: start; }
.ne-filter { border-bottom: 1px solid var(--line); padding: var(--space-4) 0; }
.ne-filter__title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; margin: 0 0 var(--space-2); }
.ne-range { position: relative; height: 24px; margin: var(--space-2) 0; }
.ne-range__track { position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); }
.ne-range__fill { position: absolute; top: 11px; height: 2px; background: var(--ink); }
.ne-range__knob { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--ink); }
.ne-range__vals { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); }
.ne-more { display: grid; justify-items: center; gap: var(--space-4); margin-top: var(--space-16); font-size: 14px; color: var(--ink-muted); }
.ne-progress { width: 240px; height: 2px; background: var(--line); position: relative; }
.ne-progress i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }

/* Product page */
.ne-pdp { display: grid; grid-template-columns: 88px 1fr 440px; gap: var(--space-8); padding: var(--space-4) 0 var(--space-16); align-items: start; }
.ne-thumbs { display: grid; gap: var(--space-2); }
.ne-thumbs .ne-photo { border: 1px solid transparent; }
.ne-thumbs .ne-photo[aria-current] { border-color: var(--ink); }
.ne-pdp__info { display: grid; gap: var(--space-8); position: sticky; top: 0; }
.ne-pdp__title { font: 400 40px/46px var(--font-display); margin: 4px 0 6px; }
.ne-pdp__price { font-size: 16px; }
.ne-pdp__row { display: grid; gap: 12px; }
.ne-pdp__rowhead { display: flex; justify-content: space-between; font-size: 14px; }
.ne-pdp__actions { display: grid; grid-template-columns: 1fr 48px; gap: var(--space-2); }
.ne-pdp__actions .ne-btn--secondary { padding: 0; }
.ne-perks { display: grid; gap: 12px; font-size: 14px; }
.ne-perks div { display: flex; gap: 12px; align-items: center; }

/* Section heads */
.ne-section { padding: var(--space-16) 0; }
.ne-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-8); }

/* Cart + checkout */
.ne-cart { display: grid; grid-template-columns: 1fr 400px; gap: var(--space-16); padding: var(--space-8) 0 var(--space-16); align-items: start; }
.ne-item { display: grid; grid-template-columns: 144px 1fr auto; gap: var(--space-8); padding: var(--space-8) 0; border-bottom: 1px solid var(--line); }
.ne-item:first-child { border-top: 1px solid var(--line); }
.ne-item__name { font: 500 16px/24px var(--font-sans); margin: 0; }
.ne-item__meta { font-size: 14px; color: var(--ink-muted); margin: 4px 0 0; }
.ne-item__bottom { display: flex; gap: var(--space-8); align-items: center; margin-top: var(--space-4); }
.ne-item__links { display: flex; gap: var(--space-4); }
.ne-item__price { font-size: 15px; text-align: right; }
.ne-summary { background: var(--surface-raised); border: 1px solid var(--line); padding: var(--space-8); display: grid; gap: var(--space-4); }
.ne-summary__row { display: flex; justify-content: space-between; font-size: 14px; }
.ne-summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 500; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ne-promo { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.ne-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.ne-pay span { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); color: var(--ink-muted); }
.ne-mini { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; font-size: 14px; }
.ne-steps { display: flex; gap: var(--space-8); font-size: 14px; color: var(--ink-muted); padding: var(--space-8) 0 0; }
.ne-steps b { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.ne-form { display: grid; gap: var(--space-4); }
.ne-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.ne-fieldset { border: 0; padding: 0; margin: 0 0 var(--space-8); display: grid; gap: var(--space-4); }
.ne-fieldset legend { font: 600 24px/30px var(--font-display); margin-bottom: var(--space-4); padding: 0; }

/* Account */
.ne-account { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-16); padding: var(--space-8) 0 var(--space-16); }
.ne-side { display: grid; align-content: start; gap: 2px; font-size: 15px; }
.ne-side a { padding: 10px 0; text-decoration: none; color: var(--ink-muted); }
.ne-side a[aria-current] { color: var(--ink); font-weight: 500; }
.ne-panel { border: 1px solid var(--line); padding: var(--space-8); background: var(--surface-raised); }
.ne-status { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-8); }
.ne-status div { position: relative; padding-top: var(--space-4); font-size: 13px; color: var(--ink-muted); border-top: 2px solid var(--line); }
.ne-status div.done { border-top-color: var(--ink); color: var(--ink); }
.ne-status div.now { border-top-color: var(--orchid); color: var(--ink); font-weight: 500; }
.ne-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.ne-kv dt { font-size: 13px; color: var(--ink-muted); }
.ne-kv dd { margin: 4px 0 0; font-size: 15px; }

/* Home */
.ne-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.ne-hero__text { display: grid; align-content: center; gap: var(--space-8); padding: var(--space-16); background: var(--surface); }
.ne-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.ne-tile { text-decoration: none; }
.ne-tile p { margin: 12px 0 0; font-size: 15px; }
.ne-band { background: var(--surface); color: var(--ink); }
.ne-band__row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 420px; }
.ne-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); text-align: center; }
.ne-services div { display: grid; justify-items: center; gap: 10px; font-size: 14px; }
.ne-services b { font-weight: 500; font-size: 15px; }

/* Footer */
.ne-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); padding: var(--space-16) 0 var(--space-8); font-size: 14px; }
.ne-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); }
.ne-footer h4 { font: 500 14px/20px var(--font-sans); margin: 0 0 var(--space-4); }
.ne-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-muted); }
.ne-footer a { text-decoration: none; }
.ne-footer__base { display: flex; justify-content: space-between; margin-top: var(--space-16); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; }

/* Drawer (mobile filters, mini bag) */
.ne-drawer { background: var(--surface); display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.ne-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4); border-bottom: 1px solid var(--line); }
.ne-drawer__body { padding: 0 var(--space-4); overflow: hidden; }
.ne-drawer__foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-4); border-top: 1px solid var(--line); }

/* Phone frame for mobile screens */
.ne-phone { width: 390px; height: 844px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.ne-mhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; padding: 0 var(--space-2); border-bottom: 1px solid var(--line); }
.ne-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-2); padding: 0 var(--space-2); }
.ne-mbar { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4); background: var(--surface); border-top: 1px solid var(--line); }
