:root {
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --bg: #eef2f7;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --primary: #1e3a8a;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #0ea5e9;
    --accent-soft: #e0f2fe;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --whatsapp-soft: #ecfdf5;
    --success: #059669;
    --success-soft: #ecfdf5;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --warning-soft: #fffbeb;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --header-h: 76px;
    --topbar-h: 44px;
    --whatsapp-bar-h: 76px;
    --max-width: 100%;
    --layout-gutter: clamp(0.75rem, 2.2vw, 1.25rem);
    --layout-pad: clamp(1rem, 2.5vw, 2rem);
    --footer-pad: clamp(1.5rem, 3.75vw, 2.85rem);
    --touch-min: 2.75rem;
    --product-fallback-bg: linear-gradient(145deg, #0c1222 0%, #152347 42%, #1e3a8a 100%);
    --product-fallback-border: rgba(255, 255, 255, 0.1);
    --product-fallback-text: rgba(255, 255, 255, 0.94);
    --product-fallback-text-muted: rgba(147, 197, 253, 0.88);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
html, body { margin: 0; padding: 0; max-width: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body.has-whatsapp-bar {
    padding-bottom: calc(var(--whatsapp-bar-h) + env(safe-area-inset-bottom, 0px));
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-hover); }
button, .btn, .menu-toggle, .nav-link, .gallery-thumb, .listing-chip {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
img { max-width: 100%; display: block; }
code {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.88em;
}

.icon { flex-shrink: 0; }
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-text__icon { color: currentColor; opacity: 0.9; }

/* Background */
.app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(30, 58, 138, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(14, 165, 233, 0.06), transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}
.app-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black, transparent 85%);
}

.layout {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(var(--layout-gutter), env(safe-area-inset-left));
    padding-right: max(var(--layout-gutter), env(safe-area-inset-right));
    padding-bottom: 3rem;
}
.content { padding-top: 1.75rem; }
.content:has(> .hero-modern:first-child),
.content:has(> .home-viewport:first-child) { padding-top: 0; }

.content > .panel,
.content > .breadcrumbs,
.content > .breadcrumbs--product,
.content > .empty-state {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding-left: var(--layout-pad);
    padding-right: var(--layout-pad);
}

/* Home — full viewport hero + products */
.home-viewport {
    --home-chrome-h: calc(var(--topbar-h) + var(--header-h));
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
    min-height: calc(100svh - var(--home-chrome-h));
    max-height: calc(100svh - var(--home-chrome-h));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
body.has-whatsapp-bar .home-viewport {
    min-height: calc(100svh - var(--home-chrome-h) - var(--whatsapp-bar-h));
    max-height: calc(100svh - var(--home-chrome-h) - var(--whatsapp-bar-h));
}
.home-viewport .hero-modern {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: unset;
}
.home-viewport:has(.home-viewport__products) .hero-modern {
    flex: 1 1 56%;
}
.home-viewport .hero-modern__inner {
    min-height: 0;
    padding: clamp(1rem, 2.2vh, 2rem) var(--layout-pad) clamp(0.65rem, 1.4vh, 1rem);
    gap: clamp(0.85rem, 2vw, 1.75rem);
    align-items: stretch;
    overflow: hidden;
}
.home-viewport .hero-modern__kicker { margin-bottom: clamp(0.55rem, 1.2vh, 0.85rem); }
.home-viewport .hero-modern__title {
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    font-size: clamp(1.55rem, 3.5vw, 2.65rem);
}
.home-viewport .hero-modern__lead {
    margin-bottom: clamp(0.65rem, 1.2vh, 0.95rem);
    font-size: clamp(0.86rem, 1.5vw, 0.96rem);
}
.home-viewport .hero-modern__search { margin-bottom: clamp(0.6rem, 1vh, 0.85rem); }
.home-viewport .hero-modern__actions { margin-bottom: clamp(0.55rem, 1vh, 0.75rem); }
.home-viewport .hero-modern__stats { gap: clamp(0.5rem, 1vw, 0.75rem); }
.home-viewport .hero-modern__aside {
    max-height: 100%;
    overflow: hidden;
}
.home-viewport .hero-modern__features {
    gap: 0.55rem;
}
.home-viewport .hero-modern__features li {
    padding: 0.65rem 0.75rem;
}
.home-viewport .hero-modern__trust-inner {
    padding: 0.5rem var(--layout-pad);
    gap: 0.65rem 1.25rem;
}
.home-viewport__products {
    flex: 0 0 auto;
    max-height: 44%;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--border);
    padding: clamp(0.65rem, 1.4vh, 0.95rem) var(--layout-pad) clamp(0.75rem, 1.5vh, 1rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
}
.home-viewport__products .section-head {
    margin-bottom: 0.55rem;
    flex-shrink: 0;
}
.home-viewport__products .section-head h2 { font-size: 1rem; }
.home-viewport__products .product-grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(168px, calc((100% - 2.6rem) / 4));
    grid-template-columns: none;
    gap: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}
.home-viewport__products .product-card {
    scroll-snap-align: start;
    min-height: 0;
}
.home-viewport__products .product-card__image { aspect-ratio: 1 / 1; }
.home-viewport__products .product-card__body {
    padding: 0.65rem 0.75rem 0;
    gap: 0.35rem;
}
.home-viewport__products .product-card__body h3 {
    font-size: 0.78rem;
    min-height: auto;
    -webkit-line-clamp: 2;
}
.home-viewport__products .product-card__footer {
    padding: 0.55rem 0.75rem 0.65rem;
}
.home-viewport__products .product-card__price { font-size: 0.92rem; }
.home-viewport__products .product-card__detail {
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: 10px;
}
.home-viewport__products .btn-whatsapp--icon {
    width: var(--touch-min);
    height: var(--touch-min);
    padding: 0;
}

/* Top bar */
.header-topbar {
    background: linear-gradient(90deg, #0c1222 0%, #152347 42%, #1e3a8a 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    position: relative;
    overflow: hidden;
    margin-left: max(var(--layout-gutter), env(safe-area-inset-left));
    margin-right: max(var(--layout-gutter), env(safe-area-inset-right));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.header-topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
    pointer-events: none;
}
.header-topbar__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.45rem var(--layout-pad);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    text-align: left;
    position: relative;
    z-index: 1;
}
.header-topbar__promo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
}
.header-topbar__badge {
    display: inline;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.header-topbar__badge::after {
    content: "·";
    margin-left: 0.5rem;
    opacity: 0.55;
    font-weight: 400;
}
.header-topbar__callcenter {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}
.header-topbar__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    margin-left: auto;
    max-width: 100%;
    padding: 0;
    color: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    transition: color 0.18s, opacity 0.18s;
    white-space: nowrap;
}
.header-topbar__phone {
    font-size: 0.78rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.2;
}
.header-topbar__contact:hover {
    color: #fff;
    opacity: 0.88;
}

/* Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top: none;
    transition: box-shadow 0.25s ease, background 0.25s ease;
    margin-left: max(var(--layout-gutter), env(safe-area-inset-left));
    margin-right: max(var(--layout-gutter), env(safe-area-inset-right));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.app-page:not(:has(.header-topbar)) .site-header,
.admin-page .site-header {
    margin-top: max(var(--layout-gutter), env(safe-area-inset-top));
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.9rem var(--layout-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: var(--header-h);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo:hover { color: var(--text); }
.brand-logo__mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.28);
}
.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0.15rem;
}
.brand-logo__text strong {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.brand-logo__tagline {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--muted);
    max-width: 16rem;
}
.brand-logo--compact .brand-logo__tagline {
    font-size: 0.62rem;
    max-width: 14rem;
}
.site-footer .brand-logo { color: #fff; }
.site-footer .brand-logo__tagline { color: rgba(255, 255, 255, 0.62); }
.site-footer .brand-logo__mark { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.admin-page .brand-logo__tagline { color: rgba(255, 255, 255, 0.65); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.header-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.header-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border);
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    position: relative;
}
.nav-link:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.nav-link .icon { opacity: 0.8; }
.nav-link--active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.12);
    font-weight: 700;
}
.nav-link--active::after {
    content: "";
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-dropdown {
    position: relative;
}
.nav-dropdown__toggle {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.nav-dropdown__toggle::-webkit-details-marker { display: none; }
.nav-dropdown__toggle::marker { content: ""; }
.nav-dropdown__toggle:hover,
.nav-dropdown[open] > .nav-dropdown__toggle {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.nav-dropdown__toggle--active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.12);
    font-weight: 700;
}
.nav-dropdown__chevron {
    transition: transform 0.15s ease;
    opacity: 0.75;
}
.nav-dropdown[open] .nav-dropdown__chevron {
    transform: rotate(180deg);
}
.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    z-index: 40;
    min-width: min(22rem, 88vw);
    max-width: min(28rem, 92vw);
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}
.nav-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    max-height: min(20rem, 52vh);
    overflow: auto;
    padding-right: 0.15rem;
}
.nav-dropdown__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.62rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.nav-dropdown__brand:hover {
    border-color: rgba(30, 58, 138, 0.22);
    background: #fff;
    transform: translateY(-1px);
}
.nav-dropdown__brand-name {
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}
.nav-dropdown__brand-count {
    flex-shrink: 0;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}
.nav-dropdown__all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    width: 100%;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}
.nav-dropdown__all:hover { color: var(--primary-hover); }
.nav-dropdown__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}
.nav-dropdown__region {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.nav-dropdown__region .icon {
    opacity: 0.85;
}

.brand-index__head {
    margin-bottom: 1.5rem;
}
.brand-index__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.15rem;
}
.brand-index__search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: min(100%, 20rem);
    padding: 0.72rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.brand-index__search:focus-within {
    border-color: rgba(30, 58, 138, 0.28);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}
.brand-index__search .icon {
    flex-shrink: 0;
    color: var(--muted);
}
.brand-index__search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
}
.brand-index__search input::placeholder {
    color: var(--muted);
    font-weight: 500;
}
.brand-index__filter-hint {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
}
.brand-index__empty {
    margin-top: 0.5rem;
}
.brand-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}
.brand-index__card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #fff 0%, rgba(248, 250, 252, 0.92) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.brand-index__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity 0.18s ease;
}
.brand-index__card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 58, 138, 0.2);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}
.brand-index__card:hover::before {
    opacity: 1;
}
.brand-index__card-mark {
    display: inline-grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.1) 0%, rgba(37, 99, 235, 0.14) 100%);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}
.brand-index__card:hover .brand-index__card-mark {
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    color: #fff;
}
.brand-index__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}
.brand-index__card-body strong {
    font-size: 0.96rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand-index__card-body span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}
.brand-index__card-arrow {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.brand-index__card:hover .brand-index__card-arrow {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(2px);
}
.brand-index__card.is-hidden {
    display: none;
}
.page-header--brand .page-header__icon--brand {
    display: inline-grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--primary);
}
.listing-smart__locked--brand {
    border-color: rgba(30, 58, 138, 0.18);
    background: rgba(239, 246, 255, 0.65);
}

.nav-link--danger:hover { color: var(--danger); background: var(--danger-soft); box-shadow: none; }

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.68rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #20bd5a 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.btn-header-cta .whatsapp-brand-icon {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}
.btn-header-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.menu-toggle:hover { background: var(--bg-soft); border-color: var(--border-strong); }

.header-nav-backdrop {
    display: none;
}

/* Panels */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem var(--layout-pad);
    margin-bottom: 0;
    box-shadow: none;
}
.panel + .panel {
    margin-top: 1rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.section-head h1, .section-head h2, .panel h1, .panel h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.section-head h2 { font-size: 1.25rem; }
.section-title { font-weight: 800; }
.section-title .icon-text__icon { color: var(--primary); }
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary);
}

/* Hero — Modern */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-modern {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background: #0a1020;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: calc(100svh - var(--topbar-h) - var(--header-h));
}
.hero-modern__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-modern__gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(30, 58, 138, 0.92) 0%, rgba(15, 23, 42, 0.55) 38%, rgba(10, 16, 32, 0.98) 68%),
        linear-gradient(180deg, #0c1222 0%, #0a1020 100%);
}
.hero-modern__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
}
.hero-modern__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
}
.hero-modern__glow--1 {
    width: 480px;
    height: 480px;
    top: -160px;
    right: 8%;
    background: rgba(37, 99, 235, 0.55);
}
.hero-modern__glow--2 {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -40px;
    background: rgba(14, 165, 233, 0.35);
}

.hero-modern__inner {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    padding: clamp(2rem, 4vh, 3rem) var(--layout-pad) clamp(1.25rem, 2.5vh, 1.75rem);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}
.hero-modern__main {
    min-width: 0;
}
.hero-modern__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.1rem;
    padding: 0.42rem 0.85rem 0.42rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}
.hero-modern__kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.65);
}
.hero-modern__kicker-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef4444, #dc2626);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.hero-modern__title {
    margin: 0 0 1rem;
    max-width: 14ch;
    font-size: clamp(2rem, 4.8vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.hero-modern__highlight {
    background: linear-gradient(135deg, #93c5fd 0%, #38bdf8 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-modern__lead {
    margin: 0 0 1.5rem;
    max-width: 540px;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 500;
}
.hero-modern__search { margin-bottom: 1.15rem; }
.hero-modern__search-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 560px;
    padding: 0.4rem 0.4rem 0.4rem 0.35rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.2s ease;
}
.hero-modern__search-box:focus-within {
    box-shadow: 0 24px 56px rgba(30, 58, 138, 0.35), 0 0 0 3px rgba(96, 165, 250, 0.35);
}
.hero-modern__search-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.hero-modern__search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
}
.hero-modern__search-box input::placeholder { color: #94a3b8; font-weight: 500; }
.hero-modern__search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.78rem 1.15rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-modern__search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

.hero-modern__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.btn-hero-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.82rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-hero-solid:hover {
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.82rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: background 0.15s, transform 0.15s;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    transform: translateY(-2px);
}
.btn-hero-outline__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25d366;
    flex-shrink: 0;
}
.btn-hero-outline__icon .whatsapp-brand-icon {
    width: 16px !important;
    height: 16px !important;
    filter: brightness(0) invert(1);
}

.hero-modern__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 560px;
}
.hero-modern__stat {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}
.hero-modern__stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.hero-modern__stat-value .icon { color: #fcd34d; }
.hero-modern__stat-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}
.hero-modern__stat-label .icon { color: #93c5fd; }

.hero-modern__aside {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.hero-modern__spotlight {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45), rgba(37, 99, 235, 0.22));
    border: 1px solid rgba(147, 197, 253, 0.2);
}
.hero-modern__spotlight-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
    flex-shrink: 0;
}
.hero-modern__spotlight strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.hero-modern__spotlight span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.35;
}

.hero-modern__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.hero-modern__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hero-modern__features li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}
.hero-modern__feature-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 11px;
    flex-shrink: 0;
}
.hero-modern__feature-icon--blue { background: rgba(37, 99, 235, 0.25); color: #93c5fd; }
.hero-modern__feature-icon--green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.hero-modern__feature-icon--amber { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.hero-modern__feature-icon--cyan { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; }
.hero-modern__features strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 0.12rem;
}
.hero-modern__features span {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.4;
}

.hero-modern__wa-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(18, 140, 126, 0.22));
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #fff;
    transition: transform 0.15s ease, background 0.15s ease;
}
.hero-modern__wa-card:hover {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.26), rgba(18, 140, 126, 0.3));
}
.hero-modern__wa-card-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #25d366;
    flex-shrink: 0;
}
.hero-modern__wa-card-icon .whatsapp-brand-icon {
    filter: brightness(0) invert(1);
}
.hero-modern__wa-card-text {
    flex: 1;
    min-width: 0;
}
.hero-modern__wa-card-text strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
}
.hero-modern__wa-card-text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.1rem;
}
.hero-modern__wa-card > .icon:last-child {
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

.hero-modern__trust {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}
.hero-modern__trust-inner {
    width: 100%;
    padding: 0.7rem var(--layout-pad);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
}
.hero-modern__trust-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.58);
}
.hero-modern__trust-inner .icon { color: #60a5fa; opacity: 0.9; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); }
.btn-whatsapp {
    background: var(--whatsapp);
    color: #064e3b;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp .whatsapp-brand-icon {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}
.btn-whatsapp:hover { background: #34d76a; color: #064e3b; }
.btn-whatsapp--icon {
    padding: 0.55rem;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    justify-content: center;
}
.btn-whatsapp--icon .whatsapp-brand-icon { display: block; }
.btn-sm { padding: 0.48rem 0.8rem; font-size: 0.84rem; }
.btn-lg { padding: 0.9rem 1.35rem; font-size: 1rem; }

/* Grids */
.product-grid, .stats-grid, .admin-actions {
    display: grid;
    gap: 1rem;
}
.product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.15rem; }

.home-latest .product-grid,
.product-listing .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}
.content > .panel.home-latest + .panel.home-latest {
    margin-top: 1rem;
}

.product-similar {
    margin-top: 1rem;
}
.product-similar .section-head {
    margin-bottom: 1rem;
}
.product-similar .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.listing-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}
.listing-pagination__status {
    font-size: 0.92rem;
    color: var(--muted);
}
.listing-pagination__status strong {
    color: var(--text);
}
.listing-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: var(--touch-min);
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.listing-pagination__btn:hover:not(.is-disabled) {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.listing-pagination__btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Listing page — modern title */
.listing-page-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem 1.15rem;
    margin-bottom: 1.35rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(30, 58, 138, 0.07) 0%, rgba(14, 165, 233, 0.04) 48%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(30, 58, 138, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}
.listing-page-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
}
.listing-page-head__icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.28);
}
.listing-page-head__content {
    min-width: 0;
    flex: 1;
    padding-top: 0.1rem;
}
.listing-page-head__eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.45rem;
    padding: 0.28rem 0.65rem 0.28rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 58, 138, 0.1);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.listing-page-head__eyebrow .icon { color: var(--primary); }
.listing-page-head__eyebrow strong {
    color: var(--primary);
    font-weight: 800;
}
.listing-page-head__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
}
.listing-page-head__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--text);
    text-transform: none;
}
.listing-page-head__lead {
    margin: 0;
    max-width: 640px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 500;
}
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.admin-actions { grid-template-columns: repeat(auto-fit, minmax(180px, max-content)); }

/* Product card */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 58, 138, 0.18);
}
.product-card__image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}
.product-card__image > img,
.product-card__image > .product-card__placeholder {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}
.product-card__image [data-product-image-fallback][hidden] {
    display: none;
}
.product-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    max-width: calc(100% - 1.5rem);
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(30, 58, 138, 0.12);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: var(--shadow-sm);
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.35s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__image:has(> [data-product-image-fallback]:not([hidden])) {
    background: var(--product-fallback-bg);
}
.product-card__image [data-product-image-fallback]:not([hidden]) {
    background:
        radial-gradient(circle at 78% 18%, rgba(96, 165, 250, 0.18), transparent 42%),
        radial-gradient(circle at 12% 88%, rgba(14, 165, 233, 0.12), transparent 38%),
        var(--product-fallback-bg);
    border: 1px solid var(--product-fallback-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.product-card__image [data-product-image-fallback]:not([hidden])::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem 1.1rem;
    text-align: center;
    position: relative;
}
.product-image-fallback__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
    color: var(--product-fallback-text);
    font-size: clamp(0.72rem, 2.2vw, 0.88rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.02em;
    word-break: break-word;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.product-card__placeholder .product-image-fallback__text {
    -webkit-line-clamp: 5;
}

.product-card__image:has(> .product-card__badge) [data-product-image-fallback]:not([hidden]) .product-image-fallback__text {
    padding-top: 0.35rem;
}

.product-gallery__placeholder .product-image-fallback__text {
    max-width: 92%;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    -webkit-line-clamp: 8;
    color: var(--product-fallback-text);
}
.product-card__body {
    padding: 1rem 1.05rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}
.product-card__body h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.02em;
    min-height: 3.9em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__body h3 a {
    color: var(--text);
    transition: color 0.15s ease;
}
.product-card__body h3 a:hover { color: var(--primary); }
.product-card__footer {
    margin-top: auto;
    padding: 0.85rem 1.05rem 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0.95) 100%);
}
.product-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.product-card__price-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.product-card__price {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.product-card__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
.product-card__detail {
    display: inline-grid;
    place-items: center;
    width: var(--touch-min);
    height: var(--touch-min);
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.product-card__detail:hover {
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.25);
    background: var(--primary-soft);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0;
    padding: 0.65rem var(--layout-pad);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-radius: 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span[aria-hidden], .breadcrumbs__sep { opacity: 0.5; }

.breadcrumbs--product {
    display: block;
    padding: 0;
}
.breadcrumbs__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem var(--layout-pad);
    scrollbar-width: none;
}
.breadcrumbs__scroll::-webkit-scrollbar { display: none; }

.breadcrumbs__trail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.15rem;
}
@media (max-width: 860px) {
    .breadcrumbs__trail {
        flex-wrap: nowrap;
        width: max-content;
        max-width: none;
    }
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: var(--muted);
    opacity: 0.55;
    font-weight: 400;
}

.breadcrumbs__item a,
.breadcrumbs__item span {
    display: inline-block;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.breadcrumbs__item a:hover {
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.25);
    background: var(--primary-soft);
}

.breadcrumbs__item--home a,
.breadcrumbs__item--listing a {
    color: var(--primary);
    background: rgba(30, 58, 138, 0.06);
    border-color: rgba(30, 58, 138, 0.12);
}

.breadcrumbs__item--brand span,
.breadcrumbs__item--model span {
    color: var(--primary);
    background: rgba(30, 58, 138, 0.08);
    border-color: rgba(30, 58, 138, 0.14);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.breadcrumbs--product .breadcrumbs__item--brand span,
.breadcrumbs--product .breadcrumbs__item--model span,
.breadcrumbs--product .breadcrumbs__item--product span[aria-current="page"] {
    font-size: 0.9rem;
}

.breadcrumbs__item--product span {
    color: var(--text);
    font-weight: 800;
    background: #fff;
    border-color: var(--border-strong, var(--border));
}

.breadcrumbs--product .breadcrumbs__item:not(:last-child)::after {
    content: "›";
    margin-left: 0.45rem;
    margin-right: 0.1rem;
    font-size: 1rem;
    font-weight: 700;
}

.breadcrumbs__item--product span[aria-current="page"] {
    letter-spacing: 0.03em;
    text-transform: none;
}

@media (max-width: 640px) {
    .breadcrumbs--product {
        padding: 0.75rem 0.85rem;
    }
    .breadcrumbs__item a,
    .breadcrumbs__item span {
        font-size: 0.76rem;
        padding: 0.24rem 0.48rem;
    }
}

.lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.65; }
.muted { color: var(--muted); }
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
}
.empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--primary);
}
.empty-state strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

/* Product detail */
.product-detail.panel {
    padding: clamp(1.15rem, 2.5vw, 1.85rem) var(--layout-pad);
}

.product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
}

.product-detail__summary {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-gallery {
    width: 100%;
    min-width: 0;
}

.product-gallery__frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(0.85rem, 2vw, 1.25rem);
}

.product-gallery__viewport {
    position: relative;
}

.product-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.product-gallery__nav:hover {
    transform: translateY(-50%) scale(1.04);
    border-color: rgba(30, 58, 138, 0.25);
    background: #fff;
}

.product-gallery__nav--prev { left: 0.65rem; }
.product-gallery__nav--next { right: 0.65rem; }

.product-gallery__counter {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    z-index: 3;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.product-gallery__main,
.product-gallery__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius-lg) - 4px);
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    display: grid;
    place-items: center;
    position: relative;
}
.product-gallery__main > img,
.product-gallery__main > .product-gallery__placeholder {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}
.product-gallery__main [data-product-image-fallback][hidden] {
    display: none;
}

.product-gallery__frame--empty {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: grid;
    place-items: center;
    background: var(--product-fallback-bg);
    border-color: rgba(30, 58, 138, 0.22);
}

.product-gallery__main:has(> [data-product-image-fallback]:not([hidden])) {
    background: var(--product-fallback-bg);
}
.product-gallery__main [data-product-image-fallback]:not([hidden]),
.product-gallery__frame--empty .product-gallery__placeholder {
    background:
        radial-gradient(circle at 78% 18%, rgba(96, 165, 250, 0.18), transparent 42%),
        radial-gradient(circle at 12% 88%, rgba(14, 165, 233, 0.12), transparent 38%),
        var(--product-fallback-bg);
    border: 1px solid var(--product-fallback-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.product-gallery__main [data-product-image-fallback]:not([hidden])::before,
.product-gallery__frame--empty .product-gallery__placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.product-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}
.product-gallery__placeholder .product-image-fallback__text {
    max-width: 92%;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    -webkit-line-clamp: 8;
    color: var(--product-fallback-text);
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.product-gallery__main--openable {
    cursor: zoom-in;
}

.product-gallery__expand {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.product-gallery__expand:hover {
    transform: scale(1.03);
    border-color: rgba(30, 58, 138, 0.22);
    background: #fff;
}

.product-gallery__expand-label {
    line-height: 1;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.gallery-lightbox[hidden] {
    display: none !important;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.88);
    cursor: zoom-out;
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1200px);
    height: min(92vh, 900px);
    display: grid;
    place-items: center;
    padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem);
}

.gallery-lightbox__figure {
    margin: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
    transform: scale(1.04);
    background: #fff;
}

.gallery-lightbox__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
}

.gallery-lightbox__nav {
    top: 50%;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    transform: translateY(-50%);
}

.gallery-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.gallery-lightbox__nav--prev { left: 0.35rem; }
.gallery-lightbox__nav--next { right: 0.35rem; }

.gallery-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.95rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0;
    background: var(--surface);
    cursor: pointer;
    width: 72px;
    height: 72px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.gallery-thumb:hover {
    transform: translateY(-1px);
    border-color: rgba(30, 58, 138, 0.25);
}

.gallery-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-summary__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.product-detail__title {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.38;
    letter-spacing: 0.015em;
    color: var(--text);
}

.product-detail__excerpt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.product-detail__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.product-chip--brand {
    color: var(--primary);
    background: rgba(30, 58, 138, 0.04);
    border-color: rgba(30, 58, 138, 0.12);
}

.product-cta-card {
    margin-top: 0.35rem;
    padding: 1.2rem 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.product-cta-card__price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.product-cta-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.product-cta-card__price {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.product-cta-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--whatsapp-soft);
    color: #047857;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-cta-card__hint {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.product-cta-card__btn {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
    border-radius: 14px;
    font-size: 0.98rem;
}

.product-detail__sections {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.product-detail__section {
    margin-top: 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.product-detail__section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.02rem;
    margin: 0 0 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.product-detail__section--description .rich-text {
    color: var(--text-secondary);
    line-height: 1.75;
}

.rich-text {
    color: var(--text-secondary);
    white-space: pre-line;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .product-detail__layout,
    .product-detail__grid {
        grid-template-columns: 1fr;
    }

    .product-detail__summary {
        position: static;
    }
}

.product-sku {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Legacy aliases */
.product-detail__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
}

.product-detail__info h1 {
    margin: 0.5rem 0 0.85rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-box {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.price-box__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-box__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.25rem 0;
    letter-spacing: -0.02em;
}

.price-box__hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.article-facts {
    display: grid;
    grid-template-columns: minmax(140px, 34%) 1fr;
    gap: 0.55rem 1rem;
    margin: 0;
}

.article-facts dt {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-facts dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.article-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.article-tags li {
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.article-tags--vehicles li {
    border-radius: var(--radius-sm);
}

@media (max-width: 700px) {
    .article-facts {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .article-facts dt {
        margin-top: 0.65rem;
    }
}

.page-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}
.page-header__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
}
.page-header h1 { margin: 0 0 0.35rem; }
.page-header .lead { margin: 0 0 0.75rem; color: var(--muted); font-size: 1.05rem; }
.page-header__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}
@media (max-width: 640px) {
    .page-header { grid-template-columns: 1fr; }
}

/* Admin / forms */
/* Product listing — smart filter */
.listing-smart {
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}
.listing-smart__form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
.listing-smart__search-row {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}
.listing-smart__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.listing-smart__field--search {
    flex: 1;
}
.listing-smart__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.listing-smart__field input[type="search"],
.listing-smart__field select {
    width: 100%;
    padding: 0.78rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.listing-smart__field input[type="search"]:focus,
.listing-smart__field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.listing-smart__submit {
    align-self: flex-end;
    white-space: nowrap;
}
.listing-smart__filters {
    border: none;
    margin: 0;
    padding: 0;
}
.listing-smart__filters summary {
    display: none;
    list-style: none;
}
.listing-smart__filters summary::-webkit-details-marker { display: none; }
.listing-smart__controls {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) auto auto;
    gap: 0.75rem;
    align-items: end;
}
.listing-smart__locked {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0 0.85rem;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid rgba(30, 58, 138, 0.12);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 700;
}
.listing-smart__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    user-select: none;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}
.listing-smart__toggle input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--primary);
}
.listing-smart__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.85rem;
    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.listing-smart__clear:hover {
    color: var(--primary);
    border-color: rgba(30, 58, 138, 0.22);
    background: var(--primary-soft);
}
.listing-smart__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}
.listing-smart__count,
.listing-smart__sort-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.listing-smart__count strong {
    color: var(--primary);
    font-weight: 800;
}
.listing-smart__sort-label .icon { color: var(--primary); }
.listing-smart__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.listing-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(30, 58, 138, 0.12);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.15s ease;
}
.listing-chip:hover {
    background: #dbeafe;
    color: var(--primary);
    transform: translateY(-1px);
}
.listing-chip .icon:last-child { opacity: 0.65; }

/* WhatsApp bar */
.whatsapp-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.whatsapp-bar a {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.9rem var(--layout-pad);
    padding-left: max(var(--layout-pad), env(safe-area-inset-left));
    padding-right: max(var(--layout-pad), env(safe-area-inset-right));
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text);
    text-decoration: none;
    min-height: var(--touch-min);
}
.whatsapp-bar a:hover { color: var(--text); }
.whatsapp-bar__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--whatsapp-soft);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.whatsapp-bar__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}
.whatsapp-bar__text strong { font-weight: 800; font-size: 0.95rem; }
.whatsapp-bar__text span { color: var(--muted); font-size: 0.84rem; font-weight: 500; }
.whatsapp-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #047857;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Footer */
.site-footer {
    margin: 3rem max(var(--layout-gutter), env(safe-area-inset-right)) 0 max(var(--layout-gutter), env(safe-area-inset-left));
    background:
        linear-gradient(165deg, #0b1224 0%, #0f172a 38%, #111827 100%);
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.site-footer__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 35%, #0ea5e9 70%, #22d3ee 100%);
    z-index: 2;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.28), transparent 42%),
        radial-gradient(circle at 8% 92%, rgba(14, 165, 233, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%);
    pointer-events: none;
}
.site-footer::after {
    content: "";
    position: absolute;
    inset: auto 8% 0 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    pointer-events: none;
}
.site-footer__main,
.site-footer__bottom {
    position: relative;
    z-index: 1;
}
.site-footer__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--footer-pad);
    padding-right: var(--footer-pad);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr) minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 2rem 2.25rem;
    padding: 2.65rem 0 2.15rem;
    align-items: start;
}
.site-footer__brand {
    min-width: 0;
}
.site-footer__desc {
    margin: 1.1rem 0 0;
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    line-height: 1.75;
}
.site-footer__highlights {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.site-footer__highlights li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.site-footer__highlights .icon {
    color: #93c5fd;
    opacity: 1;
}
.site-footer__col {
    min-width: 0;
}
.site-footer__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.94);
}
.site-footer__title .icon {
    color: #93c5fd;
    opacity: 1;
}
.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}
.site-footer__links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.62rem 0.85rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.site-footer__links a span {
    flex: 1;
    min-width: 0;
}
.site-footer__links a .icon {
    color: rgba(147, 197, 253, 0.9);
    opacity: 1;
    flex-shrink: 0;
}
.site-footer__links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}
.site-footer__contact-card {
    padding: 1.25rem 1.25rem 1.3rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-footer__contact-card .site-footer__title {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}
.site-footer__contact-lead {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.88rem;
    line-height: 1.65;
    font-weight: 500;
}
.site-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.site-footer__phone:hover {
    color: #bfdbfe;
    opacity: 0.95;
}
.site-footer__phone .icon {
    color: #93c5fd;
}
.site-footer__wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: var(--touch-min);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366 0%, #20bd5a 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-footer__wa-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.34);
}
.site-footer__wa-btn .whatsapp-brand-icon {
    filter: brightness(0) invert(1);
}
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.14);
}
.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0 1.5rem;
}
.site-footer__copy {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.86rem;
    font-weight: 500;
}
.site-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.site-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.site-footer__badge .icon {
    color: #93c5fd;
    opacity: 1;
}

/* Admin */
.admin-page { background: var(--bg); }
.admin-page .site-header {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.08);
}
.admin-page .site-header.is-scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.admin-page .brand-logo { color: #fff; }
.admin-page .nav-link {
    color: rgba(255,255,255,0.78);
}
.admin-page .nav-link:hover,
.admin-page .nav-link--active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.admin-page .menu-toggle {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.admin-page .panel {
    border-color: var(--border);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.form-grid, .admin-form { display: grid; gap: 1.1rem; max-width: none; width: 100%; }
.form-grid label, .admin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.form-grid input, .form-grid textarea, .form-grid select,
.admin-form input, .admin-form textarea, .admin-form select {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus,
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    font-weight: 600 !important;
}
.form-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    border: 1px solid var(--border);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: var(--surface);
}
.admin-table th, .admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.admin-table th {
    background: var(--bg-soft);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(239, 246, 255, 0.5); }
.table-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; }
.table-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.88rem;
}
.inline-form { display: inline; }
.link-danger {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    font: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-card {
    padding: 1.15rem;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
}
.stat-card strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-badge--active { background: var(--success-soft); color: #065f46; }
.status-badge--inactive { background: var(--bg-soft); color: var(--muted); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.92rem;
}
.back-link:hover { color: var(--primary); }
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}
.panel-step-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}
.panel-step-head h2 { margin: 0; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.92rem;
}
.alert-error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: var(--success-soft); color: #065f46; border: 1px solid #a7f3d0; }

.auth-panel { max-width: 440px; margin: 2rem auto; }
.auth-panel .brand-logo { justify-content: center; }
.auth-panel h1 { font-size: 1.5rem; margin-top: 0.5rem; }

.code-block, pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.85rem;
}
.form-hint { margin: -0.35rem 0 0.75rem; font-size: 0.88rem; }
.price-info-box {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    background: var(--whatsapp-soft);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.image-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.image-admin-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    background: var(--bg-soft);
}
.image-admin-item img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.sync-progress { margin-bottom: 1rem; }
.sync-progress__bar {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    overflow: hidden;
}
.sync-progress__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 999px;
}

.api-sync-form__hint,
.api-sync-form__actions {
    grid-column: 1 / -1;
}
.api-sync-form__hint {
    margin: 0;
    line-height: 1.65;
}

.brand-dropdown {
    grid-column: 1 / -1;
    max-width: 420px;
}
.brand-dropdown__label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.brand-dropdown__control {
    position: relative;
}
.brand-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.brand-dropdown__trigger:hover {
    border-color: rgba(30, 58, 138, 0.25);
}
.brand-dropdown__trigger:focus-visible,
.brand-dropdown.is-open .brand-dropdown__trigger {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.brand-dropdown__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-dropdown__value.is-placeholder {
    color: var(--muted);
    font-weight: 500;
}
.brand-dropdown__chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.15s ease;
}
.brand-dropdown.is-open .brand-dropdown__chevron {
    transform: rotate(180deg);
}
.brand-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}
.brand-dropdown__menu[hidden] {
    display: none;
}
.brand-dropdown__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.brand-dropdown__search .icon {
    flex-shrink: 0;
    color: var(--muted);
}
.brand-dropdown__search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
}
.brand-dropdown__search input::placeholder {
    color: var(--muted);
    font-weight: 500;
}
.brand-dropdown__list {
    max-height: 12rem;
    overflow: auto;
    padding: 0.25rem;
}
.brand-dropdown__options {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.brand-dropdown__option {
    display: block;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.brand-dropdown__option:hover,
.brand-dropdown__option.is-focused {
    background: var(--bg-soft);
}
.brand-dropdown__option.is-selected {
    background: var(--primary-soft);
    color: var(--primary);
}
.brand-dropdown__option:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(30, 58, 138, 0.2);
}
.brand-dropdown__status,
.brand-dropdown__meta {
    margin: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
}
.brand-dropdown__meta {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.ai-generate-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    border: 1px solid rgba(30, 58, 138, 0.15);
}
.ai-generate-box__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--primary);
}
.ai-generate-box p { margin: 0.35rem 0 0; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.ai-generate-box--disabled { background: var(--bg-soft); border-color: var(--border); }
.ai-generate-box--inline { margin-bottom: 0.75rem; }
.ai-generate-status { width: 100%; margin: 0; font-size: 0.9rem; font-weight: 600; }
.ai-generate-status--loading { color: var(--primary); }
.ai-generate-status--success { color: var(--success); }
.ai-generate-status--error { color: var(--danger); }
.ai-generate-status--info { color: var(--muted); }

.ad-slot {
    width: 100%;
    margin: 0;
    padding: 0.75rem var(--layout-pad);
    border-radius: 0;
    background: var(--bg-soft);
    border: 1px dashed var(--border);
    border-left: none;
    border-right: none;
    text-align: center;
    overflow: hidden;
}
.ad-slot:empty { display: none; }
.ad-slot iframe,
.ad-slot img { max-width: 100%; height: auto; }
.ad-slot-help__list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}
.ad-slot-help__list code {
    font-size: 0.82rem;
    color: var(--primary);
}
.code-textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-latest .product-grid,
    .product-listing .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .listing-smart__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-latest .product-grid,
    .product-listing .product-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .product-similar .product-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .listing-smart {
        padding: 0.95rem;
    }
    .listing-smart__search-row {
        flex-direction: column;
    }
    .listing-smart__submit {
        width: 100%;
        justify-content: center;
        min-height: var(--touch-min);
    }
    .listing-smart__filters {
        border-top: 1px solid var(--border);
        padding-top: 0.75rem;
    }
    .listing-smart__filters summary {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: var(--touch-min);
        padding: 0.65rem 0.85rem;
        border-radius: 12px;
        background: var(--bg-soft);
        border: 1px solid var(--border);
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--text-secondary);
        cursor: pointer;
        user-select: none;
    }
    .listing-smart__filters:not([open]) .listing-smart__controls {
        display: none;
    }
    .listing-smart__controls {
        grid-template-columns: 1fr;
        margin-top: 0.75rem;
    }
    .listing-smart__clear,
    .listing-smart__toggle,
    .listing-smart__locked {
        width: 100%;
        justify-content: center;
    }
    .listing-smart__field input[type="search"],
    .listing-smart__field select {
        font-size: 16px;
        min-height: var(--touch-min);
    }
    .listing-smart__meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .listing-page-head {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    .listing-page-head__icon {
        width: 2.85rem;
        height: 2.85rem;
        border-radius: 14px;
    }
    .brand-index__grid {
        grid-template-columns: 1fr;
    }
    .brand-index__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 960px) {
    .home-viewport {
        min-height: auto;
        max-height: none;
        overflow: visible;
    }
    .home-viewport .hero-modern__inner {
        overflow: visible;
    }
    .home-viewport .hero-modern__aside {
        max-height: none;
        overflow: visible;
    }
    .home-viewport__products {
        max-height: none;
    }
    .home-viewport .hero-modern__inner {
        grid-template-columns: 1fr;
        padding: clamp(0.85rem, 2vh, 1.35rem) var(--layout-pad) clamp(0.55rem, 1vh, 0.85rem);
        gap: 0.85rem;
    }
    .home-viewport__products .product-grid {
        grid-auto-columns: minmax(160px, 78vw);
    }
    .hero-modern {
        min-height: calc(100svh - var(--topbar-h) - var(--header-h));
    }
    .home-viewport .hero-modern {
        min-height: 0;
    }
    .hero-modern__inner {
        grid-template-columns: 1fr;
        padding: 2rem var(--layout-pad) 1.25rem;
        gap: 1.25rem;
    }
    .hero-modern__title { max-width: none; }
    .hero-modern__stats { max-width: none; }
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 2rem;
        padding: 2.15rem 0 1.85rem;
    }
    .site-footer__brand { grid-column: 1 / -1; }
    .site-footer__col--contact { grid-column: 1 / -1; }
    .site-footer__col--legal { grid-column: auto; }
}

@media (min-width: 769px) {
    .listing-smart__filters .listing-smart__controls {
        display: grid;
    }
}

@media (max-width: 860px) {
    .btn,
    .btn-primary,
    .btn-whatsapp,
    .btn-secondary {
        min-height: var(--touch-min);
    }
    .legal-cards {
        grid-template-columns: 1fr;
    }
    .product-detail.panel {
        padding: 1rem;
    }
    .header-topbar__inner {
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        padding-top: max(0.45rem, env(safe-area-inset-top));
        padding-left: max(var(--layout-pad), env(safe-area-inset-left));
        padding-right: max(var(--layout-pad), env(safe-area-inset-right));
    }
    .header-topbar__promo {
        min-width: 0;
        flex: 1 1 auto;
    }
    .header-topbar__callcenter {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        cursor: pointer;
    }
    .header-nav-backdrop.is-visible { display: block; }
    body.nav-open { overflow: hidden; }
    .menu-toggle { display: inline-flex; }
    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
        margin-left: 0;
        gap: 0.75rem;
        max-height: calc(100dvh - var(--header-h) - var(--topbar-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-nav.is-open { display: flex; }
    .header-nav__links,
    .header-nav__actions {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: var(--radius);
        background: transparent;
    }
    .header-nav__links {
        padding: 0.35rem;
        background: var(--bg-soft);
        border: 1px solid var(--border);
    }
    .nav-link {
        width: 100%;
        border-radius: 12px;
        min-height: var(--touch-min);
        padding: 0.75rem 1rem;
    }
    .nav-link--active::after { display: none; }
    .nav-dropdown {
        width: 100%;
    }
    .nav-dropdown__toggle {
        width: 100%;
        min-height: var(--touch-min);
        padding: 0.75rem 1rem;
        border-radius: 12px;
        justify-content: space-between;
    }
    .nav-dropdown__panel {
        position: static;
        min-width: 0;
        max-width: none;
        margin-top: 0.35rem;
        padding: 0.65rem;
        box-shadow: none;
        border: 1px solid var(--border);
        background: #fff;
    }
    .nav-dropdown__grid {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .nav-dropdown__brand {
        min-height: var(--touch-min);
    }
    .btn-header-cta {
        width: 100%;
        justify-content: center;
        min-height: var(--touch-min);
    }
    .admin-page .header-nav {
        background: #1e293b;
        border-bottom-color: rgba(255,255,255,0.08);
    }
    .site-header { position: sticky; }
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        padding-left: max(var(--layout-pad), env(safe-area-inset-left));
        padding-right: max(var(--layout-pad), env(safe-area-inset-right));
    }
    .hero-modern__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-modern__actions .btn-hero-solid,
    .hero-modern__actions .btn-hero-outline {
        width: 100%;
        justify-content: center;
        min-height: var(--touch-min);
    }
    .hero-modern__stats { grid-template-columns: 1fr; }
    .hero-modern__trust-inner { gap: 0.75rem 1.25rem; }
    .hero-modern__search-box {
        flex-wrap: wrap;
        max-width: none;
    }
    .hero-modern__search-box input {
        font-size: 16px;
    }
    .hero-modern__search-btn {
        width: 100%;
        justify-content: center;
        min-height: var(--touch-min);
    }
    .home-viewport__products .product-card__detail,
    .home-viewport__products .btn-whatsapp--icon {
        width: var(--touch-min);
        height: var(--touch-min);
    }
    .product-gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
    }
    .gallery-thumb {
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .product-gallery__nav {
        width: var(--touch-min);
        height: var(--touch-min);
    }
    .product-gallery__nav--prev { left: 0.45rem; }
    .product-gallery__nav--next { right: 0.45rem; }
    .product-gallery__expand {
        min-width: var(--touch-min);
        min-height: var(--touch-min);
        padding: 0;
        justify-content: center;
        top: 0.5rem;
        right: 0.5rem;
    }
    .product-gallery__expand-label {
        display: none;
    }
    .gallery-lightbox__nav {
        width: var(--touch-min);
        height: var(--touch-min);
    }
    .gallery-lightbox__close {
        width: var(--touch-min);
        height: var(--touch-min);
    }
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }
    .section-head .btn {
        width: 100%;
        justify-content: center;
        min-height: var(--touch-min);
    }
    .ai-generate-box {
        flex-direction: column;
        align-items: stretch;
    }
    .ai-generate-box .btn {
        width: 100%;
        min-height: var(--touch-min);
    }
    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.65rem;
        padding: 1.85rem 0 1.5rem;
    }
    .site-footer__brand { grid-column: auto; }
    .site-footer__col--contact { grid-column: auto; }
    .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
    .site-footer {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}

@media (max-height: 760px) and (min-width: 861px) {
    .home-viewport .hero-modern__lead { display: none; }
    .home-viewport .hero-modern__stats { display: none; }
    .home-viewport .hero-modern__features li { padding: 0.5rem 0.65rem; }
    .home-viewport .hero-modern__features strong { font-size: 0.78rem; }
    .home-viewport .hero-modern__features span { font-size: 0.68rem; }
}

@media (max-width: 480px) {
    .header-topbar__callcenter {
        max-width: 9.5rem;
    }
    .header-topbar__phone {
        font-size: 0.72rem;
    }
    .product-card__footer { flex-wrap: wrap; }
    .product-card__body h3 { min-height: auto; -webkit-line-clamp: 4; }
    .product-cta-card__price-row { flex-direction: column; align-items: flex-start; }
    .product-card__footer { width: 100%; }
    .whatsapp-bar__cta span { display: none; }
    .panel {
        padding: 1rem;
    }
}

.legal-page .legal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.legal-card {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.legal-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}
.legal-card p { margin: 0 0 0.75rem; color: var(--text-secondary); line-height: 1.65; }
.legal-content {
    margin-top: 1.5rem;
    max-width: none;
    line-height: 1.75;
    color: var(--text-secondary);
}
.legal-content h2 {
    margin: 1.75rem 0 0.65rem;
    color: var(--text);
    font-size: 1.15rem;
}
.legal-content p { margin: 0 0 1rem; }
.legal-content ul,
.legal-content ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}
.legal-content li {
    margin-bottom: 0.4rem;
}
.legal-content h3 {
    margin: 1.25rem 0 0.5rem;
    color: var(--text);
    font-size: 1rem;
}
.legal-content a { color: var(--primary); font-weight: 600; }
.legal-data-table {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.legal-data-table p:last-child { margin-bottom: 0; }
.legal-data-table p { margin: 0 0 0.55rem; }
