/* Pull in the shared token :root and the self-hosted @font-face declarations so
   this file is self-sufficient: even if a stale compiled view hasn't picked up
   the new <link> tags yet, linking axiom-tokens.css alone still loads the tokens
   and fonts. (@import must stay at the very top. Browsers dedupe by URL, so this
   does not double-download when the layout also links them.) */
@import url('/assets/css/axiom-vars.css');
@import url('/assets/css/axiom-fonts.css');

/* ============================================================
   AXIOM — Design Tokens (C2 color · C24 spacing · C3 container)
   Single source of truth. Loaded AFTER the theme CSS so it can
   extend the theme's :root (--container-width, --color-dark-1)
   without fighting the established look.

   Foundation pass only: this file DEFINES the system and applies
   the accent to the single primary action. Broad component
   re-skinning (C1/C4/C5) is the later coherence milestone.
   ============================================================ */
/* NOTE: the design tokens (:root) now live in the shared single-source file
   public/assets/css/axiom-vars.css, loaded immediately BEFORE this file in
   layouts/web. This file is the Blade STOREFRONT SKIN only — it consumes those
   tokens (via the --ax-* aliases) and never redefines them. The redesign pages
   load the same axiom-vars.css, so both worlds share one token source. */

/* ============================================================
   TYPOGRAPHY FAMILIES — swap the theme's Poppins/Cormorant for the
   redesign fonts (Satoshi / Clash Display / Space Grotesk) across the
   storefront. FAMILY ONLY — sizes & line-heights are unchanged, so the
   token swap adds no layout/DOM change (Bucket B stays skin-only).
   Loaded after the theme, so these win. axiom-tokens.css is only
   included by layouts/web, so admin is untouched.
   ============================================================ */
body,
.page,
button, input, select, textarea, optgroup {
    font-family: var(--sans);
}

h1, h2, h3, h4, h5, h6,
.hs-title-1, .hs-title-2, .hs-title-3, .hs-title-4,
.section-title, .section-title-small, .ax-serif-title,
.ax-story__title, .ax-story__signature, .ax-empty__title,
.ax-acct__title {
    font-family: var(--display);
}

/* Mono for the redesign's eyebrow/label/tabular voice */
.eyebrow,
.ax-story__eyebrow, .ax-acct__eyebrow, .ax-empty__eyebrow,
.ax-trust__item, .ax-catnav__link,
.ax-card-variants, .ax-price-from, .ax-status, .ax-acct__panel-title {
    font-family: var(--mono);
}

/* Base canvas → true black, diamond-white text (aligns storefront to the redesign). */
body,
.page {
    background-color: var(--bg);
    color: var(--text);
}

/* ------------------------------------------------------------
   Sitewide surface remap. The theme paints most backgrounds via the
   .bg-dark-* utilities and dozens of internal rules that read the theme's
   own --color-dark-* variables (with !important), which is why the storefront
   still showed the theme's charcoal (#0e0e10) instead of the redesign black.
   Re-point those variables at the redesign tokens here (loaded AFTER the
   theme's :root) so every dark surface across the site flips to the redesign
   palette in one place — no per-page overrides needed.
   ------------------------------------------------------------ */
:root,
.dark-mode {
    /* NB: demo-elegant.css re-declares these on .dark-mode (which <body> carries),
       so a :root-only override is shadowed for everything inside <body>. Repeat the
       remap on .dark-mode — loaded after demo-elegant, equal specificity → this wins. */
    --color-dark-1: #050506;   /* was #0e0e10 — redesign true-black canvas (var(--bg)) */
    --color-dark-2: #16161a;   /* was #2c2c2c — redesign elevated surface (var(--surface)) */
    --color-dark-3: #0b0b0d;   /* was #272727 — redesign secondary surface (var(--bg-2)) */
}

/* Opt-in content container (C3). Apply during the coherence pass so inner
   pages share the home grid; defined here as the single width source. */
.ax-container {
    width: 100%;
    max-width: var(--ax-container);
    margin-inline: auto;
    padding-inline: var(--ax-gutter);
}

/* ------------------------------------------------------------
   Primary action accent (C2) — silver, kept scarce.
   Scoped to the product Add-to-Cart and an opt-in .ax-btn-accent
   so the accent reads as THE high-intent action on a page.
   ------------------------------------------------------------ */
#js-add-to-cart.btn,
.ax-btn-accent {
    background-color: var(--ax-accent);
    border-color: var(--ax-accent);
    color: var(--ax-accent-ink);
}

/* ------------------------------------------------------------
   Global accent CTA — the exact home `.btn-accent` look (luminous silver +
   rotating platinum glow + shine sweep), but usable OUTSIDE the .ax-rd editorial
   scope. Add `ax-cta` to any primary button on the shop / auth / cart / checkout /
   account pages so every high-intent CTA reads identically to the home page.
   ------------------------------------------------------------ */
/* `.axp-submit` (auth) and `.ax-pill` (cart / checkout / confirmation) are the
   primary pills the storefront already uses — give them the home glow automatically,
   no per-button markup change. (NB: deliberately NOT named `.ax-cta` — that class is
   already a flex button-row container in the .ax-rd editorial pages.) */
.axp-submit, .ax-pill {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(176deg, rgba(255,255,255,0.96) 0%, rgba(223,230,237,0.78) 46%, rgba(198,206,215,0.9) 100%);
    color: #16140f;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: inset 0 1.5px 1px rgba(255,255,255,1), inset 0 -3px 7px rgba(110,126,144,0.28), inset 16px 0 20px -16px rgba(150,205,255,0.65), inset -16px 0 20px -16px rgba(255,170,205,0.6), 0 16px 36px -16px rgba(218,230,244,0.5), 0 2px 6px rgba(0,0,0,0.32);
}
.axp-submit::before, .ax-pill::before {
    content: ''; position: absolute; inset: -40%; border-radius: 50%; z-index: -1; pointer-events: none;
    background: conic-gradient(from 0deg, rgba(120,180,255,0) 0%, rgba(120,180,255,0.5) 12%, rgba(255,255,255,0) 25%, rgba(255,210,130,0.45) 42%, rgba(255,255,255,0) 55%, rgba(255,150,200,0.5) 72%, rgba(255,255,255,0) 85%, rgba(120,180,255,0) 100%);
    opacity: 0.5; filter: blur(4px); animation: axCtaFire 11s linear infinite; transition: opacity .6s ease;
}
.axp-submit:hover::before, .ax-pill:hover::before { opacity: 0.8; animation-duration: 4.5s; }
@keyframes axCtaFire { to { transform: rotate(360deg); } }
.axp-submit::after, .ax-pill::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 45%; height: 100%; pointer-events: none;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.95), transparent); transform: skewX(-18deg); transition: transform 1.1s ease;
}
.axp-submit:hover::after, .ax-pill:hover::after { transform: translateX(430%) skewX(-18deg); }
.axp-submit:hover, .ax-pill:hover { background: linear-gradient(176deg, #ffffff 0%, #eef3f7 46%, #d4dce4 100%); color: #16140f; }
@media (prefers-reduced-motion: reduce) { .axp-submit::before, .axp-submit::after, .ax-pill::before, .ax-pill::after { animation: none; } }

/* ------------------------------------------------------------
   Cursor-following platinum glow for page header banners (about / collections /
   categories / detail heros), matching the home hero's glint. The banner section
   must be position:relative; drop a <span class="ax-banner-glow"> in it and the
   layout's banner-glow script sets --mx/--my on hover.
   ------------------------------------------------------------ */
.ax-banner-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity .5s ease;
    background: radial-gradient(460px 460px at var(--mx, 50%) var(--my, 42%), rgba(var(--glow), 0.14), transparent 62%);
}
.ax-banner-glow.on { opacity: 1; }
@media (pointer: coarse) { .ax-banner-glow { display: none; } }

#js-add-to-cart.btn:hover,
#js-add-to-cart.btn:focus,
#js-add-to-cart.btn:active,
.ax-btn-accent:hover,
.ax-btn-accent:focus,
.ax-btn-accent:active {
    background-color: var(--ax-accent-strong);
    border-color: var(--ax-accent-strong);
    color: var(--ax-accent-ink);
}

#js-add-to-cart.btn[disabled],
#js-add-to-cart.btn:disabled {
    opacity: .6;
}

/* ------------------------------------------------------------
   Trust-signal bar (C12) — "At Your Service"-style row of small
   icon + short-label pairs. Restrained, monochrome, on dark.
   - .ax-trust--block : under Add-to-Cart on the product page
   - .ax-trust--strip : thin full-width strip atop collection pages
   ------------------------------------------------------------ */
.ax-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ax-space-4) var(--ax-space-5);
    border-top: 1px solid var(--ax-line);
    border-bottom: 1px solid var(--ax-line);
    color: var(--ax-text-muted);
}

.ax-trust--block {
    margin-top: var(--ax-space-4);
    padding: var(--ax-space-4) 0;
}

.ax-trust--strip {
    justify-content: center;
    gap: var(--ax-space-4) var(--ax-space-6);
    padding: var(--ax-space-3) var(--ax-gutter);
    border-top: none;
}

.ax-trust__item {
    display: inline-flex;
    align-items: center;
    gap: var(--ax-space-2);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.ax-trust__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: var(--ax-accent); /* the one place the accent appears at rest, kept subtle */
    flex: 0 0 auto;
}

.ax-trust__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.ax-trust__label {
    color: var(--ax-text-muted);
}

@media (max-width: 575px) {
    .ax-trust {
        gap: var(--ax-space-3) var(--ax-space-4);
    }
    .ax-trust__item {
        font-size: 11px;
    }
}

/* ------------------------------------------------------------
   Product card micro-details (C36) — rendered from existing data
   only, restrained and monochrome. Badge uses the accent sparingly.
   ------------------------------------------------------------ */
.ax-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 3px 9px;
    color: var(--ax-accent);
    background: rgba(14, 14, 16, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 2px;
    backdrop-filter: blur(2px);
}

.ax-card-variants {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-text-muted);
    margin-top: 3px;
}

.ax-price-from {
    font-size: .78em;
    color: var(--ax-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ------------------------------------------------------------
   Form controls (brand) — replace the browser/Bootstrap default
   blue on focus, checked state, and native control UI with the
   silver accent, site-wide. Covers auth (remember-me), search,
   account, and filter checkboxes/selects. The filter <select>s
   keep their own !important dark styling; this fills the rest.
   ------------------------------------------------------------ */
select,
.form-select,
.form-control,
.form-check-input,
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: var(--ax-accent);
}

/* Native <select> dropdown popups: render in dark mode so the option hover/selected
   highlight is a muted dark tone instead of the OS bright blue. */
select,
.form-select {
    color-scheme: dark;
}

select option:checked,
.form-select option:checked {
    background: var(--ax-accent);
    color: var(--ax-accent-ink);
}

/* Checked checkbox / radio → silver fill instead of blue */
.form-check-input:checked {
    background-color: var(--ax-accent);
    border-color: var(--ax-accent);
}

/* Bootstrap's check/dot glyph is white and would vanish on the light silver
   fill — swap to a dark glyph for contrast. (Excludes switches; none on the
   storefront today, guarded for the future.) */
.form-check-input:checked[type="checkbox"]:not([role="switch"]) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230e0e10' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%230e0e10'/%3e%3c/svg%3e");
}

/* Focus rings → soft silver instead of blue (override Bootstrap's --bs-primary
   glow). Filter selects set their own focus via !important and are unaffected. */
.form-check-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: rgba(199, 204, 209, .55);
    box-shadow: 0 0 0 .2rem rgba(199, 204, 209, .22);
}

/* ------------------------------------------------------------
   Editorial storytelling (C20 collection · C21 product).
   Shared component, consistent with the About manifesto/triptych:
   dark, restrained, generous whitespace, one accent, hairlines.
   ------------------------------------------------------------ */
.ax-story {
    padding: var(--ax-space-8, 96px) 0;
}

.ax-story--tight {
    padding: clamp(76px, 12vh, 140px) 0;
    border-top: 1px solid var(--line);
}

.ax-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ax-accent, #c7ccd1);
    margin-bottom: var(--ax-space-3, 16px);
}

/* Signature mono rule, matching the home / contact / partners eyebrows. */
.ax-story__eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.ax-story__center .ax-story__eyebrow {
    display: flex;
    justify-content: center;
}

.ax-story__center .ax-story__eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.ax-story__title {
    font-size: clamp(1.7rem, 3.2vw, 2.9rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ax-text, #f5f5f5);
    margin: 0 0 var(--ax-space-4, 24px);
}

.ax-story__text {
    color: var(--ax-text-muted, #9a9ca1);
    font-size: 16px;
    line-height: 1.8;
    max-width: 62ch;
}

.ax-story__text p {
    margin: 0 0 var(--ax-space-3, 16px);
}

.ax-story__text p:last-child {
    margin-bottom: 0;
}

/* Image + copy split (How it's made / craft) */
.ax-story__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ax-space-7, 64px);
    align-items: center;
}

.ax-story__split--rev .ax-story__media {
    order: 2;
}

.ax-story__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--ax-line, #2c2c2c);
}

/* Hairline-separated short blocks (925 & care / guarantee) */
.ax-story__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--ax-space-6, 48px);
}

.ax-story__col-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .01em;
    color: var(--ax-text, #f5f5f5);
    margin: 0 0 var(--ax-space-2, 8px);
    padding-top: var(--ax-space-3, 16px);
    border-top: 1px solid var(--ax-line, #2c2c2c);
}

.ax-story__col-text {
    color: var(--ax-text-muted, #9a9ca1);
    font-size: 14px;
    line-height: 1.75;
}

/* Centered brand-story / closing band */
.ax-story__center {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.ax-story__signature {
    text-align: center;
    font-weight: 500;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-top: 6px;
    color: var(--ax-text, #f5f5f5);
}

/* PDP — per-product narrative paragraph (centered block, readable measure) */
.ax-pdp-narrative {
    max-width: 60ch;
    margin: var(--ax-space-2, 8px) auto 0;
    text-align: left;
}

/* PDP — closing finale (supporting line + CTA under the signature) */
.ax-pdp-finale__sub {
    margin: var(--ax-space-4, 24px) auto 0;
    max-width: 50ch;
    color: var(--ax-text-muted, #9a9ca1);
    font-size: 15px;
    line-height: 1.8;
}

.ax-pdp-finale__cta {
    margin-top: var(--ax-space-5, 32px);
}

@media (max-width: 767px) {
    .ax-story {
        padding: var(--ax-space-7, 64px) 0;
    }

    .ax-story__split {
        grid-template-columns: 1fr;
        gap: var(--ax-space-5, 32px);
    }

    .ax-story__split--rev .ax-story__media {
        order: 0;
    }

    .ax-story__cols {
        gap: var(--ax-space-4, 24px);
    }
}

/* ------------------------------------------------------------
   Category filter on listing pages — interactive pill/tab chips.
   Deliberately NOT a quiet uppercase row: rounded, bordered and
   clickable, with a filled-silver active chip, so it can never be
   confused with the informational trust strip sitting above it.
   ------------------------------------------------------------ */
.ax-catnav {
    border-bottom: 1px solid var(--ax-line, #2c2c2c);
}

.ax-catnav__track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: var(--ax-space-2, 8px);
    max-width: var(--ax-container, 1230px);
    margin: 0 auto;
    padding: var(--ax-space-4, 22px) var(--ax-gutter, 24px);
    overflow-x: auto;
    scrollbar-width: none;
}

.ax-catnav__track::-webkit-scrollbar {
    display: none;
}

.ax-catnav__link {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .015);
    transition:
        color .25s ease,
        border-color .25s ease,
        background-color .25s ease,
        transform .25s cubic-bezier(.22, 1, .36, 1);
}

.ax-catnav__link:hover {
    color: var(--ax-text, #f5f5f5);
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

.ax-catnav__link.is-active {
    color: var(--ax-accent-ink, #0e0e10);
    background: var(--ax-accent, #c7ccd1);
    border-color: var(--ax-accent, #c7ccd1);
    font-weight: 500;
}

@media (max-width: 767px) {
    .ax-catnav__track {
        justify-content: flex-start;
        gap: var(--ax-space-2, 8px);
    }
}

/* ============================================================
   TYPOGRAPHY — cross-page SIZE consistency (families unchanged).
   axiom-tokens.css loads last, so these win over the theme.
   Each heading ROLE gets ONE responsive size, identical on every
   page. Size / line-height only — font-family is never touched.
   ============================================================ */

/* Page hero title — e.g. "About AXIOM", "Book a Private Consultation",
   the collection-page hero. One size on every page. */
.hs-title-3 {
    font-size: clamp(25px, 3.4vw, 33px);
    line-height: 1.22;
}

/* In-page section heading — the two near-identical classes unified. */
.section-title,
.section-title-small {
    font-size: clamp(21px, 2.6vw, 27px);
    line-height: 1.3;
}

/* Section eyebrow / supporting subtitle. Declared last so it wins when
   combined on one element with a larger heading class (e.g. PDP label). */
.section-title-tiny {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.65;
}

/* Graceful price guard — made-to-order pieces with no set price */
.ax-price-request {
    font-size: .92em;
    letter-spacing: .02em;
    color: var(--ax-text-muted, #9a9ca1);
}

/* ============================================================
   MOTION & MICRO-INTERACTIONS — premium, restrained, never flimsy.
   Slow easing (.22,1,.36,1), short travel, long durations.
   All motion respects prefers-reduced-motion.
   ============================================================ */

/* ── Scroll reveal ──────────────────────────────────────────
   Base hidden state applies ONLY when JS flags support
   (html.js-reveal), so no-JS / older browsers see everything. */
html.js-reveal .ax-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .85s cubic-bezier(.22, 1, .36, 1),
        transform .85s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

html.js-reveal .ax-reveal.is-in {
    opacity: 1;
    transform: none;
}

html.js-reveal .ax-reveal[data-reveal-delay="1"] { transition-delay: .08s; }
html.js-reveal .ax-reveal[data-reveal-delay="2"] { transition-delay: .16s; }
html.js-reveal .ax-reveal[data-reveal-delay="3"] { transition-delay: .24s; }
html.js-reveal .ax-reveal[data-reveal-delay="4"] { transition-delay: .32s; }

/* ── Editorial media: slow zoom on hover ───────────────────── */
.ax-story__media {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.ax-story__media img {
    display: block;
}

/* Sheen sweep on hover (replaces the old zoom) — matches the product/index cards. */
.ax-story__media::after {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 45%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), rgba(190,225,255,0.25), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    transition: transform 0s, opacity 0s;
}

.ax-story__media:hover::after {
    opacity: 1;
    transform: translateX(360%) skewX(-18deg);
    transition: transform 1.1s var(--ease-out), opacity .2s var(--ease-out);
}

/* ── Product cards: subtle lift to partner the existing image zoom ── */
.works-grid .work-item {
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.works-grid .work-item:hover {
    transform: translateY(-5px);
}

/* ── Primary brand buttons: a quiet lift + soft halo ───────── */
.btn-mod.btn-circle {
    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        background-color .35s ease,
        color .35s ease,
        border-color .35s ease;
}

.btn-mod.btn-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgba(255, 255, 255, .35);
}

/* ── Animated underline for inline editorial links ─────────── */
.ax-bc-link {
    position: relative;
    text-decoration: none;
}

.ax-bc-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.ax-bc-link:hover::after {
    transform: scaleX(1);
}

/* ── Quiet hover on the within-collection category nav ─────── */
.ax-catnav__link {
    position: relative;
}

@media (prefers-reduced-motion: reduce) {

    html.js-reveal .ax-reveal,
    .ax-story__media img,
    .works-grid .work-item,
    .btn-mod.btn-circle {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ── Magnetic CTAs — buttons drift subtly toward the cursor (JS-driven).
   Short transition = smooth "pull" + spring-back. Refined, not bouncy. ── */
.ax-magnetic {
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .ax-magnetic {
        transition: none !important;
        transform: none !important;
    }
}

/* ------------------------------------------------------------
   ax-sheen — the shimmer relied on a transparent text-fill that
   left words (e.g. About "legacy", "AXIOM") invisible for ~3s
   until the one-shot animation finished, and collapsed the space
   before inline-block spans. Render these words as clean solid
   text instead: elegant, reliable, and on-brand.
   ------------------------------------------------------------ */
.ax-sheen,
.ax-sheen.ax-in-view,
.ax-sheen.ax-sheen-done {
    display: inline !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: currentColor;
    animation: none !important;
}

/* ------------------------------------------------------------
   Product size-guide modal — tidy the table. With the In/Cm unit
   toggle hiding one column, the remaining 3 sprawled across a wide
   dialog leaving an awkward middle gap. Narrow the dialog, add cell
   padding, and right-align the price into a clean spec/price list.
   ------------------------------------------------------------ */
.ax-sg-dialog {
    width: min(520px, 100%);
}

.ax-sg-table {
    table-layout: fixed;
    width: 100%;
}

.ax-sg-table th,
.ax-sg-table td {
    padding: 12px 8px;
}

.ax-sg-table th:first-child,
.ax-sg-table td:first-child {
    padding-left: 0;
    width: 22%;
}

.ax-sg-table th:last-child,
.ax-sg-table td:last-child {
    padding-right: 0;
}

.ax-sg-table .ax-sg-col-price,
.ax-sg-table th.ax-sg-col-price,
.ax-sg-price {
    text-align: right;
}

/* ============================================================
   ACCOUNT AREA — clean, minimal, premium. Sidebar nav + hairline
   panels, no Bootstrap cards/shadows. Shared by /account,
   /account/orders and /account/addresses.
   ============================================================ */
.ax-acct {
    max-width: 1060px;
    margin: 0 auto;
}

.ax-acct__head {
    margin-bottom: var(--ax-space-6, 48px);
}

.ax-acct__eyebrow {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ax-accent, #c7ccd1);
    margin-bottom: 12px;
}

.ax-acct__title {
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.2;
    color: var(--ax-text, #f5f5f5);
    margin: 0;
}

.ax-acct__grid {
    display: grid;
    grid-template-columns: 232px 1fr;
    gap: var(--ax-space-6, 48px);
    align-items: start;
}

@media (max-width: 859px) {
    .ax-acct__grid {
        grid-template-columns: 1fr;
        gap: var(--ax-space-5, 32px);
    }
}

/* Sidebar */
.ax-acct__nav {
    position: sticky;
    top: 110px;
}

@media (max-width: 859px) {
    .ax-acct__nav {
        position: static;
    }
}

.ax-acct__id {
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--ax-line, #2c2c2c);
}

.ax-acct__id-name {
    font-size: 15px;
    color: var(--ax-text, #f5f5f5);
}

.ax-acct__id-mail {
    font-size: 12.5px;
    color: var(--ax-text-muted, #9a9ca1);
    margin-top: 3px;
    word-break: break-word;
}

.ax-acct__navlist {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.ax-acct__navlink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ax-text-muted, #9a9ca1);
    font-size: 13.5px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.ax-acct__navlink svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    opacity: .85;
}

.ax-acct__navlink:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--ax-text, #f5f5f5);
    text-decoration: none;
}

.ax-acct__navlink.is-active {
    background: rgba(255, 255, 255, .06);
    color: var(--ax-text, #f5f5f5);
}

.ax-acct__navlink.is-active svg {
    color: var(--ax-accent, #c7ccd1);
    opacity: 1;
}

.ax-acct__signout {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ax-line, #2c2c2c);
}

.ax-acct__signout .ax-acct__navlink {
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

/* Panels */
.ax-acct__panel {
    background: #101012;
    border: 1px solid var(--ax-line, #2c2c2c);
    border-radius: 14px;
    padding: 28px;
}

.ax-acct__panel+.ax-acct__panel {
    margin-top: 20px;
}

.ax-acct__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ax-acct__panel-title {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    margin: 0;
}

/* Profile definition list */
.ax-acct__dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 28px;
}

@media (max-width: 479px) {
    .ax-acct__dl {
        grid-template-columns: 1fr;
    }
}

.ax-acct__dt {
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    margin-bottom: 6px;
}

.ax-acct__dd {
    font-size: 15px;
    color: var(--ax-text, #f5f5f5);
    word-break: break-word;
}

/* Order rows */
.ax-acct__order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--ax-line, #2c2c2c);
}

.ax-acct__order:first-child {
    border-top: 0;
    padding-top: 0;
}

.ax-acct__order-ref {
    font-size: 14.5px;
    color: var(--ax-text, #f5f5f5);
}

.ax-acct__order-date {
    font-size: 12.5px;
    color: var(--ax-text-muted, #9a9ca1);
    margin-top: 3px;
}

.ax-acct__order-amt {
    font-size: 14.5px;
    color: var(--ax-text, #f5f5f5);
    white-space: nowrap;
}

/* Status pill */
.ax-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--ax-text-muted, #9a9ca1);
}

.ax-status--paid {
    color: #0e0e10;
    background: var(--ax-accent, #c7ccd1);
    border-color: var(--ax-accent, #c7ccd1);
}

.ax-status--failed,
.ax-status--cancelled {
    color: #e7a6a6;
    border-color: rgba(200, 110, 110, .5);
}

/* Empty state */
.ax-acct__empty {
    text-align: center;
    padding: 26px 10px;
    color: var(--ax-text-muted, #9a9ca1);
    font-size: 14px;
}

/* Address cards */
.ax-addr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 639px) {
    .ax-addr-grid {
        grid-template-columns: 1fr;
    }
}

/* Account forms — clean dark inputs */
.ax-acct__panel .form-label,
.ax-acct__form .form-label {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    margin-bottom: 7px;
}

.ax-acct__panel .form-control,
.ax-acct__form .form-control {
    background: #0c0c0e;
    border: 1px solid var(--ax-line, #2c2c2c);
    border-radius: 10px;
    color: var(--ax-text, #f5f5f5);
    padding: 11px 13px;
    font-size: 14px;
}

.ax-acct__panel .form-control:focus,
.ax-acct__form .form-control:focus {
    border-color: rgba(255, 255, 255, .4);
    background: #0c0c0e;
    color: #fff;
    box-shadow: none;
}

.ax-acct__panel .form-control::placeholder,
.ax-acct__form .form-control::placeholder {
    color: rgba(255, 255, 255, .3);
}

/* Address cards */
.ax-addr-item {
    border: 1px solid var(--ax-line, #2c2c2c);
    border-radius: 12px;
    padding: 18px;
    background: #0c0c0e;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ax-addr-item.is-primary {
    border-color: rgba(255, 255, 255, .3);
    background: linear-gradient(135deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .01) 60%);
}

.ax-addr-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ax-addr-item__name {
    font-size: 14.5px;
    color: var(--ax-text, #f5f5f5);
}

.ax-addr-item__body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ax-text-muted, #9a9ca1);
}

.ax-addr-item__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
}

.ax-addr-act {
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}

.ax-addr-act:hover {
    color: var(--ax-text, #f5f5f5);
}

.ax-addr-act--danger:hover {
    color: #e7a6a6;
}

.ax-addr-badge2 {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--ax-accent, #c7ccd1);
    color: #0e0e10;
}

/* ============================================================
   EMPTY / ERROR STATES — one premium, icon-led pattern reused
   across cart, wishlist, 404 and account.
   ============================================================ */
.ax-empty {
    text-align: center;
    max-width: 460px;
    margin: 40px auto;
    padding: 20px;
}

.ax-empty__icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 1px solid var(--ax-line, #2c2c2c);
    align-items: center;
    justify-content: center;
    color: var(--ax-accent, #c7ccd1);
    margin-bottom: 24px;
}

.ax-empty__icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
}

.ax-empty__eyebrow {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    margin-bottom: 14px;
}

.ax-empty__title {
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.2;
    color: var(--ax-text, #f5f5f5);
    margin: 0 0 12px;
}

.ax-empty__text {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ax-text-muted, #9a9ca1);
    max-width: 40ch;
    margin: 0 auto 28px;
}

/* Branded page-loader — convert the theme spinner into a quiet AXIOM wordmark.
   Scoped to .page-loader so other spinners are untouched. */
.page-loader .loader.ax-loader-mark {
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-indent: 0 !important;
    margin: 0 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
    font-size: 30px !important;
    font-weight: 500;
    letter-spacing: 4px;
    color: #fff;
    animation: axLoaderPulse 1.5s ease-in-out infinite !important;
}

@keyframes axLoaderPulse {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
}

/* Size-guide modal — ensure heading/intro/body text is light on the dark dialog
   (the theme .ax-sg-title set no colour, so it was rendering near-invisible). */
.ax-sg-dialog {
    color: var(--ax-text, #f5f5f5);
}

.ax-sg-title {
    color: var(--ax-text, #f5f5f5);
}

.ax-sg-intro {
    color: var(--ax-text-muted, #9a9ca1);
}

/* FAQ accordion */
.ax-faq {
    border-top: 1px solid var(--ax-line, #2c2c2c);
}

.ax-faq__item {
    border-bottom: 1px solid var(--ax-line, #2c2c2c);
}

.ax-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: 0;
    padding: 22px 4px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--ax-text, #f5f5f5);
    transition: opacity .2s ease;
}

.ax-faq__q:hover {
    opacity: .82;
}

.ax-faq__icon {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    color: var(--ax-accent, #c7ccd1);
}

.ax-faq__a {
    padding: 0 4px 24px;
    max-width: 64ch;
}

.ax-faq__a p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ax-text-muted, #9a9ca1);
    margin: 0;
}

/* HowTo (ring-size) steps */
.ax-howto {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: howto;
}

.ax-howto__step {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--ax-line, #2c2c2c);
}

.ax-howto__step:first-child {
    border-top: 0;
    padding-top: 0;
}

.ax-howto__num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--ax-line, #2c2c2c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--ax-accent, #c7ccd1);
}

.ax-howto__name {
    font-size: 15px;
    color: var(--ax-text, #f5f5f5);
    margin-bottom: 4px;
}

.ax-howto__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ax-text-muted, #9a9ca1);
    margin: 0;
    max-width: 60ch;
}

/* Product rating stars (PDP) — only shown when a real rating is set in admin */
.ax-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ax-rating__star {
    color: rgba(255, 255, 255, .2);
    font-size: 14px;
}

.ax-rating__star.is-on {
    color: var(--ax-accent, #c7ccd1);
}

.ax-rating__meta {
    font-size: 12.5px;
    color: var(--ax-text-muted, #9a9ca1);
}

/* ============================================================
   Blog/Journal detail — the theme sets body copy to 20px and the
   content headings inherit the huge base size. Bring the article
   to a premium reading scale.
   ============================================================ */
.blog-item-body {
    font-size: 16px;
    line-height: 1.85;
}

.blog-item-body p {
    margin-bottom: 1.15em;
}

.blog-item-body h2 {
    font-size: clamp(20px, 2.4vw, 25px);
    line-height: 1.3;
    margin: 1.6em 0 .5em;
}

.blog-item-body h3 {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.35;
    margin: 1.4em 0 .4em;
}

.blog-item-body ul,
.blog-item-body ol {
    font-size: 16px;
    line-height: 1.8;
}

.blog-item-body li {
    margin-bottom: .4em;
}

.blog-item .lead {
    font-size: 18px;
    line-height: 1.7;
}

/* Hide native number-input spinners where a custom +/- stepper exists
   (cart qty), so there aren't two sets of increment/decrement controls. */
.js-qty-input::-webkit-outer-spin-button,
.js-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.js-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Public pagination (Journal etc.) — visible on the dark theme */
.ax-pagination .pagination {
    gap: 6px;
    margin: 0;
}

.ax-pagination .page-link {
    background: transparent;
    border: 1px solid var(--ax-line, #2c2c2c);
    color: var(--ax-text, #f5f5f5);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
}

.ax-pagination .page-link:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.ax-pagination .page-item.active .page-link {
    background: var(--ax-accent, #c7ccd1);
    border-color: var(--ax-accent, #c7ccd1);
    color: #0e0e10;
}

.ax-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: var(--ax-line, #2c2c2c);
    color: rgba(255, 255, 255, .3);
}

/* ============================================================
   Contact page — premium hairline method cards + dark form inputs.
   Scoped to #contact so theme .contact-item elsewhere is untouched.
   ============================================================ */
#contact .contact-item {
    height: 100%;
    padding: 28px 24px;
    border: 1px solid var(--ax-line, #2c2c2c);
    border-radius: 14px;
    background: #101012;
    transition: border-color .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

#contact .contact-item:hover {
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-3px);
}

#contact .ci-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--ax-line, #2c2c2c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ax-accent, #c7ccd1);
    margin-bottom: 18px;
}

/* Theme floats/offsets the icon and pads the text — reset so they stack cleanly */
#contact .ci-title,
#contact .ci-text,
#contact .ci-link {
    position: static;
    padding-left: 0;
    margin-left: 0;
}

/* Kill the theme's full-bleed dark circle ::before — we draw our own bordered ring */
#contact .ci-icon::before {
    display: none;
}

#contact .ci-icon i {
    position: relative;
    font-size: 18px;
}

#contact .ci-title {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    margin-bottom: 8px;
}

#contact .ci-text {
    font-size: 15px;
    color: var(--ax-text, #f5f5f5);
    line-height: 1.6;
}

#contact .ci-link {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

#contact .ci-link a {
    color: var(--ax-text-muted, #9a9ca1);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    transition: color .15s ease, border-color .15s ease;
}

#contact .ci-link a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

#contact .contact-form label {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ax-text-muted, #9a9ca1);
    margin-bottom: 7px;
}

#contact .contact-form .form-control {
    background: #0c0c0e;
    border: 1px solid var(--ax-line, #2c2c2c);
    border-radius: 10px;
    color: var(--ax-text, #f5f5f5);
    padding: 12px 14px;
}

#contact .contact-form .form-control:focus {
    background: #0c0c0e;
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
    box-shadow: none;
}

#contact .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, .3);
}

/* ------------------------------------------------------------------
   Auth pages (.axp) — browser autofill fix. The storefront theme forces
   a dark -webkit-text-fill-color on every autofilled input, which made
   saved/typed credentials invisible on these dark fields. Restore the
   light text + dark field (inset box-shadow keeps the field dark while
   the browser paints its autofill background behind it).
   ------------------------------------------------------------------ */
.axp .axp-input:-webkit-autofill,
.axp .axp-input:-webkit-autofill:hover,
.axp .axp-input:-webkit-autofill:focus,
.axp .axp-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    -webkit-box-shadow: 0 0 0 100px var(--bg-2) inset !important;
    box-shadow: 0 0 0 100px var(--bg-2) inset !important;
    transition: background-color 9999s ease-out 0s;
}

/* ------------------------------------------------------------------
   Reveal failsafe / reduced motion. The storefront theme hides
   scroll-reveal elements (.wow-p starts at ~0 opacity) until JS
   animates them in. For visitors who prefer reduced motion, skip the
   animation entirely and show content immediately — this also guards
   against any reveal misfire leaving a section blank.
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .wow-p,
    .wow,
    .wow-menubar {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
