/*
 * PHPEITOR storefront UX layer — "AI-first editorial" look, same design language
 * as amvsoft.tech: Geist / Geist Mono, bone canvas, hairlines, numbered mono
 * labels and one orange accent. Loaded after the prebuilt Tailwind bundle and
 * the theme-section CSS (components/layouts/index.blade.php), so no rebuild.
 *
 *  0. Tokens            4. Header           7. Store theme (type, cards, buttons,
 *  1. Logo sweep        5. "¿Cómo comprar?"     theme sections, services, footer)
 *  2. Toasts            6. AI network
 *  3. Scroll reveal
 * Everything respects prefers-reduced-motion.
 */

/* 0. Tokens */
:root {
    --ux-ease: cubic-bezier(.22, 1, .36, 1);
    --ux-navy: #060C3B;
    --ux-neon: #F43F5E;

    --ux-canvas: #F7F7F4;
    --ux-canvas-soft: #FAFAF7;
    --ux-card: #FFFFFF;
    --ux-ink: #26251E;
    --ux-body: #5A5852;
    --ux-muted: #807D72;
    --ux-muted-soft: #A09C92;
    --ux-line: #E6E5E0;
    --ux-line-soft: #EFEEE8;
    --ux-line-strong: #CFCDC4;
    --ux-accent: #F54E00;
    --ux-accent-active: #D04200;

    --ux-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ux-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 1. Logo: a band of neon light sweeps once across the OUTER edge of the letters
      (gradient + SMIL animation in the SVG; the mask hides the seams between
      letter pieces). Replaces the old infinite dashed loop. */
.phpeitor-trace,
.phpeitor-brand-header .phpeitor-trace {
    fill: none;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-dasharray: none;
    opacity: 1;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px rgba(244, 63, 94, .9));
    animation: none;
}

.phpeitor-brandmark .phpeitor-trace { stroke-width: 5; filter: drop-shadow(0 0 8px rgba(244, 63, 94, .9)); }

a:hover > .phpeitor-brand-header use:first-of-type { fill: #0B1460; }

/* 2. Toasts (components/flash-group/item.blade.php) — light card, colored dot */
.ux-toast {
    position: relative;
    display: flex;
    width: min(380px, calc(100vw - 32px));
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 16px;
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: 14px;
    font-family: var(--ux-sans);
    color: var(--ux-ink);
    background: var(--ux-card);
    box-shadow: 0 16px 40px -20px rgba(38, 37, 30, .35), 0 1px 2px rgba(38, 37, 30, .06);
    pointer-events: auto;
}

.ux-toast__icon {
    display: grid;
    flex: none;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    color: var(--ux-tone);
    background: var(--ux-canvas-soft);
}

.ux-toast__icon svg { width: 14px; height: 14px; }

.ux-toast__body { flex: 1; min-width: 0; padding-top: 1px; }

.ux-toast__title {
    margin: 0 0 3px;
    font-family: var(--ux-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.ux-toast__msg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ux-ink); overflow-wrap: anywhere; }

.ux-toast__close {
    display: grid;
    flex: none;
    width: 26px;
    height: 26px;
    margin: -2px -2px 0 0;
    place-items: center;
    border-radius: 999px;
    color: var(--ux-muted);
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.ux-toast__close:hover { color: var(--ux-ink); background: var(--ux-line-soft); }
.ux-toast__close:focus-visible { outline: 2px solid var(--ux-line-strong); outline-offset: 1px; }
.ux-toast__close svg { width: 13px; height: 13px; }

.ux-toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    transform-origin: left;
    background: var(--ux-tone);
    animation: ux-toast-bar linear forwards;
    animation-duration: var(--ux-duration, 4500ms);
}

.ux-toast:hover .ux-toast__bar,
.ux-toast:focus-within .ux-toast__bar { animation-play-state: paused; }

.ux-toast--success { --ux-tone: #15803D; }
.ux-toast--error   { --ux-tone: #D92D20; }
.ux-toast--warning { --ux-tone: var(--ux-accent); }
.ux-toast--info    { --ux-tone: var(--ux-ink); }

@keyframes ux-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* 3. Scroll reveal (classes added by phpeitor-ux.js only to content below the fold) */
.ux-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ux-ease), transform .7s var(--ux-ease);
    transition-delay: var(--ux-delay, 0ms);
}

.ux-reveal.is-in { opacity: 1; transform: none; }

/* Product cards: quiet lift + hairline darkens on hover */
/* Product card text (components/products/card.blade.php): the name breaks between words
   and stops at 2 lines with "…"; each price stays in one piece ("S/. 79.00" never splits),
   the struck-through one smaller, and they wrap as whole prices when there is no room. */
.ux-card__name {
    display: -webkit-box;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ux-card__price { flex-wrap: wrap; column-gap: 8px !important; row-gap: 0; }
.ux-card__price p { white-space: nowrap; }
.ux-card__price .line-through { font-size: .86em; font-weight: 400; }

@media (max-width: 639px) {
    .ux-card__name { white-space: normal !important; }
    .ux-card__price { line-height: 1.35 !important; }
}

.ux-card {
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: 16px !important;
    background: var(--ux-card);
    transition: transform .35s var(--ux-ease), border-color .35s ease, box-shadow .35s var(--ux-ease) !important;
}

@media (hover: hover) {
    .ux-card:hover { transform: translateY(-3px); border-color: var(--ux-line-strong); box-shadow: 0 18px 40px -28px rgba(38, 37, 30, .45) !important; }
}

/* 4. Header: bone canvas, hairline; frosted once the page scrolls */
header.sticky { transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }

/* The blur lives on a ::before layer: backdrop-filter on <header> itself would make it
   the containing block of its position:fixed children (cart drawer, mobile menu) and
   clip them to the header's 80px once the page is scrolled. */
header.sticky.ux-scrolled {
    background: transparent !important;
    box-shadow: 0 1px 0 var(--ux-line) !important;
}

header.sticky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: rgba(247, 247, 244, .86);
    backdrop-filter: saturate(1.2) blur(14px);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);
    pointer-events: none;
    transition: opacity .3s ease;
}

header.sticky.ux-scrolled::before { opacity: 1; }

/* =====================================================================
 * 5. "¿Cómo comprar?" (home/partials/purchase-flow.blade.php)
 *    Three white step cards on hairlines; an orange signal travels between them.
 * ===================================================================== */
.ux-flow { margin-top: 72px; }
.ux-flow__title { margin: 0 0 28px; }

.ux-flow__panel {
    position: relative;
    padding: 0;
    border: 0;
    background: none;
}

.ux-flow__steps { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }

.ux-flow__node {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--ux-line);
    border-radius: 16px;
    color: var(--ux-body);
    background: var(--ux-card);
    animation: ux-flow-node 6s ease-in-out infinite;
    animation-delay: calc(var(--n) * 2s);
}

@keyframes ux-flow-node {
    0%, 30%, 100% { border-color: var(--ux-line); box-shadow: none; }
    8%, 22% { border-color: var(--ux-line-strong); box-shadow: 0 18px 40px -28px rgba(38, 37, 30, .5); }
}

/* Mono step label, like "/ 01" on amvsoft */
.ux-flow__step {
    order: -2;
    margin-bottom: 18px;
    font-family: var(--ux-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--ux-muted);
}

.ux-flow__step::before { content: "/ 0"; }

.ux-flow__icon {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    color: var(--ux-ink);
    background: var(--ux-canvas-soft);
    transition: color .3s ease, border-color .3s ease;
}

.ux-flow__node:hover .ux-flow__icon { color: var(--ux-accent); border-color: var(--ux-line-strong); }
.ux-flow__icon svg { width: 16px; height: 16px; }

.ux-flow__node strong { font-family: var(--ux-sans); font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--ux-ink); }
.ux-flow__text { font-size: 14px; color: var(--ux-body); }

.ux-flow__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 18px; }

/* Category chips; the highlight walks across them (Admin → UI → SaaS → eCommerce) */
.ux-flow__cats a {
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    font-family: var(--ux-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ux-ink);
    background: var(--ux-canvas-soft);
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
    animation: ux-flow-pick 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 1.5s);
}

.ux-flow__cats a:hover,
.ux-flow__cats a:focus-visible { border-color: var(--ux-ink); color: #FFF; background: var(--ux-ink); animation: none; }
.ux-flow__cats a:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 2px; }

@keyframes ux-flow-pick {
    0%, 22%, 100% { border-color: var(--ux-line); }
    6%, 16% { border-color: var(--ux-accent); color: var(--ux-accent-active); }
}

.ux-flow__pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* Payment brand tiles: they lift one after another while step 2 is lit
   (node 2 lights at 2s of the 6s cycle), with a light sweep across each. */
.ux-pay {
    position: relative;
    display: block;
    width: 58px;
    height: 37px;
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 1px 2px rgba(38, 37, 30, .06);
    animation: ux-pay-lift 6s cubic-bezier(.34, 1.56, .64, 1) infinite;
    animation-delay: calc(2.25s + var(--i) * .16s);
    transition: transform .25s var(--ux-ease), box-shadow .25s ease, border-color .2s ease;
}

.ux-pay--yape { border-color: #742284; }
.ux-pay svg { display: block; width: 100%; height: 100%; }

.ux-pay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%) -120% 0 / 250% 100% no-repeat;
    animation: ux-pay-shine 6s ease-in-out infinite;
    animation-delay: inherit;
    pointer-events: none;
}

@keyframes ux-pay-lift {
    0%, 14%, 100% { transform: none; box-shadow: 0 1px 2px rgba(38, 37, 30, .06); }
    5% { transform: translateY(-5px); box-shadow: 0 12px 20px -12px rgba(38, 37, 30, .45); }
}

@keyframes ux-pay-shine {
    0% { background-position: -120% 0; }
    12%, 100% { background-position: 220% 0; }
}

.ux-pay:hover { border-color: var(--ux-line-strong); transform: translateY(-3px); box-shadow: 0 12px 20px -12px rgba(38, 37, 30, .45); animation-play-state: paused; }

/* Mastercard: the two circles part and meet again */
.ux-pay--mc .mc-l, .ux-pay--mc .mc-r { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.ux-pay--mc .mc-m { transition: opacity .2s ease; }
.ux-pay--mc:hover .mc-l { transform: translateX(-3px); }
.ux-pay--mc:hover .mc-r { transform: translateX(3px); }
.ux-pay--mc:hover .mc-m { opacity: 0; }

.ux-flow__secure { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--ux-muted); }
.ux-flow__secure svg { width: 13px; height: 13px; color: #15803D; }

/* ---- Step 3: download demo (.ux-dl). Cycle 6s, starts at 4s (when node 3 lights):
   3–27 % downloading (arrow drops, 0→100 %), 28–90 % done (green, check), then reset. */
@property --ux-dl-p { syntax: "<integer>"; inherits: true; initial-value: 0; }

.ux-dl {
    --ux-dl-ok: #15803D;
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--ux-line-soft);
    border-radius: 12px;
    background: var(--ux-canvas-soft);
    animation: ux-dl-box 6s ease-in-out 4s infinite;
}

.ux-dl__file { position: relative; flex: none; width: 34px; height: 41px; }
.ux-dl__file svg { width: 100%; height: 100%; overflow: visible; }

.ux-dl__sheet { fill: #FFF; stroke: var(--ux-ink); stroke-width: 2; }
.ux-dl__fold { stroke: var(--ux-ink); stroke-width: 2; stroke-linejoin: round; }
.ux-dl__tag { fill: var(--ux-ink); animation: ux-dl-tag 6s ease-in-out 4s infinite; }
.ux-dl__tagtxt { font: 700 7px/1 var(--ux-mono); letter-spacing: .04em; fill: #FFF; }

.ux-dl__arrow { stroke: var(--ux-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; animation: ux-dl-arrow 6s linear 4s infinite; }

.ux-dl__check { opacity: 0; transform-box: fill-box; transform-origin: center; animation: ux-dl-check 6s cubic-bezier(.34, 1.56, .64, 1) 4s infinite; }
.ux-dl__check circle { fill: var(--ux-dl-ok); stroke: #FFF; stroke-width: 2; }
.ux-dl__check path { stroke: #FFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ux-dl__body { display: grid; flex: 1; gap: 6px; min-width: 0; }
.ux-dl__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--ux-mono); font-size: 11.5px; color: var(--ux-ink); }
.ux-dl__row em { min-width: 0; overflow: hidden; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }

.ux-dl__pct { font-variant-numeric: tabular-nums; color: var(--ux-muted); animation: ux-dl-count 6s ease-in-out 4s infinite; }
.ux-dl__pct::after { content: counter(ux-dl) "%"; counter-reset: ux-dl var(--ux-dl-p); }

.ux-dl__bar { height: 4px; overflow: hidden; border-radius: 99px; background: var(--ux-line); }

.ux-dl__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ux-ink);
    transform: scaleX(0);
    transform-origin: left;
    animation: ux-dl-fill 6s ease-in-out 4s infinite;
}

.ux-dl__state { display: grid; font-size: 11.5px; line-height: 1.35; }
.ux-dl__state span { grid-area: 1 / 1; min-width: 0; }
.ux-dl__state .is-loading { color: var(--ux-muted); animation: ux-dl-loading 6s linear 4s infinite; }
.ux-dl__state .is-done { font-weight: 500; color: var(--ux-dl-ok); opacity: 0; animation: ux-dl-done 6s ease-out 4s infinite; }

@keyframes ux-dl-fill {
    0%, 3% { transform: scaleX(0); background: var(--ux-ink); }
    27% { transform: scaleX(1); background: var(--ux-ink); }
    30%, 90% { transform: scaleX(1); background: var(--ux-dl-ok); }
    100% { transform: scaleX(0); background: var(--ux-dl-ok); }
}

@keyframes ux-dl-count {
    0%, 3% { --ux-dl-p: 0; }
    27%, 92% { --ux-dl-p: 100; color: var(--ux-dl-ok); }
    100% { --ux-dl-p: 0; }
}

/* Three drops of the arrow while downloading */
@keyframes ux-dl-arrow {
    0%, 3% { opacity: 0; transform: translateY(-6px); }
    5% { opacity: 1; transform: translateY(0); }
    10% { opacity: 0; transform: translateY(7px); }
    11% { opacity: 0; transform: translateY(-6px); }
    13% { opacity: 1; transform: translateY(0); }
    18% { opacity: 0; transform: translateY(7px); }
    19% { opacity: 0; transform: translateY(-6px); }
    21% { opacity: 1; transform: translateY(0); }
    26%, 100% { opacity: 0; transform: translateY(7px); }
}

@keyframes ux-dl-check {
    0%, 27% { opacity: 0; transform: scale(.3); }
    31% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; transform: scale(1); }
    93%, 100% { opacity: 0; transform: scale(.3); }
}

@keyframes ux-dl-tag { 0%, 27%, 92%, 100% { fill: var(--ux-ink); } 30%, 88% { fill: var(--ux-dl-ok); } }

@keyframes ux-dl-box {
    0%, 27%, 92%, 100% { border-color: var(--ux-line-soft); background: var(--ux-canvas-soft); }
    30%, 88% { border-color: #BBF7D0; background: #F0FDF4; }
}

@keyframes ux-dl-loading { 0%, 27% { opacity: 1; } 29%, 90% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes ux-dl-done { 0%, 28% { opacity: 0; transform: translateY(4px); } 31%, 88% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* Link between steps: hairline + orange signal */
.ux-flow__link {
    position: relative;
    flex: 0 0 56px;
    align-self: center;
    height: 1px;
    background: var(--ux-line-strong);
}

.ux-flow__link span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: var(--ux-accent);
    box-shadow: 0 0 0 4px rgba(245, 78, 0, .12);
    animation: ux-flow-spark 2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.ux-flow__link span + span { animation-delay: 1s; }

@keyframes ux-flow-spark {
    0% { left: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@media (max-width: 768px) {
    .ux-flow { margin-top: 44px; padding: 0 16px; }
    .ux-flow__title { margin-bottom: 18px; }
    .ux-flow__steps { flex-direction: column; }
    .ux-flow__node { padding: 18px; }
    .ux-flow__step { margin-bottom: 10px; }
    .ux-flow__link { flex-basis: 28px; width: 1px; height: auto; }
    .ux-flow__link span { top: 0; left: 50%; margin: -3.5px 0 0 -3.5px; animation-name: ux-flow-spark-v; }

    @keyframes ux-flow-spark-v {
        0% { top: 0; opacity: 0; }
        15% { opacity: 1; }
        85% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
}

/* =====================================================================
 * 6. AI network ("¡Prepárate para algo nuevo!"). The theme HTML has
 *    <div data-ux-ai-net>; phpeitor-ux.js draws the SVG. Light, ink + orange.
 * ===================================================================== */
.ux-ai-net {
    position: relative;
    width: 100%;
    max-width: 632px;
    aspect-ratio: 632 / 510;
    overflow: hidden;
    direction: ltr;
    border: 1px solid var(--ux-line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 1px 1px, rgba(38, 37, 30, .09) 1px, transparent 0) 0 0 / 18px 18px,
        var(--ux-canvas-soft);
}

.inline-col-image-wrapper .ux-ai-net { width: 632px; max-width: 100%; }
.ux-ai-net svg { display: block; width: 100%; height: 100%; }

/* Circuit brain: silhouette + dashed keep-out contour, CPU in the middle, PCB traces
   fanning out at 45° to via pads; lit only when a signal passes. */
.ux-ai-net .brain-g { transform-box: fill-box; transform-origin: center; animation: ux-ai-breathe 5s ease-in-out infinite; }
.ux-ai-net .brain { fill: var(--ux-card); stroke: var(--ux-ink); stroke-width: 1.6; transition: stroke .35s ease, filter .35s ease; }
.ux-ai-net .brain.is-hot { stroke: var(--ux-accent); filter: drop-shadow(0 0 10px rgba(245, 78, 0, .35)); }
.ux-ai-net .contour { fill: none; stroke: var(--ux-line-strong); stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; }

.ux-ai-net .trace { fill: none; stroke: var(--ux-line-strong); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; transition: stroke .3s ease; }
.ux-ai-net .trace.bus { stroke: var(--ux-ink); stroke-width: 1.4; }
.ux-ai-net .trace.is-hot { stroke: var(--ux-accent); stroke-width: 2; }

.ux-ai-net .pad { fill: var(--ux-card); stroke: var(--ux-ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transition: fill .3s ease, stroke .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ux-ai-net .pad.is-hot { fill: var(--ux-accent); stroke: var(--ux-accent); transform: scale(1.6); }

.ux-ai-net .cpu .pin { fill: var(--ux-ink-soft, #5a5850); }
.ux-ai-net .cpu .body { fill: var(--ux-ink); transition: fill .3s ease, filter .3s ease; }
.ux-ai-net .cpu .die { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1; stroke-dasharray: 3 3; }
.ux-ai-net .cpu .dot { fill: var(--ux-accent); }
.ux-ai-net .cpu text { font: 700 15px var(--ux-mono); letter-spacing: .06em; fill: #FFF; }
.ux-ai-net .cpu.is-hot .body { fill: var(--ux-accent); filter: drop-shadow(0 0 12px rgba(245, 78, 0, .55)); }
.ux-ai-net .cpu.is-hot .die { stroke: rgba(255, 255, 255, .7); }
.ux-ai-net .cpu.is-hot .dot { fill: #FFF; }

.ux-ai-net .chip .led { fill: var(--ux-line-strong); transition: fill .2s ease; }
.ux-ai-net .chip.is-hot .led { fill: var(--ux-accent); }

.ux-ai-net .wire { fill: none; stroke: var(--ux-line-strong); stroke-width: 1.3; transition: stroke .3s ease; }
.ux-ai-net .wire.is-hot { stroke: var(--ux-accent); }
.ux-ai-net .pulse { fill: var(--ux-accent); filter: drop-shadow(0 0 4px rgba(245, 78, 0, .8)); }

.ux-ai-net .chip rect { fill: var(--ux-card); stroke: var(--ux-line); }
.ux-ai-net .chip text { font: 500 13px var(--ux-mono); letter-spacing: .02em; fill: var(--ux-ink); }
.ux-ai-net .chip.out rect { fill: var(--ux-ink); stroke: none; transition: fill .3s ease; }
.ux-ai-net .chip.out.is-hot rect { fill: var(--ux-accent); }
.ux-ai-net .chip.out text { font-family: var(--ux-sans); font-size: 14px; fill: #FFF; }

@keyframes ux-ai-breathe { 50% { transform: scale(1.012); } }

.ux-ai-net .status { font: 500 11.5px var(--ux-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ux-muted); }
.ux-ai-net .status tspan.pct { fill: var(--ux-accent); }
.ux-ai-net .track { fill: var(--ux-line-soft); }
.ux-ai-net .fill { fill: var(--ux-ink); }

/* =====================================================================
 * 7. Store theme
 * ===================================================================== */
body,
.font-poppins,
button,
input,
select,
textarea {
    font-family: var(--ux-sans) !important;
}

/* The Bagisto bundle sets Poppins on every element (*{font-family:Poppins});
   let them inherit Geist from body instead. Icon fonts keep their class rule. */
*, *::before, *::after { font-family: inherit; }

body { color: var(--ux-ink); background: var(--ux-canvas); -webkit-font-smoothing: antialiased; }
#main.bg-white { background: var(--ux-canvas) !important; }

/* Titles: DM Serif → Geist, tight tracking, ink */
.font-dmserif,
body .home-offer :is(h1, h2),
body .top-collection-header,
body .top-collection-header h2,
body .top-collection-card h3,
body .section-title,
body .section-title h2,
body .collection-card-wrapper .single-collection-card .overlay-text,
body .inline-col-wrapper .inline-col-content-wrapper .inline-col-title {
    font-family: var(--ux-sans) !important;
    font-weight: 400 !important;
    letter-spacing: -.035em;
    color: var(--ux-ink) !important;
}

body .top-collection-header h2,
body .section-title h2 { font-size: clamp(34px, 4.4vw, 58px) !important; line-height: 1.08 !important; }

body .inline-col-wrapper .inline-col-content-wrapper .inline-col-title { font-size: clamp(30px, 3.8vw, 50px) !important; line-height: 1.1 !important; }

body .inline-col-wrapper .inline-col-content-wrapper .inline-col-description {
    font-family: var(--ux-sans) !important;
    font-size: 17px !important;
    line-height: 1.6;
    color: var(--ux-body) !important;
}

/* Numbered mono labels before each home section title: "01 ·", "02 ·" … */
#main { counter-reset: ux-section; }

#main h2.font-dmserif::before,
#main .ux-flow__title::before,
#main .top-collection-header h2::before,
#main .section-title h2::before,
#main .inline-col-title::before {
    counter-increment: ux-section;
    content: counter(ux-section, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-family: var(--ux-mono);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .1em;
    color: var(--ux-muted);
}

#main .ux-flow__title,
#main h2.font-dmserif { font-size: clamp(26px, 2.6vw, 34px) !important; letter-spacing: -.03em; }

/* Header + nav + search */
header:not(.ux-scrolled),
header:not(.ux-scrolled) .bg-white { background-color: var(--ux-canvas) !important; }
header.ux-scrolled .bg-white:not([class*="fixed"]):not(.fixed *):not(.absolute):not(.absolute *) { background-color: transparent !important; }
/* Floating panels (account / currency dropdowns, category menu) stay solid over the page */
header.ux-scrolled .absolute.bg-white,
header.ux-scrolled .absolute .bg-white { background-color: var(--ux-canvas) !important; }
header .border, header .border-b { border-color: var(--ux-line) !important; }
header.shadow-sm, header .shadow-gray { box-shadow: none !important; }

header a.uppercase {
    font-size: 14px;
    font-weight: 450;
    letter-spacing: -.005em;
    text-transform: none !important;
    color: var(--ux-body);
    transition: color .2s ease;
}

header a.uppercase:hover { color: var(--ux-ink); }

header input[name="query"] {
    border: 1px solid var(--ux-line) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    background: var(--ux-card) !important;
}

header input[name="query"]:focus { border-color: var(--ux-line-strong) !important; box-shadow: 0 0 0 4px var(--ux-line-soft) !important; }

/* Offer band → mono ticker on hairlines */
body .home-offer {
    border-top: 1px solid var(--ux-line);
    border-bottom: 1px solid var(--ux-line);
    background: var(--ux-canvas-soft) !important;
}

body .home-offer :is(h1, h2) {
    padding: 16px 0 !important;
    font-family: var(--ux-mono) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase;
}

/* Product cards: image on soft canvas, mono price, mono badges */
[data-ux-card] > div:first-child { background: var(--ux-canvas-soft); }
[data-ux-card] .bg-white { background: var(--ux-card) !important; }
[data-ux-card] p { color: var(--ux-ink); }

[data-ux-card] .font-semibold,
[data-ux-card] [class*="price"] {
    font-family: var(--ux-mono) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: -.01em;
}

[data-ux-card] p.absolute.top-1\.5 {
    padding: 3px 9px !important;
    border: 1px solid var(--ux-line);
    border-radius: 999px !important;
    font-family: var(--ux-mono);
    font-size: 10.5px !important;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ux-ink) !important;
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: blur(6px);
}

[data-ux-card] p.absolute.top-1\.5.bg-red-600 { border-color: var(--ux-accent); color: #FFF !important; background: var(--ux-accent) !important; }

/* Buttons: ink pill (primary) / hairline pill (secondary) */
.primary-button {
    border: 1px solid var(--ux-ink) !important;
    border-radius: 999px !important;
    font-family: var(--ux-sans) !important;
    font-weight: 500 !important;
    color: #FFF !important;
    background: var(--ux-ink) !important;
    transition: background-color .2s ease, transform .2s ease;
}

.primary-button:hover { background: #000 !important; transform: translateY(-1px); }

.secondary-button {
    border: 1px solid var(--ux-line-strong) !important;
    border-radius: 999px !important;
    font-family: var(--ux-sans) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ux-ink) !important;
    background: var(--ux-card) !important;
    transition: border-color .2s ease, transform .2s ease;
}

.secondary-button:hover { border-color: var(--ux-ink) !important; transform: translateY(-1px); }

/* Carousel arrows next to the section titles */
#main .icon-arrow-left-stylish,
#main .icon-arrow-right-stylish {
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--ux-line-strong);
    border-radius: 999px;
    font-size: 20px;
    color: var(--ux-ink);
    background: var(--ux-card);
    transition: border-color .2s ease;
}

#main .icon-arrow-left-stylish:hover,
#main .icon-arrow-right-stylish:hover { border-color: var(--ux-ink); }

/* Centre the glyph without overriding Bagisto's "hidden on mobile" classes */
@media (min-width: 768px) {
    #main .icon-arrow-left-stylish:not(.hidden),
    #main .icon-arrow-right-stylish:not(.hidden) { display: inline-grid; }
}

/* Mobile cards: Bagisto drops the info padding below 1180px */
@media (max-width: 1179px) {
    [data-ux-card] > div:nth-child(2) { padding: 10px 12px 14px !important; }
}

/* Theme sections: cards on hairlines */
body .top-collection-card,
body .collection-card-wrapper .single-collection-card img { border: 1px solid var(--ux-line); }

/* AI section list → hairline rows with an orange dot */
body .ia-menu li {
    padding: 13px 16px 13px 36px !important;
    border: 1px solid var(--ux-line);
    border-radius: 12px !important;
    font-family: var(--ux-sans) !important;
    font-size: 15px !important;
    color: var(--ux-ink) !important;
    background: var(--ux-card) !important;
    box-shadow: none !important;
}

body .ia-menu li::before {
    content: "" !important;
    left: 16px !important;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ux-accent);
}

body .ia-menu li:hover { border-color: var(--ux-ink); color: #FFF !important; background: var(--ux-ink) !important; transform: translateX(4px) !important; }

/* Services strip (above the footer) */
.icon-download, .icon-truck, .icon-gdpr-safe, .icon-support,
.icon-product, .icon-dollar-sign {
    border-color: var(--ux-line-strong) !important;
    color: var(--ux-ink) !important;
    background: var(--ux-card) !important;
}

/* Services items sit on the canvas, no white boxes; titles in Geist */
.container .flex.items-center.gap-5.bg-white { background: transparent !important; }
.container .flex.items-center.gap-5.bg-white p.font-dmserif { font-size: 15px !important; font-weight: 500 !important; letter-spacing: -.01em; }

/* Footer: bone canvas + hairlines */
footer.bg-lightOrange { border-top: 1px solid var(--ux-line); background: var(--ux-canvas) !important; }
footer .bg-\[\#F1EADF\] { border-top: 1px solid var(--ux-line); background: var(--ux-canvas-soft) !important; }
footer .phpeitor-brandmark { background: var(--ux-canvas) !important; }
footer a, footer p, footer li { color: var(--ux-body); }
footer a:hover { color: var(--ux-ink); }

/* Newsletter: Geist statement (no italic serif) + pill field */
footer p.italic.text-navyBlue {
    font-size: clamp(22px, 2.2vw, 28px) !important;
    font-style: normal !important;
    font-weight: 400;
    line-height: 1.2 !important;
    letter-spacing: -.03em;
    color: var(--ux-ink) !important;
}

footer form input[type="email"],
footer form input[name="email"] {
    border: 1px solid var(--ux-line) !important;
    border-radius: 999px !important;
    background: var(--ux-card) !important;
    box-shadow: none !important;
}

footer form button {
    border-radius: 999px !important;
    font-weight: 500 !important;
    color: #FFF !important;
    background: var(--ux-ink) !important;
}

/* 8. Tooltip (phpeitor-ux.js replaces native title="" with this) */
.ux-tip {
    position: fixed;
    z-index: 10050;
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 8px;
    font: 500 12px/1.35 var(--ux-sans);
    letter-spacing: -.005em;
    color: #FFF;
    background: var(--ux-ink);
    box-shadow: 0 10px 24px -12px rgba(38, 37, 30, .55);
    opacity: 0;
    transform: translateY(3px);
    pointer-events: none;
    transition: opacity .14s ease, transform .14s var(--ux-ease);
}

.ux-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: var(--ux-tip-x, 50%);
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: var(--ux-ink);
}

.ux-tip.is-below { transform: translateY(-3px); }
.ux-tip.is-below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ux-ink); }
.ux-tip.is-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .ux-tip { transition: none; transform: none; }
    .phpeitor-trace { display: none; }
    .ux-reveal { opacity: 1; transform: none; transition: none; }
    .ux-card, .ux-card:hover { transition: none; transform: none; }
    .ux-toast__bar { animation: none; }
    .ux-flow__node, .ux-flow__cats a, .ux-ai-net .brain-g, .ux-pay, .ux-pay::after,
    .ux-dl, .ux-dl *, .ux-dl__pct { animation: none !important; }
    .ux-dl__bar span { transform: scaleX(1); background: var(--ux-dl-ok); }
    .ux-dl__pct { --ux-dl-p: 100; }
    .ux-dl__check, .ux-dl__state .is-done { opacity: 1; }
    .ux-dl__state .is-loading { opacity: 0; }
    .ux-flow__link span, .ux-ai-net .pulse { display: none; }
}

/* =====================================================================
 * 9. Category page (categories/view.blade.php, toolbar, filters)
 * ===================================================================== */
.ux-cat-head { margin-top: 40px; margin-bottom: 8px; }

.ux-cat-head__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--ux-mono);
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.ux-cat-head__crumbs a { color: var(--ux-muted); transition: color .2s ease; }
.ux-cat-head__crumbs a:hover { color: var(--ux-ink); }
.ux-cat-head__crumbs [aria-current] { color: var(--ux-ink); }
.ux-cat-head__crumbs span[aria-hidden] { color: var(--ux-line-strong); }

.ux-cat-head__title {
    margin: 16px 0 0;
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.035em;
    color: var(--ux-ink);
}

.ux-cat-head__lead { max-width: 640px; margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ux-body); }

/* Sort / per-page selects → compact pills */
.ux-select {
    width: auto !important;
    max-width: none !important;
    gap: 8px !important;
    padding: 8px 12px 8px 16px !important;
    border: 1px solid var(--ux-line) !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    white-space: nowrap;
    color: var(--ux-ink);
    background: var(--ux-card) !important;
}

.ux-select:hover, .ux-select:focus { border-color: var(--ux-line-strong) !important; }
.ux-select .icon-arrow-down { font-size: 18px !important; color: var(--ux-muted); }

/* Grid / list view toggles */
#main .icon-listing, #main .icon-listing-fill,
#main .icon-grid-view, #main .icon-grid-view-fill { font-size: 22px !important; color: var(--ux-muted); transition: color .2s ease; }
#main .icon-listing-fill, #main .icon-grid-view-fill, #main .icon-listing:hover, #main .icon-grid-view:hover { color: var(--ux-ink); }

/* Filters panel: no white boxes, mono section labels, ink slider */
.panel-side .bg-white, .panel-side .rounded-lg.bg-white { background: transparent !important; }
.panel-side > div:first-child p { font-size: 15px !important; font-weight: 500 !important; }
.panel-side .border-b, .panel-side .border-zinc-200 { border-color: var(--ux-line) !important; }

.panel-side [class*="accordion"] p.text-lg,
.panel-side p.text-lg.font-semibold {
    font-family: var(--ux-mono);
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.panel-side .icon-uncheck, .panel-side .icon-check-box { color: var(--ux-ink) !important; }
.panel-side input[type="text"] { border-color: var(--ux-line) !important; border-radius: 999px !important; background: var(--ux-card); }

/* =====================================================================
 * 10. Customer sign-in / sign-up (components/auth/shell.blade.php)
 *     Same light editorial look; the mascot video and logic are untouched.
 * ===================================================================== */
.auth-shell {
    --auth-navy: var(--ux-ink);
    --auth-navy-2: var(--ux-ink);
    --auth-accent: var(--ux-ink);
    background: var(--ux-canvas) !important;
}

.auth-aside {
    border-right: 1px solid var(--ux-line);
    color: var(--ux-body) !important;
    background:
        radial-gradient(circle at 1px 1px, rgba(38, 37, 30, .08) 1px, transparent 0) 0 0 / 20px 20px,
        var(--ux-canvas-soft) !important;
}

.auth-aurora { display: none; }
.auth-aside__logo img { filter: none !important; }

.auth-aside__title,
.auth-card h1 {
    font-family: var(--ux-sans) !important;
    font-weight: 400 !important;
    letter-spacing: -.035em;
    color: var(--ux-ink) !important;
}

.auth-aside__title::before,
.auth-card h1::before {
    display: block;
    margin-bottom: 14px;
    font-family: var(--ux-mono);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.auth-aside__title::before { content: "Metadatape Store"; }
.auth-card h1::before { content: "/ " attr(data-ux-kicker); }
.auth-card h1:not([data-ux-kicker])::before { content: none; }

.auth-aside__subtitle { color: var(--ux-body) !important; }

.auth-stage { border: 1px solid var(--ux-line); box-shadow: 0 30px 60px -40px rgba(38, 37, 30, .5) !important; }

.auth-chips li {
    border-color: var(--ux-line) !important;
    font-family: var(--ux-mono);
    font-size: 11px !important;
    letter-spacing: .02em;
    color: var(--ux-ink) !important;
    background: rgba(255, 255, 255, .9) !important;
    text-shadow: none !important;
}

.auth-benefits li { color: var(--ux-body) !important; }

.auth-benefits svg {
    color: #FFF !important;
    background: var(--ux-ink) !important;
    box-shadow: none !important;
}

.auth-aside__foot { font-family: var(--ux-mono); font-size: 11.5px !important; letter-spacing: .04em; color: var(--ux-muted) !important; }

.auth-terminal { border-color: var(--ux-line) !important; background: var(--ux-ink) !important; box-shadow: 0 30px 60px -40px rgba(38, 37, 30, .6) !important; }

.auth-card {
    border: 1px solid var(--ux-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px -48px rgba(38, 37, 30, .45) !important;
}

.auth-card .auth-lead { color: var(--ux-body) !important; }
.auth-card label { color: var(--ux-ink); }

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    border-color: var(--ux-line) !important;
    background: var(--ux-card) !important;
    color: var(--ux-ink) !important;
}

.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="text"]:focus {
    border-color: var(--ux-ink) !important;
    box-shadow: 0 0 0 4px var(--ux-line-soft) !important;
}

.auth-submit {
    border-radius: 999px !important;
    background: var(--ux-ink) !important;
    box-shadow: none !important;
}

.auth-submit:hover { background: #000 !important; }
.auth-submit.is-ok { background: #15803D !important; }
.auth-submit:focus-visible { outline-color: var(--ux-accent) !important; }

.auth-divider { font-family: var(--ux-mono); font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ux-muted) !important; }
.auth-divider::before, .auth-divider::after { background: var(--ux-line) !important; }

.auth-social a { border-color: var(--ux-line) !important; border-radius: 999px !important; }
.auth-social a:hover { border-color: var(--ux-ink) !important; box-shadow: none !important; }

.auth-switch { color: var(--ux-body) !important; }
.auth-switch a { color: var(--ux-ink) !important; }
.auth-switch a::after { background: var(--ux-accent) !important; }
.auth-link { color: var(--ux-ink) !important; }
.auth-link:hover { color: var(--ux-accent-active) !important; }
.auth-main__copy { font-family: var(--ux-mono); font-size: 11px !important; letter-spacing: .02em; color: var(--ux-muted) !important; }

/* =====================================================================
 * 11. Skeletons (Bagisto .shimmer while carousels/listings load by API)
 *     Warm hairline tones + card shapes that match the real cards (no jump).
 * ===================================================================== */
.shimmer {
    border-radius: 6px;
    background: linear-gradient(90deg, var(--ux-line-soft) 0%, #F9F9F6 45%, var(--ux-line-soft) 90%) !important;
    background-size: 1200px 100% !important;
    animation: ux-skel-wave 1.6s linear infinite !important;
}

@keyframes ux-skel-wave { from { background-position: -600px 0; } to { background-position: 600px 0; } }

.ux-skel-card {
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: 16px;
    background: var(--ux-card);
}

.ux-skel-card > .shimmer:first-child { border-radius: 0 !important; }
.ux-skel-card > div:last-child { gap: 10px !important; padding: 14px 12px 18px; }
.ux-skel-card > div:last-child p:first-child { height: 14px; }
.ux-skel-card > div:last-child p:nth-child(2) { width: 38%; height: 12px; }

.ux-skel__arrow { width: 38px !important; height: 38px !important; border-radius: 999px !important; }
.ux-skel__pill { width: 100px !important; height: 34px !important; border-radius: 999px !important; }
.ux-skel__kicker { border-radius: 3px; }

/* Category bubbles keep their round shape; filters/toolbar get pills */
.panel-side .shimmer, .ux-select.shimmer { border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    .shimmer { animation: none !important; }
}

/* =====================================================================
 * 12. Product page (products/view.blade.php + gallery, tabs, breadcrumbs)
 * ===================================================================== */
/* Breadcrumb: left, mono, like the category heading */
.ux-pd-crumbs > div { margin-top: 32px !important; }
.ux-pd-crumbs ol { flex-wrap: wrap; gap: 8px; }

.ux-pd-crumbs li {
    gap: 8px !important;
    margin: 0 !important;
    font-family: var(--ux-mono);
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ux-muted) !important;
}

.ux-pd-crumbs li a { color: var(--ux-muted); transition: color .2s ease; }
.ux-pd-crumbs li a:hover { color: var(--ux-ink); }
.ux-pd-crumbs li[aria-current] { color: var(--ux-ink) !important; }
.ux-pd-crumbs .icon-arrow-right, .ux-pd-crumbs .icon-arrow-left { font-size: 0 !important; }
.ux-pd-crumbs .icon-arrow-right::before, .ux-pd-crumbs .icon-arrow-left::before { content: "/"; font-family: var(--ux-mono); font-size: 11.5px; color: var(--ux-line-strong); }

/* Gallery: main image and thumbnails on hairline cards */
.flex.mt-12 img.rounded-xl { border: 1px solid var(--ux-line); border-radius: 20px !important; background: var(--ux-card); }
.flex.mt-12 .flex-col.max-h-\[540px\] img { border: 1px solid var(--ux-line) !important; border-radius: 12px !important; transition: border-color .2s ease; }
.flex.mt-12 .flex-col.max-h-\[540px\] img.border-navyBlue,
.flex.mt-12 .flex-col.max-h-\[540px\] img:hover { border-color: var(--ux-ink) !important; }

/* Name, kicker, price */
.ux-pd-kicker {
    margin: 0 0 12px;
    font-family: var(--ux-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.ux-pd-title {
    font-size: clamp(30px, 3vw, 42px) !important;
    font-weight: 400 !important;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--ux-ink);
}

.ux-pd-price { font-family: var(--ux-mono) !important; letter-spacing: -.02em; }
.ux-pd-price p { font-family: var(--ux-mono) !important; }
.ux-pd-price .line-through { font-size: .7em; font-weight: 400 !important; color: var(--ux-muted) !important; }
.ux-pd-price p:not(.line-through) { font-size: 26px; font-weight: 500 !important; color: var(--ux-ink); }

.ux-pd-off {
    padding: 3px 9px;
    border-radius: 999px;
    font: 500 11.5px var(--ux-mono);
    letter-spacing: .06em;
    color: #FFF;
    background: var(--ux-accent);
}

.product-description-content {
    max-width: 60ch;
    margin-top: 20px !important;
    font-size: 16px !important;
    line-height: 1.65;
    text-align: left !important;
    color: var(--ux-body) !important;
}

.product-description-content * { text-align: left !important; }
.product-description-content a { color: var(--ux-ink); text-decoration: underline; text-decoration-color: var(--ux-line-strong); text-underline-offset: 3px; }

/* Quantity + add to cart */
.ux-pd-price ~ div [class*="border-navyBlue"],
.flex.max-w-\[470px\] > [class*="border-navyBlue"] {
    border: 1px solid var(--ux-line-strong) !important;
    border-radius: 999px !important;
    background: var(--ux-card);
}

.flex.max-w-\[470px\] .primary-button { min-height: 52px; font-size: 15px !important; }

/* Compare link */
.flex.mt-10.gap-9 > [role="button"] {
    padding: 8px 14px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--ux-body);
    background: var(--ux-card);
    transition: border-color .2s ease, color .2s ease;
}

.flex.mt-10.gap-9 > [role="button"]:hover { border-color: var(--ux-ink); color: var(--ux-ink); }
.flex.mt-10.gap-9 > [role="button"] .icon-compare { font-size: 18px !important; }
.flex.mt-10.gap-9 { margin-top: 20px !important; }

/* Wishlist heart next to the name */
.ux-pd-title + [role="button"] { border-color: var(--ux-line) !important; transition: border-color .2s ease !important; }
.ux-pd-title + [role="button"]:hover { opacity: 1 !important; border-color: var(--ux-ink) !important; }

/* Trust strip */
.ux-pd-trust {
    display: grid;
    gap: 0;
    max-width: 470px;
    margin: 28px 0 0;
    padding: 0;
    border: 1px solid var(--ux-line);
    border-radius: 16px;
    list-style: none;
    background: var(--ux-card);
}

.ux-pd-trust li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.ux-pd-trust li + li { border-top: 1px solid var(--ux-line-soft); }

.ux-pd-trust svg {
    flex: none;
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    color: var(--ux-ink);
    background: var(--ux-canvas-soft);
}

.ux-pd-trust span { font-size: 13.5px; line-height: 1.45; color: var(--ux-body); }
.ux-pd-trust b { display: block; font-size: 14px; font-weight: 500; color: var(--ux-ink); }

@media (max-width: 1179px) { .ux-pd-trust { max-width: none; } }

/* Tabs (Descripción / Reseñas): hairline underline instead of a grey band */
#main .flex.flex-row.justify-center.bg-zinc-100 {
    gap: 4px !important;
    border-top: 1px solid var(--ux-line);
    border-bottom: 1px solid var(--ux-line);
    background: transparent !important;
}

#main .flex.flex-row.justify-center.bg-zinc-100 > * {
    margin-bottom: -1px;
    padding: 16px 22px !important;
    border-bottom: 2px solid transparent;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--ux-muted) !important;
    transition: color .2s ease, border-color .2s ease;
}

#main .flex.flex-row.justify-center.bg-zinc-100 > *:hover { color: var(--ux-ink) !important; }
#main .flex.flex-row.justify-center.bg-zinc-100 > .border-b-2 { border-bottom-color: var(--ux-ink) !important; color: var(--ux-ink) !important; }

/* Long description: readable column */
#main .prose { max-width: 72ch !important; font-size: 16px; line-height: 1.7; color: var(--ux-body); }
#main .prose :where(h1, h2, h3, h4, strong, b) { color: var(--ux-ink); font-weight: 500; }
#main .prose :where(ul, ol, li) { color: var(--ux-body) !important; }
#main .prose a { color: var(--ux-ink); }

/* Downloadable: the single included file */
.ux-pd-file {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 470px;
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid var(--ux-line);
    border-radius: 14px;
    background: var(--ux-card);
}

.ux-pd-file svg { flex: none; width: 20px; height: 20px; color: #15803D; }
.ux-pd-file span { flex: 1; min-width: 0; font: 500 13.5px var(--ux-mono); color: var(--ux-ink); overflow-wrap: anywhere; }
.ux-pd-file small { display: block; margin-bottom: 2px; font: 500 10.5px var(--ux-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ux-muted); }
.ux-pd-file a { flex: none; font-size: 13px; color: var(--ux-ink); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
 * 13. Checkout (checkout/onepage/*). Each step is a white hairline card on
 *     the bone canvas; Bagisto's borderless white accordion box is gone.
 * ===================================================================== */
/* Generic: the accordion content box never paints its own white block */
.z-10.rounded-lg.bg-white.p-1\.5 { background: transparent !important; }

.ux-co-bar { border-color: var(--ux-line) !important; background: var(--ux-canvas); }

.ux-co-login {
    padding: 8px 16px;
    border: 1px solid var(--ux-line-strong);
    border-radius: 999px;
    font-size: 14px !important;
    color: var(--ux-ink) !important;
    background: var(--ux-card);
    transition: border-color .2s ease;
}

.ux-co-login:hover { border-color: var(--ux-ink); }

/* Breadcrumb on checkout/cart: same mono trail as the product page */
#main > .container > .mt-\[34px\] li,
.container > .mt-\[34px\].flex li {
    gap: 8px !important;
    margin: 0 !important;
    font-family: var(--ux-mono);
    font-size: 11.5px !important;
    font-weight: 500 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ux-muted) !important;
}

.container > .mt-\[34px\].flex ol { gap: 8px; }
.container > .mt-\[34px\].flex li[aria-current] { color: var(--ux-ink) !important; }
.container > .mt-\[34px\].flex .icon-arrow-right { font-size: 0 !important; }
.container > .mt-\[34px\].flex .icon-arrow-right::before { content: "/"; font-family: var(--ux-mono); font-size: 11.5px; color: var(--ux-line-strong); }

/* Steps */
.ux-co-steps { display: grid; gap: 16px; padding-top: 24px; }

.ux-co-step {
    margin: 0 !important;
    padding: 22px 24px 24px;
    border: 1px solid var(--ux-line) !important;
    border-radius: 20px !important;
    background: var(--ux-card) !important;
}

.ux-co-step > div > div:first-child { padding: 0 !important; }
.ux-co-step h2 { font-size: 22px !important; font-weight: 400 !important; letter-spacing: -.025em; color: var(--ux-ink); }
.ux-co-step > div > .z-10 { margin-top: 20px !important; }

/* Mono step number before each step title: 01 Dirección, 02 Envío, 03 Pago */
.ux-co-steps { counter-reset: ux-step; }

/* Only the step header (accordion header), not sub-headings like "Billing address" */
.ux-co-step > div > div:first-child h2::before {
    counter-increment: ux-step;
    content: counter(ux-step, decimal-leading-zero);
    display: inline-block;
    min-width: 34px;
    margin-right: 10px;
    padding: 3px 0;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    font: 500 11px var(--ux-mono);
    letter-spacing: .06em;
    text-align: center;
    vertical-align: middle;
    color: var(--ux-muted);
}

/* Fields inside the step card */
.ux-co-step input:not([type="radio"]):not([type="checkbox"]),
.ux-co-step select,
.ux-co-step textarea {
    border-color: var(--ux-line) !important;
    border-radius: 12px !important;
    background: var(--ux-canvas-soft) !important;
    color: var(--ux-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ux-co-step input:not([type="radio"]):not([type="checkbox"]):focus,
.ux-co-step select:focus,
.ux-co-step textarea:focus {
    border-color: var(--ux-ink) !important;
    background: var(--ux-card) !important;
    box-shadow: 0 0 0 4px var(--ux-line-soft) !important;
}

.ux-co-step label { color: var(--ux-ink); }
.ux-co-step .icon-checkbox-select, .ux-co-step .icon-uncheck, .ux-co-step .icon-check-box { color: var(--ux-ink) !important; }

/* Saved address cards / shipping & payment options */
.ux-co-step .rounded-xl.border.border-zinc-200,
.ux-co-option {
    border-color: var(--ux-line) !important;
    border-radius: 16px !important;
    background: var(--ux-card);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ux-co-option:hover { border-color: var(--ux-line-strong) !important; }
input:checked ~ .ux-co-option { border-color: var(--ux-ink) !important; box-shadow: 0 0 0 1px var(--ux-ink); }
.ux-co-step .icon-radio-unselect, .ux-co-step .icon-radio-select { color: var(--ux-ink) !important; }
.ux-co-option .icon-flate-rate, .ux-co-option [class*="icon-"] { color: var(--ux-ink) !important; }
.ux-co-option p.text-2xl { font-family: var(--ux-mono); font-size: 20px !important; font-weight: 500 !important; }

/* Summary: white card, mono totals */
.ux-co-summary > div {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--ux-line);
    border-radius: 20px;
    background: var(--ux-card);
}

.ux-co-summary h1 { font-size: 22px !important; font-weight: 400 !important; letter-spacing: -.025em; }
.ux-co-summary .mt-10 { margin-top: 20px !important; border-color: var(--ux-line-soft) !important; }
.ux-co-summary img { border: 1px solid var(--ux-line); border-radius: 12px !important; }
.ux-co-summary .text-navyBlue { color: var(--ux-ink) !important; }
.ux-co-summary .text-right p:last-child,
.ux-co-summary .text-right > p.font-medium,
.ux-co-summary p.text-lg { font-family: var(--ux-mono); font-weight: 500 !important; }
.ux-co-summary .border-y { border-color: var(--ux-line-soft) !important; }
.ux-co-summary .text-blue-700 { color: var(--ux-ink) !important; text-decoration: underline; text-decoration-color: var(--ux-line-strong); text-underline-offset: 3px; }

/* Labels stay in Geist; only the amounts are mono */
.ux-co-summary .text-right > p:first-child,
.ux-cart-summary .text-right > p:first-child { font-family: var(--ux-sans) !important; }

/* Grand total row */
.ux-co-summary .mb-8 > div:last-child { padding-top: 6px; }
.ux-co-summary .mb-8 > div:last-child p { font-size: 18px !important; color: var(--ux-ink); }

/* =====================================================================
 * 14. Cart page (checkout/cart/index + summary)
 * ===================================================================== */
.ux-cart-items {
    margin-top: 24px;
    padding: 20px 24px 24px;
    border: 1px solid var(--ux-line);
    border-radius: 20px;
    background: var(--ux-card);
}

.ux-cart-items .border-zinc-200 { border-color: var(--ux-line-soft) !important; }
.ux-cart-items img { border: 1px solid var(--ux-line); border-radius: 12px !important; background: var(--ux-canvas-soft); }
.ux-cart-items [class*="border-navyBlue"] { border-color: var(--ux-line-strong) !important; border-radius: 999px !important; }
.ux-cart-items .icon-uncheck, .ux-cart-items .icon-check-box { color: var(--ux-ink) !important; }
.ux-cart-items p.text-lg, .ux-cart-items .font-semibold { font-family: var(--ux-mono); font-weight: 500 !important; }

.ux-cart-link {
    color: var(--ux-muted) !important;
    text-decoration: underline;
    text-decoration-color: var(--ux-line-strong);
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.ux-cart-link:hover { color: var(--ux-ink) !important; }

.ux-cart-summary {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--ux-line);
    border-radius: 20px;
    background: var(--ux-card);
}

.ux-cart-summary > p:first-child, .ux-cart-summary h1, .ux-cart-summary .text-2xl { font-size: 22px !important; font-weight: 400 !important; letter-spacing: -.025em; }
.ux-cart-summary .text-right > p:last-child { font-family: var(--ux-mono); font-weight: 500 !important; }
.ux-cart-summary .rounded-xl, .ux-cart-summary .border { border-color: var(--ux-line) !important; }
.ux-cart-summary .primary-button { width: 100%; justify-content: center; text-align: center; }
.ux-cart-items { align-self: flex-start; height: max-content; }
.ux-cart-summary .bg-gray-100, .ux-co-summary .bg-gray-100 { background: var(--ux-canvas-soft) !important; }
.ux-cart-summary .text-right > p.text-lg { font-size: 16px !important; }

/* =====================================================================
 * 15. Empty states, error pages, search heading, category bubbles
 * ===================================================================== */
.ux-empty {
    display: grid;
    justify-items: center;
    max-width: 520px;
    margin: 56px auto 96px;
    padding: 48px 32px;
    border: 1px solid var(--ux-line);
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 1px 1px, rgba(38, 37, 30, .07) 1px, transparent 0) 0 0 / 18px 18px,
        var(--ux-card);
}

.ux-empty__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    color: var(--ux-ink);
    background: var(--ux-card);
}

.ux-empty__icon svg { width: 26px; height: 26px; }

.ux-empty__kicker,
.ux-error__kicker {
    margin: 22px 0 0;
    font: 500 11.5px var(--ux-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.ux-empty__title { margin: 10px 0 0; font-size: 28px; font-weight: 400; line-height: 1.15; letter-spacing: -.03em; color: var(--ux-ink); }
.ux-empty__text { max-width: 40ch; margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ux-body); }
.ux-empty__cta { margin-top: 24px; padding: 12px 26px !important; }

.ux-empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }

.ux-empty__chips a {
    padding: 5px 12px;
    border: 1px solid var(--ux-line);
    border-radius: 999px;
    font: 500 11.5px var(--ux-mono);
    color: var(--ux-ink);
    background: var(--ux-canvas-soft);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ux-empty__chips a:hover, .ux-empty__chips a:focus-visible { border-color: var(--ux-ink); color: #FFF; background: var(--ux-ink); }

@media (max-width: 640px) { .ux-empty { margin: 32px 16px 64px; padding: 36px 20px; } }

/* Error page (404 / 500 / 503) */
.ux-error {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px clamp(20px, 5vw, 60px);
    overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, rgba(38, 37, 30, .07) 1px, transparent 0) 0 0 / 20px 20px,
        var(--ux-canvas);
}

.ux-error__logo { align-self: flex-start; }

.ux-error__body {
    position: relative;
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: 48px 0;
    text-align: center;
    isolation: isolate;
}

.ux-error__code {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    margin: 0;
    font: 500 clamp(160px, 28vw, 320px)/1 var(--ux-mono);
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1px var(--ux-line-strong);
    transform: translate(-50%, -58%);
    user-select: none;
    pointer-events: none;
}

.ux-error__kicker { margin-top: 0; color: var(--ux-accent-active); }
.ux-error__title { margin: 12px 0 0; font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; color: var(--ux-ink); }
.ux-error__text { max-width: 44ch; margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--ux-body); }

.ux-error__search {
    display: flex;
    width: 100%;
    max-width: 420px;
    margin-top: 28px;
    padding: 5px;
    border: 1px solid var(--ux-line-strong);
    border-radius: 999px;
    background: var(--ux-card);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ux-error__search:focus-within { border-color: var(--ux-ink); box-shadow: 0 0 0 4px var(--ux-line-soft); }
.ux-error__search input { flex: 1; min-width: 0; padding: 8px 14px; border: 0; outline: 0; font-size: 15px; color: var(--ux-ink); background: transparent; }
.ux-error__search button { padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #FFF; background: var(--ux-ink); cursor: pointer; }
.ux-error__search button:hover { background: #000; }

.ux-error__actions { margin-top: 14px; }
.ux-error__actions .primary-button { display: inline-block; padding: 11px 24px !important; color: var(--ux-ink) !important; background: transparent !important; border-color: var(--ux-line-strong) !important; }
.ux-error__actions .primary-button:hover { border-color: var(--ux-ink) !important; }

/* Search results heading: same voice as the category heading */
.ux-search-title { font-size: clamp(28px, 3.4vw, 44px) !important; font-weight: 400 !important; line-height: 1.1; letter-spacing: -.035em; color: var(--ux-ink); }

.ux-search-title::before {
    content: attr(data-ux-kicker);
    display: block;
    margin-bottom: 14px;
    font: 500 11.5px var(--ux-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

/* Category bubbles: labels aligned on one baseline, max two balanced lines */
.ux-bubble { align-content: start; }
.ux-bubble > a:first-child > div { border: 1px solid var(--ux-line); background: var(--ux-card) !important; transition: border-color .2s ease, transform .3s var(--ux-ease); }
.ux-bubble:hover > a:first-child > div { border-color: var(--ux-ink); transform: translateY(-2px); }

.ux-bubble p {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em;
    text-wrap: balance;
    color: var(--ux-ink) !important;
}

@media (max-width: 767px) { .ux-bubble p { font-size: 12.5px !important; } }

/* =====================================================================
 * 16. Hero slider (components/carousel/index.blade.php)
 * ===================================================================== */
.ux-hero { background: var(--ux-ink); }
.ux-hero video, .ux-hero img { object-fit: cover; }

.ux-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: 20px;
    color: #FFF;
    background: rgba(15, 15, 12, .35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .25s ease, background-color .2s ease, border-color .2s ease;
}

@media (min-width: 768px) { .ux-hero__arrow { display: inline-grid; } }

.ux-hero__arrow--prev { left: 24px; }
.ux-hero__arrow--next { right: 24px; }
.ux-hero:hover .ux-hero__arrow, .ux-hero:focus-within .ux-hero__arrow { opacity: 1; }
.ux-hero__arrow.cursor-pointer:hover { border-color: rgba(255, 255, 255, .7); background: rgba(15, 15, 12, .6); }
.ux-hero__arrow.cursor-not-allowed { opacity: 0 !important; pointer-events: none; }
.ux-hero__arrow:focus-visible { opacity: 1; outline: 2px solid var(--ux-accent); outline-offset: 2px; }

/* Bottom bar: segments · counter · pause, on a soft gradient for contrast */
.ux-hero__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 40px clamp(16px, 4vw, 60px) 18px;
    background: linear-gradient(to top, rgba(15, 15, 12, .55), transparent);
    pointer-events: none;
}

.ux-hero__bar > * { pointer-events: auto; }
.ux-hero__segs { display: flex; flex: 1; gap: 6px; max-width: 360px; }

.ux-hero__seg {
    position: relative;
    flex: 1;
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.ux-hero__seg::before,
.ux-hero__seg span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 99px;
}

.ux-hero__seg::before { background: rgba(255, 255, 255, .3); }
.ux-hero__seg span { background: #FFF; transform: scaleX(0); transform-origin: left; }
.ux-hero__seg.is-done span { transform: scaleX(1); }
.ux-hero__seg.is-on span { transform: scaleX(.04); }
.ux-hero.is-running .ux-hero__seg.is-on span { animation: ux-hero-fill linear forwards; }
.ux-hero__seg:hover::before { background: rgba(255, 255, 255, .55); }
.ux-hero__seg:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 2px; border-radius: 4px; }

@keyframes ux-hero-fill { from { transform: scaleX(.04); } to { transform: scaleX(1); } }

.ux-hero__count { font: 500 11.5px var(--ux-mono); letter-spacing: .1em; color: rgba(255, 255, 255, .85); }

.ux-hero__pause {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #FFF;
    background: rgba(15, 15, 12, .3);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.ux-hero__pause:hover { border-color: #FFF; background: rgba(15, 15, 12, .55); }
.ux-hero__pause:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 2px; }
.ux-hero__pause svg { width: 13px; height: 13px; }

@media (max-width: 767px) {
    .ux-hero__bar { gap: 10px; padding: 24px 14px 10px; }
    .ux-hero__count { display: none; }
    .ux-hero__pause { width: 26px; height: 26px; }
    .ux-hero__pause svg { width: 11px; height: 11px; }
}

/* Hero copy (home only: <x-shop::carousel :hero="true">) */
.ux-hero__copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 72px) 56px;
    background: linear-gradient(90deg, rgba(15, 15, 12, .78) 0%, rgba(15, 15, 12, .5) 38%, rgba(15, 15, 12, 0) 68%);
    pointer-events: none;
}

.ux-hero__copy > div { max-width: min(560px, calc(44vw - 72px)); pointer-events: auto; }

@media (max-width: 1023px) { .ux-hero__copy > div { max-width: calc(48vw - 40px); } }
@media (max-width: 767px) { .ux-hero__copy > div { max-width: none; } }

.ux-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 500 11.5px var(--ux-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.ux-hero__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ux-accent); box-shadow: 0 0 0 4px rgba(245, 78, 0, .25); }

.ux-hero__title {
    margin: 16px 0 0;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.04em;
    text-wrap: balance;
    color: #FFF;
}

.ux-hero__text { max-width: 44ch; margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .78); }

.ux-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.ux-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: #FFF;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.ux-hero__cta:hover { border-color: #FFF; background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.ux-hero__cta--primary { border-color: #FFF; color: var(--ux-ink); background: #FFF; }
.ux-hero__cta--primary:hover { background: var(--ux-canvas); }
.ux-hero__cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.ux-hero__cta:hover svg { transform: translateX(3px); }
.ux-hero__cta:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 3px; }

/* Entrance once Vue mounts */
.ux-hero__copy > div > * { animation: ux-hero-in .8s var(--ux-ease) both; }
.ux-hero__copy > div > :nth-child(2) { animation-delay: .08s; }
.ux-hero__copy > div > :nth-child(3) { animation-delay: .16s; }
.ux-hero__copy > div > :nth-child(4) { animation-delay: .24s; }

@keyframes ux-hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Split layout: the media renders only in the right part of each slide (padding on a
   replaced element shrinks its content box, object-fit:cover fills it), so the GIF/videos'
   own text never sits under the headline. The slide itself stays full width, which keeps
   Bagisto's translateX(index * innerWidth) maths intact. */
.ux-hero:has(.ux-hero__copy) video,
.ux-hero:has(.ux-hero__copy) img {
    box-sizing: border-box;
    padding-left: 44vw;
    background: var(--ux-ink);
}

.ux-hero__copy { background: linear-gradient(90deg, var(--ux-ink) 0%, var(--ux-ink) 44vw, rgba(38, 37, 30, 0) calc(44vw + 120px)); }

/* Arrows sit on the right half so they never cover the copy */
.ux-hero__copy ~ .ux-hero__arrow--prev { left: auto; right: 80px; top: auto; bottom: 22px; margin-top: 0; }
.ux-hero__copy ~ .ux-hero__arrow--next { right: 24px; top: auto; bottom: 22px; margin-top: 0; }
.ux-hero__copy ~ .ux-hero__arrow { opacity: 1; width: 40px; height: 40px; }
.ux-hero__copy ~ .ux-hero__bar { padding-right: 140px; }

@media (max-width: 1023px) {
    .ux-hero:has(.ux-hero__copy) video,
    .ux-hero:has(.ux-hero__copy) img { padding-left: 48vw; }

    .ux-hero__copy { background: linear-gradient(90deg, var(--ux-ink) 0%, var(--ux-ink) 48vw, rgba(38, 37, 30, 0) calc(48vw + 80px)); }
    .ux-hero__title { font-size: 34px; }
}

@media (max-width: 767px) {
    /* 500 px: ~170 px of media on top (the videos are wide and mostly dark: a taller band
       read as an empty black block) and the copy below. */
    .ux-hero .aspect-\[2\.743\/1\] { aspect-ratio: auto !important; height: 500px !important; }

    /* Media on top, copy below */
    .ux-hero:has(.ux-hero__copy) video,
    .ux-hero:has(.ux-hero__copy) img { padding-left: 0; padding-bottom: 330px; }

    .ux-hero__copy {
        align-items: flex-end;
        padding: 0 18px 52px;
        background: linear-gradient(0deg, var(--ux-ink) 0%, var(--ux-ink) 330px, rgba(38, 37, 30, 0) 380px);
    }

    .ux-hero__title { font-size: 32px; }
    .ux-hero__text { font-size: 15px; }
    .ux-hero__ctas { margin-top: 18px; }
    .ux-hero__cta { min-height: 42px; padding: 0 16px; font-size: 14px; }
    .ux-hero__copy ~ .ux-hero__bar { padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .ux-hero__copy > div > * { animation: none; }
    .ux-hero.is-running .ux-hero__seg.is-on span { animation: none; transform: scaleX(1); }
}

/* Auth pages: SVG wordmark (ink + orange dot) and category chips as links */
.auth-aside__logo { display: inline-flex; }

/* The card's own logo only shows when the brand panel is hidden (< 1024px) */
@media (max-width: 1023px) { .auth-main__logo { display: inline-flex; } }
.auth-aside__logo svg, .auth-main__logo svg { display: block; }

.auth-chips li { padding: 0 !important; }

.auth-chips a {
    display: block;
    padding: 4px 11px;
    border-radius: inherit;
    color: inherit;
    transition: color .2s ease, background-color .2s ease;
}

.auth-chips li:has(a:hover), .auth-chips li:has(a:focus-visible) { border-color: var(--ux-ink) !important; background: var(--ux-ink) !important; }
.auth-chips a:hover, .auth-chips a:focus-visible { color: #FFF; outline: none; }

/* =====================================================================
   Language and currency menus in the top bar (header/desktop/top.blade.php)
   Before: square grey rows glued to the edges of a 20px-round panel.
   Now: hairline panel, rounded rows inset with padding, ✓ on the active one.
   ===================================================================== */
.absolute.z-20:has(.ux-switch-menu) {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--ux-line);
    border-radius: 16px !important;
    box-shadow: 0 16px 36px -14px rgba(38, 37, 30, .28) !important;
}

.ux-switch-menu {
    display: grid;
    gap: 2px;
    min-width: 150px;
    max-height: 500px;
    padding: 6px;
    overflow: auto;
}

.ux-switch-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.3;
    color: var(--ux-body);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.ux-switch-menu__item img { flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(38, 37, 30, .08); }
.ux-switch-menu__name { flex: 1; }
.ux-switch-menu__sym { flex: none; min-width: 28px; font: 500 12.5px var(--ux-mono); color: var(--ux-muted); }
.ux-switch-menu__item.is-active .ux-switch-menu__sym { color: var(--ux-ink); }
.ux-switch-menu__check { visibility: hidden; font-size: 13px; color: var(--ux-accent); }

.ux-switch-menu__item:hover { color: var(--ux-ink); background: var(--ux-canvas); }
.ux-switch-menu__item:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: -2px; }
.ux-switch-menu__item.is-active { font-weight: 500; color: var(--ux-ink); background: var(--ux-line-soft); }
.ux-switch-menu__item.is-active .ux-switch-menu__check { visibility: visible; }

/* =====================================================================
 * 8. Pixel keyboard over the "Software meets hardware" image (phpeitor-ux.js §8).
 *    Boxes are % of the 1400×2183 source: grid x 66→1325, y 1605→2023.
 * ===================================================================== */
.ux-kb-card { position: relative; }

.ux-kb { position: absolute; inset: 0; container-type: inline-size; pointer-events: none; }

.ux-kb__term {
    position: absolute;
    left: 4.7%;
    top: 67.2%;
    right: 4.7%;
    display: flex;
    align-items: center;
    gap: .9cqw;
    font: 500 3.1cqw/1 var(--ux-mono);
    letter-spacing: .02em;
    white-space: nowrap;
    color: #E4E2D6;
}

.ux-kb__prompt { color: #A78BFA; }

.ux-kb__caret { width: 1.7cqw; height: 3.3cqw; background: #F54E00; animation: ux-kb-caret 1s steps(1) infinite; }

@keyframes ux-kb-caret { 50% { opacity: 0; } }

.ux-kb__grid {
    position: absolute;
    left: 4.714%;
    top: 73.52%;
    width: 89.93%;
    height: 19.15%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 1fr);
    pointer-events: auto;
}

.ux-kb__key { position: relative; cursor: pointer; }

/* Pressed: the cream key turns dark and the glyph light (difference), and it sinks */
.ux-kb__key::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #FFF;
    mix-blend-mode: difference;
    opacity: 0;
    transform: scale(.82);
}

.ux-kb__key::after {
    content: "";
    position: absolute;
    inset: 6%;
    border: max(1px, .3cqw) solid #F54E00;
    opacity: 0;
}

.ux-kb__key.is-down::before { animation: ux-kb-down .42s steps(4, end) both; }
.ux-kb__key.is-down::after { animation: ux-kb-ring .42s steps(5, end) both; }

@keyframes ux-kb-down {
    0% { opacity: 1; transform: scale(.82) translateY(4%); }
    35% { opacity: 1; transform: scale(.9) translateY(4%); }
    100% { opacity: 0; transform: scale(.98); }
}

@keyframes ux-kb-ring { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.18); } }

.ux-kb__px { position: absolute; z-index: 2; pointer-events: none; image-rendering: pixelated; }

@media (hover: hover) {
    .ux-kb__key:hover::after { opacity: .9; animation: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ux-kb__caret { animation: none; }
    .ux-kb__key.is-down::before, .ux-kb__key.is-down::after { animation: none; }
}

/* =====================================================================
 * 9. "Software meets hardware" photo (phpeitor-ux.js §9): CRT screens,
 *    key flashes, flying pixels and VHS glitch slices on the title bars.
 * ===================================================================== */
.ux-hw { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; container-type: inline-size; pointer-events: none; }

.ux-hw__scr {
    position: absolute;
    overflow: hidden;
    background: radial-gradient(ellipse at 55% 45%, rgba(110, 255, 170, .30), rgba(20, 90, 50, .22) 70%);
    mix-blend-mode: screen;
    animation: ux-hw-flicker 3.2s steps(1) infinite;
}

/* Scanlines + a bar rolling down, like an old CRT */
.ux-hw__scr::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px);
}

.ux-hw__scr::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(160, 255, 200, .22), transparent);
    animation: ux-hw-roll 2.6s linear infinite;
}

.ux-hw__scr.is-flash { background: rgba(190, 255, 215, .75); }

@keyframes ux-hw-roll { from { top: -30%; } to { top: 100%; } }
@keyframes ux-hw-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 83% { opacity: .9; } }

.ux-hw__code {
    position: absolute;
    left: 15%;
    right: 3%;
    top: 6%;
    display: grid;
    gap: .25cqw;
    font: 600 1.3cqw/1.25 var(--ux-mono);
    color: #7CFFB2;
    text-shadow: 0 0 .7cqw rgba(124, 255, 178, .85);
    transition: opacity .15s steps(2);
}

.ux-hw__code.is-off { opacity: 0; }

/* Each line types itself, one character per step */
.ux-hw__line {
    display: block;
    width: calc(var(--n) * 1ch);
    max-width: 100%;
    overflow: hidden;
    white-space: pre;
    animation: ux-hw-type calc(var(--n) * 45ms) steps(var(--n), end) both;
}

.ux-hw__line .k { font-weight: 700; color: #F9A8D4; text-shadow: 0 0 .7cqw rgba(249, 168, 212, .8); }
.ux-hw__line .v { font-weight: 600; color: #A7F3D0; }
.ux-hw__line .s { font-weight: 600; color: #FDE68A; text-shadow: 0 0 .7cqw rgba(253, 230, 138, .8); }
.ux-hw__line .c { font-style: normal; opacity: .7; }

@keyframes ux-hw-type { from { width: 0; } }

.ux-hw__cursor { display: block; width: .8cqw; height: 1.3cqw; background: #7CFFB2; box-shadow: 0 0 .8cqw #7CFFB2; animation: ux-kb-caret .9s steps(1) infinite; }

/* Wordmark after "compiling" */
.ux-hw__brand {
    position: absolute;
    left: 13%;
    right: 0;
    top: 22%;
    font: 800 2.75cqw/1.05 var(--ux-mono);
    letter-spacing: -.02em;
    color: #CFFFE2;
    text-shadow: 0 0 1cqw rgba(124, 255, 178, .95), 0 0 2.4cqw rgba(124, 255, 178, .6);
    opacity: 0;
    transform: scale(1.25);
    transition: opacity .25s steps(3), transform .35s steps(4);
}

.ux-hw__brand b { color: #F54E00; text-shadow: 0 0 1cqw rgba(245, 78, 0, .9); }
.ux-hw__brand.is-on { opacity: 1; transform: none; animation: ux-hw-brand .9s steps(1) 2; }

@keyframes ux-hw-brand { 0%, 100% { opacity: 1; } 12% { opacity: .55; } 14% { opacity: 1; } 60% { transform: translateX(.3cqw); } 62% { transform: none; } }

.ux-hw__eq { position: absolute; left: 30%; right: 12%; bottom: 14%; height: 42%; display: flex; align-items: flex-end; gap: 8%; }

.ux-hw__eq span {
    flex: 1;
    height: 100%;
    background: #7CFFB2;
    box-shadow: 0 0 .8cqw rgba(124, 255, 178, .8);
    transform: scaleY(.2);
    transform-origin: bottom;
    transition: transform .22s steps(3, end);
}

/* Third CRT (cut by the right edge): vertical oscilloscope on top, BUILD meter below */
.ux-hw__scope { position: absolute; left: 22%; right: 6%; top: 5%; height: 48%; }
.ux-hw__scope svg { display: block; width: 100%; height: 100%; overflow: visible; }

.ux-hw__scope polyline {
    fill: none;
    stroke: #7CFFB2;
    stroke-width: 2.2;
    stroke-linejoin: miter;
    vector-effect: non-scaling-stroke;
    shape-rendering: crispEdges;
    filter: drop-shadow(0 0 3px rgba(124, 255, 178, .9));
}

.ux-hw__meter { position: absolute; left: 26%; right: 8%; top: 58%; bottom: 8%; display: flex; flex-direction: column; align-items: center; gap: 4%; }

.ux-hw__pct {
    font: 700 1.25cqw/1 var(--ux-mono);
    color: #CFFFE2;
    text-shadow: 0 0 .7cqw rgba(124, 255, 178, .9);
}

.ux-hw__cells { flex: 1; width: 46%; display: flex; flex-direction: column-reverse; gap: 7%; }

.ux-hw__cells i {
    flex: 1;
    border: 1px solid rgba(124, 255, 178, .55);
    background: transparent;
    transition: background-color .12s steps(2), box-shadow .12s steps(2);
}

.ux-hw__cells i.is-on { background: #7CFFB2; box-shadow: 0 0 .8cqw rgba(124, 255, 178, .85); }
.ux-hw__meter.is-ok .ux-hw__pct { color: #F54E00; text-shadow: 0 0 .8cqw rgba(245, 78, 0, .9); animation: ux-hw-brand .9s steps(1) 2; }
.ux-hw__meter.is-ok .ux-hw__cells i { background: #F54E00; border-color: #F54E00; box-shadow: 0 0 .8cqw rgba(245, 78, 0, .85); }

.ux-hw__key {
    position: absolute;
    border-radius: 3px;
    background: rgba(245, 78, 0, .9);
    box-shadow: 0 0 1.4cqw rgba(245, 78, 0, .9);
    mix-blend-mode: multiply;
    opacity: 0;
}

.ux-hw__px { position: absolute; z-index: 3; }

.ux-hw__slice { position: absolute; left: 0; right: 0; z-index: 2; background-repeat: no-repeat; }
.ux-hw__slice.is-r { mix-blend-mode: screen; filter: sepia(1) saturate(8) hue-rotate(-45deg); opacity: .85; }
.ux-hw__slice.is-c { mix-blend-mode: screen; filter: sepia(1) saturate(8) hue-rotate(130deg); opacity: .85; }

@media (prefers-reduced-motion: reduce) {
    .ux-hw__scr, .ux-hw__scr::after, .ux-hw__line, .ux-hw__cursor, .ux-hw__brand { animation: none; }
}

/* =====================================================================
 * 10. "El poder de lo visual" (phpeitor-ux.js §10). Overlays follow the
 *     card's own hover zoom (scale 1.05) so they stay aligned.
 * ===================================================================== */

/* GIF cards are shorter than the photos: fill the card instead of a grey strip */
.top-collection-card { background: #000 !important; }
.top-collection-card img { height: 100%; object-fit: cover; }

.ux-vis-card { position: relative; }

.ux-vis {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
    container-type: inline-size;
    pointer-events: none;
    transition: transform 300ms ease;
}

.top-collection-card:hover .ux-vis { transform: scale(1.05); }

.ux-vis:not(.is-on) * { animation-play-state: paused !important; }

/* Data center */
.ux-vis__led {
    position: absolute;
    width: .9cqw;
    height: .5cqw;
    border-radius: 1px;
    background: #9CC9FF;
    box-shadow: 0 0 1cqw 0.2cqw rgba(120, 180, 255, .9);
    animation: ux-vis-led 2s steps(1) infinite;
}

@keyframes ux-vis-led { 0%, 100% { opacity: .15; } 30% { opacity: 1; } 55% { opacity: .35; } 70% { opacity: .95; } }

.ux-vis__scr { position: absolute; overflow: hidden; mix-blend-mode: screen; opacity: .55; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }

.ux-vis__rain { position: absolute; inset: 0; overflow: hidden; }
.ux-vis__rain-in { display: grid; gap: .7cqw; animation: ux-vis-rain 7s linear infinite; }
.ux-vis__rain-in span { display: block; height: .55cqw; border-radius: 2px; box-shadow: 0 0 .6cqw currentColor; opacity: .9; }

@keyframes ux-vis-rain { to { transform: translateY(-50%); } }

.ux-vis__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.ux-vis__trail { fill: none; stroke: rgba(140, 190, 255, .35); stroke-width: 4; stroke-dasharray: 6 16; }

.ux-vis__head {
    fill: none;
    stroke: #E6F0FF;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-dasharray: 12 200;
    stroke-dashoffset: 12;
    filter: drop-shadow(0 0 4px #6EA8FF) drop-shadow(0 0 10px #3B82F6);
    animation: ux-vis-packet 2.7s cubic-bezier(.55, .1, .35, 1) infinite;
}

@keyframes ux-vis-packet { from { stroke-dashoffset: 12; } to { stroke-dashoffset: -100; } }

.ux-vis__node { position: absolute; width: 0; height: 0; }

.ux-vis__node::before {
    content: "";
    position: absolute;
    left: -1.2cqw;
    top: -1.2cqw;
    width: 2.4cqw;
    height: 2.4cqw;
    border: 1.5px solid #9CC9FF;
    border-radius: 50%;
    opacity: 0;
    animation: ux-vis-ping 2.7s ease-out infinite;
    animation-delay: inherit;
}

@keyframes ux-vis-ping { 0% { opacity: .9; transform: scale(.4); } 35%, 100% { opacity: 0; transform: scale(2.2); } }

.ux-vis__shine {
    position: absolute;
    mix-blend-mode: overlay;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) -100% 0 / 220% 100% no-repeat;
    animation: ux-vis-shine 5.4s ease-in-out 1s infinite;
}

@keyframes ux-vis-shine { 0% { background-position: 130% 0; } 30%, 100% { background-position: -130% 0; } }

/* Eye */
.ux-vis__face {
    position: absolute;
    mix-blend-mode: screen;
    opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse at 55% 50%, #000 35%, transparent 72%);
    mask-image: radial-gradient(ellipse at 55% 50%, #000 35%, transparent 72%);
}

.ux-vis__face .ux-vis__rain-in { gap: 1.1cqw; animation-duration: 9s; }
.ux-vis__face .ux-vis__rain-in span { height: .7cqw; filter: blur(.25cqw); }

.ux-vis__hud { position: absolute; display: grid; place-items: center; }
.ux-vis__hud svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ux-vis__hud circle { fill: none; stroke: #A5C4FF; stroke-width: .8; transform-origin: 50% 50%; }
.ux-vis__hud .a { stroke-dasharray: 18 10 4 10; animation: ux-vis-spin 6s linear infinite; }
.ux-vis__hud .b { stroke-dasharray: 2 6; opacity: .7; animation: ux-vis-spin 4s linear infinite reverse; }
.ux-vis__hud .x { stroke: #A5C4FF; stroke-width: .8; }
.ux-vis__hud.is-lock circle, .ux-vis__hud.is-lock .x { stroke: #6EE7B7; }
.ux-vis__hud.is-lock .a { stroke-dasharray: none; animation: ux-vis-lock .5s steps(2) 2; }

.ux-vis__hud em {
    position: absolute;
    left: 100%;
    top: 6%;
    padding: .3cqw .8cqw;
    border: 1px solid rgba(165, 196, 255, .6);
    font: 600 1.7cqw/1.2 var(--ux-mono);
    font-style: normal;
    letter-spacing: .06em;
    white-space: nowrap;
    color: #DCE6FF;
    background: rgba(10, 16, 40, .55);
}

.ux-vis__hud.is-lock em { border-color: #6EE7B7; color: #A7F3D0; }

@keyframes ux-vis-spin { to { transform: rotate(360deg); } }
@keyframes ux-vis-lock { 50% { opacity: .2; } }

.ux-vis__term { position: absolute; display: grid; align-content: start; gap: 1cqw; font: 500 2.25cqw/1.35 var(--ux-mono); color: #C7D2FE; }

.ux-vis__tline {
    display: block;
    width: calc(var(--n) * 1ch);
    max-width: 100%;
    overflow: hidden;
    white-space: pre;
    animation: ux-hw-type calc(var(--n) * 38ms) steps(var(--n), end) both;
}

.ux-vis__tline.is-ok { color: #6EE7B7; }
.ux-vis__tline.is-static { width: auto; animation: none; }

.ux-vis__term::after { content: ""; display: block; width: 1.1cqw; height: 2cqw; background: #818CF8; animation: ux-kb-caret 1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
    .ux-vis *, .ux-vis *::before { animation: none !important; }
    .ux-vis__head { display: none; }
}

/* ---- 10b. The two GIF cards: overlay box with the GIF aspect, centred like object-fit: cover */
.ux-vis__fit { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1400 / 788; transform: translateX(-50%); container-type: inline-size; }

/* Typography GIF → Figma-like canvas */
.ux-fig__ruler { position: absolute; background: rgba(255, 255, 255, .04); }
.ux-fig__ruler.is-x { left: 0; right: 0; top: 0; height: 2.6cqw; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 2.5cqw); background-size: 100% 35%; background-repeat: no-repeat; background-position: bottom; }
.ux-fig__ruler.is-y { top: 0; bottom: 0; left: 0; width: 2.6cqw; background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .28) 0 1px, transparent 1px 2.5cqw); background-size: 35% 100%; background-repeat: no-repeat; background-position: right; }
.ux-fig__ruler i { position: absolute; background: #7C3AED; transition: left .9s cubic-bezier(.65, 0, .3, 1), top .9s cubic-bezier(.65, 0, .3, 1); }
.ux-fig__ruler.is-x i { top: 0; bottom: 0; width: 2px; }
.ux-fig__ruler.is-y i { left: 0; right: 0; height: 2px; }

.ux-fig__sel { position: absolute; border: 1.5px solid #0D99FF; opacity: 0; transform: scale(1.04); transition: opacity .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.ux-fig__sel.is-on { opacity: 1; transform: none; }
.ux-fig__sel i { position: absolute; width: 1.2cqw; height: 1.2cqw; border: 1.5px solid #0D99FF; background: #fff; }
.ux-fig__sel i:nth-child(1) { left: -.6cqw; top: -.6cqw; }
.ux-fig__sel i:nth-child(2) { right: -.6cqw; top: -.6cqw; }
.ux-fig__sel i:nth-child(3) { left: -.6cqw; bottom: -.6cqw; }
.ux-fig__sel i:nth-child(4) { right: -.6cqw; bottom: -.6cqw; }

.ux-fig__sel em {
    position: absolute;
    left: 50%;
    top: calc(100% + 1cqw);
    transform: translateX(-50%);
    padding: .3cqw .9cqw;
    border-radius: .5cqw;
    font: 600 1.55cqw/1.3 var(--ux-mono);
    font-style: normal;
    white-space: nowrap;
    color: #fff;
    background: #0D99FF;
}

.ux-fig__cursor { position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: .2cqw; transform-origin: 0 0; }
.ux-fig__cursor svg { width: 2.2cqw; height: 2.2cqw; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.ux-fig__cursor b { margin-top: 1.7cqw; padding: .25cqw .8cqw; border-radius: .4cqw; font: 600 1.45cqw/1.3 var(--ux-sans); color: #fff; white-space: nowrap; }
.ux-fig__cursor.is-click svg { animation: ux-fig-click .3s ease; }

@keyframes ux-fig-click { 50% { transform: scale(.75); } }

.ux-fig__drop { position: absolute; display: flex; align-items: center; gap: .8cqw; padding: .6cqw 1cqw .6cqw .6cqw; border-radius: 1cqw; background: #1E1E1E; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .45); opacity: 0; transform: translate(2cqw, 2.4cqw) scale(.6); transform-origin: 0 0; transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ux-fig__drop.is-on { opacity: 1; transform: translate(2cqw, 2.4cqw); }
.ux-fig__drop i { width: 3cqw; height: 3cqw; border: 2px solid #fff; border-radius: 50%; background: #FF6400; }
.ux-fig__drop b { font: 600 1.7cqw/1 var(--ux-mono); color: #fff; }

/* Social GIF → viral post */
.ux-soc__hearts { position: absolute; }
.ux-soc__heart { position: absolute; bottom: 0; width: 3.2cqw; height: 3.2cqw; filter: drop-shadow(0 0 1cqw rgba(255, 106, 43, .7)); }
.ux-soc__heart svg { width: 100%; height: 100%; fill: currentColor; }

.ux-soc__feed { position: absolute; display: flex; flex-direction: column; gap: .9cqw; }

.ux-soc__note {
    display: flex;
    align-items: center;
    gap: .9cqw;
    width: max-content;
    padding: .7cqw 1.3cqw .7cqw .7cqw;
    border: 1px solid rgba(255, 140, 80, .35);
    border-radius: 99px;
    font: 500 1.8cqw/1.2 var(--ux-sans);
    color: #FFE9DC;
    background: rgba(30, 14, 6, .78);
    backdrop-filter: blur(4px);
    animation: ux-soc-in .45s cubic-bezier(.34, 1.56, .64, 1) both;
    transition: opacity .3s ease, transform .3s ease;
}

.ux-soc__note i { display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: 50%; font-style: normal; font-size: 1.6cqw; color: #fff; background: #FF6A2B; }
.ux-soc__note.is-out { opacity: 0; transform: translateY(1cqw); }

@keyframes ux-soc-in { from { opacity: 0; transform: translateX(4cqw) scale(.9); } }

.ux-soc__stats { position: absolute; display: grid; grid-template-columns: auto auto; align-content: start; align-items: baseline; gap: .4cqw 1.2cqw; }
.ux-soc__stats span { grid-column: 1 / -1; font: 600 1.4cqw/1 var(--ux-mono); letter-spacing: .3em; text-transform: uppercase; color: #FF6A2B; }
.ux-soc__stats strong { font: 600 5cqw/1 var(--ux-sans); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ux-soc__stats strong.is-bump { animation: ux-soc-bump .35s ease; }
.ux-soc__stats em { font: 600 1.7cqw/1 var(--ux-mono); font-style: normal; color: #4ADE80; }
.ux-soc__stats svg { grid-column: 1 / -1; width: 100%; height: 3.2cqw; overflow: visible; }
.ux-soc__stats path { fill: none; stroke: #FF6A2B; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 140; stroke-dashoffset: 140; animation: ux-soc-line 3s ease-in-out infinite; }

@keyframes ux-soc-bump { 40% { transform: translateY(-.6cqw); color: #FFB48A; } }
@keyframes ux-soc-line { 0% { stroke-dashoffset: 140; } 60%, 100% { stroke-dashoffset: 0; } }

/* =====================================================================
 * 11. Helmet AI (phpeitor-ux.js §11) in "Transformando vidas con tecnología"
 * ===================================================================== */
.ux-ai-host { position: relative; }

.ux-ai { position: absolute; overflow: hidden; border-radius: 20px; container-type: inline-size; pointer-events: none; }
.ux-ai:not(.is-on) * { animation-play-state: paused !important; }

/* Scan beam, clipped to the visor shape */
.ux-ai__visor { position: absolute; overflow: hidden; clip-path: ellipse(46% 58% at 50% 38%); }

.ux-ai__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 12%;
    background: linear-gradient(transparent, rgba(167, 139, 250, .22) 45%, rgba(221, 214, 254, .55) 50%, rgba(167, 139, 250, .22) 55%, transparent);
    mix-blend-mode: screen;
    animation: ux-ai-scan 4.2s cubic-bezier(.45, 0, .55, 1) infinite;
}

@keyframes ux-ai-scan { 0% { top: -14%; opacity: 0; } 8% { opacity: 1; } 55% { top: 100%; opacity: 1; } 56%, 100% { top: 100%; opacity: 0; } }

/* Eyes: two LED matrices (9 × 6) that morph between expressions and look at the pointer */
.ux-ai__eyes { --lx: 0; --ly: 0; position: absolute; display: flex; align-items: center; justify-content: space-between; transform: translate(calc(var(--lx) * 2.2cqw), calc(var(--ly) * 1.4cqw)); transition: transform .3s cubic-bezier(.2, .8, .3, 1); }

.ux-ai__eye { width: 42%; height: auto; overflow: visible; filter: drop-shadow(0 0 .35cqw #C4B5FD) drop-shadow(0 0 1.3cqw #8B5CF6); }
.ux-ai__eye rect { fill: #8B5CF6; opacity: .1; transform-box: fill-box; transform-origin: center; transform: scale(.7); transition: opacity .16s ease, transform .22s cubic-bezier(.34, 1.56, .64, 1), fill .16s ease; }
.ux-ai__eye rect.on { fill: #F5F3FF; opacity: 1; transform: scale(1); }

/* Voice wave in the lower visor */
.ux-ai__wave { position: absolute; display: flex; align-items: center; justify-content: center; gap: 4%; opacity: .25; transition: opacity .3s ease; }
.ux-ai.is-talking .ux-ai__wave { opacity: 1; }

.ux-ai__wave span {
    width: 6%;
    height: 100%;
    border-radius: 99px;
    background: #C4B5FD;
    box-shadow: 0 0 1cqw #8B5CF6;
    transform: scaleY(.15);
    transition: transform .09s linear;
}

/* Chat bubble: neon border that turns, HUD header, decoding gradient text */
@property --ux-ai-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.ux-ai__bubble {
    position: absolute;
    display: grid;
    gap: .9cqw;
    width: max-content;
    min-width: 21%;
    max-width: 25.5%;
    padding: 1.4cqw 1.8cqw 1.6cqw;
    border: 1.5px solid transparent;
    border-radius: 1.6cqw 1.6cqw 1.6cqw .3cqw;
    background:
        linear-gradient(rgba(18, 9, 38, .92), rgba(18, 9, 38, .92)) padding-box,
        conic-gradient(from var(--ux-ai-a), #8B5CF6, #22D3EE, #F472B6, #8B5CF6) border-box;
    box-shadow: 0 0 3.5cqw rgba(139, 92, 246, .45), inset 0 0 2cqw rgba(139, 92, 246, .15);
    opacity: 0;
    transform: translateX(-2cqw) scale(.9);
    transform-origin: 0 100%;
    transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
    animation: ux-ai-border 3s linear infinite;
}

.ux-ai__bubble.is-on { opacity: 1; transform: none; }

@keyframes ux-ai-border { to { --ux-ai-a: 360deg; } }

.ux-ai__head { display: flex; align-items: center; gap: .7cqw; font: 700 1.2cqw/1 var(--ux-mono); letter-spacing: .18em; white-space: nowrap; color: #C4B5FD; }
.ux-ai__head i { width: .9cqw; height: .9cqw; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 .9cqw #4ADE80; animation: ux-ai-live 1.6s ease-in-out infinite; }
.ux-ai__head em { font-style: normal; font-weight: 500; letter-spacing: .12em; color: #7C6BAF; }

@keyframes ux-ai-live { 50% { opacity: .35; } }

.ux-ai__row { display: flex; align-items: flex-end; }

.ux-ai__text {
    font: 700 2.05cqw/1.3 var(--ux-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #F5F3FF 0%, #C4B5FD 45%, #67E8F9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 .6cqw rgba(167, 139, 250, .55));
}

.ux-ai__caret { display: inline-block; flex: none; width: 1cqw; height: 2.2cqw; margin: 0 0 .2cqw .5cqw; background: #67E8F9; box-shadow: 0 0 1cqw #22D3EE; animation: ux-kb-caret .9s steps(1) infinite; }

@media (max-width: 768px) {
    .ux-ai__bubble { max-width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
    .ux-ai__scan, .ux-ai__caret { animation: none; display: none; }
    .ux-ai__eye rect, .ux-ai__eyes, .ux-ai__bubble { transition: none; animation: none; }
}

/* ---- "¿Cómo comprar?" responsive: each step card adapts to its own width
   (between 769 and ~1100 px the three cards stay in a row but get narrow). */
.ux-flow__node { container-type: inline-size; min-width: 0; }

.ux-pay { flex: 0 1 58px; min-width: 44px; width: auto; height: auto; aspect-ratio: 58 / 37; }

@container (max-width: 230px) {
    .ux-flow__cats { grid-template-columns: 1fr; }
    .ux-flow__cats a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* logos 2 × 2 */
    .ux-flow__pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 150px; }
    .ux-pay { width: 100%; min-width: 0; }

    /* download: icon on top, bar full width */
    .ux-dl { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
    .ux-dl__body { width: 100%; }
    .ux-dl__state { font-size: 11px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .ux-flow__node { padding: 18px; }
    .ux-flow__node strong { font-size: 18px; }
    .ux-flow__link { flex-basis: 22px; }
}

/* =====================================================================
 * CMS pages header (cms/page.blade.php): breadcrumb, "/ STORE" kicker, title, lead.
 * ===================================================================== */
.ux-page-head { padding-bottom: 28px; border-bottom: 1px solid var(--ux-line); }
.ux-page-head__crumbs { margin-bottom: 22px; }

.ux-page-head__title {
    max-width: 22ch;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--ux-ink);
}

.ux-page-head__title::before {
    content: "/ " attr(data-ux-kicker);
    display: block;
    margin-bottom: 14px;
    font: 500 11.5px/1 var(--ux-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ux-muted);
}

.ux-page-head__lead { max-width: 62ch; margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ux-body); }

/* =====================================================================
 * Touch targets on phones: the header and card icons look 24 px but are
 * tapped through an invisible ~44 px area (::after; the glyph lives in ::before).
 * ===================================================================== */
@media (max-width: 767px), (pointer: coarse) {
    header [class*="icon-"].cursor-pointer:not(.absolute) { position: relative; }

    header [class*="icon-"].cursor-pointer::after {
        content: "";
        position: absolute;
        inset: -10px;
    }

    /* Wishlist / compare stacked on the card image: taller than wide so they don't overlap */
    .ux-card .icon-heart.absolute::after,
    .ux-card .icon-heart-fill.absolute::after,
    .ux-card .icon-compare.absolute::after {
        content: "";
        position: absolute;
        inset: -5px -10px;
    }
}

/* Phones: footer links get a taller tap area (~30 px + the list gap) without changing the layout much,
   and the hero pause button an invisible 44 px one. */
@media (max-width: 767px), (pointer: coarse) {
    footer ul a,
    footer li > a { display: inline-block; padding-block: 5px; }

    .ux-hero__pause { position: relative; }
    .ux-hero__pause::after { content: ""; position: absolute; inset: -9px; }

    .ux-hero__seg { position: relative; }
    .ux-hero__seg::after { content: ""; position: absolute; inset: -12px 0; }
}

/* =====================================================================
 * Top-bar offer with coupon (components/layouts/header/offer.blade.php).
 * The code is a dashed "ticket" button: click copies it (phpeitor-ux.js).
 * ===================================================================== */
.ux-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0; text-align: center; }
.ux-offer__text { color: var(--ux-body); }

.ux-offer__coupon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border: 1px dashed var(--ux-accent);
    border-radius: 6px;
    font: 600 11.5px/1.2 var(--ux-mono);
    letter-spacing: .08em;
    color: var(--ux-accent);
    background: rgba(245, 78, 0, .07);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.ux-offer__coupon:hover { background: rgba(245, 78, 0, .14); }
.ux-offer__coupon:active { transform: scale(.97); }
.ux-offer__coupon:focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 2px; }
.ux-offer__coupon svg { width: 12px; height: 12px; }

/* "¡Copiado!" bubble */
.ux-offer__coupon::after {
    content: attr(data-copied);
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    z-index: 30;
    padding: 4px 8px;
    border-radius: 6px;
    font: 500 11px/1 var(--ux-sans);
    letter-spacing: 0;
    white-space: nowrap;
    color: #FFF;
    background: var(--ux-ink);
    opacity: 0;
    transform: translate(-50%, -4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.ux-offer__coupon.is-copied::after { opacity: 1; transform: translate(-50%, 0); }
.ux-offer__link { text-decoration: underline; text-underline-offset: 2px; color: var(--ux-ink); }

/* Phones: thin strip above the mobile header */
.ux-offer--strip { padding: 8px 14px; font-size: 12px; border-bottom: 1px solid var(--ux-line); background: var(--ux-canvas-soft); }
