/* Breadcrumb */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

/* Barre de recherche */
.search-bar {
    margin-bottom: 30px;
}

.search-bar input {
    border-radius: 25px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
}

.search-bar input:focus {
    border-color: var(--biir-burgundy);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.c-class-search{
    height: 51px;
    border: 8px solid var(--biir-burgundy);
    border-radius: 0px 25px 25px 0px;
}

/* Filtres catégories */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.category-btn:hover {
    border-color: var(--biir-burgundy);
    color: var(--biir-burgundy);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--biir-burgundy);
    color: white;
    border-color: var(--biir-burgundy);
}

/* Barre d'outils (tri et résultats) */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.toolbar select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 15px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Ratio 1:1 */
    background: #f8f9fa;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--biir-burgundy);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--biir-burgundy);
}

.product-price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-action-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.product-action-btn:hover {
    background: var(--biir-burgundy);
    border-color: var(--biir-burgundy);
    color: white;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    margin-bottom: 15px;
}

.pagination {
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 2px;
}

.pagination .page-link {
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 42px;
    text-align: center;
}

.pagination .page-link:hover {
    background: var(--biir-burgundy);
    border-color: var(--biir-burgundy);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--biir-burgundy);
    border-color: var(--biir-burgundy);
    color: white;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background: #f8f9fa;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .category-filters {
        justify-content: center;
    }

    .pagination .page-link {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 0.9rem;
    }

    .pagination-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pagination .page-link {
        padding: 5px 8px;
        min-width: 32px;
        font-size: 0.85rem;
    }
}