/* ==========================================================================
   Tienda Online – Estilos públicos
   Paleta base: Samsung (azul) · Movistar (cian/verde) · Apple (negro/gris)
   Las variables --primary, --secondary, etc. se inyectan desde el panel.
   ========================================================================== */
:root {
    --primary: #1428A0;
    --secondary: #019DF4;
    --accent: #5BC500;
    --dark: #1D1D1F;
    --light: #F5F5F7;
    --radius: 16px;
    --font-heading: "Outfit", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;

    --white: #fff;
    --text: var(--dark);
    --muted: #6E6E73;
    --border: #E5E5EA;
    --danger: #E5383B;
    --warning: #F5A524;
    --success: #1DB954;
    --wa: #25D366;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hot: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow: 0 8px 24px rgba(16, 24, 40, .08);
    --shadow-lg: 0 20px 50px rgba(20, 40, 160, .18);
    --r-sm: calc(var(--radius) * .5);
    --r-lg: calc(var(--radius) * 1.5);
    --container: 1280px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; display: block; }
code { background: var(--light); padding: 2px 6px; border-radius: 6px; font-size: .85em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, .7); }
.small { font-size: .85rem; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.gradient-text { background: linear-gradient(90deg, #7FD3FF, #B6FF7A); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.3em; border-radius: 999px; border: 2px solid transparent;
    font: 600 .95rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
    text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 45%, transparent); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 14%, white); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { color: #fff; background: #1EBE5A; transform: translateY(-1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1rem; }
.btn-sm { padding: .45em .95em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-group { display: inline-flex; gap: 6px; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: .85rem; padding: 0; }
.link-more { font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; }

.icon-btn {
    display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0;
    color: var(--text); font: 500 .92rem var(--font-body); cursor: pointer; padding: 8px 10px;
    border-radius: 999px; transition: background .2s, color .2s;
}
.icon-btn i { font-size: 1.25rem; }
.icon-btn:hover { background: var(--light); color: var(--primary); }
.icon-btn.danger:hover { color: var(--danger); background: #FDECEC; }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--gradient); color: #fff; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { opacity: .85; color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, .06); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--dark); font: 800 1.25rem var(--font-heading); letter-spacing: -.03em; flex-shrink: 0; }
.brand:hover { color: var(--dark); }
.brand img { max-height: 44px; width: auto; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--gradient); color: #fff; font-size: 1.2rem; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}
.brand-light, .brand-light:hover { color: #fff; }
.search { flex: 1; position: relative; display: flex; max-width: 620px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
    width: 100%; height: 46px; border: 2px solid transparent; background: var(--light);
    border-radius: 999px; padding: 0 110px 0 44px; font: inherit; transition: border-color .2s, background .2s;
}
.search input:focus { outline: none; border-color: var(--secondary); background: #fff; }
.search button {
    position: absolute; right: 4px; top: 4px; bottom: 4px; border: 0; border-radius: 999px; padding: 0 18px;
    background: var(--gradient); color: #fff; font-weight: 600; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: 0; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
    box-shadow: 0 0 0 2px #fff;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }
.menu-toggle { display: none; }

.catnav { border-top: 1px solid rgba(0, 0, 0, .05); }
.catnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px 20px; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a {
    flex-shrink: 0; padding: 6px 14px; border-radius: 999px; color: var(--text); font-size: .88rem; font-weight: 500;
    transition: background .2s, color .2s;
}
.catnav a:hover, .catnav a.active { background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); }
.catnav a.hot { color: #FF3B30; font-weight: 600; }
.catnav a.hot.active, .catnav a.hot:hover { background: #FFF0EE; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .18s; z-index: 60; border: 1px solid var(--border);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px;
    color: var(--text); background: none; border: 0; font: 500 .9rem var(--font-body); cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--light); color: var(--primary); }

/* Drawer (móvil) */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-panel {
    position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: #fff; padding: 20px;
    transform: translateX(-100%); transition: transform .28s ease; overflow-y: auto; z-index: 2;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .28s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--font-heading); font-size: 1.15rem; }
.drawer-panel > a { display: flex; align-items: center; gap: 10px; padding: 11px 8px; color: var(--text); border-radius: 10px; font-weight: 500; }
.drawer-panel > a:hover { background: var(--light); }
.drawer-sep { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 8px 6px; font-weight: 700; }
.search-drawer { margin-bottom: 10px; }
.search-drawer input { padding-right: 16px; }

/* ---------- Flash / alertas / toast ---------- */
.flash-stack { position: fixed; top: 90px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #fff;
    box-shadow: var(--shadow-lg); border-left: 4px solid var(--secondary); animation: slideIn .35s ease; font-size: .92rem;
}
.flash i { font-size: 1.15rem; margin-top: 1px; }
.flash span { flex: 1; }
.flash-success { border-color: var(--success); } .flash-success i { color: var(--success); }
.flash-danger { border-color: var(--danger); } .flash-danger i { color: var(--danger); }
.flash-warning { border-color: var(--warning); } .flash-warning i { color: var(--warning); }
.flash-info i { color: var(--secondary); }
.flash-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.flash.hide { opacity: 0; transform: translateX(30px); transition: all .3s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }

.alert { padding: 12px 16px; border-radius: 12px; margin: 12px 0; font-size: .92rem; }
.alert-danger { background: #FDECEC; color: #9B1C1C; }
.alert-warning { background: #FFF6E5; color: #8A5300; }
.info-box { background: color-mix(in srgb, var(--secondary) 8%, white); border: 1px solid color-mix(in srgb, var(--secondary) 25%, white); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .9rem; }
.info-box p:last-child { margin: 0; }

.toast {
    position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: var(--dark); color: #fff;
    padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: .92rem; opacity: 0; pointer-events: none;
    transition: all .3s; z-index: 300; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #7FD3FF; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { background: var(--gradient); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .18), transparent 45%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 480px; padding-top: 50px; padding-bottom: 50px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: .35em; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .82rem; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(6px); }
.pill-hot { background: var(--gradient-hot); color: #fff; }
.hero-art { position: relative; height: 380px; }
.phone {
    position: absolute; width: 190px; height: 380px; border-radius: 38px; background: linear-gradient(160deg, #2C2C2E, #000);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 3px #3A3A3C;
}
.phone-back { right: 38%; top: 10px; transform: rotate(-12deg); opacity: .6; }
.phone-front { right: 12%; top: 0; transform: rotate(6deg); animation: float 6s ease-in-out infinite; }
.phone-screen {
    position: absolute; inset: 10px; border-radius: 30px; background: linear-gradient(160deg, var(--secondary), var(--primary) 60%, var(--accent));
    display: grid; place-items: center; font-size: 4rem; color: rgba(255, 255, 255, .9);
}
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .6; }
.orb-1 { width: 200px; height: 200px; background: var(--accent); bottom: 0; right: 0; }
.orb-2 { width: 160px; height: 160px; background: #fff; top: 0; left: 10%; opacity: .25; }
@keyframes float { 50% { transform: rotate(6deg) translateY(-14px); } }

/* Slider */
.hero-slider { position: relative; height: clamp(320px, 42vw, 560px); overflow: hidden; background: var(--dark); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1) 70%); }
.slide-content { position: relative; color: #fff; max-width: var(--container); }
.slide-content h2 { font-size: clamp(1.8rem, 4.5vw, 3.4rem); font-weight: 800; max-width: 640px; }
.slide-content p { font-size: 1.1rem; max-width: 520px; opacity: .92; }
.slide.active .slide-content > * { animation: rise .7s ease both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: .1s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s;
}
.slider-arrow:hover { background: rgba(255, 255, 255, .4); }
.slider-arrow.prev { left: 20px; } .slider-arrow.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: all .3s; padding: 0; }
.slider-dots button.active { width: 30px; background: #fff; }

/* Beneficios */
.benefits { background: var(--light); padding: 22px 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit i { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 1.3rem; box-shadow: var(--shadow-sm); }
.benefit strong { display: block; font-size: .92rem; }
.benefit span { font-size: .8rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: 50px 0; }
.section-sale { background: linear-gradient(180deg, #FFF5F2, #fff); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-sale .section-head h2 i { color: #FF3B30; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.category-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 24px 12px; border-radius: var(--radius); background: var(--light); color: var(--text); overflow: hidden;
    transition: transform .25s, box-shadow .25s; min-height: 150px;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.category-tile i { font-size: 2.2rem; margin-bottom: 10px; color: var(--primary); transition: transform .3s; }
.category-tile:hover i { transform: scale(1.12) rotate(-6deg); }
.category-tile img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 10px; }
.category-tile strong { font-size: .95rem; }
.category-tile span { font-size: .78rem; color: var(--muted); }
.tile-0 { background: linear-gradient(160deg, #EEF1FF, #fff); }
.tile-1 { background: linear-gradient(160deg, #E6F6FF, #fff); } .tile-1 i { color: var(--secondary); }
.tile-2 { background: linear-gradient(160deg, #EFFBE6, #fff); } .tile-2 i { color: var(--accent); }
.tile-3 { background: linear-gradient(160deg, #F2F2F7, #fff); } .tile-3 i { color: var(--dark); }
.tile-4 { background: linear-gradient(160deg, #FFF1EC, #fff); } .tile-4 i { color: #FF6B3D; }
.tile-5 { background: linear-gradient(160deg, #F4EEFF, #fff); } .tile-5 i { color: #7C4DFF; }

/* ---------- Tarjeta de producto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 1; background: var(--light); display: block; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.06); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff; }
.tag-sale { background: var(--gradient-hot); }
.tag-new { background: var(--gradient); }
.tag-out { left: auto; right: 12px; background: var(--dark); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-meta { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--secondary); font-weight: 700; }
.product-title { font-size: 1rem; margin: 0; font-weight: 600; }
.product-title a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title a:hover { color: var(--primary); }
.product-desc { font-size: .82rem; color: var(--muted); margin: 0; }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.product-price strong { font: 800 1.2rem var(--font-heading); color: var(--dark); }
.product-price del, .price-box del { color: var(--muted); font-size: .85rem; }
.promo-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: #D63A1E; background: #FFF0EC; padding: 3px 10px; border-radius: 999px; }
.product-body .btn { margin-top: 8px; }

/* ---------- CTA banner ---------- */
.cta-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px;
    border-radius: var(--r-lg); background: var(--dark); color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--gradient); filter: blur(80px); opacity: .5; right: -100px; top: -150px; }
.cta-banner > * { position: relative; }
.cta-banner h2 { margin-bottom: .2em; }
.cta-banner p { margin: 0; opacity: .8; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 3.2rem; color: var(--secondary); display: inline-block; margin-bottom: 12px; }
.empty-state.small { padding: 30px 20px; }
.empty-state.small i { font-size: 2.2rem; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: var(--light); padding: 34px 0 30px; }
.page-hero-sm { padding: 26px 0; }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p { color: var(--muted); max-width: 720px; margin: 0; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: .7rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .85rem; color: var(--text); }
.chip:hover { border-color: var(--primary); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.steps span { font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--muted); }
.steps span.active { background: var(--gradient); color: #fff; }

/* ---------- Listado / filtros ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 60px); }
.filters-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.filters-form h3 { display: flex; align-items: center; gap: 8px; }
.filter-group { margin-bottom: 18px; }
.filter-group > label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 8px; }
.filter-link { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; }
.filter-link small { color: var(--muted); }
.filter-link:hover, .filter-link.active { background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.show-filters { display: none; }

/* ---------- Paginación ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--text); font-weight: 500; padding: 0 10px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--gradient); color: #fff; border-color: transparent; }
.pagination span { border: 0; }

/* ---------- Producto ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; margin-bottom: 40px; }
.gallery-main { position: relative; background: var(--light); border-radius: var(--r-lg); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 30px; transition: opacity .25s; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumbs button { aspect-ratio: 1; border-radius: var(--r-sm); border: 2px solid transparent; background: var(--light); cursor: pointer; padding: 6px; transition: border-color .2s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--secondary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.product-info .lead { font-size: 1.05rem; color: var(--muted); }
.price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.price-box strong { font: 800 2.2rem var(--font-heading); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-box .save { font-size: .82rem; font-weight: 700; color: var(--success); background: #E9F9EF; padding: 3px 10px; border-radius: 999px; }
.product-facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.product-facts li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.product-facts i { font-size: 1.1rem; color: var(--primary); }
.buy-form { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.buy-form .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty button:hover { background: var(--light); }
.qty input { width: 48px; text-align: center; border: 0; font: 600 1rem var(--font-body); -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 32px; height: 36px; }
.qty-sm input { width: 38px; font-size: .92rem; }
.product-description { margin-bottom: 40px; }
.rich { color: #3A3A3C; line-height: 1.75; }

/* ---------- Card genérica / formularios ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 1.25rem; }
.card h3 { margin-bottom: 16px; }
.narrow { max-width: 520px; }
.narrow-lg { max-width: 820px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search],
input[type=url], input[type=date], input[type=datetime-local], select, textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: calc(var(--r-sm) + 2px); font: inherit;
    background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondary) 15%, transparent); }
textarea { resize: vertical; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236E6E73' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.form-actions.between { justify-content: space-between; }
.error { color: var(--danger); font-size: .8rem; display: block; margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; cursor: pointer; margin-bottom: 12px; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; }
.input-icon { position: relative; }
.input-icon button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; }

/* Switch */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 14px; font-size: .92rem; font-weight: 500; }
.switch input { display: none; }
.switch span { width: 44px; height: 26px; border-radius: 999px; background: #D1D1D6; position: relative; transition: background .2s; flex-shrink: 0; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- Tablas / badges ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 700; white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: #FAFAFC; }
.table tfoot th { color: var(--text); font-size: .88rem; border-top: 2px solid var(--border); border-bottom: 0; }
.table td.actions { white-space: nowrap; text-align: right; }
.actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.actions form { display: inline; }
.cell-product { display: flex; align-items: center; gap: 12px; }
.cell-product img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: var(--light); flex-shrink: 0; padding: 3px; }
.icon-box { width: 48px; height: 48px; border-radius: 10px; background: var(--light); display: grid; place-items: center; color: var(--primary); font-size: 1.3rem; flex-shrink: 0; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #EFEFF4; color: #555; white-space: nowrap; }
.badge-pendiente { background: #FFF4E0; color: #B26A00; }
.badge-cotizado { background: #F1EBFF; color: #6B3FD6; }
.badge-en_proceso { background: #E6F4FF; color: #0071C2; }
.badge-enviado { background: #E0F7FA; color: #00838F; }
.badge-finalizado { background: #E7F8EC; color: #16863A; }
.badge-cancelado { background: #FDECEC; color: #C62828; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; scrollbar-width: thin; }
.tabs a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; color: var(--text); font-size: .88rem; font-weight: 500; background: var(--light); }
.tabs a small { background: rgba(0, 0, 0, .07); padding: 1px 7px; border-radius: 999px; margin-left: 4px; font-size: .75rem; }
.tabs a.active { background: var(--gradient); color: #fff; }
.tabs a.active small { background: rgba(255, 255, 255, .25); }

/* ---------- Carrito ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:first-of-type { padding-top: 0; }
.cart-thumb { width: 80px; height: 80px; border-radius: 14px; background: var(--light); display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-info a { color: var(--text); }
.cart-unit { font-size: .88rem; color: var(--muted); }
.cart-unit del { margin-left: 6px; }
.cart-line { font: 700 1.05rem var(--font-heading); min-width: 110px; text-align: right; }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 60px); }
.sum-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .95rem; }
.sum-row.discount { color: var(--success); font-weight: 600; }
.sum-row.total { border-top: 2px dashed var(--border); margin-top: 10px; padding-top: 16px; font: 800 1.35rem var(--font-heading); }
.coupon-form { display: flex; gap: 8px; margin: 10px 0; }
.coupon-form input { text-transform: uppercase; }
.inline-right { text-align: right; margin-top: -6px; }
.cart-summary .btn { margin-top: 10px; }
.checkout-form h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; margin: 10px 0 16px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pay-method input { display: none; }
.pay-method span { display: flex; align-items: center; gap: 8px; padding: 14px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; font-weight: 500; transition: all .2s; }
.pay-method span i { color: var(--border); transition: color .2s; }
.pay-method input:checked + span { border-color: var(--secondary); background: color-mix(in srgb, var(--secondary) 6%, white); }
.pay-method input:checked + span i { color: var(--secondary); }

/* ---------- Auth ---------- */
.auth-page { padding: 50px 20px; background: radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--secondary) 12%, white), transparent 40%), radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--accent) 12%, white), transparent 40%), var(--light); }
.auth-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-side { background: var(--gradient); color: #fff; padding: 44px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); filter: blur(70px); opacity: .45; bottom: -80px; right: -80px; }
.auth-side h2 { font-size: 2rem; }
.auth-side p { opacity: .9; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; align-items: center; gap: 10px; }
.auth-side li i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.auth-form { padding: 44px; }
.auth-form h1 { font-size: 1.8rem; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* ---------- Cuenta ---------- */
.account-hero { background: var(--gradient); color: #fff; padding: 30px 0; }
.account-hero-inner { display: flex; align-items: center; gap: 18px; }
.account-hero h1 { font-size: 1.6rem; margin: 0; }
.account-hero small, .account-hero span { opacity: .85; font-size: .88rem; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font: 800 1.6rem var(--font-heading); border: 3px solid rgba(255, 255, 255, .4); }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-top: 30px; padding-bottom: 50px; align-items: start; }
.account-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: calc(var(--header-h) + 60px); }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--text); font: 500 .92rem var(--font-body); width: 100%; background: none; border: 0; cursor: pointer; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--light); }
.account-nav a.active { background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); color: var(--text); transition: transform .2s, box-shadow .2s; }
a.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.stat-card > i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--light); color: var(--dark); flex-shrink: 0; }
.stat-card strong { display: block; font: 800 1.3rem var(--font-heading); line-height: 1.2; }
.stat-card span { font-size: .8rem; color: var(--muted); }
.c-blue > i { background: #E8ECFF; color: var(--primary); }
.c-cyan > i { background: #E3F5FF; color: var(--secondary); }
.c-green > i { background: #E9F9E0; color: #3E9A00; }
.c-purple > i { background: #F1EBFF; color: #6B3FD6; }
.c-red > i { background: #FDECEC; color: var(--danger); }
.c-orange > i { background: #FFF1E0; color: #D97706; }

.tracker { display: flex; justify-content: space-between; position: relative; margin: 10px 0 26px; }
.tracker::before { content: ""; position: absolute; top: 17px; left: 8%; right: 8%; height: 3px; background: var(--border); }
.tracker-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.tracker-step span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--muted); font-weight: 700; }
.tracker-step.done span { background: var(--gradient); color: #fff; }
.tracker-step small { font-size: .78rem; color: var(--muted); }
.tracker-step.done small { color: var(--text); font-weight: 600; }
.order-totals { max-width: 340px; margin-left: auto; margin-top: 16px; }
.order-totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.order-totals .discount { color: var(--success); }
.order-totals .total { font: 800 1.2rem var(--font-heading); border-top: 2px dashed var(--border); padding-top: 12px; margin-top: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 16px 20px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); }
.timeline li small { display: block; color: var(--muted); margin-top: 4px; }
.timeline li p { margin: 6px 0 0; font-size: .9rem; }
.wa-redirect { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, #E9FBEF, #fff); border-color: #BDEFCD; flex-wrap: wrap; }
.wa-redirect > i { font-size: 3rem; color: var(--wa); }
.wa-redirect > div { flex: 1; min-width: 220px; }
.wa-redirect h2 { font-size: 1.25rem; margin-bottom: .2em; }
.wa-redirect p { margin: 0; color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.list li:last-child { border-bottom: 0; }

/* ---------- Popads ---------- */
.popad { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); animation: fadeIn .3s; }
.popad-card { width: min(460px, 100%); background: #fff; border-radius: var(--r-lg); padding: 26px; position: relative; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); max-height: 90vh; overflow-y: auto; }
.popad-close { position: absolute; top: 12px; right: 14px; background: var(--light); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.popad-head { text-align: center; margin-bottom: 16px; }
.popad-head .pill { margin-bottom: 10px; }
.popad-head h3 { font-size: 1.5rem; margin: 0; }
.popad-items { display: grid; gap: 10px; margin-bottom: 16px; }
.popad-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--light); color: var(--text); transition: transform .2s; }
.popad-item:hover { transform: translateX(4px); color: var(--text); }
.popad-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.popad-item strong { display: block; font-size: .92rem; }
.popad-item .price { font: 800 1.05rem var(--font-heading); color: var(--primary); margin-right: 6px; }
.popad-item del { font-size: .8rem; color: var(--muted); }
.popad-item .tag { position: static; margin-left: auto; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
    display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); transition: transform .2s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2s infinite; z-index: -1; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-tip { position: absolute; right: 72px; background: #fff; color: var(--dark); font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: all .25s; pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .85); margin-top: 40px; position: relative; }
.footer-wave { height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-top: 50px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .7); display: block; padding: 3px 0; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .9rem; margin-bottom: 8px; }
.site-footer .brand { margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; font-size: 1.1rem; padding: 0; transition: background .2s; }
.socials a:hover { background: var(--gradient); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* ---------- Error ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-code { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font-heading); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page p { color: var(--muted); }

/* ---------- Instalador ---------- */
.install-body { background: radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--secondary) 20%, white), transparent 40%), radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--accent) 16%, white), transparent 40%), var(--light); min-height: 100vh; }
.install-wrap { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }
.install-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.install-brand strong { display: block; font: 800 1.35rem var(--font-heading); }
.install-brand small { color: var(--muted); }
.install-steps { list-style: none; padding: 0; display: flex; gap: 10px; margin: 0 0 22px; flex-wrap: wrap; }
.install-steps li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.install-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--border); font-weight: 700; }
.install-steps li.active { color: var(--text); }
.install-steps li.active span { background: var(--gradient); color: #fff; border-color: transparent; }
.install-steps li.done span { background: var(--accent); color: #fff; border-color: transparent; }
.install-card { background: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.install-section { display: flex; align-items: center; gap: 8px; margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--primary); }
.install-card .flash-stack, .install-wrap .flash-stack { position: static; max-width: none; margin-bottom: 16px; }
.req-list { list-style: none; padding: 0; margin: 20px 0; }
.req-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--light); margin-bottom: 8px; font-size: .92rem; }
.req-list li.ok i { color: var(--success); }
.req-list li.fail { background: #FDECEC; } .req-list li.fail i { color: var(--danger); }
.req-list li.warn i { color: var(--warning); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .menu-toggle { display: inline-flex; }
    .header-inner { gap: 10px; }
    .site-header .search { display: none; }
    .hide-sm { display: none; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: auto; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-art { height: 280px; }
    .phone { width: 140px; height: 280px; border-radius: 30px; }
    .phone-back { right: 50%; } .phone-front { right: 26%; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .45); padding: 20px; display: none; overflow-y: auto; top: 0; }
    .filters.open { display: block; }
    .filters-form { max-width: 380px; margin: 0 auto; }
    .show-filters { display: inline-flex; }
    .product-grid, .product-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout, .grid-2-1, .grid-2 { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .auth-card { grid-template-columns: 1fr; }
    .auth-side { padding: 30px; }
    .auth-side ul { display: none; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .account-nav a, .account-nav button { flex-shrink: 0; width: auto; }
    .account-nav form { flex-shrink: 0; }
}
@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { padding: 0 14px; }
    .topbar-inner span { font-size: .75rem; }
    .section { padding: 34px 0; }
    .benefits-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .benefit i { width: 38px; height: 38px; font-size: 1.1rem; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-tile { min-height: 110px; padding: 14px 6px; }
    .category-tile i { font-size: 1.7rem; }
    .category-tile span { display: none; }
    .product-body { padding: 12px; }
    .product-desc { display: none; }
    .product-price strong { font-size: 1.05rem; }
    .product-body .btn { padding: .6em .8em; font-size: .85rem; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .cart-item { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info del" "img qty line"; gap: 8px 12px; }
    .cart-thumb { grid-area: img; width: 64px; height: 64px; }
    .cart-info { grid-area: info; }
    .cart-item .qty { grid-area: qty; justify-self: start; }
    .cart-line { grid-area: line; min-width: 0; }
    .cart-item > .icon-btn { grid-area: del; justify-self: end; }
    .cta-banner { padding: 28px; text-align: center; justify-content: center; }
    .auth-form { padding: 28px 22px; }
    .card { padding: 18px; }
    .install-card { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .slider-arrow { display: none; }
    .wa-float { width: 54px; height: 54px; font-size: 1.6rem; right: 16px; bottom: 16px; }
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; }
    .table td { border: 0; padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: right; }
    .table td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8rem; text-align: left; }
    .table td.actions { justify-content: flex-end; }
    .table tfoot { display: none; }
    .tracker small { font-size: .68rem; }
}

@media print {
    .site-header, .topbar, .site-footer, .wa-float, .admin-sidebar, .admin-topbar, .page-actions, form { display: none !important; }
}
