/* ============================================================
   TIENDA GDL — Store Theme CSS
   Estilo grocery / e-commerce moderno
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --store-green:       #2e7d32;
    --store-green-light: #4caf50;
    --store-green-pale:  #e8f5e9;
    --store-orange:      #f57c00;
    --store-orange-pale: #fff3e0;
    --store-red:         #d32f2f;
    --store-gray-light:  #f5f5f5;
    --store-gray-mid:    #e0e0e0;
    --store-gray-text:   #757575;
    --store-dark:        #1b2631;
    --store-radius:      10px;
    --store-radius-sm:   6px;
    --store-shadow:      0 2px 12px rgba(0,0,0,.08);
    --store-shadow-hover:0 6px 24px rgba(0,0,0,.14);
    --store-transition:  .2s ease;
}

/* ── Reset parcial dentro de store ───────────────────────── */
.store-page * { box-sizing: border-box; }

/* ── Topbar de la tienda ──────────────────────────────────── */
.store-topbar {
    background: var(--store-green);
    color: #fff;
    padding: 7px 24px;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.store-topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.store-topbar a:hover { color: #fff; }
.store-topbar-right { display: flex; gap: 16px; align-items: center; }

/* ── Header principal ─────────────────────────────────────── */
.store-header {
    background: #fff;
    border-bottom: 2px solid var(--store-green-pale);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.store-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.store-logo-icon {
    width: 40px; height: 40px;
    background: var(--store-green);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem;
}
.store-logo-text { font-size: 1.3rem; font-weight: 700; color: var(--store-dark); line-height: 1.1; }
.store-logo-text span { color: var(--store-green); }

.store-search-wrap {
    flex: 1;
    max-width: 560px;
    position: relative;
}
.store-search-wrap input {
    width: 100%;
    border: 2px solid var(--store-gray-mid);
    border-radius: 50px;
    padding: 10px 50px 10px 20px;
    font-size: .95rem;
    outline: none;
    transition: border-color var(--store-transition);
    font-family: inherit;
}
.store-search-wrap input:focus { border-color: var(--store-green); }
.store-search-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    background: var(--store-green); border: none; border-radius: 50px;
    width: 38px; height: 38px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: #fff;
    transition: background var(--store-transition);
}
.store-search-btn:hover { background: var(--store-green-light); }

.store-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.store-header-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; background: none; border: none; cursor: pointer;
    padding: 6px 10px; border-radius: var(--store-radius-sm);
    color: var(--store-dark); font-size: .72rem; font-weight: 500;
    transition: background var(--store-transition);
    position: relative;
}
.store-header-btn:hover { background: var(--store-green-pale); color: var(--store-green); }
.store-header-btn .icon { font-size: 1.4rem; }
.store-cart-badge {
    position: absolute; top: 2px; right: 6px;
    background: var(--store-red); color: #fff; border-radius: 50%;
    width: 18px; height: 18px; font-size: .65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ── Nav de categorías ────────────────────────────────────── */
.store-catnav {
    background: var(--store-dark);
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.store-catnav::-webkit-scrollbar { display: none; }
.store-catnav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 13px 18px; color: rgba(255,255,255,.82);
    font-size: .85rem; font-weight: 500; white-space: nowrap;
    cursor: pointer; transition: all var(--store-transition);
    text-decoration: none; border-bottom: 3px solid transparent;
}
.store-catnav-item:hover, .store-catnav-item.active {
    color: #fff; border-bottom-color: var(--store-green-light);
    background: rgba(255,255,255,.07);
}

/* ── Hero / Banner ────────────────────────────────────────── */
.store-hero {
    background:
        linear-gradient(135deg, rgba(27,38,49,.82) 0%, rgba(46,125,50,.72) 60%, rgba(27,38,49,.88) 100%),
        url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1400&h=600&fit=crop&q=80') center/cover no-repeat;
    min-height: 380px;
    display: flex; align-items: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}
.store-hero::before { display: none; }
.store-hero-content { position: relative; z-index: 1; max-width: 560px; }
.store-hero-badge {
    display: inline-block; background: var(--store-orange); color: #fff;
    padding: 4px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600;
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px;
}
.store-hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1.15; margin: 0 0 12px; }
.store-hero h1 span { color: #a5d6a7; }
.store-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; margin: 0 0 28px; }
.store-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn-primary {
    background: var(--store-green-light); color: #fff; border: none;
    padding: 13px 28px; border-radius: 50px; font-size: .95rem;
    font-weight: 600; cursor: pointer; display: flex; align-items: center;
    gap: 8px; transition: all var(--store-transition); text-decoration: none;
    font-family: inherit;
}
.store-btn-primary:hover { background: #388e3c; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(76,175,80,.4); }
.store-btn-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    padding: 11px 24px; border-radius: 50px; font-size: .95rem;
    font-weight: 600; cursor: pointer; display: flex; align-items: center;
    gap: 8px; transition: all var(--store-transition); text-decoration: none;
    font-family: inherit;
}
.store-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.store-hero-stats {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 16px;
}
.store-hero-stat {
    background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2); border-radius: var(--store-radius);
    padding: 16px 22px; text-align: center; min-width: 120px; color: #fff;
}
.store-hero-stat-num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.store-hero-stat-label { font-size: .75rem; opacity: .8; margin-top: 3px; }

/* ── Trust bar ────────────────────────────────────────────── */
.store-trust {
    background: #fff;
    border-bottom: 1px solid var(--store-gray-mid);
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 0;
}
.store-trust-item {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 32px; border-right: 1px solid var(--store-gray-mid);
    flex: 1; min-width: 200px;
}
.store-trust-item:last-child { border-right: none; }
.store-trust-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--store-green-pale); display: flex;
    align-items: center; justify-content: center;
    color: var(--store-green); font-size: 1.2rem; flex-shrink: 0;
}
.store-trust-title { font-weight: 700; font-size: .9rem; color: var(--store-dark); }
.store-trust-sub { font-size: .78rem; color: var(--store-gray-text); }

/* ── Secciones generales ──────────────────────────────────── */
.store-section { padding: 48px 24px; }
.store-section-alt { background: var(--store-gray-light); }
.store-section-title {
    font-size: 1.6rem; font-weight: 800; color: var(--store-dark);
    margin: 0 0 4px;
}
.store-section-sub { color: var(--store-gray-text); font-size: .9rem; margin: 0 0 28px; }
.store-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.store-link-all {
    color: var(--store-green); font-weight: 600; font-size: .88rem;
    text-decoration: none; display: flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.store-link-all:hover { color: var(--store-dark); }

/* ── Layout principal: sidebar + contenido ───────────────── */
.store-container-full {
    max-width: 1380px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}
.store-main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    align-items: start;
}

/* ── Sidebar de categorías ───────────────────────────────── */
.store-sidebar {
    background: #fff;
    border-right: 1px solid var(--store-gray-mid);
    min-height: 500px;
    position: sticky;
    top: 0;
}
.store-sidebar-header {
    background: var(--store-green);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .03em;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.store-sidebar-nav {
    padding: 4px 0 12px;
}
.store-sidebar-item {
    border-bottom: 1px solid var(--store-gray-light);
}
.store-sidebar-row {
    display: flex;
    align-items: center;
}
.store-sidebar-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--store-dark);
    font-size: .88rem;
    text-decoration: none;
    transition: background var(--store-transition), color var(--store-transition);
}
.store-sidebar-link:hover {
    background: var(--store-gray-light);
    color: var(--store-green);
    text-decoration: none;
}
.store-sidebar-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}
.store-sidebar-icon {
    color: var(--store-green);
    font-size: .8rem;
    flex-shrink: 0;
}
.store-sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px 14px;
    color: var(--store-gray-text);
    font-size: .75rem;
    flex-shrink: 0;
    transition: color var(--store-transition);
}
.store-sidebar-toggle:hover { color: var(--store-green); }
.store-sidebar-children {
    background: var(--store-gray-light);
    padding: 4px 0;
}
.store-sidebar-child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 36px;
    font-size: .83rem;
    color: var(--store-gray-text);
    text-decoration: none;
    transition: color var(--store-transition);
}
.store-sidebar-child:hover { color: var(--store-green); text-decoration: none; }
.store-sidebar-child i { font-size: .65rem; color: var(--store-green); }
.store-sidebar-all {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--store-green);
    text-decoration: none;
    margin-top: 4px;
}
.store-sidebar-all:hover { text-decoration: underline; }

/* ── Contenido derecho ───────────────────────────────────── */
.store-main-content {
    min-width: 0;
}
.store-main-content .store-hero {
    border-radius: 0;
    min-height: 320px;
}
.store-main-content .store-section {
    padding: 28px 24px;
}

/* ── Carrusel de productos ───────────────────────────────── */
/* Paginación */
.store-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.store-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--store-gray-light, #e0e0e0);
    border-radius: 8px;
    background: #fff;
    color: var(--store-text, #333);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.store-page-btn:hover:not(:disabled) {
    border-color: var(--store-green, #2f8339);
    color: var(--store-green, #2f8339);
}
.store-page-btn.active {
    background: var(--store-green, #2f8339);
    border-color: var(--store-green, #2f8339);
    color: #fff;
}
.store-page-btn:disabled {
    opacity: .35;
    cursor: default;
}
.store-page-arrow {
    background: var(--store-green, #2f8339);
    border-color: var(--store-green, #2f8339);
    color: #fff;
    font-weight: 700;
}
.store-page-arrow:hover:not(:disabled) {
    background: #256b2e;
    border-color: #256b2e;
    color: #fff;
}
.store-page-arrow:disabled {
    background: var(--store-gray-light, #e0e0e0);
    border-color: var(--store-gray-light, #e0e0e0);
    color: #999;
}

/* Cuadrícula de todos los productos en portada */
.store-all-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 4px 2px 8px;
}
@media (max-width: 600px) {
    .store-all-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.store-carousel-wrap {
    position: relative;
}
.store-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
}
.store-carousel::-webkit-scrollbar { display: none; }
.store-carousel .store-product-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}
.store-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: #fff;
    border: 1px solid var(--store-gray-mid);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background var(--store-transition), color var(--store-transition);
    color: var(--store-dark);
    font-size: .9rem;
}
.store-carousel-btn:hover { background: var(--store-green); color: #fff; border-color: var(--store-green); }
.store-carousel-prev { left: -16px; }
.store-carousel-next { right: -16px; }

/* ── Categorías — scroll horizontal (franja fuera del layout) */
.store-categories-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.store-categories-grid::-webkit-scrollbar { display: none; }

.store-cat-card {
    background: #fff; border-radius: var(--store-radius);
    padding: 18px 14px; text-align: center;
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--store-transition); box-shadow: var(--store-shadow);
    text-decoration: none; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    flex: 0 0 130px;
    scroll-snap-align: start;
}
.store-cat-card:hover, .store-cat-card.active {
    border-color: var(--store-green); transform: translateY(-2px);
    box-shadow: var(--store-shadow-hover);
}
/* Primera carta sin tratamiento especial en scroll horizontal */
.store-cat-card-featured {
    flex: 0 0 130px;
    flex-direction: column;
    text-align: center;
    padding: 18px 14px;
    gap: 8px;
    align-items: center;
}
.store-cat-card-featured .store-cat-icon-new {
    flex-shrink: 0;
    width: 52px; height: 52px;
    font-size: 1.6rem;
}
.store-cat-card-featured .store-cat-name {
    font-size: .9rem;
}
/* Icono de categoría */
.store-cat-icon-new {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    border-radius: 50%;
    background: rgba(0,0,0,.04);
    transition: transform var(--store-transition);
}
.store-cat-card:hover .store-cat-icon-new { transform: scale(1.1); }
.store-cat-img-icon {
    width: 36px; height: 36px; object-fit: contain; border-radius: 4px;
}
/* Texto de categoría */
.store-cat-body { display: flex; flex-direction: column; gap: 2px; }
.store-cat-name { font-size: .9rem; font-weight: 700; color: var(--store-dark); display: block; }
.store-cat-sub { font-size: .75rem; color: var(--store-gray-text); display: block; }
.store-cat-count { font-size: .72rem; color: var(--store-gray-text); display: block; margin-top: 2px; }

/* ── Tabs de productos ────────────────────────────────────── */
.store-tabs {
    display: flex; gap: 0; border-bottom: 2px solid var(--store-gray-mid);
    margin-bottom: 28px; overflow-x: auto; scrollbar-width: none;
}
.store-tab {
    padding: 11px 22px; font-size: .9rem; font-weight: 600;
    color: var(--store-gray-text); border: none; background: none;
    cursor: pointer; border-bottom: 3px solid transparent;
    margin-bottom: -2px; white-space: nowrap; transition: all var(--store-transition);
    font-family: inherit;
}
.store-tab:hover { color: var(--store-green); }
.store-tab.active { color: var(--store-green); border-bottom-color: var(--store-green); }

/* ── Grid de productos ────────────────────────────────────── */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* ── Tarjeta de producto ──────────────────────────────────── */
a.store-product-card {
    text-decoration: none; color: inherit; cursor: pointer;
}
.store-product-card {
    background: #fff; border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); overflow: hidden;
    display: flex; flex-direction: column;
    transition: all var(--store-transition); position: relative;
    border: 1px solid var(--store-gray-mid);
}
.store-product-card:hover {
    transform: translateY(-4px); box-shadow: var(--store-shadow-hover);
    border-color: var(--store-green-pale);
}

.store-product-img-wrap {
    height: 185px; overflow: hidden; position: relative;
    background: var(--store-gray-light); display: flex;
    align-items: center; justify-content: center;
}
.store-product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .35s ease;
}
.store-product-card:hover .store-product-img-wrap img { transform: scale(1.06); }
.store-product-img-placeholder {
    font-size: 4rem; color: var(--store-gray-mid);
}
/* Imagen de fallback (logo): centrado con padding, sin recorte */
.store-product-img-wrap img.store-product-img-fallback,
.store-detail-img-main img.store-product-img-fallback {
    object-fit: contain;
    padding: 20px;
    opacity: .5;
    background: var(--store-gray-light);
}
/* Galería de miniaturas en el detalle del producto */
.spd-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0 0;
}
.spd-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--store-gray-light, #eaecf0);
    transition: border-color .15s, opacity .15s;
    opacity: .75;
}
.spd-thumb.active,
.spd-thumb:hover {
    border-color: var(--store-green, #2f8339);
    opacity: 1;
}

/* Clase añadida dinámicamente por JS cuando ningún formato existe y se muestra el logo */
img.img-is-fallback {
    object-fit: contain !important;
    padding: 20px !important;
    opacity: .5 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}
.store-product-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--store-red); color: #fff;
    font-size: .7rem; font-weight: 700; padding: 3px 9px;
    border-radius: 50px; text-transform: uppercase; letter-spacing: .4px;
}
.store-product-badge.new { background: var(--store-green); }
.store-product-badge.offer { background: var(--store-orange); }
.store-product-actions-hover {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(10px);
    transition: all var(--store-transition);
}
.store-product-card:hover .store-product-actions-hover {
    opacity: 1; transform: translateX(0);
}
.store-product-action-btn {
    width: 34px; height: 34px; background: #fff;
    border: none; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: .95rem;
    color: var(--store-dark); transition: all var(--store-transition);
}
.store-product-action-btn:hover { background: var(--store-green); color: #fff; }

.store-product-body { padding: 14px 14px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.store-product-brand { font-size: .73rem; font-weight: 600; color: var(--store-green); text-transform: uppercase; letter-spacing: .5px; }
.store-product-name {
    font-size: .92rem; font-weight: 600; color: var(--store-dark);
    line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.store-product-unit { font-size: .75rem; color: var(--store-gray-text); }

.store-product-price-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.store-product-price { font-size: 1.15rem; font-weight: 800; color: var(--store-green); }
.store-product-price-old { font-size: .82rem; color: var(--store-gray-text); text-decoration: line-through; }
.store-product-price-locked {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--store-orange-pale); color: var(--store-orange);
    border-radius: 50px; padding: 4px 10px; font-size: .78rem; font-weight: 600;
}

.store-product-stock { font-size: .72rem; margin-top: 2px; }
.store-product-stock.ok { color: var(--store-green); }
.store-product-stock.low { color: var(--store-orange); }
.store-product-stock.out { color: var(--store-red); }

/* Enlace superpuesto para hacer toda la card clicable (catálogo) */
.store-product-card-link {
    position: absolute; inset: 0; z-index: 1;
}
.store-product-footer { padding: 0 14px 14px; display: flex; gap: 8px; align-items: center; position: relative; z-index: 2; }
.store-add-btn {
    flex: 1; background: var(--store-green); color: #fff; border: none;
    border-radius: 50px; padding: 9px 14px; font-size: .85rem; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 6px; transition: all var(--store-transition); font-family: inherit;
}
.store-add-btn:hover { background: #388e3c; }
.store-add-btn:disabled { background: var(--store-gray-mid); cursor: not-allowed; }
.store-view-btn {
    width: 38px; height: 38px; background: var(--store-gray-light);
    border: none; border-radius: 50%; cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: var(--store-dark);
    font-size: 1rem; transition: all var(--store-transition); flex-shrink: 0;
    text-decoration: none;
}
.store-view-btn:hover { background: var(--store-green-pale); color: var(--store-green); }

/* ── Quantity stepper ─────────────────────────────────────── */
.store-qty {
    display: flex; align-items: center; gap: 0;
    background: var(--store-gray-light); border-radius: 50px;
    overflow: hidden; height: 38px; border: 1px solid var(--store-gray-mid);
}
.store-qty-btn {
    width: 36px; height: 38px; background: none; border: none;
    cursor: pointer; font-size: 1rem; color: var(--store-dark);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--store-transition);
}
.store-qty-btn:hover { background: var(--store-green-pale); color: var(--store-green); }
.store-qty-val {
    min-width: 32px; text-align: center; font-weight: 700;
    font-size: .9rem; color: var(--store-dark);
}

/* ── Banner promocional ───────────────────────────────────── */
.store-promo-banner {
    background: linear-gradient(120deg, var(--store-orange) 0%, #e65100 100%);
    border-radius: var(--store-radius); padding: 32px 40px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px; color: #fff; position: relative; overflow: hidden;
}
.store-promo-banner::after {
    content: '🎁'; position: absolute; right: 120px; top: 50%;
    transform: translateY(-50%); font-size: 5rem; opacity: .2;
}
.store-promo-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.store-promo-sub { opacity: .9; font-size: .95rem; }
.store-promo-code {
    display: inline-block; background: rgba(255,255,255,.22);
    border: 2px dashed rgba(255,255,255,.6); border-radius: 8px;
    padding: 6px 16px; font-size: 1rem; font-weight: 700; margin-top: 10px;
    letter-spacing: 1px;
}

/* ── Layout de catálogo (sidebar + grid) ─────────────────── */
.store-catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .store-catalog-layout { grid-template-columns: 1fr; }
    .store-sidebar { display: none; }
    .store-sidebar.open { display: block; }
}

/* ── Sidebar del catálogo ─────────────────────────────────── */
.store-sidebar {
    background: #fff; border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); padding: 20px;
    position: sticky; top: 80px;
}
.store-sidebar-title {
    font-size: 1rem; font-weight: 700; color: var(--store-dark);
    padding-bottom: 12px; border-bottom: 2px solid var(--store-green-pale);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.store-sidebar-title::before {
    content: ''; width: 4px; height: 18px;
    background: var(--store-green); border-radius: 2px;
}
.store-filter-section { margin-bottom: 20px; }
.store-filter-label { font-size: .8rem; font-weight: 600; color: var(--store-gray-text); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.store-filter-count { background: var(--store-green); color: #fff; border-radius: 50px; padding: 1px 7px; font-size: .7rem; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* Checkbox inline para multi-selección */
.store-filter-check {
    width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--store-gray-mid);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background var(--store-transition), border-color var(--store-transition);
    font-size: .6rem; color: #fff;
}
.store-filter-check.checked { background: var(--store-green); border-color: var(--store-green); }

/* Rango de precio */
.store-price-range { display: flex; align-items: center; gap: 8px; }
.store-price-input-wrap { flex: 1; display: flex; align-items: center; border: 1px solid var(--store-gray-mid); border-radius: var(--store-radius-sm); overflow: hidden; }
.store-price-currency { padding: 0 6px; font-size: .8rem; color: var(--store-gray-text); background: var(--store-gray-light); border-right: 1px solid var(--store-gray-mid); align-self: stretch; display: flex; align-items: center; }
.store-price-input { flex: 1; border: none; padding: 7px 8px; font-size: .85rem; font-family: inherit; outline: none; width: 0; min-width: 0; }
.store-price-sep { color: var(--store-gray-text); flex-shrink: 0; }

/* Categorías jerárquicas con imagen */
.store-cat-list { display: flex; flex-direction: column; gap: 2px; }
.store-cat-group { display: flex; flex-direction: column; }
.store-cat-row {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: var(--store-radius-sm);
    cursor: pointer; transition: background var(--store-transition);
    border: 1px solid transparent; position: relative;
}
.store-cat-row:hover { background: var(--store-green-pale); }
.store-cat-row.active {
    background: var(--store-green-pale);
    border-color: var(--store-green);
    color: var(--store-green);
}
.store-cat-img {
    width: 28px; height: 28px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
    border: 1px solid var(--store-gray-light);
}
.store-cat-icon-fa {
    width: 28px; height: 28px; display: flex; align-items: center;
    justify-content: center; background: var(--store-gray-light);
    border-radius: 6px; flex-shrink: 0; font-size: .8rem;
    color: var(--store-gray-text);
}
.store-cat-name {
    flex: 1; font-size: .875rem; font-weight: 500; color: inherit;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-cat-toggle {
    background: none; border: none; cursor: pointer; padding: 2px 4px;
    color: var(--store-gray-text); font-size: .7rem; flex-shrink: 0;
    transition: color var(--store-transition);
}
.store-cat-row.active .store-cat-toggle { color: var(--store-green); }
.store-cat-children {
    display: flex; flex-direction: column; gap: 1px;
    margin: 2px 0 4px 36px;
    border-left: 2px solid var(--store-gray-light);
    padding-left: 8px;
}
.store-cat-child {
    display: flex; align-items: center; gap: 7px;
    padding: 5px 8px; border-radius: var(--store-radius-sm);
    font-size: .825rem; color: var(--store-gray-text); cursor: pointer;
    transition: background var(--store-transition), color var(--store-transition);
}
.store-cat-child:hover { background: var(--store-green-pale); color: var(--store-dark); }
.store-cat-child.active {
    background: var(--store-green-pale); color: var(--store-green); font-weight: 600;
}

.store-brand-list { display: flex; flex-direction: column; gap: 6px; }
.store-brand-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: var(--store-radius-sm);
    cursor: pointer; transition: background var(--store-transition);
    font-size: .88rem; color: var(--store-dark); font-weight: 500;
    border: 1px solid transparent;
}
.store-brand-item:hover { background: var(--store-green-pale); }
.store-brand-item.active { background: var(--store-green-pale); border-color: var(--store-green); color: var(--store-green); }
.store-brand-count {
    background: var(--store-gray-light); color: var(--store-gray-text);
    border-radius: 50px; padding: 1px 8px; font-size: .72rem; font-weight: 600;
}
.store-brand-item.active .store-brand-count { background: var(--store-green); color: #fff; }

.store-filter-btn {
    width: 100%; background: var(--store-green); color: #fff;
    border: none; border-radius: 50px; padding: 11px;
    font-size: .9rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background var(--store-transition); font-family: inherit;
}
.store-filter-btn:hover { background: #388e3c; }
.store-filter-clear {
    width: 100%; background: none; color: var(--store-gray-text);
    border: 1px solid var(--store-gray-mid); border-radius: 50px; padding: 9px;
    font-size: .88rem; font-weight: 500; cursor: pointer; margin-top: 8px;
    transition: all var(--store-transition); font-family: inherit;
}
.store-filter-clear:hover { border-color: var(--store-green); color: var(--store-green); }

/* ── Search input del sidebar ─────────────────────────────── */
.store-input-search {
    width: 100%;
    border: 2px solid var(--store-gray-mid);
    border-radius: 50px;
    padding: 9px 16px 9px 38px;
    font-size: .88rem; outline: none;
    transition: border-color var(--store-transition);
    background: var(--store-gray-light);
    font-family: inherit;
}
.store-input-search:focus { border-color: var(--store-green); background: #fff; }
.store-input-wrap { position: relative; }
.store-input-wrap .search-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--store-gray-text); font-size: .9rem;
}

/* ── Alerta de estado cliente ─────────────────────────────── */
.store-client-alert {
    border-radius: var(--store-radius); padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 12px;
    font-size: .88rem; margin-top: 16px;
}
.store-client-alert.pending { background: #fff8e1; border-left: 4px solid #ffc107; }
.store-client-alert.blocked { background: #ffebee; border-left: 4px solid var(--store-red); }
.store-client-alert.info    { background: #e3f2fd; border-left: 4px solid #2196f3; }
.store-client-alert .alert-icon { font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.store-client-alert a { color: var(--store-green); font-weight: 600; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.store-breadcrumb {
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid var(--store-gray-mid);
    font-size: .82rem; color: var(--store-gray-text);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.store-breadcrumb a { color: var(--store-green); text-decoration: none; font-weight: 500; }
.store-breadcrumb a:hover { text-decoration: underline; }
.store-breadcrumb-sep { color: var(--store-gray-mid); }

/* ── Paginación ───────────────────────────────────────────── */
.store-pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 36px; flex-wrap: wrap;
}
.store-page-btn {
    width: 38px; height: 38px; border: 2px solid var(--store-gray-mid);
    background: #fff; border-radius: var(--store-radius-sm);
    cursor: pointer; font-size: .9rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--store-transition); color: var(--store-dark);
}
.store-page-btn:hover { border-color: var(--store-green); color: var(--store-green); }
.store-page-btn.active { background: var(--store-green); border-color: var(--store-green); color: #fff; }
.store-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Empty state ──────────────────────────────────────────── */
.store-empty {
    text-align: center; padding: 64px 24px;
    color: var(--store-gray-text);
}
.store-empty-icon { font-size: 4rem; margin-bottom: 12px; opacity: .4; }
.store-empty-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; color: var(--store-dark); }

/* ── Skeleton loader ──────────────────────────────────────── */
.store-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-wave 1.4s infinite;
    border-radius: var(--store-radius);
}
@keyframes skeleton-wave { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.store-skeleton-card { height: 310px; }

/* ── Footer ───────────────────────────────────────────────── */
.store-footer {
    background: var(--store-dark); color: rgba(255,255,255,.8);
    padding: 48px 24px 24px;
}
.store-footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px; margin-bottom: 36px;
}
.store-footer-brand-name { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.store-footer-brand-name span { color: var(--store-green-light); }
.store-footer-desc { font-size: .85rem; line-height: 1.6; }
.store-footer-heading { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #fff; margin-bottom: 14px; }
.store-footer-links { display: flex; flex-direction: column; gap: 8px; }
.store-footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .85rem; transition: color var(--store-transition); }
.store-footer-links a:hover { color: var(--store-green-light); }
.store-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; font-size: .8rem;
}

/* ── Detalle de producto ──────────────────────────────────── */
.store-detail-page { padding-bottom: 32px; }

/* Hero image */
.store-detail-hero {
    position: relative;
    width: 100%; height: 320px;
    background: var(--store-gray-light);
    overflow: hidden;
}
.store-detail-hero-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.store-detail-hero-img.store-product-img-fallback {
    object-fit: contain; padding: 32px;
}
.store-detail-back-btn {
    position: absolute; top: 14px; left: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.9); color: var(--store-dark);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: .95rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: background var(--store-transition);
}
.store-detail-back-btn:hover { background: #fff; }

/* Tarjetas de contenido */
.store-detail-card {
    background: #fff; margin: 14px 16px 0;
    border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); padding: 20px;
}
.store-detail-card-title {
    font-size: 1rem; font-weight: 700; color: var(--store-dark);
    margin-bottom: 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--store-gray-mid);
}

/* Card principal: nombre + precio */
.store-detail-card-top {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.store-detail-name-wrap { flex: 1; }
.store-detail-name {
    font-size: 1.25rem; font-weight: 800; color: var(--store-dark);
    line-height: 1.25; margin-bottom: 6px;
}
.store-detail-short-desc {
    font-size: .82rem; color: var(--store-gray-text); line-height: 1.5;
    margin: 0;
}
.store-detail-price-col { text-align: right; flex-shrink: 0; }
.store-detail-price {
    font-size: 1.5rem; font-weight: 800; color: var(--store-green);
    line-height: 1.1; margin-bottom: 6px;
}
.store-detail-cat-badge {
    display: inline-block;
    background: var(--store-green-pale); color: var(--store-green);
    border-radius: 50px; padding: 3px 12px;
    font-size: .72rem; font-weight: 600; white-space: nowrap;
}

/* Stock */
.store-detail-stock {
    font-size: .82rem; color: var(--store-green);
    font-weight: 600; margin-bottom: 16px;
    display: flex; align-items: center; gap: 6px;
}
.store-detail-unit { color: var(--store-gray-text); font-weight: 400; }

/* Botones de añadir */
.store-detail-add-row {
    display: flex; align-items: center; gap: 12px; margin-top: 4px;
}
.store-detail-add-btn {
    flex: 1; background: var(--store-green); color: #fff;
    border: none; border-radius: 50px; padding: 13px 20px;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: background var(--store-transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.store-detail-add-btn:hover:not(:disabled) { background: var(--store-green-dark); }
.store-detail-add-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Specs */
.store-detail-specs { display: flex; flex-direction: column; gap: 0; }
.store-detail-spec-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--store-gray-mid);
    font-size: .88rem;
}
.store-detail-spec-row:last-child { border-bottom: none; }
.store-detail-spec-label { color: var(--store-gray-text); }
.store-detail-spec-value { font-weight: 600; color: var(--store-dark); }

/* Descripción detallada */
.store-detail-desc-text {
    font-size: .9rem; line-height: 1.7; color: var(--store-gray-text); margin: 0;
}

/* Desktop: volver al grid 2 columnas */
@media (min-width: 900px) {
    .store-detail-page { display: grid; grid-template-columns: 420px 1fr; gap: 0; align-items: start; }
    .store-detail-hero { height: 420px; border-radius: 0; grid-row: 1 / 4; }
    .store-detail-card { margin: 14px 24px 0 24px; }
    .store-detail-card:first-of-type { margin-top: 24px; }
    .store-detail-name { font-size: 1.5rem; }
    .store-detail-price { font-size: 1.8rem; }
}

/* Antiguo - mantener compatibilidad imagen fallback */
.store-detail-img-main {
    background: var(--store-gray-light); border-radius: var(--store-radius);
    overflow: hidden; aspect-ratio: 1; display: flex; align-items: center;
    justify-content: center; border: 1px solid var(--store-gray-mid);
}
.store-detail-img-main img { width: 100%; height: 100%; object-fit: cover; }
.store-detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.store-detail-brand { background: var(--store-green-pale); color: var(--store-green); border-radius: 50px; padding: 4px 14px; font-size: .8rem; font-weight: 600; }
.store-detail-add-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── Cart sidebar ─────────────────────────────────────────── */
.store-cart-item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--store-gray-mid); align-items: flex-start;
}
.store-cart-item-img {
    width: 58px; height: 58px; border-radius: var(--store-radius-sm);
    object-fit: cover; background: var(--store-gray-light); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

/* ── Newsletter ───────────────────────────────────────────── */
.store-newsletter {
    background: linear-gradient(135deg, #1b2631 0%, #2e7d32 100%);
    border-radius: var(--store-radius); padding: 40px;
    text-align: center; color: #fff;
}
.store-newsletter h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.store-newsletter p { opacity: .85; margin-bottom: 20px; }
.store-newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.store-newsletter-form input {
    flex: 1; border: none; border-radius: 50px; padding: 11px 20px;
    font-size: .9rem; outline: none; font-family: inherit;
}

/* ── Utilities ────────────────────────────────────────────── */
.store-page { font-family: 'Poppins', 'Rubik', sans-serif; background: var(--store-gray-light); min-height: 100vh; }
.store-container { max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ── Buscador móvil ───────────────────────────────────────── */
.store-mobile-search { display: none; }

@media (hover: none) and (pointer: coarse) {
    /* Mostrar buscador */
    .store-mobile-search {
        display: block;
        background: var(--store-green);
        padding: 12px 16px;
        position: sticky; top: 0; z-index: 100;
    }
    .store-search-wrap {
        display: flex; align-items: center; gap: 8px;
        background: #fff; border-radius: 50px;
        padding: 8px 14px;
    }
    .store-search-icon { display: none; }
    input[type="search"]::-webkit-search-decoration,
    input[type="search"]::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
    .store-search-input {
        flex: 1; border: none; outline: none;
        font-size: .9rem; font-family: inherit; background: transparent;
    }
    .store-search-btn {
        position: static;
        background: var(--store-green); color: #fff;
        border: none; border-radius: 50%;
        width: 38px; height: 38px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; font-size: .95rem;
        transform: none;
    }

    /* Ocultar hero y secciones pesadas en móvil */
    .store-hero { display: none; }
    .store-trust { display: none; }
    .store-promo-banner { display: none; }

    /* Layout principal: una sola columna en móvil (sidebar oculto) */
    .store-main-layout {
        grid-template-columns: 1fr;
    }
    .store-sidebar { display: none; }
    .store-main-content .store-section { padding: 20px 16px; }
    .store-carousel .store-product-card { flex: 0 0 160px; }
    .store-carousel-prev { left: -8px; }
    .store-carousel-next { right: -8px; }

    /* Productos: grid 2 columnas en móvil (home) */
    .store-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        flex-wrap: unset !important;
        overflow-x: unset !important;
        gap: 10px;
        padding: 4px 0 12px;
    }
    .store-product-card {
        flex: unset !important;
        min-width: unset !important;
        width: 100%;
    }
    .store-product-img-wrap { height: 140px !important; }
    /* Padding reducido en cards móvil */
    .store-product-body { padding: 10px 10px 8px !important; gap: 4px !important; }
    .store-product-footer { padding: 0 10px 10px !important; }
    .store-product-name { font-size: .82rem !important; }
    .store-product-brand { font-size: .68rem !important; }
    .store-product-price-locked { font-size: .72rem !important; padding: 3px 8px !important; }

    /* Tabs más pequeños en móvil */
    .store-tabs { gap: 6px; }
    .store-tab { font-size: .75rem; padding: 6px 12px; }

    /* Section head simplificado */
    .store-section-head { flex-wrap: wrap; gap: 4px; }
    .store-section { padding: 18px 16px; }
}

/* ── Carrito ──────────────────────────────────────────────── */
.store-cart-page { min-height: 60vh; }

.store-cart-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 60px 24px; text-align: center;
}
.store-cart-empty h3 { font-size: 1.2rem; font-weight: 700; color: var(--store-dark); margin: 0; }
.store-cart-empty p { color: var(--store-gray-text); margin: 0; }

.store-cart-inner {
    max-width: 720px; margin: 0 auto;
    padding: 20px 16px 40px;
    display: flex; flex-direction: column; gap: 20px;
}

.store-cart-items {
    background: #fff; border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); overflow: hidden;
}

.store-cart-item {
    display: flex; align-items: flex-start;
    gap: 0; padding: 18px 16px;
    border-bottom: 1px solid var(--store-gray-mid);
    position: relative;
}
.store-cart-item:last-child { border-bottom: none; }

.store-cart-item-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
    padding-right: 12px;
}
.store-cart-item-name {
    font-size: 1.05rem; font-weight: 700; color: var(--store-dark);
    line-height: 1.3;
}
.store-cart-item-unit { font-size: .8rem; color: var(--store-gray-text); }
.store-cart-item-price {
    font-size: 1.1rem; font-weight: 800; color: var(--store-green);
    margin-top: 4px;
}

.store-cart-item-controls {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap;
}
.store-qty-stepper {
    display: flex; align-items: center;
    border: 1.5px solid var(--store-gray-mid); border-radius: 50px;
    overflow: hidden;
}
.store-qty-btn {
    width: 34px; height: 34px; border: none; background: transparent;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--store-dark);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--store-transition);
}
.store-qty-btn:hover { background: var(--store-green-pale); }
.store-qty-value {
    min-width: 32px; text-align: center;
    font-size: .95rem; font-weight: 600; color: var(--store-dark);
}
.store-cart-item-total {
    font-size: .95rem; font-weight: 700; color: var(--store-dark);
}
.store-cart-remove-btn {
    background: none; border: none; cursor: pointer;
    color: var(--store-gray-text); font-size: 1rem; padding: 4px;
    transition: color var(--store-transition);
}
.store-cart-remove-btn:hover { color: var(--store-red); }

.store-cart-item-img {
    width: 120px; height: 120px; flex-shrink: 0;
    border-radius: var(--store-radius-sm); overflow: hidden;
    background: var(--store-gray-light);
}
.store-cart-item-img img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Resumen */
.store-cart-summary {
    background: #fff; border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); padding: 20px 20px 24px;
    display: flex; flex-direction: column; gap: 12px;
}
.store-cart-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .9rem; color: var(--store-dark);
}
.store-cart-summary-total {
    font-size: 1.05rem; font-weight: 700;
    border-top: 1px solid var(--store-gray-mid);
    padding-top: 12px; margin-top: 4px;
}
.store-cart-checkout-btn {
    width: 100%; background: var(--store-green); color: #fff;
    border: none; border-radius: 50px; padding: 14px;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: background var(--store-transition); margin-top: 4px;
}
.store-cart-checkout-btn:hover { background: #388e3c; }
.store-cart-clear-btn {
    background: none; border: none; color: var(--store-gray-text);
    font-size: .82rem; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 6px; transition: color var(--store-transition);
}
.store-cart-clear-btn:hover { color: var(--store-red); }

/* ── Pedidos ──────────────────────────────────────────────── */
.store-orders-inner {
    max-width: 720px; margin: 0 auto;
    padding: 20px 16px 40px;
    display: flex; flex-direction: column; gap: 16px;
}
.store-orders-header { display: flex; flex-direction: column; gap: 2px; }
.store-orders-title { font-size: 1.3rem; font-weight: 800; color: var(--store-dark); margin: 0; }
.store-orders-sub { font-size: .85rem; color: var(--store-gray-text); }

.store-order-list { display: flex; flex-direction: column; gap: 10px; }

.store-order-card {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); padding: 16px 18px;
    border: 1px solid var(--store-gray-mid);
    text-decoration: none; color: inherit;
    transition: box-shadow var(--store-transition), border-color var(--store-transition);
}
.store-order-card:hover {
    box-shadow: var(--store-shadow-hover);
    border-color: var(--store-green-pale);
}
.store-order-card-top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.store-order-number { font-size: .95rem; font-weight: 700; color: var(--store-dark); }
.store-order-date { font-size: .78rem; color: var(--store-gray-text); margin-top: 2px; }

.store-order-badge {
    font-size: .72rem; font-weight: 700; padding: 4px 10px;
    border-radius: 50px; white-space: nowrap; flex-shrink: 0;
}
.store-order-badge-1 { background: #fff3e0; color: #f57c00; }
.store-order-badge-2 { background: #e3f2fd; color: #1565c0; }
.store-order-badge-3 { background: #e8f5e9; color: #2e7d32; }
.store-order-badge-4 { background: #f3e5f5; color: #6a1b9a; }
.store-order-badge-5 { background: #e8f5e9; color: #1b5e20; }
.store-order-badge-6 { background: #ffebee; color: #b71c1c; }

.store-order-card-bottom {
    display: flex; align-items: center; gap: 10px;
    border-top: 1px solid var(--store-gray-mid); padding-top: 10px;
}
.store-order-items { font-size: .82rem; color: var(--store-gray-text); flex: 1; }
.store-order-total { font-size: 1rem; font-weight: 800; color: var(--store-dark); }
.store-order-chevron { font-size: .8rem; color: var(--store-gray-text); }

/* ── Checkout ─────────────────────────────────────────────── */
.store-checkout-inner {
    max-width: 720px; margin: 0 auto;
    padding: 20px 16px 40px;
    display: flex; flex-direction: column; gap: 16px;
}
.store-checkout-block {
    background: #fff; border-radius: var(--store-radius);
    box-shadow: var(--store-shadow); padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
}
.store-checkout-block .store-cart-items { margin: 0 -20px; }
.store-checkout-block .store-cart-item:first-child { border-top: 1px solid var(--store-gray-mid); }
.store-checkout-block-title {
    font-size: 1.1rem; font-weight: 800; color: var(--store-dark);
    padding-bottom: 10px; border-bottom: 1px solid var(--store-gray-mid);
}

/* Tabs dirección */
.store-checkout-addr-tabs {
    display: flex; gap: 0;
    border: 1.5px solid var(--store-gray-mid); border-radius: 50px; overflow: hidden;
}
.store-checkout-addr-tab {
    flex: 1; background: transparent; border: none; padding: 9px 14px;
    font-size: .82rem; font-weight: 600; font-family: inherit;
    cursor: pointer; color: var(--store-gray-text); transition: all var(--store-transition);
}
.store-checkout-addr-tab.active { background: var(--store-green); color: #fff; }

/* Cards de dirección */
.store-checkout-addr-list { display: flex; flex-direction: column; gap: 8px; }
.store-checkout-addr-card {
    border: 1.5px solid var(--store-gray-mid); border-radius: var(--store-radius-sm);
    padding: 12px 14px; cursor: pointer; transition: all var(--store-transition);
    display: flex; flex-direction: column; gap: 3px;
}
.store-checkout-addr-card:hover { border-color: var(--store-green-light); }
.store-checkout-addr-card.selected { border-color: var(--store-green); background: var(--store-green-pale); }
.store-checkout-addr-label {
    font-size: .88rem; font-weight: 700; color: var(--store-dark);
    display: flex; align-items: center; gap: 6px;
}
.store-checkout-addr-default {
    font-size: .68rem; background: var(--store-green); color: #fff;
    border-radius: 50px; padding: 2px 8px; font-weight: 600;
}
.store-checkout-addr-line { font-size: .8rem; color: var(--store-gray-text); }
.store-checkout-manage-link {
    font-size: .78rem; color: var(--store-green); text-decoration: none;
    display: flex; align-items: center; gap: 5px;
}

/* Formulario manual */
.store-checkout-form { display: flex; flex-direction: column; gap: 10px; }
.store-checkout-form-row { display: flex; gap: 10px; }
.store-checkout-input {
    width: 100%; border: 1.5px solid var(--store-gray-mid); border-radius: 50px;
    padding: 11px 18px; font-size: .9rem; font-family: inherit; outline: none;
    background: var(--store-gray-light); color: var(--store-dark);
    transition: border-color var(--store-transition); box-sizing: border-box;
}
.store-checkout-input:focus { border-color: var(--store-green); background: #fff; }
.store-checkout-textarea {
    border-radius: var(--store-radius-sm) !important;
    resize: vertical; min-height: 80px;
}

/* Reutiliza .store-cart-summary-row, .store-cart-summary-total, .store-cart-checkout-btn, .store-cart-clear-btn */

/* ── Página catálogo — móvil táctil ──────────────────────── */
.store-mobile-filter-bar { display: none; }
.store-sidebar-close { display: none; }
.store-mobile-filter-overlay { display: none; }

@media (hover: none) and (pointer: coarse) {
    /* Barra superior: búsqueda + botón filtros */
    .store-catalog-page .store-mobile-filter-bar {
        display: flex; gap: 8px; align-items: center;
        background: var(--store-green);
        padding: 10px 14px;
        position: sticky; top: 0; z-index: 200;
    }
    .store-mobile-filter-btn {
        background: #fff; border: none; border-radius: 50px;
        padding: 8px 14px; font-size: .82rem; font-weight: 600;
        display: flex; align-items: center; gap: 6px;
        white-space: nowrap; position: relative; cursor: pointer;
        color: var(--store-dark); flex-shrink: 0;
    }
    .store-mobile-filter-btn.active { background: var(--store-orange); color: #fff; }
    .store-mobile-filter-dot {
        position: absolute; top: 5px; right: 5px;
        width: 8px; height: 8px; border-radius: 50%;
        background: var(--store-red);
    }

    /* Sidebar como panel deslizante desde la izquierda */
    .store-catalog-page .store-sidebar {
        display: none;
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 85%; max-width: 320px; z-index: 600;
        background: #fff; overflow-y: auto;
        padding: 20px 16px; box-shadow: 4px 0 24px rgba(0,0,0,.2);
    }
    .store-catalog-page .store-sidebar.mobile-open { display: block; }
    .store-sidebar-close {
        display: flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; border: none; background: var(--store-gray-light);
        border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--store-dark);
    }
    .store-mobile-filter-overlay {
        display: block;
        position: fixed; inset: 0; z-index: 599;
        background: rgba(0,0,0,.4);
    }

    /* Layout sin columna sidebar */
    .store-catalog-page .store-catalog-layout {
        grid-template-columns: 1fr !important;
        padding: 0 16px;
    }

    /* Lista horizontal (list view style 2) */
    .store-catalog-page .store-products-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        overflow-x: unset !important;
        gap: 10px;
    }
    /* Card horizontal: texto izquierda, imagen derecha */
    .store-catalog-page .store-product-card {
        flex: unset !important;
        min-width: unset !important;
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-content: flex-start;
    }
    .store-catalog-page .store-product-img-wrap {
        width: 100px !important;
        height: unset !important;
        min-height: 100px;
        flex-shrink: 0;
        order: 3;
        align-self: stretch;
        border-radius: 0 var(--store-radius) var(--store-radius) 0;
    }
    .store-catalog-page .store-product-body {
        flex: 1; min-width: 0; order: 1;
        padding: 12px 8px 4px 12px !important;
        gap: 4px !important;
    }
    .store-catalog-page .store-product-footer {
        flex: 1; min-width: 0; order: 2;
        padding: 0 8px 10px 12px !important;
        gap: 6px !important;
    }
    .store-catalog-page .store-product-name { font-size: .88rem !important; -webkit-line-clamp: 2; }
    .store-catalog-page .store-product-brand { font-size: .7rem !important; }
    .store-catalog-page .store-product-price { font-size: 1rem !important; }
    .store-catalog-page .store-view-btn { display: none !important; }
    .store-catalog-page .store-add-btn { font-size: .78rem !important; padding: 8px 12px !important; }
}

/* ── Barra de navegación inferior (móvil) ─────────────────── */
.store-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    border-top: 1px solid var(--store-gray-mid);
    box-shadow: 0 -2px 12px rgba(0,0,0,.10);
    height: 60px;
    align-items: stretch;
    justify-content: space-around;
}

@media (hover: none) and (pointer: coarse) {
    .store-bottom-nav { display: flex; }
    .store-page-mobile-nav { padding-bottom: 68px; }
    .store-header-actions { display: none; }
}

.store-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2px;
    color: var(--store-gray-text);
    text-decoration: none;
    font-size: .65rem;
    font-weight: 500;
    padding: 6px 4px;
    transition: color var(--store-transition);
    position: relative;
}
.store-bottom-nav-item:hover,
.store-bottom-nav-item.active {
    color: var(--store-green);
}
.store-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 25%; right: 25%;
    height: 2px;
    background: var(--store-green);
    border-radius: 0 0 3px 3px;
}
.store-bottom-nav-item .mud-icon-root { font-size: 1.4rem; }

.store-bottom-nav-badge {
    position: absolute;
    top: 4px; right: calc(50% - 18px);
    background: var(--store-red);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
}

/* ── CATEGORÍAS DESTACADAS (página principal) ──────────────────────────── */
.store-featured-cats {
    padding: 20px 0 8px;
}
.store-featured-cats-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 16px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.store-featured-cats-grid::-webkit-scrollbar { display: none; }

.store-featured-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 0 0 auto;
    width: 90px;
    transition: transform var(--store-transition);
}
.store-featured-cat-card:hover { transform: translateY(-3px); }

.store-featured-cat-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--store-green);
    background: var(--store-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.store-featured-cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.store-featured-cat-icon {
    font-size: 1.8rem;
    color: var(--store-green);
}
.store-featured-cat-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--store-text);
    text-align: center;
    line-height: 1.3;
    max-width: 88px;
}
