/* ═══════════════════════════════════════════════════════════════
   SimiShop — CSS Principal — Mobile-First Responsive
   Inspirado en sistemascontables.info
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
    --color-primary:      #1a56db;
    --color-primary-dark: #1e429f;
    --color-accent:       #f59e0b;
    --white:    #ffffff;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --green:    #10b981;
    --red:      #ef4444;
    --radius:   8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow:    0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', sans-serif;
    --transition: .18s ease;
    --max-w: 1280px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--gray-900); background: var(--white); line-height: 1.6; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ══════════════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════════════ */
.topbar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: .78rem;
    padding: .4rem 1rem;
    display: none; /* hidden on mobile */
}
.topbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.topbar-links { display: flex; gap: 1rem; }
.topbar-links a { color: var(--gray-300); transition: color var(--transition); }
.topbar-links a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Logo */
.header-logo { flex-shrink: 0; }
.header-logo img { height: 36px; width: auto; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -.03em;
    white-space: nowrap;
}

/* Búsqueda */
.header-search {
    flex: 1;
    display: flex;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
    transition: border-color var(--transition);
    min-width: 0;
}
.header-search:focus-within {
    border-color: var(--color-primary);
    background: var(--white);
}
.header-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: .55rem .75rem;
    font-size: .88rem;
    outline: none;
}
.header-search button {
    padding: .55rem .75rem;
    color: var(--gray-500);
    transition: color var(--transition);
    flex-shrink: 0;
}
.header-search button:hover { color: var(--color-primary); }

/* Acciones del header */
.header-actions {
    display: flex;
    align-items: center;
    gap: .1rem;
    flex-shrink: 0;
}
.action-btn {
    position: relative;
    padding: .5rem;
    border-radius: 6px;
    color: var(--gray-700);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-btn:hover { background: var(--gray-100); color: var(--color-primary); }
.carrito-count {
    position: absolute;
    top: 1px; right: 1px;
    background: var(--color-primary);
    color: var(--white);
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.menu-toggle {
    display: flex;
    padding: .5rem;
    color: var(--gray-700);
    border-radius: 6px;
}
.menu-toggle:hover { background: var(--gray-100); }

/* ── Navegación ──────────────────────────────────────────────────── */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    /* mobile: oculto por defecto */
    display: none;
}
.main-nav.open { display: block; }
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nav-link {
    padding: .65rem .75rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 6px;
    transition: all var(--transition);
    display: block;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
    background: #eff6ff;
}

/* ── Flash ────────────────────────────────────────────────────────── */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    font-size: .88rem;
    font-weight: 500;
}
.flash-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--green); }
.flash-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--red); }
.flash-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--color-primary); }
.flash-close { font-size: 1.3rem; line-height: 1; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════════
   HERO / BANNERS
══════════════════════════════════════════════════════════════════ */
.hero-slider { position: relative; overflow: hidden; background: var(--gray-200); }
.hero-slide  { display: none; }
.hero-slide.active { display: block; }
.hero-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, transparent 65%);
    display: flex;
    align-items: center;
    padding: 1.5rem 1.25rem;
}
.hero-text h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: .5rem;
    line-height: 1.2;
}
.hero-text p { color: rgba(255,255,255,.85); font-size: .88rem; margin-bottom: 1rem; }
.slider-dots {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .4rem;
}
.slider-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background var(--transition);
}
.slider-dot.active { background: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   CONTENEDOR Y SECCIONES
══════════════════════════════════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.section    { padding: 2rem 0; }
.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}
.section-title span { color: var(--color-primary); }

/* ══════════════════════════════════════════════════════════════════
   CATEGORÍAS GRID
══════════════════════════════════════════════════════════════════ */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}
.cat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .85rem .6rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    display: block;
}
.cat-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.cat-card img {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto .5rem;
}
.cat-card-icon {
    width: 44px; height: 44px;
    background: var(--gray-100);
    border-radius: 50%;
    margin: 0 auto .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.cat-card-name { font-size: .75rem; font-weight: 600; color: var(--gray-700); }
.cat-card-count { font-size: .68rem; color: var(--gray-400); margin-top: .15rem; }

/* ══════════════════════════════════════════════════════════════════
   PRODUCTOS GRID — Mobile-first: 2 columnas
══════════════════════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

.product-img {
    position: relative;
    padding-top: 72%;
    overflow: hidden;
    background: var(--gray-100);
}
.product-img img {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }

.product-badge {
    position: absolute;
    top: .4rem; left: .4rem;
    background: var(--red);
    color: var(--white);
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 50px;
}
.product-badge.destacado { background: var(--color-accent); color: #78350f; }

.product-info {
    padding: .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-cat {
    font-size: .67rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .2rem;
}
.product-name {
    font-weight: 600;
    font-size: .82rem;
    color: var(--gray-900);
    margin-bottom: .4rem;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .3rem;
    margin-bottom: .6rem;
}
.product-price .current { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.product-price .original { font-size: .75rem; color: var(--gray-400); text-decoration: line-through; }
.product-price .discount {
    font-size: .68rem; font-weight: 700;
    color: var(--red);
    background: #fef2f2;
    padding: .1rem .35rem;
    border-radius: 4px;
}

.btn-add {
    width: 100%;
    padding: .55rem .5rem;
    background: var(--color-primary);
    color: var(--white);
    font-size: .78rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background var(--transition);
    text-align: center;
}
.btn-add:hover { background: var(--color-primary-dark); }
.btn-add:disabled { background: var(--gray-300); cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════════
   BOTONES GLOBALES
══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.25rem;
    font-size: .88rem;
    font-weight: 600;
    border-radius: 7px;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary  { background: var(--color-primary); color: var(--white); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--white); }
.btn-danger   { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-sm  { padding: .4rem .85rem; font-size: .78rem; }
.btn-lg  { padding: .85rem 1.75rem; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════════════════
   FORMULARIOS
══════════════════════════════════════════════════════════════════ */
.form-group  { margin-bottom: 1.1rem; }
.form-label  { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .35rem; }
.form-input  {
    width: 100%;
    padding: .65rem .85rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 7px;
    font-size: .9rem;
    color: var(--gray-900);
    transition: border-color var(--transition);
    background: var(--white);
    -webkit-appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}
.form-hint  { font-size: .75rem; color: var(--gray-500); margin-top: .25rem; }
.form-error { font-size: .75rem; color: var(--red); margin-top: .25rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ══════════════════════════════════════════════════════════════════
   AUTH / LOGIN
══════════════════════════════════════════════════════════════════ */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 1.5rem 1rem;
}
.auth-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}
.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .3rem;
}
.auth-card p  { color: var(--gray-500); font-size: .88rem; margin-bottom: 1.5rem; }
.auth-logo    { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 44px; margin: 0 auto; }

.wa-badge {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: .85rem;
    margin-bottom: 1.25rem;
}
.wa-badge svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }
.wa-badge p { font-size: .82rem; color: #166534; margin: 0; line-height: 1.5; }
.wa-badge strong { display: block; font-weight: 700; }

.otp-inputs {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin: 1.25rem 0;
}
.otp-inputs input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}
.otp-inputs input:focus { outline: none; border-color: var(--color-primary); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: var(--gray-400);
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ══════════════════════════════════════════════════════════════════
   DETALLE DE PRODUCTO
══════════════════════════════════════════════════════════════════ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.product-gallery .main-img {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    margin-bottom: .6rem;
}
.product-gallery .main-img img {
    width: 100%;
    height: 280px;
    object-fit: contain;
}
.product-thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.product-thumbs::-webkit-scrollbar { display: none; }
.product-thumb {
    width: 60px; height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--color-primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info h1 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: .6rem;
    line-height: 1.25;
}
.detail-price-wrap { margin: .75rem 0; }
.detail-price-current { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); }
.detail-price-original {
    font-size: 1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: .4rem;
}
.detail-price-save {
    display: inline-block;
    background: #fef2f2;
    color: var(--red);
    font-size: .75rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 50px;
    margin-left: .5rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 50px;
    margin: .6rem 0;
}
.stock-badge.in  { background: #ecfdf5; color: #065f46; }
.stock-badge.low { background: #fffbeb; color: #92400e; }
.stock-badge.out { background: #fef2f2; color: #991b1b; }
.stock-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.qty-selector { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; }
.qty-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gray-100);
    font-size: 1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
    width: 54px;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    border: 1.5px solid var(--gray-300);
    border-radius: 7px;
    padding: .35rem;
}

/* Reseñas */
.stars { color: var(--color-accent); letter-spacing: .05em; }
.review-card { border-bottom: 1px solid var(--gray-100); padding: 1rem 0; }
.review-card:last-child { border-bottom: none; }
.review-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.review-autor { font-weight: 600; font-size: .85rem; }
.review-fecha { font-size: .75rem; color: var(--gray-400); }
.review-text  { font-size: .88rem; color: var(--gray-700); }

/* ══════════════════════════════════════════════════════════════════
   CATÁLOGO / FILTROS
══════════════════════════════════════════════════════════════════ */
.catalog-layout { display: block; }
.catalog-filters {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.catalog-filters h3 { font-size: .88rem; font-weight: 700; margin-bottom: .75rem; }
.filter-group { margin-bottom: .75rem; }
.filter-group label { font-size: .82rem; color: var(--gray-700); font-weight: 600; display: block; margin-bottom: .3rem; }
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}
.catalog-count { font-size: .85rem; color: var(--gray-500); }

/* ══════════════════════════════════════════════════════════════════
   CARRITO
══════════════════════════════════════════════════════════════════ */
.cart-layout { display: block; }
.cart-items  { margin-bottom: 1.25rem; }
.cart-item {
    display: flex;
    gap: .75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .85rem;
    margin-bottom: .6rem;
}
.cart-item-img {
    width: 72px; height: 72px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info  { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.cart-item-price { color: var(--gray-500); font-size: .82rem; }
.cart-item-actions { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.cart-remove { font-size: .75rem; color: var(--red); cursor: pointer; }
.cart-remove:hover { text-decoration: underline; }

.cart-summary {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    padding: .35rem 0;
}
.summary-row.total {
    font-weight: 700;
    font-size: 1rem;
    border-top: 1px solid var(--gray-200);
    margin-top: .5rem;
    padding-top: .85rem;
}

/* ══════════════════════════════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════════════════════════════ */
.checkout-layout { display: block; }
.checkout-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.checkout-section h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.payment-options { display: flex; flex-direction: column; gap: .6rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: .85rem;
    cursor: pointer;
    transition: border-color var(--transition);
}
.payment-option:has(input:checked) {
    border-color: var(--color-primary);
    background: #eff6ff;
}
.payment-option input { width: 18px; height: 18px; accent-color: var(--color-primary); }

/* ══════════════════════════════════════════════════════════════════
   MI CUENTA
══════════════════════════════════════════════════════════════════ */
.cuenta-layout { display: block; }
.cuenta-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.cuenta-nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}
.cuenta-nav-link:hover, .cuenta-nav-link.active {
    background: #eff6ff;
    color: var(--color-primary);
}
.cuenta-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.cuenta-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}
.admin-sidebar {
    width: 220px;
    background: var(--gray-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0; bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 300;
    /* Mobile: oculto */
    transform: translateX(-100%);
    transition: transform .25s ease;
}
.admin-sidebar.open { transform: translateX(0); }
.admin-sidebar-logo {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-logo .logo-text { color: var(--white); font-size: 1.1rem; }
.admin-nav { padding: .75rem 0; flex: 1; }
.admin-nav-section {
    padding: .5rem 1rem .2rem;
    font-size: .65rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .5rem;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.1rem;
    font-size: .85rem;
    color: var(--gray-400);
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.06);
    border-left-color: var(--color-primary);
}

.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 400;
}
.admin-menu-btn {
    padding: .4rem;
    border-radius: 6px;
    color: var(--gray-700);
    position: relative;
    z-index: 401;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,.1);
}
.admin-menu-btn:hover { background: var(--gray-100); }
.admin-menu-btn:active { background: var(--gray-200); }
.admin-topbar-title { font-weight: 700; font-size: .95rem; flex: 1; }
.admin-content { padding: 1.25rem; flex: 1; }
.admin-page-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
}
.stat-label {
    font-size: .72rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}
.stat-value.primary { color: var(--color-primary); }
.stat-value.green   { color: var(--green); }

/* Tabla admin */
.admin-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.admin-card-header {
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.admin-card-title { font-weight: 700; font-size: .9rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.admin-table th {
    background: var(--gray-50);
    padding: .65rem .85rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}
.admin-table td {
    padding: .75rem .85rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 50px;
    text-transform: capitalize;
    white-space: nowrap;
}
.badge-pendiente  { background: #fffbeb; color: #92400e; }
.badge-pagado     { background: #ecfdf5; color: #065f46; }
.badge-preparando { background: #eff6ff; color: #1e40af; }
.badge-enviado    { background: #f5f3ff; color: #4c1d95; }
.badge-entregado  { background: #ecfdf5; color: #065f46; }
.badge-cancelado  { background: #fef2f2; color: #991b1b; }
.badge-activo, .badge-active { background: #ecfdf5; color: #065f46; }
.badge-borrador   { background: var(--gray-100); color: var(--gray-700); }
.badge-trial      { background: #fffbeb; color: #92400e; }
.badge-suspended  { background: #fef2f2; color: #991b1b; }

/* ══════════════════════════════════════════════════════════════════
   PAGINACIÓN
══════════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
    margin-top: 1.75rem;
}
.page-btn {
    min-width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--gray-200);
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition);
    padding: 0 .5rem;
}
.page-btn:hover, .page-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--white);
}
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
.footer { background: var(--gray-900); color: var(--gray-300); margin-top: 3rem; }
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: .75rem; font-size: .92rem; }
.footer-col p  { font-size: .82rem; line-height: 1.7; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { font-size: .82rem; color: var(--gray-400); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--white); margin-bottom: .6rem; }
.footer-logo  { height: 32px; margin-bottom: .6rem; filter: brightness(0) invert(1); opacity: .85; }
.footer-wa    { display: inline-flex; align-items: center; gap: .45rem; color: #4ade80; font-size: .82rem; font-weight: 600; margin-top: .6rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .75rem;
    color: var(--gray-500);
    text-align: center;
}
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--white); }

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    font-size: .78rem;
    color: var(--gray-400);
    padding: .75rem 0;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--gray-700); }
.breadcrumb-sep { color: var(--gray-300); }

/* ══════════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state svg { margin: 0 auto 1rem; opacity: .2; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-700); margin-bottom: .4rem; }
.empty-state p  { color: var(--gray-400); font-size: .88rem; }

/* ══════════════════════════════════════════════════════════════════
   OVERLAY ADMIN (móvil)
══════════════════════════════════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 250;
}
.sidebar-overlay.open { display: block; }

/* ══════════════════════════════════════════════════════════════════
   ▶▶ TABLET 640px+
══════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
    .topbar { display: block; }
    .main-nav { display: block; } /* siempre visible en tablet+ */
    .menu-toggle { display: none; }
    .nav-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        padding: 0 1rem;
    }
    .nav-link {
        display: inline-block;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        padding: .65rem .8rem;
    }
    .nav-link:hover, .nav-link.active {
        background: transparent;
        border-bottom-color: var(--color-primary);
    }
    .hero-slide img { height: 300px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-overlay { padding: 2rem; }
    .cats-grid { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .cuenta-sidebar {
        display: block;
        flex-wrap: unset;
    }
    .cuenta-nav-link { display: flex; }
}

/* ══════════════════════════════════════════════════════════════════
   ▶▶ DESKTOP 1024px+
══════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .header-inner { padding: .9rem 1.25rem; gap: 1.5rem; }
    .header-logo img { height: 42px; }
    .logo-text { font-size: 1.5rem; }
    .hero-slide img { height: 460px; }
    .hero-text h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
    .hero-overlay { padding: 2rem 4rem; }
    .cats-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
    .cat-card { padding: 1.25rem 1rem; }
    .cat-card img, .cat-card-icon { width: 56px; height: 56px; font-size: 1.5rem; }
    .cat-card-name { font-size: .82rem; }
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
    .product-name { font-size: .88rem; }
    .product-price .current { font-size: 1.05rem; }
    /* Layouts de dos columnas */
    .product-detail    { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .catalog-layout    { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
    .cart-layout       { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
    .checkout-layout   { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
    .cuenta-layout     { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
    .cuenta-sidebar    { padding: 1.25rem; display: block; }
    .cuenta-nav-link   { display: flex; }
    /* Galería producto */
    .product-gallery .main-img img { height: 420px; }
    /* Admin sidebar siempre visible */
    .admin-sidebar { transform: translateX(0); }
    .admin-main    { margin-left: 220px; }
    .admin-menu-btn { display: none; }
    .stats-grid { grid-template-columns: repeat(5, 1fr); }
    .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.6rem; margin-bottom: 1.75rem; }
}

/* ══════════════════════════════════════════════════════════════════
   ▶▶ WIDE 1280px+
══════════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
    .products-grid { grid-template-columns: repeat(5, 1fr); }
    .cats-grid { grid-template-columns: repeat(8, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════
   UTILIDADES
══════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden  { display: none !important; }
.text-sm   { font-size: .82rem; }
.text-gray { color: var(--gray-500); }
.font-bold { font-weight: 700; }
.w-full    { width: 100%; }
.d-block   { display: block; }

/* ════════════════════════════════════════════════════════════════
   ESTILO PRESTASHOP — Catálogo denso (sistemascontables.info)
════════════════════════════════════════════════════════════════ */
.ps-container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }

/* Carrusel */
.ps-carousel { position: relative; max-width: var(--max-w); margin: 1rem auto; padding: 0 1rem; overflow: hidden; }
.ps-slide { display: none; }
.ps-slide.active { display: block; }
.ps-slide img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.ps-carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: var(--shadow); font-size: 1.5rem; color: var(--gray-700); display: flex; align-items: center; justify-content: center; z-index: 5; }
.ps-carousel-arrow.prev { left: 1.5rem; }
.ps-carousel-arrow.next { right: 1.5rem; }
.ps-carousel-dots { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; z-index: 5; }
.ps-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.ps-dot.active { background: var(--white); }

/* Secciones */
.ps-section { padding: 1.5rem 0; }
.ps-section-head { border-bottom: 2px solid var(--color-primary); margin-bottom: 1.25rem; }
.ps-section-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--gray-900); padding-bottom: .5rem; display: inline-block; border-bottom: 3px solid var(--color-primary); margin-bottom: -2px; }
.ps-section-foot { text-align: right; margin-top: 1rem; }
.ps-link-all { font-size: .85rem; font-weight: 600; color: var(--color-primary); }
.ps-link-all:hover { text-decoration: underline; }

/* Rejilla densa de productos */
.ps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }

.ps-product { background: var(--white); border: 1px solid var(--gray-200); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--transition), border-color var(--transition); }
.ps-product:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }
.ps-product:hover .ps-quickview { opacity: 1; transform: translateY(0); }

.ps-product-thumb { position: relative; padding-top: 100%; overflow: hidden; background: var(--white); }
.ps-product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .5rem; }

.ps-flag { position: absolute; top: .5rem; font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 3px; color: var(--white); z-index: 3; }
.ps-flag-sale { right: .5rem; background: var(--red); }
.ps-flag-new { left: .5rem; background: var(--color-primary); }

.ps-quickview { position: absolute; bottom: .5rem; left: 50%; transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: .35rem; background: var(--gray-900); color: var(--white); font-size: .72rem; font-weight: 600; padding: .4rem .75rem; border-radius: 50px; opacity: 0; transition: all var(--transition); white-space: nowrap; z-index: 3; }
.ps-quickview:hover { background: var(--color-primary); }

.ps-product-body { padding: .65rem; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--gray-100); }
.ps-product-title { font-size: .8rem; font-weight: 500; line-height: 1.35; margin-bottom: .5rem; min-height: 2.1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-product-title a { color: var(--gray-700); }
.ps-product-title a:hover { color: var(--color-primary); }
.ps-product-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .5rem; }
.ps-price { font-size: 1.05rem; font-weight: 800; color: var(--color-primary); }
.ps-price-old { font-size: .8rem; color: var(--gray-400); text-decoration: line-through; }
.ps-add-btn { margin-top: auto; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; background: var(--color-primary); color: var(--white); font-size: .78rem; font-weight: 600; padding: .5rem; border-radius: 5px; transition: background var(--transition); }
.ps-add-btn:hover { background: var(--color-primary-dark); }
.ps-add-btn:disabled { background: var(--gray-300); cursor: not-allowed; }

/* Franja de pago */
.ps-payment-strip { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; text-align: center; }
.ps-payment-strip span { font-size: .85rem; color: var(--gray-600); font-weight: 500; }

/* Modal Vista Rápida */
.ps-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.ps-modal.open { display: block; }
.ps-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.ps-modal-box { position: relative; max-width: 760px; margin: 5vh auto; background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; z-index: 2; }
.ps-modal-close { position: absolute; top: .5rem; right: .75rem; font-size: 1.8rem; line-height: 1; color: var(--gray-400); z-index: 5; }
.ps-modal-close:hover { color: var(--gray-900); }
.ps-modal-loading { padding: 4rem; text-align: center; color: var(--gray-400); }
.qv-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
.qv-img { background: var(--gray-50); border-radius: 8px; }
.qv-img img { width: 100%; height: 240px; object-fit: contain; }
.qv-cat { font-size: .72rem; text-transform: uppercase; color: var(--gray-400); letter-spacing: .04em; }
.qv-info h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin: .25rem 0 .5rem; }
.qv-price { margin-bottom: .75rem; }
.qv-price .ps-price { font-size: 1.6rem; }
.qv-desc { font-size: .88rem; color: var(--gray-600); line-height: 1.7; margin-bottom: .75rem; }
.qv-stock { font-size: .82rem; font-weight: 600; color: var(--green); margin-bottom: 1rem; }

/* Responsive PrestaShop */
@media (min-width: 480px) { .ps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) {
    .ps-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
    .ps-slide img { height: 340px; }
    .qv-grid { grid-template-columns: 1fr 1fr; padding: 2rem; }
    .qv-img img { height: 320px; }
}
@media (min-width: 1024px) {
    .ps-grid { grid-template-columns: repeat(5, 1fr); }
    .ps-slide img { height: 400px; }
    .ps-section-title { font-size: 1.5rem; }
}
@media (min-width: 1280px) {
    .ps-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ════════════════════════════════════════════════════════════════
   PÁGINA DE PRODUCTO — título, estrellas, compartir
════════════════════════════════════════════════════════════════ */
/* Título: cambiar de Syne (que estira) a Inter normal */
.pdp-title {
    font-family: var(--font-sans) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--gray-900);
    margin-bottom: .5rem;
}
@media (min-width: 768px) { .pdp-title { font-size: 1.75rem !important; } }

/* Estrellas de calificación */
.pdp-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.pdp-stars { font-size: 1.1rem; letter-spacing: .05em; }
.pdp-stars .star-on  { color: #fbbf24; }
.pdp-stars .star-off { color: var(--gray-300); }
.pdp-rating-count { font-size: .8rem; color: var(--gray-500); }

/* Botones de compartir */
.pdp-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.pdp-share-label { font-size: .82rem; font-weight: 600; color: var(--gray-600); margin-right: .25rem; }
.pdp-share-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem .85rem; border-radius: 6px;
    font-size: .8rem; font-weight: 600; color: var(--white);
    transition: opacity var(--transition);
}
.pdp-share-btn:hover { opacity: .88; }
.pdp-share-btn.fb { background: #1877f2; }
.pdp-share-btn.wa { background: #25d366; }

/* ════════════════════════════════════════════════════════════════
   FIX TÍTULOS ALARGADOS — cambiar Syne por Inter en todos los títulos
════════════════════════════════════════════════════════════════ */
.ps-section-title,
.admin-page-title,
.section-title,
.hero-text h1,
.auth-card h2,
.cuenta-card h3,
.footer-brand,
.logo-text {
    font-family: var(--font-sans) !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
}
/* El logo y nombre de marca pueden mantener un poco más de peso */
.logo-text { font-weight: 800 !important; }
.ps-section-title { font-weight: 700 !important; }
.admin-page-title { font-weight: 700 !important; }
.section-title { font-weight: 700 !important; }

/* Estrellas en tarjetas de producto */
.ps-card-rating { display: flex; align-items: center; gap: .3rem; margin-bottom: .4rem; }
.ps-card-stars { font-size: .8rem; letter-spacing: .02em; }
.ps-card-stars .on  { color: #fbbf24; }
.ps-card-stars .off { color: var(--gray-300); }
.ps-card-rating-num { font-size: .72rem; color: var(--gray-400); }

/* ════════════════════════════════════════════════════════════════
   AUTOCOMPLETADO DE BÚSQUEDA
════════════════════════════════════════════════════════════════ */
.header-search-wrap { position: relative; flex: 1; display: flex; min-width: 0; }
.header-search-wrap .header-search { width: 100%; }
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 500;
    max-height: 420px;
    overflow-y: auto;
}
.search-suggestions.open { display: block; }
.sugg-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.sugg-item:last-child { border-bottom: none; }
.sugg-item:hover { background: var(--gray-50); }
.sugg-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 5px; background: var(--gray-50); flex-shrink: 0; }
.sugg-info { display: flex; flex-direction: column; min-width: 0; }
.sugg-name { font-size: .85rem; font-weight: 500; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-price { font-size: .82rem; font-weight: 700; color: var(--color-primary); }
.sugg-empty { padding: 1rem; text-align: center; color: var(--gray-400); font-size: .85rem; }

/* Categorías: en móvil apilar layout y botones */
@media (max-width: 768px) {
    .cat-layout { grid-template-columns: 1fr !important; }
    .cat-layout td form { display: block !important; margin-top: .25rem; }
    .cat-layout td button { width: 100%; }
}

/* FIX menú móvil: el SVG no debe capturar el toque, debe pasar al botón */
.admin-menu-btn svg,
.menu-toggle svg { pointer-events: none; }
.admin-menu-btn, .menu-toggle { touch-action: manipulation; }
