/* Estilos para la página de productos */

/* Banner de la página */
.page-banner {
    background: linear-gradient(135deg, #1976d2 0%, #4fc3f7 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Sección de productos */
.products-section {
    padding: 2rem 0 4rem;
}

.products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Filtros laterales */
.filter-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-sidebar h3 {
    color: #1976d2;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #e1e1e1;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.7rem;
}

.category-list a {
    display: block;
    color: #555;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s;
}

.category-list a:hover {
    background: #f5f5f5;
    color: #1976d2;
}

.category-list a.active {
    background: #1976d2;
    color: #fff;
}

/* Tarjetas de producto */
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image.no-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    color: #ccc;
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background: #e1f5fe;
    color: #0277bd;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.7rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.btn-view {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #1976d2;
    color: #1976d2;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #1976d2;
    color: #fff;
}

.btn-cart {
    padding: 0.5rem 1rem;
    background: #4fc3f7;
    border: none;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart:hover {
    background: #1976d2;
}

/* Breadcrumb */
.breadcrumb-container {
    background: #f5f5f5;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.breadcrumb li:after {
    content: '>';
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumb li:last-child:after {
    display: none;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1976d2;
}

.breadcrumb .active {
    color: #1976d2;
    font-weight: 500;
}

/* Detalle de producto */
.product-detail-section {
    padding: 2rem 0 4rem;
}

.product-detail-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-detail-image {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.product-detail-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.product-detail-image .no-image {
    height: 400px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.product-detail-image .no-image i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.product-detail-info {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.product-detail-info h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.product-detail-info .product-category {
    margin-bottom: 1.5rem;
}

.product-detail-info .product-price {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.product-detail-info .product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-detail-info .no-description {
    color: #999;
    font-style: italic;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-btn.minus {
    border-radius: 5px 0 0 5px;
}

.quantity-btn.plus {
    border-radius: 0 5px 5px 0;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem;
}

.btn-add-cart {
    width: 100%;
    padding: 1rem;
    background: #4fc3f7;
    border: none;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart i {
    margin-right: 0.5rem;
}

.btn-add-cart:hover {
    background: #1976d2;
}

/* Productos relacionados */
.related-products-section {
    padding: 4rem 0;
    background: #f5f5f5;
}

.related-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.related-products-section h2 {
    font-size: 1.8rem;
    color: #1976d2;
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-view, .btn-cart {
        width: 100%;
        text-align: center;
    }
    
    .product-detail-info {
        padding: 1.5rem;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .product-detail-info .product-price {
        font-size: 1.5rem;
    }
}
