/* ========================================
   TEXTILES PERSONNALISÉS - PAGE PRODUITS
   ======================================== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.page-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-description strong {
    color: #fff;
    font-weight: 600;
}

/* Products Section */
.products-section {
    padding: 60px 20px;
    background: #fff;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar Filters */
.filters-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Toggle button - masqué sur desktop */
.filters-toggle-mobile {
    display: none;
}

.filters-content-mobile {
    /* Sur desktop, toujours visible */
}

.filter-group {
    margin-bottom: 35px;
}

.filter-group h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

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

.filter-list li {
    margin-bottom: 10px;
}

.filter-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 5px 0;
}

.filter-list a:hover {
    color: #ff006b;
    padding-left: 8px;
}

.filter-list label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.filter-list label:hover {
    color: #ff006b;
}

.filter-list input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* Color Filters */
.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    border-color: #ff006b;
}

.color-btn.active {
    border-color: #ff006b;
    box-shadow: 0 0 0 3px rgba(255, 0, 107, 0.2);
    transform: scale(1.1);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Active filter link */
.filter-list a.active {
    color: #ff006b;
    font-weight: 600;
    padding-left: 8px;
}

.filter-list a.active::before {
    content: '→ ';
}

/* Reset button hover */
.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 107, 0.3);
}

/* Products Main Area */
.products-main {
    min-width: 0;
}

/* Sorting Bar */
.sorting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-count {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s ease;
}

.sort-select:hover {
    border-color: #ff006b;
}

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

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-bio {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.badge-fairwear {
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
}

.badge-oeko {
    background: rgba(168, 85, 247, 0.9);
    color: #fff;
}

.badge-vegan {
    background: rgba(245, 158, 11, 0.9);
    color: #fff;
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    background: linear-gradient(90deg, #ff006e, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Product Colors */
.product-colors {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-more {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.price-from {
    font-size: 12px;
    color: #999;
}

.price-amount {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-unit {
    font-size: 14px;
    color: #666;
}

/* ========================================
   PRODUCT BUTTON PERSONNALISER
   ======================================== */

/* Product Button - Sous le prix */
.product-info .nav-buttons {
    margin-top: 15px;
    width: 100%;
    display: block;
}

.product-info .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(90deg, #ff006e, #8338ec);
/* ========================================
   BOUTON CTA PRODUIT - ULTRA SPECIFIQUE
   Classe: product-cta-wrapper / product-cta-button
   ======================================== */

.product-card .product-info .product-cta-wrapper {
    margin: 15px 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    clear: both !important;
}

.product-card .product-info .product-cta-button {
    /* Reset total */
    all: unset;
    
    /* Styles de base */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    
    /* Taille et espacement */
    padding: 11px 28px !important;
    margin: 0 auto !important;
    max-width: 220px !important;
    width: auto !important;
    
    /* Apparence */
    background: linear-gradient(90deg, #ff006e, #8338ec) !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    border: none !important;
    
    /* Texte */
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    
    /* Comportement */
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.product-card .product-info .product-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3) !important;
    color: #ffffff !important;
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .product-card .product-info .product-cta-button {
        font-size: 11px !important;
        padding: 10px 24px !important;
        max-width: 200px !important;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .product-card .product-info .product-cta-wrapper {
        margin: 12px 0 0 0 !important;
    }
    
    .product-card .product-info .product-cta-button {
        width: 90% !important;
        max-width: 90% !important;
        font-size: 10px !important;
        padding: 10px 20px !important;
    }
}

/* Petit Mobile */
@media screen and (max-width: 480px) {
    .product-card .product-info .product-cta-button {
        width: 95% !important;
        max-width: 95% !important;
        font-size: 9px !important;
        padding: 9px 16px !important;
    }
}
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 20px 40px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    .products-section {
        padding: 40px 15px;
    }
    
    /* Filtres en accordéon sur mobile */
    .filters-sidebar {
        position: relative;
        background: #f8f9fa;
        border-radius: 15px;
        padding: 0;
        margin-bottom: 30px;
        overflow: hidden;
    }
    
    .filters-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: linear-gradient(90deg, #ff006e, #8338ec);
        color: white;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        border: none;
        width: 100%;
        text-align: left;
    }
    
    .filters-toggle-mobile i {
        transition: transform 0.3s ease;
        font-size: 20px;
    }
    
    .filters-toggle-mobile.active i {
        transform: rotate(180deg);
    }
    
    .filters-content-mobile {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0 20px;
    }
    
    .filters-content-mobile.expanded {
        max-height: 2000px;
        padding: 20px;
    }
    
    .filters-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-group {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .filter-group:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .filter-group h3 {
        font-size: 16px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .filter-group h3::before {
        content: '';
        width: 4px;
        height: 16px;
        background: linear-gradient(135deg, #ff006e, #8338ec);
        border-radius: 2px;
    }
    
    /* Badge du nombre de filtres actifs */
    .filters-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        height: 24px;
        background: white;
        color: #ff006e;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 700;
        padding: 0 8px;
        margin-left: 10px;
    }
    
    /* Bouton reset visible sur mobile quand filtres actifs */
    .reset-filters-btn {
        display: block !important;
        margin: 0 0 20px 0 !important;
        padding: 12px 20px !important;
        width: 100% !important;
    }
    
    .sorting-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    /* Bouton produit responsive sur mobile */
    .product-info .nav-buttons {
        margin-top: 12px;
    }
    
    .product-info .btn-primary {
        font-size: 11px;
        padding: 9px 20px;
        width: 100%;
        display: flex;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section .btn-primary {
        font-size: 16px;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Footer Grid Fix */
.footer-content .row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .footer-content .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content .row {
        grid-template-columns: 1fr;
    }
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 0 40px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 16px;
    border: none;
    border-radius: 50px;
    background: #f0f0f0;
    color: #666;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.page-btn:hover {
    background: linear-gradient(90deg, #ff006e, #8338ec);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.3);
}

.page-btn.active {
    background: linear-gradient(90deg, #ff006e, #8338ec);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.35);
}

.page-btn.page-next {
    font-size: 20px;
}

@media (max-width: 768px) {
    .page-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ========================================
   BOUTON PERSONNALISER (.penteepersonalisation)
   ======================================== */

.product-cta-wrapper {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.penteepersonalisation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(90deg, #ff006e, #8338ec);
    color: #ffffff !important;
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.25);
}

.penteepersonalisation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .penteepersonalisation {
        width: 90%;
        font-size: 11px;
        padding: 11px 20px;
    }
}

@media (max-width: 480px) {
    .penteepersonalisation {
        width: 95%;
        font-size: 10px;
        padding: 10px 16px;
    }
}