/* Products Page Specific Styles */

.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.products-page {
    padding: 40px 0;
    background: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.page-header p {
    color: #007bff;
    font-size: 18px;
    font-weight: 500;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-group select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

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

.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-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.product-badge.sale {
    background: #dc3545;
}

.product-badge.new {
    background: #28a745;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    height: 50px;
    overflow: hidden;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.rating {
    color: #ffc107;
}

.stock {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock.low-stock {
    background: #fff3cd;
    color: #856404;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin-right: 10px;
}

.new-price {
    color: #dc3545;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .product-info h3 {
        font-size: 16px;
        height: auto;
    }
    
    .product-info p {
        height: auto;
    }
    
    .page-header {
        padding: 0 15px;
    }
    
    .breadcrumb {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .products-page {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 13px;
    }
    
    .filter-group select {
        width: 100%;
        font-size: 16px;
        padding: 10px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .product-info p {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .price {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .btn-primary {
        padding: 10px;
        font-size: 14px;
    }
    
    .product-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .filters {
        padding: 15px;
        gap: 12px;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-header p {
        font-size: 14px;
    }
}

/* Extra Small Devices - 2 columns */
@media (min-width: 360px) and (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info h3 {
        font-size: 12px;
        height: 36px;
    }
    
    .product-info p {
        font-size: 11px;
        height: 32px;
    }
    
    .price {
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 8px;
        font-size: 12px;
    }
}