/*
Theme Name: Finifex B2B Luxury Platform
Theme URI: https://finifex.com
Description: Thème B2B premium pour plateforme de luxe multi-domaines avec gestion personnalisée des catalogues clients
Author: Finifex Team
Author URI: https://finifex.com
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finifex
Tags: e-commerce, b2b, luxury, woocommerce
*/

/* ==========================================
   VARIABLES ET CONFIGURATION GLOBALE
   ========================================== */

:root {
    --primary-color: #c9a961;
    --secondary-color: #2c2c2c;
    --text-color: #ffffff;
    --bg-dark: #000000;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --border-color: #c9a961;
    --hover-color: #d4b876;
}

/* ==========================================
   RESET ET CONFIGURATION DE BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
}

/* ==========================================
   PAGE D'ACCUEIL - HERO SECTION
   ========================================== */

.home-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    margin-bottom: 40px;
    filter: drop-shadow(0 10px 30px rgba(201, 169, 97, 0.3));
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.hero-feature::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ==========================================
   FORMULAIRES D'AUTHENTIFICATION
   ========================================== */

.auth-container {
    background: rgba(44, 44, 44, 0.95);
    padding: 40px;
    border-radius: 10px;
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-tab:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--hover-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: none;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* ==========================================
   CATALOGUE PRODUITS
   ========================================== */

.catalog-header {
    background: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.catalog-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.domain-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 20px;
    background: var(--bg-dark);
}

.domain-filter {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.domain-filter:hover,
.domain-filter.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.product-info {
    padding: 20px;
}

.product-domain {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--bg-dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 12px;
    background: var(--primary-color);
    border: none;
    color: var(--bg-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--hover-color);
}

.btn-view-details {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================
   PANIER ET COMMANDE
   ========================================== */

.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

.cart-table {
    width: 100%;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.cart-summary {
    background: var(--secondary-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 30px;
}

.order-total {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 20px 0;
}

.btn-checkout {
    width: 100%;
    padding: 20px;
    background: var(--primary-color);
    border: none;
    color: var(--bg-dark);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

/* ==========================================
   COMPTE CLIENT
   ========================================== */

.account-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.dashboard-header h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.user-domains {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.user-domain-badge {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
}

.dashboard-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.order-item {
    padding: 15px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 5px;
    margin-bottom: 15px;
}

.order-status {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.order-status.pending {
    background: #f39c12;
}

.order-status.processing {
    background: #3498db;
}

.order-status.completed {
    background: #27ae60;
}

/* ==========================================
   ADMIN PANEL
   ========================================== */

.admin-panel {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1400px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.pending-users-list {
    display: grid;
    gap: 20px;
}

.pending-user-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.domain-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.domain-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-approve,
.btn-reject {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-approve {
    background: #27ae60;
    color: white;
}

.btn-approve:hover {
    background: #229954;
}

.btn-reject {
    background: #e74c3c;
    color: white;
}

.btn-reject:hover {
    background: #c0392b;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .auth-container {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .domain-filters {
        flex-direction: column;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ==========================================
   UTILITAIRES
   ========================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/**
 * ==========================================
 * PAGE BOUTIQUE - SÉLECTEUR DE DOMAINES
 * ==========================================
 */

.finifex-shop-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.finifex-domain-selector {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.domain-selector-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.domain-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.domain-filter-btn {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.2) 100%);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.domain-filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.domain-filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.domain-filter-btn:hover {
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

.domain-filter-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.5);
}

/* Animation des produits */
.products {
    transition: opacity 0.3s ease;
}

.product {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .finifex-domain-selector {
        padding: 30px 20px;
    }
    
    .domain-selector-title {
        font-size: 1.4rem;
    }
    
    .domain-filter-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .domain-buttons {
        gap: 15px;
    }
}

/**
 * ==========================================
 * CATALOGUE - CORRECTIONS LAYOUT
 * ==========================================
 */

.finifex-view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid #eee;
}

.view-toggle-btn {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.view-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-toggle-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #000 !important;
    font-weight: 700;
}

/* Zone des produits sur fond gris */
.products-container {
    background: #f5f5f5 !important;
    padding: 40px 20px !important;
    min-height: 500px;
}

.products {
    background: transparent !important;
}

/**
 * ==========================================
 * AFFICHAGE GRILLE DES PRODUITS
 * ==========================================
 */

.finifex-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px !important;
    list-style: none !important;
    margin: 0 !important;
}

.finifex-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column;
}

.finifex-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

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

/* Image produit */
.product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.product-stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.product-stock-badge span {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.in-stock {
    background: #4CAF50 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.out-of-stock {
    background: #f44336 !important;
    color: #fff !important;
    font-weight: 700 !important;
}

/* Informations produit */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stock-quantity {
    font-size: 0.85rem;
    color: #4CAF50 !important;
    font-weight: 700 !important;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.stock-quantity.out {
    color: #f44336 !important;
    font-weight: 700 !important;
    background: rgba(244, 67, 54, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .button {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.product-actions .add_to_cart_button {
    background: var(--primary-color);
    color: #000;
    border: none;
}

.product-actions .button-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .finifex-products-grid {
        grid-template-columns: 1fr !important;
    }
}

/**
 * ==========================================
 * AFFICHAGE LISTE DES PRODUITS
 * ==========================================
 */

.finifex-products-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
    list-style: none !important;
}

.finifex-products-list .finifex-product-card {
    display: flex !important;
    flex-direction: row !important;
    max-width: 100% !important;
}

.finifex-products-list .product-card-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.finifex-products-list .product-image {
    width: 250px;
    flex-shrink: 0;
}

.finifex-products-list .product-image img {
    height: 100%;
    object-fit: cover;
}

.finifex-products-list .product-info {
    flex: 1;
    padding: 20px 30px;
}

.finifex-products-list .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.finifex-products-list .product-actions {
    flex-direction: row;
    max-width: 400px;
}

/* Responsive Liste */
@media (max-width: 768px) {
    .finifex-products-list .product-card-inner {
        flex-direction: column;
    }
    
    .finifex-products-list .product-image {
        width: 100%;
    }
}

/**
 * ==========================================
 * PAGINATION
 * ==========================================
 */

.finifex-pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.finifex-pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.finifex-pagination li a,
.finifex-pagination li span {
    display: block;
    padding: 12px 20px;
    background: white;
    border: 2px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.finifex-pagination li a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.finifex-pagination li .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

/**
 * ==========================================
 * UNIFORMISATION DES BOUTONS PRODUITS
 * ==========================================
 */

/* Container des boutons */
.product-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* Forcer tous les boutons à avoir la même taille */
.product-actions .button,
.product-actions a.button,
.product-actions .added_to_cart,
.product-actions .add_to_cart_button,
.product-actions .product_type_simple,
.product-actions .product_type_variable {
    flex: 1 1 calc(50% - 5px) !important;
    min-height: 44px !important;
    padding: 12px 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Bouton Ajouter au panier / Lire la suite */
.product-actions .add_to_cart_button,
.product-actions .product_type_simple,
.product-actions .product_type_variable {
    background: var(--primary-color) !important;
    color: #000 !important;
    border: none !important;
}

/* Bouton Voir détails */
.product-actions .button-secondary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

/* Hover */
.product-actions .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Supprimer le bouton "Lire la suite" après ajout au panier */
.product-actions a.added_to_cart {
    display: none !important;
}

/* Vue Liste - Boutons plus larges */
.finifex-products-list .product-actions {
    max-width: 100% !important;
}

.finifex-products-list .product-actions .button {
    flex: 1 1 auto !important;
}

/**
 * ==========================================
 * HEADER UTILISATEUR ET PANIER (COMPACT À DROITE)
 * ==========================================
 */

/* Container principal - flex horizontal */
.finifex-domain-selector {
    position: relative !important;
}

.finifex-user-header-inline {
    position: absolute !important;
    top: 20px !important;
    right: 40px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Section utilisateur - colonne */
.user-info-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

.logout-link {
    color: rgba(201, 169, 97, 0.7);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.logout-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Section panier - compact */
.cart-section {
    position: relative;
    flex-shrink: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cart-link:hover {
    background: #d4b876;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid #1a1a1a;
}

.cart-total {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .finifex-user-header-inline {
        position: static !important;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid rgba(201, 169, 97, 0.3) !important;
    }
}



/**
 * ==========================================
 * PAGE PRODUIT INDIVIDUELLE
 * ==========================================
 */

.finifex-product-page {
    background: #f5f5f5;
    min-height: 100vh;
}

/* Header avec bouton retour */
.finifex-product-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.back-to-catalogue {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-to-catalogue:hover {
    color: #d4b876;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info-small {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.user-info-small img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.cart-link-small {
    background: var(--primary-color);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
}

/* Contenu produit */
.finifex-product-content {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-title {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.product-price-section {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.in-stock-text {
    color: #4CAF50;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
}

.out-of-stock-text {
    color: #f44336;
    font-weight: 600;
    background: rgba(244, 67, 54, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
}

.product-description h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-add-to-cart .button {
    background: var(--primary-color);
    color: #000;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-add-to-cart form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-add-to-cart .quantity input {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.product-add-to-cart .button:hover {
    background: #d4b876;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-full-description {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-full-description h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-full-description p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.category-badge {
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .finifex-product-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/**
 * ==========================================
 * NOTIFICATION PANIER
 * ==========================================
 */

.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}