/* ============================================================
   ACBIZ COMMERCE — Landing page
   Token system
   Color   ink #0C1220 · ink-raised #121A2E · cobalt #3B5BFF ·
           amber #F5A623 · paper #F3F5FA · slate #8791A8
   Type    display: Space Grotesk · body: IBM Plex Sans ·
           utility/mono: IBM Plex Mono
   ============================================================ */

.commerce-page {
    --ink: #0C1220;
    --ink-raised: #121A2E;
    --ink-line: rgba(255, 255, 255, 0.09);
    --cobalt: #3B5BFF;
    --cobalt-soft: rgba(59, 91, 255, 0.14);
    --amber: #F5A623;
    --paper: #F3F5FA;
    --paper-line: #E1E5F0;
    --ink-text: #0C1220;
    --slate: #6E7891;
    --slate-soft: #8791A8;
    --white: #FFFFFF;

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    margin: 0;
    background: var(--paper);
    color: var(--ink-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.commerce-page * { box-sizing: border-box; }

.commerce-page a { color: inherit; text-decoration: none; }

.commerce-page h1, .commerce-page h2, .commerce-page h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 0;
}

.commerce-page code {
    font-family: var(--font-mono);
    background: rgba(59, 91, 255, 0.08);
    color: var(--cobalt);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ── Buttons ─────────────────────────────────────────────── */
.cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.cx-btn:hover { transform: translateY(-1px); }
.cx-btn--primary { background: var(--amber); color: #26170a; }
.cx-btn--primary:hover { background: #ffb545; }
.cx-btn--ghost { border-color: var(--ink-line); color: var(--white); }
.cx-btn--ghost.cx-btn--on-light,
.cx-nav .cx-btn--ghost { border-color: var(--paper-line); color: var(--ink-text); }
.cx-btn--lg { padding: 13px 26px; font-size: 15px; }

/* ── Nav ─────────────────────────────────────────────────── */
.cx-nav {
    background: var(--white);
    border-bottom: 1px solid var(--paper-line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.cx-nav__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cx-brand { display: flex; align-items: center; gap: 10px; }
.cx-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}
.cx-brand__mark--small { width: 28px; height: 28px; font-size: 11px; }
.cx-brand__text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--ink-text);
}
.cx-brand__text em { font-style: normal; color: var(--cobalt); }
.cx-nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--slate); }
.cx-nav__links a:hover { color: var(--ink-text); }
.cx-nav__actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 760px) {
    .cx-nav__links { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.cx-hero {
    background: var(--ink);
    color: var(--white);
    padding-bottom: 8px;
}
.cx-hero__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 96px 24px 64px;
}
.cx-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 20px;
}
.cx-hero__title {
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.08;
    font-weight: 600;
    max-width: 780px;
}
.cx-hero__sub {
    margin: 24px 0 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}
.cx-hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Signature element: the routing ticker — literalizes the "one engine,
   many transaction types" thesis as a live-looking flow. */
.cx-ticker {
    border-top: 1px solid var(--ink-line);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}
.cx-ticker__label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate-soft);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1160px;
    margin: 0 auto;
    flex-shrink: 0;
}
.cx-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35D07F;
    box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6);
    animation: cx-pulse 1.8s infinite;
}
@keyframes cx-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(53, 208, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}
.cx-ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cx-ticker__row {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: cx-scroll 28s linear infinite;
}
@keyframes cx-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.cx-ticker__pill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid var(--ink-line);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .cx-ticker__row { animation: none; }
    .cx-pulse { animation: none; }
}
@media (max-width: 640px) {
    .cx-ticker { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Stats (ledger row, not cards) ──────────────────────────── */
.cx-stats { background: var(--ink-raised); color: var(--white); }
.cx-stats__inner { max-width: 1160px; margin: 0 auto; padding: 28px 24px 34px; }
.cx-stats__note {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--slate-soft);
    margin-bottom: 18px;
}
.cx-stats__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ink-line);
}
.cx-stat {
    padding: 22px 20px 4px 0;
    border-right: 1px solid var(--ink-line);
}
.cx-stat:last-child { border-right: none; }
.cx-stat__num {
    display: block;
    font-family: var(--font-mono);
    font-size: 34px;
    font-weight: 500;
    color: var(--amber);
}
.cx-stat__label { display: block; margin-top: 6px; font-size: 13px; color: var(--slate-soft); }

@media (max-width: 640px) {
    .cx-stats__row { grid-template-columns: 1fr; }
    .cx-stat { border-right: none; border-bottom: 1px solid var(--ink-line); padding-bottom: 18px; }
}

/* ── Section heads ──────────────────────────────────────────── */
.cx-section__head { max-width: 640px; margin: 0 auto; padding: 72px 24px 8px; text-align: left; }
.cx-modules .cx-section__head,
.cx-catalog .cx-section__head,
.cx-editions .cx-section__head { max-width: 1160px; }
.cx-section__head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 8px; }
.cx-section__sub { color: var(--slate); font-size: 15px; line-height: 1.6; margin: 14px 0 0; max-width: 560px; }
.cx-section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .cx-section__head--split { align-items: flex-start; }
}

/* ── Modules grid ────────────────────────────────────────────── */
.cx-module-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--paper-line);
    border: 1px solid var(--paper-line);
}
.cx-module {
    background: var(--white);
    padding: 26px 24px;
    position: relative;
}
.cx-module__bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--cobalt);
    border-radius: 2px;
    margin-bottom: 16px;
}
.cx-module h3 { font-size: 16.5px; margin-bottom: 8px; }
.cx-module p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--slate); }

@media (max-width: 900px) {
    .cx-module-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .cx-module-grid { grid-template-columns: 1fr; }
}

/* ── Catalog (DB-driven products) ───────────────────────────── */
.cx-catalog { background: var(--paper); }
.cx-product-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cx-product {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cx-product--link {
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.cx-product--link:hover {
    border-color: var(--cobalt);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 18, 32, 0.06);
}
.cx-product__top { display: flex; align-items: center; gap: 8px; }
.cx-product__icon { font-size: 18px; }
.cx-product__type {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cobalt);
    background: var(--cobalt-soft);
    padding: 3px 8px;
    border-radius: 5px;
}
.cx-product__badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #9A5B00;
    background: #FDEEDA;
    padding: 3px 8px;
    border-radius: 5px;
}
.cx-product__name { font-size: 16px; }
.cx-product__desc { margin: 0; font-size: 13.5px; color: var(--slate); line-height: 1.5; flex: 1; }
.cx-product__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--paper-line);
    padding-top: 12px;
    margin-top: 4px;
}
.cx-product__price { font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
.cx-product__category { font-size: 12px; color: var(--slate-soft); }

.cx-empty {
    max-width: 1160px;
    margin: 0 auto;
    padding: 8px 24px 32px;
    color: var(--slate);
    font-size: 14px;
}

.cx-categories {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cx-category-chip {
    font-size: 13px;
    padding: 7px 14px;
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    color: var(--slate);
    background: var(--white);
}

@media (max-width: 900px) {
    .cx-product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .cx-product-grid { grid-template-columns: 1fr; }
}

/* ── Editions ────────────────────────────────────────────────── */
.cx-editions { background: var(--white); border-top: 1px solid var(--paper-line); }
.cx-edition-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 88px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cx-edition {
    border: 1px solid var(--paper-line);
    border-radius: 10px;
    padding: 26px 22px;
}
.cx-edition--highlight { border-color: var(--ink); background: var(--ink); color: var(--white); }
.cx-edition--highlight p { color: rgba(255, 255, 255, 0.68); }
.cx-edition h3 { font-size: 17px; margin-bottom: 10px; }
.cx-edition p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--slate); }

@media (max-width: 760px) {
    .cx-edition-grid { grid-template-columns: 1fr; }
}

/* ── CTA band ────────────────────────────────────────────────── */
.cx-cta { background: var(--ink); color: var(--white); }
.cx-cta__inner { max-width: 1160px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.cx-cta h2 { font-size: clamp(26px, 3.6vw, 38px); max-width: 620px; margin: 0 auto; }
.cx-cta .cx-hero__actions { justify-content: center; margin-top: 30px; }

/* ── Footer ──────────────────────────────────────────────────── */
.cx-footer { background: var(--ink); border-top: 1px solid var(--ink-line); }
.cx-footer__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cx-footer__brand { display: flex; align-items: center; gap: 10px; }
.cx-footer__name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--white); }
.cx-footer__tag { font-size: 12.5px; color: var(--slate-soft); }
.cx-footer__meta { font-family: var(--font-mono); font-size: 12px; color: var(--slate-soft); display: flex; gap: 8px; }

/* ── Scroll-reveal (restrained; respects reduced motion) ─────── */
.cx-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.cx-reveal.cx-reveal--in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .cx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Focus visibility ────────────────────────────────────────── */
.commerce-page a:focus-visible,
.commerce-page button:focus-visible {
    outline: 2px solid var(--cobalt);
    outline-offset: 2px;
}

/* ══════════════════════ Catalog page ══════════════════════ */
.cx-page-head { background: var(--ink); color: var(--white); }
.cx-page-head__inner { max-width: 1160px; margin: 0 auto; padding: 64px 24px 40px; }
.cx-page-head h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 6px; max-width: 640px; }

.cx-search { display: flex; gap: 10px; margin-top: 28px; max-width: 480px; }
.cx-search__input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid var(--ink-line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
}
.cx-search__input::placeholder { color: var(--slate-soft); }
.cx-search__input:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }

.cx-catalog-body { background: var(--paper); }
.cx-catalog-body__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px 88px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

.cx-filters__group { margin-bottom: 30px; }
.cx-filters__group h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-soft);
    margin-bottom: 12px;
}
.cx-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    color: var(--slate);
    padding: 7px 0;
}
.cx-filter-link:hover { color: var(--ink-text); }
.cx-filter-link--active { color: var(--cobalt); font-weight: 600; }
.cx-filter-link__count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate-soft);
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    padding: 1px 7px;
}

.cx-product-grid--catalog { padding: 0; margin: 0; }

.cx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.cx-pagination__status { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
.cx-pagination__disabled {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-soft);
    padding: 10px 20px;
    opacity: 0.5;
}

@media (max-width: 820px) {
    .cx-catalog-body__inner { grid-template-columns: 1fr; }
    .cx-filters { display: flex; gap: 28px; overflow-x: auto; padding-bottom: 6px; }
    .cx-filters__group { margin-bottom: 0; min-width: 200px; }
}

/* ══════════════════════ Product detail page ══════════════════════ */
.cx-breadcrumb { background: var(--white); border-bottom: 1px solid var(--paper-line); }
.cx-breadcrumb__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--slate-soft);
    flex-wrap: wrap;
}
.cx-breadcrumb__inner a:hover { color: var(--cobalt); }
.cx-breadcrumb__current { color: var(--ink-text); font-weight: 500; }

.cx-product-detail { background: var(--paper); }
.cx-product-detail__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}
.cx-product-detail__top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.cx-product-detail__icon { font-size: 34px; line-height: 1; }
.cx-product-detail__name { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.cx-product-detail__short { font-size: 17px; color: var(--slate); line-height: 1.55; margin: 0 0 20px; }
.cx-product-detail__desc { font-size: 15px; color: var(--ink-text); line-height: 1.75; max-width: 640px; }

.cx-buy-box {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 88px;
}
.cx-buy-box__price { font-family: var(--font-mono); font-size: 28px; font-weight: 500; }
.cx-buy-box__category { font-size: 13px; color: var(--slate-soft); margin-bottom: 10px; }
.cx-buy-box__cta { width: 100%; margin-top: 8px; }
.cx-buy-box__note { font-size: 12.5px; color: var(--slate-soft); line-height: 1.5; margin-top: 12px; }

.cx-related { background: var(--white); border-top: 1px solid var(--paper-line); padding-bottom: 20px; }

@media (max-width: 860px) {
    .cx-product-detail__inner { grid-template-columns: 1fr; }
    .cx-buy-box { position: static; }
}

/* ══════════════════════ Cart ══════════════════════ */

/* accessible-but-hidden labels */
.cx-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* nav cart icon */
.cx-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 8px;
    margin-right: 2px;
}
.cx-cart-link:hover { background: var(--paper); }
.cx-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--amber);
    color: #26170a;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cx-btn--sm { padding: 7px 12px; font-size: 13px; }

.cx-cart-body { background: var(--paper); }
.cx-cart-body__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px 88px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.cx-cart-items {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    overflow: hidden;
}
.cx-cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--paper-line);
}
.cx-cart-item__icon { font-size: 24px; }
.cx-cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cx-cart-item__name { font-weight: 600; font-size: 15px; color: var(--ink-text); }
.cx-cart-item__name:hover { color: var(--cobalt); }
.cx-cart-item__price-note { font-size: 11.5px; color: var(--amber); }
.cx-cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cx-cart-item__qty input[type="number"] {
    width: 56px;
    padding: 7px 8px;
    border: 1px solid var(--paper-line);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
}
.cx-cart-item__total {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}
.cx-cart-item__remove {
    font-size: 12.5px;
    color: var(--slate-soft);
    white-space: nowrap;
}
.cx-cart-item__remove:hover { color: #d64545; }

.cx-cart-clear {
    display: block;
    text-align: right;
    padding: 14px 20px;
    font-size: 12.5px;
    color: var(--slate-soft);
}
.cx-cart-clear:hover { color: #d64545; }

.cx-order-summary {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 88px;
}
.cx-order-summary h3 { font-size: 15px; margin-bottom: 16px; }
.cx-order-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--paper-line);
}
.cx-order-summary__note { font-size: 12px; color: var(--slate-soft); margin: 8px 0 18px; line-height: 1.5; }
.cx-order-summary__checkout {
    display: block;
    width: 100%;
    text-align: center;
}
.cx-order-summary__soon { font-size: 11.5px; color: var(--slate-soft); text-align: center; margin: 10px 0 4px; line-height: 1.5; }
.cx-order-summary__continue { display: block; text-align: center; font-size: 13px; color: var(--cobalt); margin-top: 14px; }

.cx-empty--cart { text-align: center; padding: 60px 24px; }
.cx-empty--cart p { font-size: 15px; color: var(--slate); margin-bottom: 18px; }

.cx-buy-box__form { display: flex; gap: 8px; margin-top: 8px; }
.cx-buy-box__qty {
    width: 64px;
    padding: 0 10px;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.cx-buy-box__form .cx-buy-box__cta { flex: 1; margin-top: 0; }

@media (max-width: 760px) {
    .cx-cart-body__inner { grid-template-columns: 1fr; }
    .cx-order-summary { position: static; }
    .cx-cart-item {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "icon info total"
            "qty qty remove";
        row-gap: 10px;
    }
    .cx-cart-item__icon { grid-area: icon; }
    .cx-cart-item__info { grid-area: info; }
    .cx-cart-item__total { grid-area: total; }
    .cx-cart-item__qty { grid-area: qty; }
    .cx-cart-item__remove { grid-area: remove; justify-self: end; }
}

/* ══════════════════════ Checkout ══════════════════════ */
.cx-checkout-body { background: var(--paper); }
.cx-checkout-body__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 40px 24px 88px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.cx-checkout-form {
    background: var(--white);
    border: 1px solid var(--paper-line);
    border-radius: 12px;
    padding: 30px;
}
.cx-form-section { margin-bottom: 28px; }
.cx-form-section:last-of-type { margin-bottom: 24px; }
.cx-form-section h3 { font-size: 14px; margin-bottom: 16px; }
.cx-optional, .cx-required { font-weight: 400; }
.cx-optional { color: var(--slate-soft); font-size: 12px; }
.cx-required { color: #d64545; }

.cx-form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.cx-form-row label { font-size: 13px; font-weight: 500; color: var(--slate); }
.cx-form-row input,
.cx-form-row textarea {
    padding: 10px 12px;
    border: 1px solid var(--paper-line);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-text);
    resize: vertical;
}
.cx-form-row input:focus,
.cx-form-row textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; }
.cx-field-error { font-size: 12px; color: #d64545; }

.cx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
    .cx-form-grid { grid-template-columns: 1fr; }
}

.cx-checkout-submit { width: 100%; }

.cx-order-summary__items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.cx-order-summary__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: start;
    font-size: 13px;
}
.cx-order-summary__item-icon { font-size: 15px; }
.cx-order-summary__item-name { color: var(--ink-text); line-height: 1.4; }
.cx-order-summary__item-qty { color: var(--slate-soft); font-family: var(--font-mono); font-size: 11.5px; }
.cx-order-summary__item-price { font-family: var(--font-mono); white-space: nowrap; }
.cx-order-summary__row--total { font-weight: 600; font-size: 15px; }

@media (max-width: 860px) {
    .cx-checkout-body__inner { grid-template-columns: 1fr; }
}

/* ══════════════════════ Confirmation ══════════════════════ */
.cx-confirmation { background: var(--paper); }
.cx-confirmation__inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    text-align: center;
}
.cx-confirmation__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E4F7EC;
    color: #1E9E5A;
    font-size: 22px;
    margin-bottom: 18px;
}
.cx-confirmation h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 6px 0 12px; }
.cx-confirmation__sub { margin: 0 auto 22px; }
.cx-confirmation__notice {
    background: #FDEEDA;
    color: #7A4A00;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 28px;
    text-align: left;
}
.cx-confirmation__summary {
    text-align: left;
    margin-bottom: 28px;
    position: static;
}
.cx-confirmation__notice--success {
    background: #E4F7EC;
    color: #1E9E5A;
}
.cx-confirmation__pay-cta,
.cx-pay-cta {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}
