
/* Styles généraux */
.category-content-area {
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.category-sidebar {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-widget {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Catégorie actuelle */
.current-category-card {
    text-align: center;
}

.category-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007bff;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-category-card .category-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.current-category-card .category-count {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Liste des autres catégories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-link:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    border-left-color: #0056b3;
    transform: translateX(5px);
}

.category-count {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.category-link:hover .category-count {
    color: rgba(255,255,255,0.8);
}

.no-categories {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Contenu principal */
.category-main-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-header {
    margin-bottom: 30px;
    text-align: center;
}

.category-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grille des forfaits cadeaux */
.giftcards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.giftcard-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.giftcard-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.giftcard-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.giftcard-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.giftcard-item:hover .giftcard-image img {
    transform: scale(1.05);
}

.giftcard-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.giftcard-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.giftcard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.giftcard-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
    margin-right: 10px;
    line-height: 1.3;
}

.giftcard-rating {
    display: flex;
    gap: 2px;
}

.giftcard-rating .bxs-star {
    color: #ffc107;
    font-size: 0.9rem;
}

.giftcard-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
    margin-right: 8px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
}

.giftcard-info {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.info-item i {
    color: #007bff;
    font-size: 1rem;
}

.info-item.expiry {
    color: #dc3545;
}

.info-item.expiry i {
    color: #dc3545;
}

.giftcard-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.giftcard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 15px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
}

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

/* Responsive */
@media (max-width: 992px) {
    .giftcards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-main-content {
        padding: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .giftcard-actions {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .category-main-content {
        padding: 15px;
    }
    
    .giftcard-content {
        padding: 15px;
    }
    
    .giftcard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .giftcard-rating {
        align-self: flex-end;
    }
}

