:root {
    --main-foreground: #333333;
    --main-background: #ffffff;
    --accent: #2ecc71;
    --button-bg: #121212;
    --button-fg: #f2b705;
    --label-bg: #3b4222;
    --label-fg: #f5f5f5;
    --adbar-bg: #1e1e1e;
    --header-bg: #181818;
    --header-fg: #e0e0e0;
    --badge: #f2b705;
    --nav-bg: #ffffff;
    --footer-bg: #333333;
    --muted: #6b6b6b;
    --line: #e6e6e6;
    --welcome: #f4f4f4;
    --danger: #c0392b;
    --radius: 4px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    --font: "Public Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--main-foreground);
    background: var(--main-background);
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.desktop-only { display: none !important; }
.mobile-only { display: inline-flex !important; }
@media (min-width: 960px) {
    .desktop-only { display: flex !important; }
    .mobile-only { display: none !important; }
}

.adbar {
    background: var(--adbar-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 36px;
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
}
.adbar-nav {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
}
.adbar-msg { min-width: 280px; text-align: center; }

.site-header {
    background: var(--header-bg);
    color: var(--header-fg);
    position: sticky;
    top: 0;
    z-index: 40;
}
.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 14px;
}
@media (min-width: 960px) {
    .header-row {
        grid-template-columns: 1fr auto 1fr;
        padding: 14px 28px 10px;
    }
}
.brand { justify-self: center; }
.brand img { height: 72px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
@media (min-width: 960px) { .brand img { height: 88px; } }

.search-form {
    position: relative;
    max-width: 280px;
}
.search-form input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #555;
    color: #fff;
    padding: 8px 32px 8px 0;
    outline: none;
}
.search-form button {
    position: absolute;
    right: 0;
    top: 6px;
    background: none;
    border: 0;
    color: #ccc;
    cursor: pointer;
}
.header-utils {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}
.account-block {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.25;
}
.account-block i { font-size: 22px; }
.account-block a { color: var(--badge); }
.whatsapp-head { color: #25d366; font-size: 22px; }
.icon-btn {
    background: none;
    border: 0;
    color: var(--header-fg);
    font-size: 20px;
    cursor: pointer;
    position: relative;
}
.cart-btn .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--badge);
    color: #222;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    padding: 0 4px;
}

.desktop-nav {
    background: var(--nav-bg);
    color: #000;
    border-top: 1px solid #111;
    display: none;
}
@media (min-width: 960px) { .desktop-nav { display: block; } }
.nav-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-height: 48px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.nav-inner > a, .nav-cats-btn {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: none;
    border: 0;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
    color: inherit;
}
.nav-inner > a:hover, .nav-cats-btn:hover { color: #666; }
.nav-cats { position: relative; }
.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width: 280px;
    box-shadow: var(--shadow);
    padding: 10px 0;
    z-index: 50;
}
.nav-cats.open .mega-menu { display: block; }
.mega-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}
.mega-menu a:hover { background: #f6f6f6; }

.mobile-search {
    display: none;
    background: #111;
    padding: 10px 16px;
}
.mobile-search.open { display: block; }
.mobile-search form { display: flex; gap: 8px; }
.mobile-search input {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: var(--radius);
}
.mobile-search button {
    background: var(--button-bg);
    color: var(--button-fg);
    border: 0;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 88vw);
    background: #fff;
    z-index: 80;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    overflow: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--header-bg);
    color: #fff;
}
.mobile-menu-head button { background: none; border: 0; color: #fff; font-size: 22px; }
.mobile-menu nav a, .mobile-menu nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    font-size: 15px;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 70;
}
.overlay.open { display: block; }

.hero-slider { position: relative; overflow: hidden; background: #111; }
.hero-slide {
    min-height: 280px;
    display: none;
    align-items: center;
    padding: 48px 8%;
    background:
        linear-gradient(90deg, rgba(10,10,10,.82), rgba(10,10,10,.35)),
        radial-gradient(circle at 80% 40%, #3b4222, #111 60%);
    color: #fff;
}
.hero-slide.active { display: flex; }
.hero-slide.rescue {
    background:
        linear-gradient(90deg, rgba(10,10,10,.82), rgba(10,10,10,.35)),
        radial-gradient(circle at 80% 40%, #4a1f1f, #111 60%);
}
.hero-slide h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.04em; margin-bottom: 8px; }
.hero-slide p { max-width: 460px; margin-bottom: 18px; color: #ddd; }
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    border: 0; background: #888; cursor: pointer;
}
.hero-dots button.active { background: var(--badge); }

.section { padding: 36px 0 8px; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}
.promo-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .promo-grid { grid-template-columns: 1fr 1fr; } }
.promo-card {
    min-height: 180px;
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}
.promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
}
.promo-card.armeros { background: linear-gradient(135deg, #2c3318, #111); }
.promo-card.rescue { background: linear-gradient(135deg, #3a1c1c, #111); }
.promo-card > * { position: relative; }
.promo-card h3 { font-size: 22px; letter-spacing: 0.04em; }
.promo-card span { font-size: 13px; margin: 6px 0 14px; color: #ddd; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
    background: #161616;
    color: #fff;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 13px;
    transition: transform .2s ease;
}
.cat-tile i { font-size: 28px; color: var(--badge); }
.cat-tile:hover { transform: translateY(-3px); }

.product-row, .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 700px) {
    .product-row, .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.thumb {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(160deg, #2a2e22, #141414);
    overflow: hidden;
}
.thumb i { font-size: 48px; opacity: 0.9; color: var(--badge); }
.thumb .brand-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #eee;
    z-index: 3;
    pointer-events: none;
}
.thumb-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.carousel {
    position: relative;
    width: 100%;
}
.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #141414;
    overflow: hidden;
    /* necesario para que los slides absolutos queden contenidos */
    contain: layout;
}
.pdp-carousel .carousel-viewport { aspect-ratio: 1; }
.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    cursor: pointer;
}
.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
}
.carousel-dots button.active { background: var(--badge); }
.carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.carousel-thumbs button {
    border: 2px solid transparent;
    padding: 0;
    background: #111;
    cursor: pointer;
    aspect-ratio: 1;
    overflow: hidden;
}
.carousel-thumbs button.active { border-color: var(--badge); }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-carousel { width: 100%; }
.labels {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 3;
}
.label {
    background: var(--label-bg);
    color: var(--label-fg);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    width: fit-content;
}
.label.sale { background: #111; color: var(--badge); }
.label.out { background: var(--danger); color: #fff; }
.product-body { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-size: 14px; line-height: 1.35; min-height: 38px; }
.price-block { margin-top: auto; }
.compare { color: #999; text-decoration: line-through; font-size: 13px; margin-right: 6px; }
.price { font-size: 18px; font-weight: 700; }
.transfer { font-size: 12px; color: #2a7a4b; margin-top: 4px; }
.btn-buy, .btn-gold {
    background: var(--button-bg);
    color: var(--button-fg);
    border: 0;
    width: 100%;
    padding: 11px 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-top: 10px;
}
.btn-buy:hover, .btn-gold:hover { filter: brightness(1.1); }
.btn-buy:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
    font-size: 12px;
}
.btn-ghost {
    width: 100%;
    margin-top: 8px;
    background: none;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
}

.welcome {
    background: var(--welcome);
    padding: 40px 0;
    text-align: center;
    margin-top: 24px;
}
.welcome h2 { letter-spacing: 0.08em; margin-bottom: 8px; }
.welcome p { max-width: 720px; margin: 0 auto; color: var(--muted); }

.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding-bottom: 20px;
}
.brand-chip {
    border: 1px solid var(--line);
    padding: 10px 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    color: #555;
}

.catalog-layout {
    display: grid;
    gap: 24px;
    padding: 28px 0 40px;
}
@media (min-width: 960px) {
    .catalog-layout { grid-template-columns: 240px 1fr; }
}
.filters { border: 1px solid var(--line); padding: 16px; }
.filters h3 { font-size: 15px; margin-bottom: 12px; }
.filters label { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 8px 0; cursor: pointer; }
.filters select, .sort-bar select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
}
.sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}
.sort-bar select { width: auto; }
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a:hover { text-decoration: underline; }

.pdp {
    display: grid;
    gap: 28px;
    padding: 28px 0 48px;
}
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1fr; } }
.pdp-photo {
    aspect-ratio: 1;
    background: linear-gradient(160deg, #2a2e22, #141414);
    display: grid;
    place-items: center;
    color: var(--badge);
    font-size: 96px;
}
.pdp h1 { font-size: 26px; margin: 8px 0 12px; }
.sku { color: var(--muted); font-size: 13px; }
.pdp .price { font-size: 28px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.qty-row input { width: 72px; padding: 8px; border: 1px solid var(--line); text-align: center; }
.specs { margin-top: 18px; color: #555; line-height: 1.6; }

.contact-wrap, .account-wrap {
    padding: 32px 0 56px;
    display: grid;
    gap: 24px;
}
@media (min-width: 800px) {
    .contact-wrap, .account-wrap { grid-template-columns: 1fr 1fr; }
}
.panel { border: 1px solid var(--line); padding: 22px; }
.panel h2 { margin-bottom: 12px; }
.panel p, .panel li { color: #555; line-height: 1.6; }
.panel ul { padding-left: 18px; margin: 10px 0; }

.trust-bar {
    background: #f7f7f7;
    border-top: 1px solid var(--line);
    padding: 28px 0;
}
.trust-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-grid > div { display: flex; gap: 12px; align-items: center; }
.trust-grid i { font-size: 26px; color: #222; }
.trust-grid span { display: block; font-size: 13px; color: var(--muted); }

.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 40px 0 0;
}
.footer-grid {
    display: grid;
    gap: 24px;
    padding-bottom: 28px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { height: 72px; width: auto; margin-bottom: 12px; filter: brightness(1.1); }
.site-footer h4 { margin-bottom: 10px; }
.site-footer a, .site-footer p { display: block; color: #ddd; font-size: 14px; margin: 6px 0; }
.footer-copy {
    border-top: 1px solid #555;
    text-align: center;
    padding: 14px;
    font-size: 12px;
    color: #bbb;
}

.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    background: #fff;
    z-index: 90;
    transform: translateX(110%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: none; }
.drawer-head, .drawer-foot { padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head button, .modal-close {
    background: none; border: 0; font-size: 22px; cursor: pointer;
}
.drawer-body { flex: 1; overflow: auto; padding: 8px 16px; }
.drawer-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.cart-line {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.cart-thumb {
    width: 64px;
    height: 64px;
    background: #1c1c1c;
    color: var(--badge);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.cart-thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }
.cart-line h4 { font-size: 13px; font-weight: 600; }
.qty-mini { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.qty-mini button { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.cart-totals div { display: flex; justify-content: space-between; margin: 6px 0; }
.transfer-row { color: #2a7a4b; }
.ship-note { font-size: 12px; color: #8a6d3b; background: #fcf8e3; border: 1px solid #faebcc; padding: 8px; margin: 10px 0; }
.empty-cart { color: var(--muted); padding: 30px 8px; text-align: center; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 100;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 24px 12px;
}
.modal.open { display: flex; }
.modal-card {
    background: #fff;
    width: min(680px, 100%);
    padding: 24px;
    position: relative;
    margin: auto;
}
.modal-card-wide { width: min(860px, 100%); }
.order-detail { display: grid; gap: 14px; margin: 16px 0 8px; font-size: 14px; }
.order-detail-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .order-detail-grid { grid-template-columns: 1fr 1fr; } }
.order-detail h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.order-detail p { margin: 2px 0; }
.order-totals { background: #f7f7f7; padding: 12px; }
.order-totals div { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0; }
.modal-close { position: absolute; right: 12px; top: 10px; }
.form-grid {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea {
    border: 1px solid var(--line);
    padding: 10px;
    font-weight: 400;
}
.password-field { display: flex; gap: 8px; align-items: center; }
.password-field input { flex: 1; min-width: 0; }
.full { grid-column: 1 / -1; }
.checkout-summary { background: #f7f7f7; padding: 12px; margin-bottom: 12px; font-size: 14px; }
.checkout-summary div { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0; }
.ship-block { display: grid; gap: 8px; }
.ship-hint { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0; }
.ship-options { display: grid; gap: 8px; }
.ship-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-weight: 400;
    cursor: pointer;
    background: #fff;
}
.ship-option.active { border-color: var(--badge); background: #fffdf4; }
.ship-option strong { display: block; font-size: 13px; }
.ship-option small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ship-option em { font-style: normal; font-weight: 700; font-size: 13px; white-space: nowrap; }
#agency-wrap { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
#agency-wrap[hidden] { display: none; }

.toast {
    position: fixed;
    right: 16px;
    bottom: 88px;
    background: #111;
    color: #fff;
    padding: 12px 16px;
    display: none;
    z-index: 120;
    max-width: 280px;
    font-size: 14px;
}
.toast.show { display: block; }
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    z-index: 60;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.success-box { text-align: center; padding: 40px 16px; }
.success-box i { font-size: 48px; color: var(--accent); margin-bottom: 12px; }
.mp-badge {
    display: inline-block;
    background: #009ee3;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 8px;
}
.mp-amount { font-size: 28px; font-weight: 700; margin: 8px 0 16px; }
.mp-pay .btn-ghost { width: min(320px, 100%); margin-left: auto; margin-right: auto; display: inline-block; }
.mp-pay .btn-gold { width: min(320px, 100%); }

.auth-page { max-width: 720px; margin: 0 auto; padding: 32px 0 56px; }
.auth-page h1 { margin-bottom: 8px; }
.auth-page .lede { color: var(--muted); margin-bottom: 22px; }
.form-error { color: var(--danger); font-size: 13px; margin: 8px 0; min-height: 18px; }
.order-list { display: grid; gap: 10px; margin-top: 12px; }
.order-item { border: 1px solid var(--line); padding: 12px; font-size: 14px; color: inherit; }
a.order-item { display: block; }
a.order-item:hover { border-color: #111; }
.order-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.account-wrap.single { grid-template-columns: 1fr; max-width: 860px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; background: #eee; margin-left: 6px; }
.chip.on { background: #d4edda; color: #155724; }
.chip.off { background: #f8d7da; color: #721c24; }

body.admin-body { background: #f4f4f4; }
.admin-login-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #181818;
    padding: 24px;
}
.admin-login-card {
    width: min(420px, 100%);
    background: #fff;
    padding: 28px;
}
.admin-login-card img { height: 72px; margin: 0 auto 12px; }
.admin-login-card h1 { font-size: 22px; margin-bottom: 8px; text-align: center; }
.admin-login-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; text-align: center; }
.admin-hint { background: #fcf8e3; border: 1px solid #faebcc; padding: 10px; font-size: 13px; margin-bottom: 16px; }
.admin-topbar {
    background: #181818;
    color: #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
}
.admin-topbar img { height: 48px; }
.admin-topbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-tabs {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0;
}
.admin-tabs button {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 14px 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.admin-tabs button.active { border-bottom-color: var(--badge); }
.admin-main { width: min(1280px, calc(100% - 32px)); margin: 24px auto 48px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar input { padding: 8px 10px; border: 1px solid var(--line); min-width: 220px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.data-table th { background: #111; color: #fff; font-weight: 600; }
.data-table tr:hover td { background: #fafafa; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-sm {
    background: #111;
    color: var(--badge);
    border: 0;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-sm.ghost { background: #fff; color: #111; border: 1px solid #ccc; }
.btn-sm.danger { background: #c0392b; color: #fff; }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.stats-periods { display: flex; gap: 8px; flex-wrap: wrap; }
.stats-kpis { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 700px) { .stats-kpis { grid-template-columns: 1fr 1fr; } }
.stat-card { background: #fff; border: 1px solid var(--line); padding: 16px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; font-size: 28px; margin-top: 4px; }
.stats-grid { display: grid; gap: 16px; }
.stats-grid h3 { margin-bottom: 8px; font-size: 16px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin: 8px 0; }
.muted { color: var(--muted); font-size: 12px; }
