@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --rojo-marca: #A61D2E;
    --naranja-acento: #D9531E;
    --beige-fondo: #fdfaf7;
    --blanco: #ffffff;
    --gris-oscuro: #2d2d2d;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--beige-fondo);
    color: var(--gris-oscuro);
    margin: 0;
    scroll-behavior: smooth;
}

header {
    background: var(--blanco);
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { height: 60px; }

/* Grilla y Tarjetas */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card img {
    width: 100%;
    height: 200px;
    display: block;
    background-color: #f4f1ea;
    object-fit: cover; 
}

/* Ajuste para cuando no hay foto y se usa el logo */
.product-card img[src*="logo2.png"] {
    object-fit: contain !important;
    padding: 0px;
}

.product-info { padding: 15px; text-align: center; flex-grow: 1; }
.product-info h3 { margin: 10px 0; font-size: 1.1rem; }
.price { font-size: 1.4rem; color: var(--rojo-marca); font-weight: 700; margin: 5px 0; }
.category-tag { background: #eee; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; }

.btn-add {
    background: var(--naranja-acento);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 90%;
    margin: 10px auto;
    transition: 0.2s;
}

.btn-add:hover { background: var(--rojo-marca); }

/* Filtros */
.filtros { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.btn-filtro {
    border: 2px solid var(--rojo-marca);
    background: transparent;
    color: var(--rojo-marca);
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}
.btn-filtro.active { background: var(--rojo-marca); color: white; }

/* Carrito Lateral */
.side-cart {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100%;
    background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s; z-index: 2000; display: flex; flex-direction: column;
}
.side-cart.active { right: 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 10px 0; }
.cart-item button { background: none; border: none; color: red; cursor: pointer; font-weight: bold; }