/**
 * CSS Theros Mode Hooks - Reproduction exacte de la maquette PrestaShop
 * Basé sur la capture d'écran fournie
 */

/* ===== VARIABLES MAQUETTE ===== */
:root {
    --theros-blue: #009CDE;
    --theros-blue-hover: #007BB8;
    --theros-gray-light: #F5F5F5;
    --theros-gray-medium: #E0E0E0;
    --theros-gray-dark: #666666;
    --theros-text-dark: #333333;
    --theros-white: #FFFFFF;
    --theros-badge-yellow: #FFD700;
    --theros-badge-red: #DC3545;
    --theros-border: #DDDDDD;
}

/* ===== STRUCTURE GÉNÉRALE ===== */
.theros-hooks-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--theros-white);
    margin: 0;
    padding: 0;
}

/* ===== BANNIÈRE CATÉGORIE ===== */
.category-banner-hooks {
    background: var(--theros-white);
    border-bottom: 1px solid var(--theros-border);
    padding: 30px 0;
}

.category-banner-hooks .category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--theros-text-dark);
    margin-bottom: 10px;
}

.category-banner-hooks .category-subtitle {
    font-size: 1rem;
    color: var(--theros-gray-dark);
    margin: 0;
}

.category-results-info {
    font-size: 0.9rem;
    color: var(--theros-gray-dark);
    margin-top: 15px;
}

/* ===== LAYOUT PRINCIPAL ===== */
.hooks-main-content {
    display: flex;
    min-height: 600px;
    background: var(--theros-white);
}

/* ===== SIDEBAR FILTRES (REPRODUCTION EXACTE) ===== */
.hooks-filters-sidebar {
    width: 250px;
    background: var(--theros-gray-light);
    border-right: 1px solid var(--theros-border);
    padding: 20px 15px;
    flex-shrink: 0;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theros-text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--theros-border);
}

.filter-category {
    margin-bottom: 25px;
}

.filter-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theros-text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.filter-category-item {
    margin-bottom: 8px;
}

.filter-category-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--theros-white);
    border: 1px solid var(--theros-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--theros-text-dark);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-category-link:hover {
    background: var(--theros-blue);
    color: white;
    text-decoration: none;
    border-color: var(--theros-blue);
}

.filter-category-link.active {
    background: var(--theros-blue);
    color: white;
    border-color: var(--theros-blue);
}

.filter-category-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    background: var(--theros-gray-medium);
    border-radius: 3px;
}

.filter-price-range {
    margin-bottom: 20px;
}

.price-range-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theros-text-dark);
    margin-bottom: 10px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--theros-border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-separator {
    color: var(--theros-gray-dark);
    font-size: 0.9rem;
}

.filter-apply-btn {
    width: 100%;
    padding: 10px;
    background: var(--theros-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-apply-btn:hover {
    background: var(--theros-blue-hover);
}

/* ===== ZONE PRODUITS ===== */
.hooks-products-area {
    flex: 1;
    padding: 20px;
    background: var(--theros-white);
}

/* ===== HEADER PRODUITS (COMME MAQUETTE) ===== */
.products-header-hooks {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--theros-border);
}

.products-title-hooks {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theros-text-dark);
    margin: 0;
}

.products-results-hooks {
    font-size: 0.9rem;
    color: var(--theros-gray-dark);
}

.products-sort-hooks {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 0.9rem;
    color: var(--theros-gray-dark);
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--theros-border);
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ===== FILTRES ACTIFS ===== */
.active-filters-hooks {
    margin-bottom: 20px;
}

.active-filters-title {
    font-size: 0.9rem;
    color: var(--theros-gray-dark);
    margin-bottom: 10px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--theros-gray-light);
    border: 1px solid var(--theros-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--theros-text-dark);
    text-decoration: none;
}

.active-filter-remove {
    margin-left: 8px;
    color: var(--theros-gray-dark);
    font-weight: bold;
    cursor: pointer;
}

.active-filter-remove:hover {
    color: var(--theros-badge-red);
}

.clear-all-filters {
    color: var(--theros-blue);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 10px;
}

.clear-all-filters:hover {
    text-decoration: underline;
}

/* ===== GRILLE PRODUITS (EXACTE MAQUETTE) ===== */
.products-grid-hooks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-miniature-hooks {
    background: white;
    border: 1px solid var(--theros-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-miniature-hooks:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ===== IMAGE PRODUIT ===== */
.product-image-container {
    position: relative;
    background: var(--theros-gray-light);
    height: 200px;
    overflow: hidden;
}

.product-image-hooks {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-miniature-hooks:hover .product-image-hooks {
    transform: scale(1.05);
}

/* ===== BADGES PRODUIT ===== */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.product-badge.discount {
    background: var(--theros-badge-yellow);
    color: var(--theros-text-dark);
}

.product-badge.new {
    background: var(--theros-badge-red);
    color: white;
}

/* ===== CONTENU PRODUIT ===== */
.product-content-hooks {
    padding: 15px;
}

.product-title-hooks {
    font-size: 1rem;
    font-weight: 500;
    color: var(--theros-text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
    display: block;
}

.product-title-hooks:hover {
    color: var(--theros-blue);
    text-decoration: none;
}

.product-meta-hooks {
    font-size: 0.85rem;
    color: var(--theros-gray-dark);
    margin-bottom: 8px;
}

.product-stock, .product-ref {
    margin-right: 15px;
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.out-of-stock {
    color: var(--theros-badge-red);
}

/* ===== PRIX PRODUIT ===== */
.product-pricing-hooks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.product-price-hooks {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theros-blue);
}

.product-price-regular {
    text-decoration: line-through;
    color: var(--theros-gray-dark);
    font-size: 0.9rem;
    margin-right: 8px;
}

.product-discount-percentage {
    font-size: 0.8rem;
    color: var(--theros-badge-red);
    font-weight: 600;
}

/* ===== BOUTONS PRODUIT ===== */
.product-actions-hooks {
    display: flex;
    gap: 8px;
}

.product-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-btn-primary {
    background: var(--theros-blue);
    color: white;
}

.product-btn-primary:hover {
    background: var(--theros-blue-hover);
    color: white;
    text-decoration: none;
}

.product-btn-secondary {
    background: var(--theros-gray-light);
    color: var(--theros-text-dark);
    border: 1px solid var(--theros-border);
}

.product-btn-secondary:hover {
    background: var(--theros-gray-medium);
    text-decoration: none;
    color: var(--theros-text-dark);
}

/* ===== PAGINATION (STYLE MAQUETTE) ===== */
.pagination-hooks {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--theros-gray-dark);
    margin-right: 20px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid var(--theros-border);
    background: white;
    color: var(--theros-text-dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: var(--theros-blue);
    color: white;
    border-color: var(--theros-blue);
    text-decoration: none;
}

.pagination-btn.current {
    background: var(--theros-blue);
    color: white;
    border-color: var(--theros-blue);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background: white;
    color: var(--theros-text-dark);
    border-color: var(--theros-border);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hooks-main-content {
        flex-direction: column;
    }
    
    .hooks-filters-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--theros-border);
    }
    
    .products-grid-hooks {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .products-header-hooks {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .products-grid-hooks {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .hooks-products-area {
        padding: 15px;
    }
    
    .product-content-hooks {
        padding: 12px;
    }
    
    .product-actions-hooks {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .products-grid-hooks {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-banner-hooks {
        padding: 20px 0;
    }
    
    .hooks-filters-sidebar {
        padding: 15px;
    }
}

/* ===== INTÉGRATION NATIVE PRESTASHOP ===== */

/* Styles pour les filtres actifs natifs PrestaShop */
.active-filters-prestashop .facet-clear-btn {
    background: var(--theros-gray-light);
    border: 1px solid var(--theros-border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--theros-text-dark);
    text-decoration: none;
    margin: 0 5px 5px 0;
    display: inline-flex;
    align-items: center;
}

.active-filters-prestashop .facet-clear-btn:hover {
    background: var(--theros-blue);
    color: white;
    text-decoration: none;
    border-color: var(--theros-blue);
}

/* Compatibilité avec les miniatures produits natives */
.product-miniature-hooks .thumbnail-container {
    position: relative;
    background: var(--theros-gray-light);
    height: 200px;
    overflow: hidden;
}

.product-miniature-hooks .product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Badges natifs PrestaShop */
.product-miniature-hooks .product-flags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-miniature-hooks .product-flag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
}

.product-miniature-hooks .product-flag.discount {
    background: var(--theros-badge-yellow);
    color: var(--theros-text-dark);
}

.product-miniature-hooks .product-flag.new {
    background: var(--theros-badge-red);
    color: white;
}

.product-miniature-hooks .product-flag.online_only {
    background: var(--theros-blue);
    color: white;
}

/* Prix natifs PrestaShop */
.product-miniature-hooks .product-price-and-shipping {
    margin-bottom: 12px;
}

.product-miniature-hooks .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theros-blue);
}

.product-miniature-hooks .regular-price {
    text-decoration: line-through;
    color: var(--theros-gray-dark);
    font-size: 0.9rem;
    margin-right: 8px;
}

.product-miniature-hooks .discount-percentage {
    font-size: 0.8rem;
    color: var(--theros-badge-red);
    font-weight: 600;
}

/* Actions produit natives */
.product-miniature-hooks .product-actions {
    display: flex;
    gap: 8px;
}

.product-miniature-hooks .add-to-cart,
.product-miniature-hooks .quick-view {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-miniature-hooks .add-to-cart {
    background: var(--theros-blue);
    color: white;
}

.product-miniature-hooks .add-to-cart:hover {
    background: var(--theros-blue-hover);
    color: white;
    text-decoration: none;
}

.product-miniature-hooks .quick-view {
    background: var(--theros-gray-light);
    color: var(--theros-text-dark);
    border: 1px solid var(--theros-border);
}

.product-miniature-hooks .quick-view:hover {
    background: var(--theros-gray-medium);
    text-decoration: none;
    color: var(--theros-text-dark);
}

/* Pagination native PrestaShop */
.pagination-hooks .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-hooks .page-item {
    margin: 0 2px;
}

.pagination-hooks .page-link {
    padding: 8px 12px;
    border: 1px solid var(--theros-border);
    background: white;
    color: var(--theros-text-dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-hooks .page-link:hover {
    background: var(--theros-blue);
    color: white;
    border-color: var(--theros-blue);
    text-decoration: none;
}

.pagination-hooks .page-item.active .page-link {
    background: var(--theros-blue);
    color: white;
    border-color: var(--theros-blue);
}

.pagination-hooks .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-hooks .page-item.disabled .page-link:hover {
    background: white;
    color: var(--theros-text-dark);
    border-color: var(--theros-border);
}

/* Facettes natives PrestaShop */
.filter-category .facet-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theros-text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.filter-category .facet-checkbox,
.filter-category .facet-slider {
    margin-bottom: 8px;
}

.filter-category .facet-checkbox label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--theros-white);
    border: 1px solid var(--theros-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-category .facet-checkbox label:hover {
    background: var(--theros-blue);
    color: white;
    border-color: var(--theros-blue);
}

.filter-category .facet-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.filter-category .facet-label-count {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* État vide natif */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--theros-gray-dark);
}

.no-products-found .material-icons {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-products-found h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--theros-text-dark);
}

.no-products-found p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.no-products-found .btn {
    background: var(--theros-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.no-products-found .btn:hover {
    background: var(--theros-blue-hover);
    text-decoration: none;
    color: white;
}