.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-productos {
    background: linear-gradient(rgba(111, 78, 55, 0.8), rgba(111, 78, 55, 0.8)),
                url('../recursos/hero-productos.jpg') center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-productos-content h1 {
    font-size: 3em;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-productos-subtitle {
    font-size: 1.3em;
    opacity: 0.9;
}

/* Filtros Section */
.filtros {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(111,78,55,0.05);
    position: sticky;
    top: 64px;
    z-index: 90;
}

.filtros-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.busqueda {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.busqueda input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0d3c3;
    border-radius: 8px;
    font-size: 1em;
    color: #2d1c10;
}

.busqueda input:focus {
    outline: none;
    border-color: #6f4e37;
}

.busqueda button {
    background: #6f4e37;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.busqueda button:hover {
    background: #8b5e3c;
}

.categorias {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.categoria-btn {
    background: #f5e6d6;
    color: #6f4e37;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
}

.categoria-btn:hover,
.categoria-btn.active {
    background: #6f4e37;
    color: #fff;
}

/* Estilo para el select de categorías */
.categoria-select {
    background: #f5e6d6;
    color: #6f4e37;
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(111,78,55,0.04);
    outline: none;
    margin-left: 8px;
}
.categoria-select:focus {
    background: #fff8f0;
    border: 2px solid #a67c52;
}

@media (max-width: 600px) {
  .categoria-select {
    width: 100%;
    font-size: 1.1em;
    margin: 0;
  }
}

/* Productos Grid */
.productos-grid {
    padding: 40px 0;
    background: #fcf6ed;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.producto-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(111,78,55,0.05);
    transition: transform 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto-info {
    padding: 20px;
}

.producto-categoria {
    color: #8b5e3c;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.producto-nombre {
    color: #2d1c10;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.producto-descripcion {
    color: #6f4e37;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 16px;
}

.producto-precio {
    color: #2d1c10;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 16px;
}

.btn-agregar {
    width: 100%;
    background: #6f4e37;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-agregar:hover {
    background: #8b5e3c;
}

/* Carrito Section */
.carrito-section {
    background: #fff;
    padding: 40px 0;
}

.carrito-section h2 {
    color: #2d1c10;
    font-size: 2em;
    margin-bottom: 24px;
}

.carrito-contenido {
    background: #fcf6ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.carrito-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0d3c3;
}

.carrito-item:last-child {
    border-bottom: none;
}

.carrito-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.carrito-item-info h3 {
    color: #2d1c10;
    margin-bottom: 8px;
}

.carrito-item-precio {
    color: #6f4e37;
    font-weight: bold;
}

.carrito-item-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrito-item-cantidad button {
    background: #f5e6d6;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.carrito-item-cantidad button:hover {
    background: #e0d3c3;
}

.carrito-item-eliminar {
    color: #d32f2f;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.carrito-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.btn-secundario {
    background: #f5e6d6;
    color: #6f4e37;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secundario:hover {
    background: #e0d3c3;
}

.btn-principal {
    background: #6f4e37;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-principal:hover {
    background: #8b5e3c;
}

.total-carrito {
    font-size: 1.3em;
    font-weight: bold;
    color: #2d1c10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filtros-content {
        flex-direction: column;
        align-items: stretch;
    }

    .busqueda {
        max-width: none;
    }

    .categorias {
        justify-content: center;
    }

    .carrito-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carrito-item img {
        margin: 0 auto;
    }

    .carrito-acciones {
        flex-direction: column;
    }

    .btn-secundario,
    .btn-principal {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .navbar-toggle {
        display: flex !important;
        color: #ffffff;
        cursor: pointer;
        font-size: 1.5em;   
        align-items: center;
    }
}
