/* ── Tienda ─────────────────────────────────────────────── */
.tienda-hero {
    background: linear-gradient(135deg, #3d0c4f 0%, #7B2D8B 100%);
    padding: 48px 0 32px;
    color: #fff;
}
.tienda-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.tienda-hero p  { opacity: .75; font-size: .95rem; }

/* Filtros */
.filtros-bar {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.filtro-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
}
.filtro-chip:hover,
.filtro-chip.activo {
    border-color: #7B2D8B;
    background: #7B2D8B;
    color: #fff;
}

/* Grid de productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 0 40px;
}
@media (min-width: 576px) { .productos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .productos-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* Card de producto */
.card-producto {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.card-producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    text-decoration: none;
    color: inherit;
}
.card-producto-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}
.card-producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.card-producto:hover .card-producto-img img { transform: scale(1.04); }
.card-producto-img .sin-imagen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
}
.card-producto-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-producto-cat  { font-size: .72rem; color: #7B2D8B; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card-producto-nombre { font-size: .88rem; font-weight: 700; color: #222; line-height: 1.3; }
.card-producto-precio { font-size: 1rem; font-weight: 800; color: #3d0c4f; margin-top: auto; }
.card-producto-envio  { font-size: .72rem; color: #27ae60; font-weight: 600; }

/* Badge agotado */
.badge-agotado {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Carrito badge en navbar */
.carrito-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #7B2D8B;
    color: #fff;
    font-size: .65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ── Footer: solo visible en desktop ─────────────────────── */
.site-footer {
    background: #000;
    color: rgba(255,255,255,.8);
    padding: 52px 24px 48px;
    margin-top: 40px;
    display: none;
}
@media (min-width: 769px) {
    .site-footer { display: block; }
}

/* ── Espacio para el bottom-nav en mobile ─────────────────── */
@media (max-width: 768px) {
    body { padding-bottom: 72px; }
}

/* ── Secciones estilo home ──────────────────────────────── */
:root { --brand-color: #7B2D8B; }

.section-divider {
    height: 8px;
    background: #ede8f2;
    margin-top: 8px;
}
.tienda-section {
    padding: 16px 0 0;
    background: #fff;
}
.tienda-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 10px;
}
.tienda-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}
.tienda-section-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-color);
    text-decoration: none;
}
.tienda-section-link:hover { text-decoration: underline; }

.hscroll-row {
    display: flex;
    gap: 10px;
    padding: 2px 0 14px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hscroll-row::-webkit-scrollbar { display: none; }
.hscroll-row::after { content: ''; flex-shrink: 0; width: 20px; }

/* ── Card horizontal de producto ────────────────────────── */
.card-prod-h {
    flex-shrink: 0;
    width: 140px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .2s, box-shadow .2s;
}
.card-prod-h:hover, .card-prod-h:active {
    transform: scale(0.97);
    text-decoration: none;
    color: inherit;
}
.card-prod-h-img {
    height: 160px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-prod-h-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.card-prod-h-placeholder {
    font-size: 2.5rem;
    color: #ddd;
}
.card-prod-h-body {
    padding: 8px 10px 10px;
}
.card-prod-h-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
}
.card-prod-h-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-prod-h-precio {
    font-size: 13px;
    font-weight: 800;
    color: #3d0c4f;
    margin-top: 4px;
}
