:root {
    --category-bg: #070b13;
    --category-surface: #0d1421;
    --category-surface-soft: #111a2a;
    --category-surface-raised: #152033;
    --category-border: rgba(148, 163, 184, .16);
    --category-border-strong: rgba(139, 92, 246, .42);
    --category-text: #f8fafc;
    --category-muted: #94a3b8;
    --category-purple: #8b5cf6;
    --category-purple-dark: #6d3be7;
    --category-cyan: #22d3ee;
    --category-green: #34d399;
    --category-red: #fb7185;
    --category-orange: #fb923c;
    --category-radius-lg: 24px;
    --category-radius-md: 16px;
    --category-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.section:has(.category-page-shell) {
    position: relative;
    padding: 28px 0 64px;
    overflow: clip;
    background:
        radial-gradient(circle at 8% 0%, rgba(109, 59, 231, .12), transparent 27rem),
        radial-gradient(circle at 92% 16%, rgba(34, 211, 238, .07), transparent 25rem),
        var(--category-bg);
}

.section:has(.category-page-shell)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 100% 48px;
}

.category-page-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
}

.category-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 250px;
    padding: 34px 38px;
    overflow: hidden;
    border: 1px solid var(--category-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 22%, rgba(139, 92, 246, .20), transparent 25rem),
        linear-gradient(135deg, #131c2d, #0a101b 70%);
    box-shadow: var(--category-shadow), inset 0 1px 0 rgba(255,255,255,.06);
}

.category-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -145px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(139, 92, 246, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 50px rgba(139,92,246,.035), 0 0 0 100px rgba(139,92,246,.02);
    pointer-events: none;
}

.category-hero.has-category-banner {
    min-height: clamp(280px, 27vw, 390px);
    background: #080c14;
}

.category-hero-banner,
.category-hero-overlay {
    position: absolute;
    inset: 0;
}

.category-hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.category-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 8, 17, .96) 0%, rgba(4, 8, 17, .80) 38%, rgba(4, 8, 17, .20) 78%),
        linear-gradient(0deg, rgba(4,8,17,.48), transparent 55%);
}

.category-hero-content {
    position: relative;
    z-index: 2;
    width: min(780px, 100%);
}

.category-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: rgba(226, 232, 240, .62);
    font-size: 12px;
    font-weight: 700;
}

.category-breadcrumbs a {
    color: #d8e1f0;
    text-decoration: none;
    transition: color .18s ease;
}

.category-breadcrumbs a:hover { color: #fff; }

.category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 14px;
    padding: 0 11px;
    border: 1px solid rgba(167, 139, 250, .34);
    border-radius: 999px;
    background: rgba(109, 59, 231, .16);
    color: #d8ccff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.category-title {
    margin: 0;
    color: var(--category-text);
    font-size: clamp(36px, 4.6vw, 68px);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
}

.category-desc {
    max-width: 720px;
    margin: 17px 0 0;
    color: #c3cede;
    font-size: 15px;
    line-height: 1.7;
}

.category-top-categories {
    padding: 10px;
    border: 1px solid var(--category-border);
    border-radius: 20px;
    background: rgba(13, 20, 33, .86);
    box-shadow: 0 12px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}

.category-top-categories-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-top-category-link,
.category-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    color: #dbe5f3;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.category-top-category-link:hover,
.category-top-category-link.is-active,
.category-quick-link:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, .55);
    background: rgba(109, 59, 231, .16);
    transform: translateY(-1px);
}

.category-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.category-sidebar,
.category-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.category-sidebar {
    position: sticky;
    top: 96px;
}

.category-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--category-border);
    border-radius: var(--category-radius-lg);
    background: linear-gradient(180deg, rgba(17,26,42,.96), rgba(11,17,28,.98));
    box-shadow: 0 14px 40px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.045);
}

.category-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--category-text);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.015em;
}

.category-panel-title::before {
    content: "";
    width: 7px;
    height: 18px;
    border-radius: 99px;
    background: linear-gradient(var(--category-purple), var(--category-cyan));
}

.category-filter-form { display: grid; gap: 13px; }

.category-field label {
    display: block;
    margin: 0 0 6px;
    color: #aebbd0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.category-field input,
.category-field select,
.category-sort-inline select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    outline: 0;
    border: 1px solid rgba(148,163,184,.17);
    border-radius: 12px;
    background: #080e18;
    color: #f8fafc;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.category-field input:focus,
.category-field select:focus,
.category-sort-inline select:focus {
    border-color: rgba(139, 92, 246, .7);
    box-shadow: 0 0 0 3px rgba(139,92,246,.12);
}

.category-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 3px;
}

.category-filter-actions .btn,
.product-actions .btn,
.categoria-product-alert-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.category-filter-actions .btn-primary,
.product-actions .btn-primary,
.product-actions .btn-status-stock,
.categoria-product-alert-submit {
    border: 1px solid rgba(196,181,253,.36) !important;
    background: linear-gradient(135deg, var(--category-purple), var(--category-purple-dark)) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(109,59,231,.24) !important;
}

.category-filter-actions .btn-secondary,
.product-actions .btn-secondary {
    border: 1px solid rgba(148,163,184,.18) !important;
    background: rgba(255,255,255,.04) !important;
    color: #e5edf8 !important;
}

.category-filter-actions .btn:hover,
.product-actions .btn:hover { transform: translateY(-1px); }

.category-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-quick-link { min-height: 34px; padding: 0 11px; font-size: 11px; }

.category-main > .category-panel { padding: 10px 12px; border-radius: 18px; }

.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
}

.category-results-count {
    color: #e5edf8;
    font-size: 13px;
    font-weight: 850;
}

.category-toolbar-right,
.category-sort-inline {
    display: flex;
    align-items: center;
    gap: 9px;
}

.category-toolbar-right { margin-left: auto; }
.category-sort-inline select { width: auto; min-width: 160px; min-height: 38px; }

.category-layout-switcher {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(148,163,184,.15);
    border-radius: 12px;
    background: #080e18;
}

.category-layout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    color: #8391a7;
    text-decoration: none;
}

.category-layout-btn svg { width: 17px; height: 17px; }
.category-layout-btn:hover { color: #fff; background: rgba(255,255,255,.05); }
.category-layout-btn.is-active { color: #fff; background: rgba(109,59,231,.28); }

.grid-products {
    display: grid;
    gap: 16px;
}

.grid-products--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-products--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-products--list { grid-template-columns: 1fr; }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--category-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #111a2a, #0b111c);
    box-shadow: 0 12px 34px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, .45);
    box-shadow: 0 22px 54px rgba(0,0,0,.34), 0 0 0 3px rgba(139,92,246,.065);
}

.product-card-link {
    display: block;
    width: 100%;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.product-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 20px);
    min-width: calc(100% - 20px);
    height: 260px;
    margin: 10px 10px 0;
    padding: 18px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.product-thumb img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    transition: transform .22s ease;
}

.product-card:hover .product-thumb img { transform: scale(1.035); }

.product-thumb-empty {
    color: #77859a;
    font-size: 13px;
    font-weight: 700;
}

.product-thumb-badges {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-thumb-badge,
.product-discount-pill,
.product-stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.product-thumb-badge { color: #fff; box-shadow: 0 7px 18px rgba(0,0,0,.18); }
.product-thumb-badge.pre { background: #ea7b22; }
.product-thumb-badge.discount { background: #e2465b; }
.product-thumb-badge.featured { background: #346fd4; }

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    text-align: left;
}

.product-title {
    display: -webkit-box;
    min-height: 43px;
    margin: 0;
    overflow: hidden;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.02em;
    line-height: 1.42;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    min-height: 17px;
    color: #8493aa;
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin-top: auto;
}

.product-price-current {
    color: #fff;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1;
}

.product-price-old { color: #738198; font-size: 12px; text-decoration: line-through; }
.product-discount-pill { min-height: 22px; color: #fecdd3; border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.12); }

.product-stock-line {
    display: flex;
    align-items: center;
    width: 100%;
}

.product-stock-pill { justify-content: flex-start; min-height: 29px; padding: 0 10px; }
.product-stock-pill::before { content: ""; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.product-stock-pill.ok { color: #6ee7b7; border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.09); }
.product-stock-pill.none { color: #fda4af; border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.09); }
.product-stock-pill.low { color: #fcd34d; border-color: rgba(252,211,77,.25); background: rgba(252,211,77,.09); }
.product-stock-pill.pre { color: #fdba74; border-color: rgba(251,146,60,.26); background: rgba(251,146,60,.10); }

.product-actions {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 8px;
    width: 100%;
    margin-top: 2px;
}

.product-actions form { width: 100%; margin: 0; }
.product-actions .btn { width: 100%; min-height: 41px; padding: 0 10px; }
.product-actions .btn-preorder,
.product-actions .btn-status-pre { border-color: rgba(253,186,116,.38) !important; background: linear-gradient(135deg, #f59e0b, #ea580c) !important; color: #fff !important; }
.product-actions .btn-out-stock { cursor: not-allowed; opacity: .72; border-color: rgba(251,113,133,.28) !important; background: rgba(251,113,133,.12) !important; color: #fda4af !important; }

.product-variant-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

.product-variant-mini-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 0 9px;
    cursor: pointer;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 850;
}

.product-variant-mini-chip:hover,
.product-variant-mini-chip.is-active { color: #fff; border-color: rgba(139,92,246,.56); background: rgba(109,59,231,.20); }
.product-variant-mini-chip.is-out,
.product-variant-mini-chip:disabled { cursor: not-allowed; opacity: .38; text-decoration: line-through; }
.product-variant-mini-chip.is-more { color: #c4b5fd; }

.grid-products--compact .product-thumb { height: 190px; }
.grid-products--compact .product-info { gap: 8px; padding: 12px; }
.grid-products--compact .product-title { min-height: 37px; font-size: 12px; }
.grid-products--compact .product-price-current { font-size: 19px; }
.grid-products--compact .product-actions { grid-template-columns: 1fr; }

.grid-products--list .product-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.grid-products--list .product-card > .product-card-link:first-child { height: 100%; }
.grid-products--list .product-thumb { width: calc(100% - 20px); min-width: 0; height: calc(100% - 20px); min-height: 210px; margin: 10px; }
.grid-products--list .product-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 22px; padding: 20px 22px; }
.grid-products--list .product-info > .product-card-link,
.grid-products--list .product-submeta,
.grid-products--list .product-variant-mini-list { grid-column: 1; }
.grid-products--list .product-title { min-height: 0; font-size: 19px; }
.grid-products--list .product-price-wrap,
.grid-products--list .product-stock-line,
.grid-products--list .product-actions { grid-column: 2; min-width: 260px; }
.grid-products--list .product-price-wrap { justify-content: flex-end; }
.grid-products--list .product-stock-line { justify-content: flex-end; }

.category-empty {
    padding: 56px 24px;
    border: 1px dashed rgba(148,163,184,.24);
    border-radius: 20px;
    background: rgba(13,20,33,.72);
    color: var(--category-muted);
    text-align: center;
}

.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.category-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--category-border);
    border-radius: 11px;
    background: var(--category-surface);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.category-page-link:hover,
.category-page-link.is-active { color: #fff; border-color: rgba(139,92,246,.58); background: rgba(109,59,231,.22); }

.cart-toast-container {
    position: fixed;
    z-index: 99999;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
}

.cart-toast {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(410px, calc(100vw - 36px));
    padding: 13px 15px;
    opacity: 0;
    pointer-events: auto;
    border: 1px solid var(--category-border);
    border-radius: 14px;
    background: #111a2a;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.38);
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
}

.cart-toast.is-visible { opacity: 1; transform: none; }
.cart-toast__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 50%; color: #fff; font-weight: 900; }
.cart-toast--success .cart-toast__icon { background: #059669; }
.cart-toast--error .cart-toast__icon { background: #e11d48; }
.cart-toast__content { display: grid; gap: 2px; }
.cart-toast__title { font-size: 12px; font-weight: 900; }
.cart-toast__message { color: #d8e1ef; font-size: 12px; line-height: 1.4; }
.cart-toast__qty { color: #6ee7b7; font-weight: 900; }

.categoria-product-alert-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.categoria-product-alert-modal.is-open { display: flex; }
.categoria-product-alert-backdrop { position: absolute; inset: 0; background: rgba(2,6,14,.78); backdrop-filter: blur(8px); }
.categoria-product-alert-card { position: relative; width: min(500px, 100%); padding: 24px; border: 1px solid var(--category-border); border-radius: 22px; background: #111a2a; color: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.52); }
.categoria-product-alert-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; cursor: pointer; border: 1px solid var(--category-border); border-radius: 10px; background: rgba(255,255,255,.04); color: #fff; font-size: 22px; }
.categoria-product-alert-kicker { display: inline-flex; align-items: center; min-height: 28px; margin-bottom: 12px; padding: 0 10px; border: 1px solid rgba(251,146,60,.24); border-radius: 999px; background: rgba(251,146,60,.10); color: #fdba74; font-size: 10px; font-weight: 900; }
.categoria-product-alert-card h3 { margin: 0 42px 9px 0; font-size: 24px; line-height: 1.1; }
.categoria-product-alert-card p { margin: 0 0 14px; color: #aebbd0; font-size: 13px; line-height: 1.6; }
.categoria-product-alert-name,
.categoria-product-alert-message { margin-bottom: 13px; padding: 11px 13px; border: 1px solid var(--category-border); border-radius: 12px; background: rgba(255,255,255,.035); font-size: 13px; font-weight: 800; }
.categoria-product-alert-message { color: #a7f3d0; border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.08); }
.categoria-product-alert-message.is-error { color: #fecdd3; border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.08); }
.categoria-product-alert-card form { display: grid; gap: 12px; }
.categoria-product-alert-card label { display: grid; gap: 6px; color: #cbd5e1; font-size: 12px; font-weight: 800; }
.categoria-product-alert-card input[type="text"],
.categoria-product-alert-card input[type="email"] { width: 100%; min-height: 44px; padding: 0 12px; outline: 0; border: 1px solid var(--category-border); border-radius: 11px; background: #080e18; color: #fff; }
.categoria-product-alert-consent { display: flex !important; align-items: flex-start; gap: 9px !important; line-height: 1.5; }
.categoria-product-alert-consent input { margin-top: 3px; }
.categoria-product-alert-submit { width: 100%; }
body.categoria-product-alert-lock { overflow: hidden; }

@media (max-width: 1200px) {
    .category-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .grid-products--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-products--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
    .category-layout { grid-template-columns: 1fr; }
    .category-sidebar { position: static; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); }
    .grid-products--list .product-info { grid-template-columns: 1fr; }
    .grid-products--list .product-price-wrap,
    .grid-products--list .product-stock-line,
    .grid-products--list .product-actions { grid-column: 1; min-width: 0; justify-content: flex-start; }
}

@media (max-width: 700px) {
    .section:has(.category-page-shell) { padding: 14px 0 38px; }
    .category-page-shell { gap: 14px; }
    .category-hero { min-height: 230px; padding: 22px 18px; border-radius: 20px; }
    .category-hero.has-category-banner { min-height: 300px; }
    .category-hero-overlay { background: linear-gradient(0deg, rgba(4,8,17,.97), rgba(4,8,17,.35) 72%); }
    .category-title { font-size: clamp(32px, 12vw, 48px); }
    .category-desc { font-size: 13px; line-height: 1.55; }
    .category-breadcrumbs { margin-bottom: 12px; font-size: 10px; }
    .category-top-categories { overflow: hidden; padding: 8px; }
    .category-top-categories-wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .category-top-categories-wrap::-webkit-scrollbar { display: none; }
    .category-top-category-link { flex: 0 0 auto; }
    .category-sidebar { grid-template-columns: 1fr; }
    .category-panel { padding: 15px; border-radius: 18px; }
    .category-main > .category-panel { padding: 10px; }
    .category-toolbar { align-items: stretch; flex-direction: column; }
    .category-toolbar-right { width: 100%; margin: 0; }
    .category-layout-switcher { flex: 0 0 auto; }
    .category-sort-inline { min-width: 0; flex: 1; }
    .category-sort-inline label { display: none; }
    .category-sort-inline select { width: 100%; min-width: 0; }
    .grid-products--grid,
    .grid-products--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card { border-radius: 16px; }
    .product-thumb,
    .grid-products--compact .product-thumb { width: calc(100% - 14px); min-width: calc(100% - 14px); height: 158px; margin: 7px 7px 0; padding: 10px; border-radius: 11px; }
    .product-info,
    .grid-products--compact .product-info { gap: 8px; padding: 11px 9px 10px; }
    .product-title,
    .grid-products--compact .product-title { min-height: 35px; font-size: 12px; line-height: 1.35; }
    .product-submeta { display: none; }
    .product-price-current,
    .grid-products--compact .product-price-current { font-size: 18px; }
    .product-stock-pill { width: 100%; min-height: 27px; padding: 4px 7px; font-size: 9px; }
    .product-actions { grid-template-columns: 1fr; }
    .product-actions .btn { min-height: 37px; font-size: 10px; }
    .product-thumb-badge { min-height: 22px; padding: 0 7px; font-size: 8px; }
    .product-variant-mini-list { gap: 4px; }
    .product-variant-mini-chip { min-height: 24px; padding: 0 7px; font-size: 9px; }
    .grid-products--list .product-card { grid-template-columns: 118px minmax(0, 1fr); }
    .grid-products--list .product-thumb { width: calc(100% - 14px); height: calc(100% - 14px); min-height: 145px; margin: 7px; }
    .grid-products--list .product-info { padding: 13px 10px; }
    .grid-products--list .product-title { font-size: 13px; }
    .cart-toast-container { top: 10px; left: 10px; right: 10px; }
    .cart-toast { width: 100%; }
}

/* Estados comerciais inequívocos: stock, aviso e pré-encomenda. */
body .product-stock-pill.none,
body .product-stock-pill.pre.none {
    border-color: rgba(248, 113, 113, .48) !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, .20), rgba(127, 29, 29, .16)) !important;
    color: #fecaca !important;
    box-shadow: 0 8px 20px rgba(127, 29, 29, .14) !important;
}
body .product-stock-pill.pre:not(.none) {
    border-color: rgba(251, 146, 60, .42) !important;
    background: rgba(249, 115, 22, .13) !important;
    color: #fed7aa !important;
}
body .product-actions .btn-preorder,
body .product-actions .btn-status-pre {
    border-color: rgba(253, 186, 116, .56) !important;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 54%, #c2410c 100%) !important;
    color: #fff !important;
    box-shadow: 0 13px 28px rgba(249, 115, 22, .30) !important;
}
body .product-actions .btn-notify,
body .categoria-product-alert-submit.btn-notify {
    border-color: rgba(253, 224, 71, .72) !important;
    background: linear-gradient(135deg, #fde047 0%, #facc15 52%, #eab308 100%) !important;
    color: #211b00 !important;
    box-shadow: 0 13px 28px rgba(234, 179, 8, .30) !important;
    font-weight: 950 !important;
}

@media (max-width: 390px) {
    .grid-products--grid,
    .grid-products--compact { grid-template-columns: 1fr; }
    .product-thumb,
    .grid-products--compact .product-thumb { height: 235px; }
    .product-submeta { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-thumb img,
    .category-top-category-link,
    .category-quick-link,
    .category-filter-actions .btn,
    .product-actions .btn { transition: none; }
}

/* Alinhamento uniforme e stock quantitativo */
body .category-hero,
body .category-hero-content,
body .category-title,
body .category-desc,
body .category-breadcrumbs {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body .category-toolbar,
body .category-toolbar-left,
body .category-toolbar-right {
    justify-content: center !important;
    text-align: center !important;
}

body .product-card,
body .product-info,
body .product-card-link,
body .product-title,
body .product-submeta,
body .product-price-wrap,
body .product-stock-line,
body .product-variant-mini-list,
body .product-actions {
    text-align: center !important;
    justify-content: center !important;
    justify-items: center !important;
    align-items: center !important;
}

body .product-card-link { width: 100% !important; }
body .product-info { width: 100% !important; }
body .product-title { margin-inline: auto !important; }
body .product-stock-pill {
    width: auto !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: 6px 11px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}
body .product-actions { width: 100% !important; }
body .product-actions form { width: 100% !important; margin: 0 !important; }
body .product-actions .btn { width: 100% !important; }

body .grid-products--list .product-info,
body .grid-products--list .product-price-wrap,
body .grid-products--list .product-stock-line,
body .grid-products--list .product-actions {
    justify-content: center !important;
    justify-items: center !important;
    text-align: center !important;
}

@media (max-width: 700px) {
    body .category-toolbar { align-items: center !important; }
    body .category-toolbar-right { justify-content: center !important; }
    body .product-stock-pill { width: auto !important; min-height: 29px !important; }
}

/* Cartão de aviso de stock das categorias */
body .categoria-product-alert-modal {
    padding: 22px !important;
}
body .categoria-product-alert-backdrop {
    background: rgba(2, 6, 17, .82) !important;
    backdrop-filter: blur(14px) saturate(.8) !important;
}
body .categoria-product-alert-card {
    isolation: isolate !important;
    width: min(560px, 100%) !important;
    max-height: calc(100dvh - 44px) !important;
    padding: 32px !important;
    overflow: auto !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(124, 58, 237, .16), transparent 34%),
        linear-gradient(155deg, #121c2d 0%, #0b1422 58%, #08101b 100%) !important;
    color: #fff !important;
    box-shadow: 0 36px 100px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
    text-align: center !important;
}
body .categoria-product-alert-card::after {
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    left: 30px !important;
    right: 30px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent, #facc15, #fb923c, transparent) !important;
    content: "" !important;
}
body .categoria-product-alert-close {
    top: 16px !important;
    right: 16px !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    cursor: pointer !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: 999px !important;
    background: rgba(8, 15, 27, .82) !important;
    color: #dce5f2 !important;
    font-family: Arial, sans-serif !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .24) !important;
    transition: transform .18s ease, border-color .18s ease, background .18s ease !important;
}
body .categoria-product-alert-close::before {
    content: "\00D7" !important;
    font-size: 25px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}
body .categoria-product-alert-close:hover {
    transform: rotate(90deg) !important;
    border-color: rgba(248, 113, 113, .48) !important;
    background: rgba(127, 29, 29, .24) !important;
    color: #fecaca !important;
}
body .categoria-product-alert-kicker {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 29px !important;
    margin: 0 auto 13px !important;
    padding: 0 11px !important;
    border: 1px solid rgba(251, 146, 60, .34) !important;
    border-radius: 999px !important;
    background: rgba(249, 115, 22, .11) !important;
    color: #fed7aa !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .02em !important;
}
body .categoria-product-alert-card > h3 {
    max-width: calc(100% - 50px) !important;
    margin: 0 auto 8px !important;
    color: #f8fafc !important;
    font-size: clamp(24px, 4vw, 31px) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
}
body .categoria-product-alert-intro {
    max-width: 460px !important;
    margin: 0 auto 20px !important;
    color: #aebbd0 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    text-align: center !important;
}
body .categoria-product-alert-name {
    margin: 0 0 18px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(148, 163, 184, .17) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .035) !important;
    color: #eef2ff !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}
body .categoria-product-alert-message {
    margin: 0 0 14px !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(96, 165, 250, .25) !important;
    border-radius: 12px !important;
    background: rgba(37, 99, 235, .10) !important;
    color: #bfdbfe !important;
    text-align: center !important;
}
body .categoria-product-alert-message.is-error {
    border-color: rgba(248, 113, 113, .34) !important;
    background: rgba(127, 29, 29, .16) !important;
    color: #fecaca !important;
}
body .categoria-product-alert-card form {
    display: grid !important;
    gap: 15px !important;
}
body .categoria-product-alert-card form > label:not(.categoria-product-alert-consent) {
    display: grid !important;
    gap: 7px !important;
    color: #cbd5e1 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    text-align: center !important;
}
body .categoria-product-alert-card input[type="text"],
body .categoria-product-alert-card input[type="email"] {
    min-height: 49px !important;
    padding: 0 15px !important;
    border-color: rgba(148, 163, 184, .20) !important;
    border-radius: 13px !important;
    background: rgba(3, 9, 18, .70) !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    text-align: center !important;
    outline: 0 !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
body .categoria-product-alert-card input[type="text"]:focus,
body .categoria-product-alert-card input[type="email"]:focus {
    border-color: rgba(167, 139, 250, .68) !important;
    background: rgba(6, 13, 25, .92) !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .12) !important;
}
body .categoria-product-alert-consent {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    max-width: 430px !important;
    margin: 2px auto 0 !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(148, 163, 184, .12) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .025) !important;
    color: #b7c2d3 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    text-align: left !important;
}
body .categoria-product-alert-consent input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: #facc15 !important;
}
body .categoria-product-alert-submit.btn-notify {
    width: 100% !important;
    min-height: 52px !important;
    margin-top: 2px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
body .categoria-product-alert-submit.btn-notify:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.045) !important;
    box-shadow: 0 18px 36px rgba(234, 179, 8, .36) !important;
}

@media (max-width: 600px) {
    body .categoria-product-alert-modal { align-items: flex-end !important; padding: 8px !important; }
    body .categoria-product-alert-card {
        max-height: calc(100dvh - 16px) !important;
        padding: 27px 18px 18px !important;
        border-radius: 24px 24px 16px 16px !important;
    }
    body .categoria-product-alert-card::before {
        display: block !important;
        width: 42px !important;
        height: 4px !important;
        margin: -14px auto 17px !important;
        border-radius: 999px !important;
        background: rgba(148, 163, 184, .32) !important;
        content: "" !important;
    }
    body .categoria-product-alert-card::after { left: 20px !important; right: 20px !important; }
    body .categoria-product-alert-close { top: 13px !important; right: 13px !important; width: 38px !important; height: 38px !important; }
    body .categoria-product-alert-kicker { margin-bottom: 11px !important; }
    body .categoria-product-alert-card > h3 { font-size: 24px !important; }
    body .categoria-product-alert-intro { margin-bottom: 16px !important; font-size: 12px !important; line-height: 1.6 !important; }
    body .categoria-product-alert-name { margin-bottom: 14px !important; padding: 12px 13px !important; }
    body .categoria-product-alert-card form { gap: 12px !important; }
    body .categoria-product-alert-consent { align-items: flex-start !important; }
}
