/* ============================================================
   TOKENS
============================================================ */
:root {
    --bg: #06070c;
    --bg-soft: #0b0d15;
    --surface: #10131e;
    --surface-2: #171b29;
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);

    --text: #eef0f6;
    --text-muted: #9aa2b8;

    --accent: #7c5cff;
    --accent-2: #00e5ff;
    --accent-grad: linear-gradient(120deg, #7c5cff, #00e5ff);
    --success: #16c784;
    --danger: #ff5470;
    --warn: #ffb547;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --shadow: 0 10px 40px -10px rgba(0, 0, 0, .7);
    --ease: cubic-bezier(.22, .8, .28, 1);
    --t: .28s var(--ease);

    --container: 1280px;
    --header-h: 76px;
}

/* ============================================================
   RESET
============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform var(--t), background var(--t), border-color var(--t),
        box-shadow var(--t), color var(--t);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent-grad);
    color: #05060a;
    box-shadow: 0 6px 30px -8px rgba(124, 92, 255, .8);
}

.btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px rgba(124, 92, 255, 1);
}

.btn--primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--ghost {
    border-color: var(--border-strong);
    color: var(--text);
    background: rgba(255, 255, 255, .03);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .09);
    border-color: var(--accent-2);
}

.btn--sm {
    padding: 9px 16px;
    font-size: 13.5px;
}

.btn--lg {
    padding: 16px 30px;
    font-size: 16px;
    border-radius: 12px;
}

.btn--block {
    width: 100%;
}

.btn.is-loading .btn__label {
    opacity: .6;
}

.btn__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: spin .7s linear infinite;
}

.btn__arrow {
    transition: transform var(--t);
}

.btn:hover .btn__arrow {
    transform: translateY(4px);
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--text);
    transition: background var(--t), color var(--t);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--accent-2);
}

/* ============================================================
   HEADER
============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 7, 12, .72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), background var(--t);
}

.header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(6, 7, 12, .9);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.03em;
    flex-shrink: 0;
}

.brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-grad);
    color: #05060a;
    font-weight: 800;
}

.brand__name em {
    font-style: normal;
    color: var(--accent-2);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--t), background var(--t);
    background: none;
}

.nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown__toggle svg {
    transition: transform var(--t);
}

.dropdown.is-open .dropdown__toggle svg {
    transform: rotate(180deg);
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t);
    z-index: 20;
}

.dropdown.is-open .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--text-muted);
    transition: background var(--t), color var(--t);
}

.dropdown__menu a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--accent-2);
}

/* Search */
.search {
    flex: 1;
    max-width: 420px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.search:focus-within {
    border-color: var(--accent-2);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, .12);
}

.search__icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    font-size: 15px;
}

.search input::placeholder {
    color: var(--text-muted);
}

.search input::-webkit-search-cancel-button {
    display: none;
}

.search__clear {
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    padding: 0 4px;
}

.search__clear:hover {
    color: var(--accent-2);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent-2);
    color: #05060a;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
    transform: scale(0);
    transition: transform .3s var(--ease);
}

.badge.is-visible {
    transform: scale(1);
}

.badge.is-bump {
    animation: badgeBump .45s var(--ease);
}

.menu-toggle {
    display: none;
}

/* User menu */
.user-menu {
    position: relative;
}

.user-menu__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    transition: background var(--t), border-color var(--t);
}

.user-menu__toggle:hover {
    background: rgba(255, 255, 255, .09);
    border-color: var(--border-strong);
}

.user-menu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #05060a;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.user-menu__name {
    font-size: 14.5px;
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t);
    z-index: 20;
}

.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__header {
    padding: 12px 12px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-menu__header strong {
    font-size: 14.5px;
}

.user-menu__header span {
    font-size: 12.5px;
    color: var(--text-muted);
}

.user-menu__role {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .15);
    color: var(--accent-2);
    font-size: 10.5px !important;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    width: fit-content;
}

.user-menu__role[data-role="seller"],
.user-menu__role[data-role="vendedor"],
.user-menu__role[data-role="admin"],
.user-menu__role[data-role="administrador"] {
    background: linear-gradient(120deg, rgba(255, 181, 71, .2), rgba(255, 84, 112, .2));
    color: var(--warn);
}

.user-menu__dropdown a,
.user-menu__logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14.5px;
    color: var(--text-muted);
    transition: background var(--t), color var(--t);
}

.user-menu__dropdown a:hover,
.user-menu__logout:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.user-menu__logout {
    color: var(--danger);
    margin-top: 4px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    border-radius: 0 0 9px 9px;
}

.user-menu__logout:hover {
    background: rgba(255, 84, 112, .12);
    color: var(--danger);
}

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(124, 92, 255, .35), transparent 60%),
        linear-gradient(180deg, rgba(6, 7, 12, .55) 0%, rgba(6, 7, 12, .8) 60%, var(--bg) 100%);
}

.hero__glow {
    position: absolute;
    width: 720px;
    height: 720px;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 92, 255, .22), transparent 65%);
    filter: blur(30px);
    z-index: -1;
    animation: pulseGlow 7s ease-in-out infinite;
    pointer-events: none;
}

.hero__inner {
    text-align: center;
    padding-block: 90px;
}

.hero__title {
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.045em;
    min-height: 2.2em;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
}

.hero-phrase {
    grid-area: 1 / 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 .28em;
    opacity: 0;
    pointer-events: none;
}

.hero-phrase.is-active {
    opacity: 1;
}

.hero-phrase .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
}

.hero-phrase.is-active .word {
    animation: wordIn .7s var(--ease) forwards;
    animation-delay: calc(var(--i) * .09s);
}

.hero-phrase.is-leaving .word {
    animation: wordOut .35s var(--ease) forwards;
    animation-delay: calc(var(--i) * .04s);
}

.hero__subtitle {
    color: var(--text-muted);
    font-size: clamp(.95rem, 2vw, 1.15rem);
    margin-bottom: 34px;
}

/* ============================================================
   PRODUCTS
============================================================ */
.products {
    padding-block: 80px 60px;
}

.products__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 42px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 6px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 14.5px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--t);
}

.filter:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .07);
}

.filter.is-active {
    background: var(--accent-grad);
    color: #05060a;
    border-color: transparent;
    box-shadow: 0 6px 24px -8px rgba(124, 92, 255, .9);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 92, 255, .5);
    box-shadow: 0 24px 50px -22px rgba(124, 92, 255, .55);
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(124, 92, 255, .18), transparent 70%),
        var(--surface-2);
    overflow: hidden;
    font-size: 64px;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.card:hover .card__media img {
    transform: scale(1.07);
}

.card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(6, 7, 12, .7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card__title {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.card__desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card__price {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card__add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 700;
    transition: all var(--t);
    cursor: pointer;
}

.card__add:hover {
    background: var(--accent-grad);
    color: #05060a;
    border-color: transparent;
    transform: translateY(-2px);
}

.skeleton {
    border-radius: var(--radius-lg);
    background: linear-gradient(100deg,
            var(--surface) 30%,
            var(--surface-2) 50%,
            var(--surface) 70%);
    background-size: 220% 100%;
    animation: shimmer 1.4s linear infinite;
    height: 340px;
}

.state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.state__icon {
    font-size: 54px;
    margin-bottom: 16px;
    opacity: .6;
}

.state h3 {
    color: var(--text);
    font-size: 20px;
    margin-bottom: 8px;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ============================================================
   OVERLAY
============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity var(--t);
}

.overlay.is-open {
    opacity: 1;
}

/* ============================================================
   DRAWER (carrito)
============================================================ */
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 210;
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    transition: transform .42s var(--ease);
}

.drawer--right {
    right: 0;
    border-right: 0;
    transform: translateX(105%);
}

.drawer--right.is-open {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer__head h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.drawer__head .icon-btn {
    font-size: 26px;
    line-height: 1;
}

.drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawer__foot {
    padding: 20px 24px 26px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.cart__empty {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

.cart__empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .5;
}

.cart__empty .btn {
    margin-top: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    animation: slideIn .35s var(--ease);
}

.cart-item__media {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    font-size: 26px;
    overflow: hidden;
}

.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__name {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.cart-item__variant {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-item__price {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
    transition: all var(--t);
}

.qty-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #05060a;
}

.qty-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.cart-item__qty span {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.cart-item__remove {
    align-self: flex-start;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 7px;
    transition: all var(--t);
}

.cart-item__remove:hover {
    color: var(--danger);
    background: rgba(255, 84, 112, .12);
}

.cart__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cart__row span {
    color: var(--text-muted);
    font-size: 14.5px;
}

.cart__row strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.cart__note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ============================================================
   MODAL
============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(5px);
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(20px) scale(.97);
    transition: transform .35s var(--ease);
}

.modal--wide .modal__panel {
    max-width: 860px;
    padding: 32px;
}

.modal.is-open .modal__panel {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    transition: all var(--t);
    z-index: 2;
}

.modal__close:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--text);
}

.modal__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}

/* ============================================================
   TABS
============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
}

.tab {
    flex: 1;
    padding: 11px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--t);
}

.tab.is-active {
    background: var(--surface-2);
    color: var(--text);
}

/* ============================================================
   FORM
============================================================ */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field>span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.field>span small {
    font-weight: 400;
    font-size: 12px;
}

.field input,
.field select,
.field textarea {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    outline: none;
    font-size: 15px;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    width: 100%;
}

.field textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent-2);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, .1);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-muted);
    opacity: .7;
}

.field select option {
    background: var(--surface-2);
    color: var(--text);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form__hint {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form__hint a {
    color: var(--accent-2);
    font-weight: 600;
}

.form__error {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 84, 112, .1);
    border: 1px solid rgba(255, 84, 112, .35);
    color: #ffb3c0;
    font-size: 13.5px;
}

.form__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ============================================================
   PRODUCT DETAIL (modal)
============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.product-detail__media {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(124, 92, 255, .18), transparent 70%),
        var(--surface-2);
    display: grid;
    place-items: center;
    font-size: 120px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.product-detail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__category {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .15);
    border: 1px solid rgba(124, 92, 255, .35);
    color: var(--accent-2);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.product-detail__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.product-detail__desc {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.product-detail__price {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 22px;
}

.option-group {
    margin-bottom: 18px;
}

.option-group__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.option-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option {
    padding: 8px 16px;
    border-radius: 9px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .03);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--t);
}

.option:hover:not(:disabled) {
    border-color: var(--accent-2);
}

.option.is-selected {
    background: var(--accent-grad);
    color: #05060a;
    border-color: transparent;
}

.option:disabled {
    opacity: .3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variant-info {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(0, 229, 255, .07);
    border: 1px solid rgba(0, 229, 255, .2);
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.variant-info strong {
    color: var(--accent-2);
}

.product-detail__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============================================================
   CHECKOUT
============================================================ */
.checkout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout__section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.radio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    cursor: pointer;
    transition: all var(--t);
}

.radio-item:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, .04);
}

.radio-item.is-selected {
    border-color: var(--accent-2);
    background: rgba(0, 229, 255, .06);
}

.radio-item input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.radio-item__body {
    flex: 1;
    font-size: 14px;
}

.radio-item__body strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.radio-item__body span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   ==============   SELLER PANEL   ============================
============================================================ */
.seller {
    padding-block: 80px 60px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--border);
}

.seller__head {
    margin-bottom: 32px;
}

.seller__badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(120deg, #ffb547, #ff5470);
    color: #05060a;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.seller__subtitle {
    font-size: 16px;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text);
}

.seller__tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.seller-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all var(--t);
}

.seller-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}

.seller-tab.is-active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5);
}

.seller-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.seller-input {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    outline: none;
    font-size: 14px;
    min-width: 220px;
    transition: border-color var(--t), box-shadow var(--t);
}

.seller-input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, .1);
}

.seller-input option {
    background: var(--surface-2);
    color: var(--text);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
}

.stat-card__label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card__value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

/* Lista tipo tabla */
.seller-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seller-row {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color var(--t);
}

.seller-row:hover {
    border-color: var(--border-strong);
}

.seller-row__media {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    font-size: 24px;
    overflow: hidden;
}

.seller-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-row__info strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.seller-row__info span {
    font-size: 12.5px;
    color: var(--text-muted);
}

.seller-row__price {
    font-size: 15px;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.seller-row__actions {
    display: flex;
    gap: 6px;
}

.icon-action {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t);
    font-size: 15px;
}

.icon-action:hover {
    background: rgba(124, 92, 255, .2);
    color: var(--accent-2);
    border-color: rgba(124, 92, 255, .4);
}

.icon-action--danger:hover {
    background: rgba(255, 84, 112, .15);
    color: var(--danger);
    border-color: rgba(255, 84, 112, .4);
}

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    color: var(--text-muted);
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill[data-status*="pend"] {
    color: var(--warn);
}

.status-pill[data-status*="confirm"],
.status-pill[data-status*="aprob"],
.status-pill[data-status*="pagad"] {
    color: var(--success);
}

.status-pill[data-status*="cancel"],
.status-pill[data-status*="rechaz"] {
    color: var(--danger);
}

.status-pill[data-status*="envi"],
.status-pill[data-status*="camino"] {
    color: var(--accent-2);
}

.status-select {
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color var(--t);
}

.status-select:focus {
    border-color: var(--accent-2);
}

.status-select option {
    background: var(--surface-2);
    color: var(--text);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding-block: 30px;
    margin-top: 40px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 22px;
}

.footer__links a:hover {
    color: var(--accent-2);
}

/* ============================================================
   TOASTS
============================================================ */
.toasts {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: min(420px, calc(100% - 32px));
}

.toast {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    font-size: 14.5px;
    font-weight: 600;
    animation: toastIn .4s var(--ease);
}

.toast.is-out {
    animation: toastOut .3s var(--ease) forwards;
}

.toast--success {
    border-left: 3px solid var(--success);
}

.toast--error {
    border-left: 3px solid var(--danger);
}

.toast--info {
    border-left: 3px solid var(--accent-2);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .search {
        max-width: 260px;
    }
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 24px 24px;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform .35s var(--ease);
        z-index: 90;
    }

    .nav.is-open {
        transform: translateY(0);
    }

    .nav__link {
        padding: 13px 14px;
        font-size: 16px;
    }

    .dropdown__menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: 0;
        padding: 0 0 0 14px;
        display: none;
    }

    .dropdown.is-open .dropdown__menu {
        display: block;
    }

    .search {
        order: 10;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }

    .header__inner {
        flex-wrap: wrap;
        height: auto;
        padding-block: 12px;
        gap: 12px;
    }

    .menu-toggle {
        display: grid;
    }

    .hero {
        min-height: 78vh;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .product-detail__media {
        max-height: 340px;
    }
}

@media (max-width: 640px) {
    .seller-row {
        grid-template-columns: 50px 1fr;
        row-gap: 12px;
    }

    .seller-row__price,
    .seller-row__actions,
    .seller-row .status-select,
    .seller-row .status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .seller__tabs {
        width: 100%;
    }

    .seller-tab {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .container {
        padding-inline: 18px;
    }

    .hide-sm {
        display: none;
    }

    .products__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .card__body {
        padding: 14px;
    }

    .card__title {
        font-size: 15px;
    }

    .card__desc {
        display: none;
    }

    .card__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .card__add {
        justify-content: center;
    }

    .drawer {
        width: 100%;
    }

    .modal {
        padding: 12px;
    }

    .modal__panel {
        padding: 24px 20px;
    }

    .user-menu__name {
        display: none;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form__actions {
        flex-direction: column-reverse;
    }

    .form__actions .btn {
        width: 100%;
    }
}