/* Styles spécifiques à la page Produits */

/* En-tête de la page */
.product-header {
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('images/watches-banner.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    margin-top: 80px;
}

.product-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.product-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.product-header p {
    font-size: 1.1rem;
    max-width: 700px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Navigation des marques */
.brands-navigation {
    background-color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 80px;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.brands-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brands-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    color: var(--rich-black);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.brand-nav-item:hover, .brand-nav-item.active {
    opacity: 1;
    transform: translateY(-5px);
    color: var(--gold);
}

.brand-nav-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: none;
    max-width: 100%;
    object-fit: contain;
}

.brand-nav-item span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--rich-black);
}

/* Filtres de produits */
.product-filters {
    background-color: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.filter-group {
    text-align: center;
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-family: 'Playfair Display', serif;
    color: var(--rich-black);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--mid-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::after {
    left: 100%;
}

/* Sections de produits */
.product-section {
    padding: 5rem 0;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-section:last-child {
    border-bottom: none;
}

.brand-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-logo-header {
    height: 70px;
    width: auto;
    margin-bottom: 1.5rem;
}

.brand-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    color: var(--rich-black);
    font-weight: 500;
}

.brand-header p {
    font-size: 1rem;
    color: var(--mid-gray);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Grille de produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Carte de produit */
.product-card {
    background-color: var(--white);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-image {
    position: relative;
    height: 280px;
    background-color: var(--cream);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mid-gray);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--rich-black);
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--gold);
}

.product-subtitle {
    font-size: 0.85rem;
    color: var(--mid-gray);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.product-price {
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.price-amount {
    font-size: 1.3rem;
    color: var(--rich-black);
    font-weight: 600;
}

.order-btn {
    width: 100%;
    padding: 0.9rem;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    font-weight: 600;
}

.order-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Panier */
.cart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    border-radius: 50%;
    padding: 0.8rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animations de filtrage */
.product-card {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.product-section.hidden {
    display: none;
}

/* Bouton retour en haut de page */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--dark-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Styles pour la popup du panier */
.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.cart-popup-wrapper {
    background-color: var(--white);
    border-radius: 4px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: popupEntry 0.4s ease forwards;
}

.close-cart-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
    font-size: 1.2rem;
    color: var(--rich-black);
    transition: all 0.3s ease;
}

.close-cart-popup:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.cart-popup-content {
    padding: 2rem;
}

.cart-popup-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--rich-black);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.8rem;
}

.cart-popup-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    padding-right: 1rem;
}

.cart-item-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--rich-black);
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--mid-gray);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 500;
    color: var(--rich-black);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.cart-quantity-decrease,
.cart-quantity-increase {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--mid-gray);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.cart-quantity-decrease:hover,
.cart-quantity-increase:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.cart-quantity-input {
    width: 40px;
    height: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--rich-black);
    margin: 0 0.5rem;
    appearance: none;
    -moz-appearance: textfield;
}

.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    font-weight: 600;
    color: var(--gold);
    margin: 0 1rem;
    width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    cursor: pointer;
    color: var(--mid-gray);
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background-color: #ff4646;
    color: var(--white);
    border-color: #ff4646;
}

.cart-summary {
    background-color: var(--cream);
    padding: 1.5rem;
    border-radius: 0 0 4px 4px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-total span:first-child {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--rich-black);
}

.cart-total-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 2px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}

.cart-checkout-btn:hover {
    background: var(--dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cart-clear-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: var(--mid-gray);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cart-clear-btn:hover {
    background: #f8f8f8;
    color: #ff4646;
    border-color: #ff4646;
}

@keyframes popupEntry {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .brands-nav-list {
        gap: 0.5rem;
    }
}

@media screen and (max-width: 768px) {
    .product-header h1 {
        font-size: 2.2rem;
    }
    
    .product-header {
        height: 250px;
    }
    
    .brand-logo-header {
        height: 50px;
    }
    
    .brand-header h2 {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .brands-navigation {
        top: 60px;
        padding: 1rem 0;
    }
    
    .brand-nav-logo {
        height: 30px;
    }
    
    .brand-nav-item span {
        font-size: 0.7rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
        padding: 1rem 0;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-info {
        width: calc(100% - 60px - 1rem);
        margin-bottom: 0.5rem;
    }
    
    .cart-item-quantity {
        order: 3;
        margin: 0.5rem 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .cart-item-total {
        order: 4;
        margin: 0;
        text-align: left;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 0;
    }
}

@media screen and (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    
    .product-header h1 {
        font-size: 1.8rem;
    }
    
    .product-header p {
        font-size: 1rem;
    }
    
    .filter-options {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .brands-nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
    }
    
    .brand-nav-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
    }
    
    .brands-nav-container {
        padding: 0 1rem;
    }
}


.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* couleur normale */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #E1306C; /* couleur officielle Instagram au hover */
  }

  .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* Couleur normale */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #1877F2; /* Bleu officiel Facebook au survol */
  }
  

  .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* Couleur normale */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #E60023; /* Couleur officielle Pinterest au hover */
  }
  
  .social-icons svg {
    width: 24px;
    height: 24px;
    fill: #000; /* ou blanc #fff selon ton design */
    transition: fill 0.3s;
  }
  
  .social-icons a:hover svg {
    fill: #69C9D0; /* couleur officielle TikTok ou autre couleur au survol */
  }
  