/*
Theme Name: For Brothers Only
Theme URI: https://forbrothersonly.xyz
Author: FBO
Description: Theme e-commerce editorial custom pour FOR BROTHERS ONLY. WooCommerce, Polylang, mini-cart AJAX.
Version: 2.0.0
Requires PHP: 7.4
Text Domain: forbrothersonly
*/

:root {
  --main-orange: rgb(233, 89, 33);
  --main-grey: #ccc;
  --main-white: #fff;
  --main-black: #000;
  /* Mini-cart - ajuster ici pour contrôler la transparence */
  --minicart-bg: rgba(0, 0, 0, 0.85);
  --minicart-blur: 10px;
  --minicart-overlay-bg: rgba(0, 0, 0, 0.5);
}

/* Reset and base styles */
html,
body {
  scroll-behavior: smooth;
  height: 100%;
  /* FIX: supprimé max-height: 100vh qui bloquait le scroll sur certains navigateurs */
  margin: 0;
  font-family: "bebas-neue", sans-serif;
  text-transform: uppercase;
  background-color: var(--main-black);
  color: var(--main-white);
}

.promo-code {
  color: red; /* ou #ff0000, ou la couleur que tu veux */
  font-weight: 700; /* optionnel : met le code en gras */
}

html {
  font-size: 16px;
}
body {
  font-size: 1rem;
}
/*cart*/
html.woocommerce-cart body,
html.woocommerce-cart,
body.woocommerce-cart {
  margin: 2vw !important;
}

.product-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.wp-block-woocommerce-proceed-to-checkout-block a {
  background-color: var(--main-white); /* Couleur de fond blanc */
  color: var(--main-black); /* Texte noir */
  text-decoration: none; /* Pas de soulignement */
  border: 2px solid var(--main-black); /* Ajout d'une bordure noire pour le style */
  padding: 10px 20px; /* Padding pour augmenter la taille du bouton */
  border-radius: 5px; /* Coins arrondis */
}

.wp-block-woocommerce-proceed-to-checkout-block a:hover {
  background-color: #f8f8f8; /* Couleur de fond au survol */
  color: #333; /* Texte plus sombre au survol */
  text-decoration: none; /* Toujours pas de soulignement */
}

a.wc-block-components-product-name {
  color: var(--main-white); /* Définit la couleur du texte en blanc */
  text-decoration: none; /* Enlève le soulignement du texte */
}

a.wc-block-components-product-name:hover {
  color: grey; /* Change la couleur au survol pour indiquer que c'est un lien */
  text-decoration: underline; /* Ajoute un soulignement au survol si souhaité */
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background-color: transparent;
  color: var(--main-white);
  position: absolute; /* Fixed position to overlay on the page */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  z-index: 1000; /* Ensures the navbar is on top of other content */
  box-sizing: border-box;
}

.nav-links ul {
  padding: 0;
  margin: 0;
  list-style-type: none; /* Enlève les puces */
}

.nav-links li {
  display: inline-block; /* ou 'inline' selon le besoin */
  margin-right: 20px; /* Ajoute de l'espace entre les liens */
}
.nav-links a {
  color: var(--main-white);
  margin-right: 20px;
  text-decoration: none;
  font-size: 1.3em;
}
.navbar-logo,
.cart-icon {
  width: clamp(40px, 8vw, 60px);
  height: auto;
  cursor: pointer;
}

.heart-icon {
  padding: 1em;
  height: 4.3vw;
  width: auto;
  cursor: pointer;
}

.navbar-logo {
  display: none;
}
.navbar-cart {
  display: flex;
  align-items: center;
  justify-content: space-between; /* This will apply space between the two images */
  padding-top: 10px; /* Adjusted for max-width: 1200px */
  z-index: 500;
}

.language-switcher .lang-btn {
  display: inline-block; /* Affiche le bouton en ligne */
  font-family: Swiss721BT, sans-serif; /* Réutilise la police existante */
  text-transform: uppercase; /* Utilise la transformation de texte en majuscule */
  background-color: transparent; /* Pas de fond */
  color: var(--main-white); /* Texte blanc */
  padding: 10px 20px; /* Espacement interne du texte */
  text-decoration: none; /* Supprime le soulignement du lien */
  font-size: 1.3em; /* Taille de police ajustée */
  cursor: pointer; /* Curseur en pointeur */
  transition: opacity 0.3s ease; /* Transition douce sur l'opacité */
}

.language-switcher .lang-btn:hover {
  opacity: 0.7; /* Réduit l'opacité au survol */
}

/*navbar bis */

.navbar-bis {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.1em;
  background-color: transparent;
  color: var(--main-white);
  position: absolute; /* Fixed position to overlay on the page */
  right: 0;
  z-index: 1000; /* Ensures the navbar is on top of other content */
  box-sizing: border-box;
}

/* Ajustement de l'image dans la navbar */

body[class*="woocommerce"] .heart-icon-bis,
.heart-icon-bis {
  height: clamp(40px, 4vw, 80px) !important;
  width: auto;
  margin-right: clamp(10px, 2vw, 32px);
  padding: 0;
}

/* Section 1: Image with logo */
.section1 {
  position: relative;
  width: 100%;
  height: 100vh; /* Full height */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(70px, 15vw, 120px); /* min 70px, idéal 15vw, max 120px */
  height: auto;
  display: block;
}

/* Section */
.section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  min-height: 288px; /* Adjusted for max-width: 1200px */
  box-sizing: border-box;
}

/* About Section */
.about_section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 2rem;
}

.about_section h2,
.about-paragraph {
  flex: 1; /* Prend 50% de la largeur */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.about_section h2 {
  font-size: 4em;
  color: var(--main-orange);
  margin: 0;
}

.about-paragraph p {
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}

/* Product Sections */
.tee-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 40rem; /* Largeur max pour garder un bon look sur desktop */
}

.product-link {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 460px; /* Définir une hauteur fixe pour tous les liens de produit */
  width: 100%;
}

.tee-box h2 {
  font-size: 2.2em; /* Adjusted for readability */
}

.product_section img {
  width: 60vw;
  max-width: 28rem;
  height: auto;
  aspect-ratio: 1 / 1; /* carré, ou 4/5, ou 3/4 selon ton besoin */
  object-fit: cover; /* ou contain selon le rendu désiré */
  display: block;
}

.product-details {
  text-align: center; /* Center-align all elements within product-details */
  width: 50vw; /* Adjusted for max-width: 1200px */
}

.product-details > * {
  margin-bottom: 1em; /* Adds space between each direct child of product-details */
}

.product-details h3,
.product-details p {
  font-size: 2em; /* Adjusted for max-width: 1200px for better readability */
}

.sizes {
  display: flex;
  justify-content: center; /* Center-align the buttons horizontally */
  align-items: center; /* Center-align the buttons vertically */
}

.btn_option {
  background: none;
  color: inherit;
  margin: 0.3em 0;
  font-size: 1em;
  font-weight: 500;
}

.btn {
  font-size: 1.1rem;
  padding: 0.5em 1.1em;
  border: none;
  cursor: pointer;
  border-radius: 0.3em;
  background: none;
  color: inherit;
  outline: none;
  text-transform: uppercase;
}

.btn_size {
  background-color: var(--main-grey);
  color: var(--main-black);
  margin: 0 0.5em;
  font-weight: 500;
}

.btn_size.selected {
  background-color: var(--main-orange);
  color: var(--main-white);
}

.sizes button:hover {
  opacity: 0.7; /* Reduced opacity on hover */
}

.hover_class {
  cursor: pointer;
  transition: opacity 0.2s ease; /* Transition for opacity */
}

.hover_class:hover {
  opacity: 0.7; /* Reduced opacity on hover */
}

/* FIX: supprimé .sizes button.selected dupliqué - déjà géré par .btn_size.selected */

.btn_cart {
  min-width: 300px; /* Définit une largeur minimale pour les boutons */
  max-width: 50vw; /* Définit une largeur maximale en fonction de la largeur de la fenêtre */
  width: 40vw; /* Largeur du bouton en fonction de la largeur de la fenêtre */
  background-color: var(--main-orange);
  color: var(--main-white);
  border: none; /* Remove button border */
  cursor: pointer; /* Add pointer cursor for clickable buttons */
  font-weight: bold;
  transition: transform 0.3s ease; /* Transition for smooth transform effect */
}

/* Hover effect for the cart button */
.btn_cart:hover,
.btn_cart:focus {
  transform: scale(1.02);
}

/* Styles for the cart count */
.cart-count {
  background-color: rgba(
    205,
    198,
    198,
    0.877
  ); /* Pas de variable ici, transparent, donc inchangé */
  color: var(--main-white); /* Text color for the cart count */
  border-radius: 50%; /* Make the badge round */
  width: 1.2em; /* Fixed width to ensure it's round */
  height: 1.3em; /* Fixed height to ensure it's round */
  display: flex; /* Use flexbox to center the text */
  align-items: center; /* Vertically center the text */
  justify-content: center; /* Horizontally center the text */
  position: absolute; /* Position the badge */
  top: 55px; /* Adjust as needed */
  right: 85px; /* Adjust as needed */
  font-size: 1em; /* Font size for the cart count */
  font-weight: bold; /* Make the text bold */
  z-index: 500;
}

.product-details select {
  padding: 10px;
  font-size: 1.1em; /* FIX: était 4em (résidu de debug) */
  margin-bottom: 20px;
  width: 100%;
}

.product-details hr {
  border: 1px solid var(--main-grey);
  margin-right: 2em;
  margin-left: 2em;
}
/* boutton de selection */
/* Add styling as needed for the additional options */
.additional-options {
  text-align: center;
}

.additional-options button {
  background-color: transparent; /* Rend le fond du bouton transparent */
  color: inherit; /* Utilise la couleur de texte du parent */
  border: none; /* Supprime la bordure du bouton */
  padding: 0.625rem 1.25rem; /* Ajuste le padding pour contrôler la taille du bouton */
  font-size: 1.2em; /* Augmente la taille du texte */
  cursor: pointer; /* Garde le curseur en forme de pointeur pour indiquer qu'il est cliquable */
  width: auto; /* Ajuste automatiquement la largeur en fonction du contenu */
  display: inline-block; /* Assure que les boutons s'alignent correctement avec le texte */
  margin: 5px 0; /* Ajoute un peu d'espace au-dessus et en dessous du bouton */
}

.additional-options hr {
  border: 1px solid var(--main-grey);
  margin-right: 2em;
  margin-left: 2em;
}

.additional-options ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: none; /* Changez ici de visibility à display */
}

/*li { display: list-item; }*/

.additional-options ul li {
  font-size: 0.8em;
  margin-bottom: 10px;
  /*display: block;  Assurez-vous que cela est défini pour que les items de liste apparaissent */
  color: var(--main-white);
}

.additional-options ul.show {
  display: block; /* Ajoutez cette règle pour afficher les listes */
}

.instagram-icon i {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-size: 40px;
  color: var(--main-white);
  cursor: pointer;
}

/* FIX: styles pour l'icône Instagram en SVG (remplacement Font Awesome) */
.instagram-icon svg {
  display: block;
  margin: 0 auto;
  padding: 20px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.instagram-icon svg:hover {
  opacity: 0.7;
}

.instagram-icon a {
  text-decoration: none;
}
/*------------------------- ACCOUNT FORM ----------------------------------*/

/*------------------------- CART MODIFICATION ----------------------------------*/

@media (max-width: 1200px) {
  .navbar-logo,
  .cart-icon {
    height: 40px; /* Ajuster selon le besoin */
    width: auto; /* Maintenir le ratio aspect en ajustant la hauteur */
  }

  .additional-options ul li {
    font-size: 0.8em;
  }
  .section {
    min-height: 18rem; /* 288px → 18rem */
    padding: 2rem 0;
  }

  .about_section h2 {
    font-size: clamp(2rem, 7vw, 4em);
  }

  .about_section p {
    font-size: 1.5em; /* Taille de police réduite pour une meilleure lisibilité */
  }

  .product-details p {
    font-size: 2em; /* Taille de police réduite pour une meilleure lisibilité */
  }
  .product-details h3 {
    font-size: 2em; /* Taille de police réduite pour une meilleure lisibilité */
  }
  .product-details > * {
    margin-bottom: 15px;
  }
  .sizes button,
  .btn_cart,
  .additional-options button {
    font-size: 1.5em; /* Taille de police des boutons ajustée */
    padding: 10px 15px; /* Ajuster le padding pour réduire la taille des boutons */
  }
}

@media (max-width: 576px) {
  .navbar-cart {
    flex-direction: column;
  }

  .nav-links.mobile-menu {
    margin: 0;
  }
  .navbar {
    padding: 35px 25px; /* Ajuster le padding pour réduire la taille des boutons */
  }
  .navbar-logo,
  .cart-icon {
    min-height: 35px; /* Ajuster selon le besoin */
    width: auto; /* Maintenir le ratio aspect en ajustant la hauteur */
  }

  .heart-icon {
    min-height: 35px; /* Ajuster selon le besoin */
  }

  .navbar-logo {
    display: block;
    z-index: 2;
    padding-top: 10px;
  }

  .nav-links {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(231, 235, 241, 0.249);
    backdrop-filter: blur(7px);
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    margin-left: -100%;
    transition: all 0.5s ease;
  }

  .nav-links ul {
    display: flex; /* Revenir au display par défaut des ul */
    padding: revert; /* Remettre le padding par défaut */
    margin: revert; /* Remettre la marge par défaut */
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    display: list-item; /* Remettre le display par défaut pour li */
  }

  .nav-links ul li {
    margin: 20px 0;
    font-size: 1.2em;
  }

  .section {
    flex-direction: column;
    min-height: 288px;
  }

  .product_section img {
    width: 80vw;
    max-width: 22rem;
  }
  .product-details {
    width: 100%;
  }

  .product-details p {
    font-size: 2em; /* Taille de police réduite pour une meilleure lisibilité */
    padding-left: 25px;
    margin-top: -2px;
    margin-bottom: 25px;
  }

  .product-link {
    max-height: 280px; /* Définir une hauteur fixe pour tous les liens de produit */
  }

  .tee-box {
    width: 100vw;
  }

  .about_section h2 {
    font-size: 2.5em;
    margin: 0.7em 0 0em 0;
  }
  .about_section p {
    font-size: 1em; /* Adjusted for max-width: 1200px */
  }

  .btn_cart {
    width: 85vw;
    max-width: 400px; /* Limite la largeur maximale pour les écrans plus larges */
  }

  .cart-count {
    top: 70px; /* Adjust as needed */
    right: 35px; /* Adjust as needed */
  }
}

/* === GRID PRODUITS: 2 par ligne (desktop), 1 (mobile) === */
/* Base (mobile) */
.product_section {
  display: grid;
  grid-template-columns: 1fr; /* 1 colonne par défaut */
  gap: 3rem 2rem;
  align-items: start;
}

/* Desktop : 2 colonnes dès 768px (exemple) */
@media (min-width: 768px) {
  .product_section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: titres produits centrés */
@media (max-width: 576px) {
  .product_section .tee-box h2 {
    width: 100%;
    text-align: center;
    line-height: 1.1;
    margin: 0.4em 0;
    /* taille un peu réduite pour éviter la casse trop tôt */
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
  }
}

/* --- Base mobile (≤576px) : plus compact par défaut (maillots) --- */
@media (max-width: 576px) {
  .product_section img.product-image {
    width: 75vw;
    max-width: 18rem; /* base plus petite = OK pour maillots */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* T-shirts → plus grand en mobile */
  .product-container[data-product="89"]  img.product-image,  /* tee noir */
  .product-container[data-product="330"] img.product-image {
    /* tee rose */
    width: 85vw;
    max-width: 24rem;
  }
}

/* --- Desktop (≥768px) : 2 colonnes, ajuste les tailles --- */
@media (min-width: 768px) {
  /* Base raisonnable */
  .product_section img.product-image {
    width: 100%;
    max-width: 24rem;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  /* Maillots → un peu plus petit */
  .product-container[data-product="356"] img.product-image,  /* maillot noir */
  .product-container[data-product="235"] img.product-image,  /* maillot orange */
  .product-container[data-product="368"] img.product-image {
    /* maillot bleu */
    max-width: 22rem;
  }

  /* T-shirts → un peu plus grand */
  .product-container[data-product="89"]  img.product-image,  /* tee noir */
  .product-container[data-product="330"] img.product-image {
    /* tee rose */
    max-width: 22rem;
  }
}

/* ===== Promo banner ===== */
#promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  z-index: 2000;
  backdrop-filter: saturate(120%) blur(2px);
  display: none; /* caché par défaut, montré via JS */
}
#promo-banner .promo-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  line-height: 1.2;
}
#promo-banner .promo-text {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  letter-spacing: 0.02em;
}
#promo-banner .promo-close {
  margin-left: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 1.1rem;
  line-height: 1;
}
#promo-banner .promo-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* décale le contenu quand le bandeau est visible (évite le chevauchement) */
body.with-promo {
  padding-top: 46px;
}
@media (max-width: 576px) {
  body.with-promo {
    padding-top: 52px;
  }
}

/* ===== Mini-cart sidebar ===== */
.minicart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--minicart-overlay-bg);
  z-index: 2999;
}
.minicart-overlay.open {
  display: block;
}

.minicart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background-color: var(--minicart-bg);
  backdrop-filter: blur(var(--minicart-blur));
  -webkit-backdrop-filter: blur(var(--minicart-blur));
  color: var(--main-white);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-family: "bebas-neue", sans-serif;
  text-transform: uppercase;
}
.minicart-sidebar.open {
  transform: translateX(0);
}

.minicart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.minicart-title {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}
.minicart-close {
  background: none;
  border: none;
  color: var(--main-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: opacity 0.2s ease;
}
.minicart-close:hover {
  opacity: 0.6;
}

.minicart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

/* Item individuel */
.minicart-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.minicart-item:last-child {
  border-bottom: none;
}

.minicart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.minicart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.minicart-item-name {
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.minicart-item-meta {
  font-size: 0.8rem;
  color: #888;
}
.minicart-item-price {
  font-size: 1.1rem;
  color: var(--main-orange);
  font-weight: bold;
}

.minicart-item-remove {
  background: none;
  border: none;
  color: #555;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.minicart-item-remove:hover {
  color: #fff;
}

/* Message panier vide */
.minicart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 1.1rem;
}

/* Footer mini-cart */
.minicart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.minicart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
#minicart-total-price {
  color: var(--main-orange);
  font-weight: bold;
}

.minicart-checkout-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.9rem;
  background-color: var(--main-orange);
  color: var(--main-white);
  text-decoration: none;
  font-size: 1.2rem;
  font-family: "bebas-neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}
.minicart-checkout-btn:hover {
  background-color: #d44f1a;
}

/* Mini-cart ne bloque plus le scroll de la page */

@media (max-width: 576px) {
  .minicart-sidebar {
    width: 100vw;
    max-width: 100vw;
  }
  .minicart-item-img {
    width: 60px;
    height: 60px;
  }
}

/* =============================================================
   FBO - EDITORIAL REVAMP 2026
   New topbar + editorial grid + CAN section + split about
   ============================================================= */

/* ── Global adjustments ── */
html {
  scroll-padding-top: 64px;
}

/*
 * WordPress admin bar fix
 * Quand l'utilisateur est connecté, WP injecte .admin-bar sur <body>
 * et ajoute html { margin-top: 32px } - la topbar fixe doit compenser.
 */
.admin-bar .fbo-topbar {
  top: 32px;
}
.admin-bar .topbar-drawer {
  top: calc(32px + 52px); /* admin bar + topbar height */
}
@media screen and (max-width: 782px) {
  /* Sur mobile WP réduit l'admin bar à 46px */
  .admin-bar .fbo-topbar {
    top: 46px;
  }
  .admin-bar .topbar-drawer {
    top: calc(46px + 52px);
  }
}

/* ── FBO Topbar - référence 3 colonnes ── */
.fbo-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  background: transparent;
  z-index: 1000;
  box-sizing: border-box;
}

/* col 1 - Brand */
.topbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.topbar-brand-link {
  text-decoration: none;
  line-height: 1;
}
.topbar-logo {
  width: clamp(36px, 5vw, 52px);
  height: auto;
  display: block;
}

/* col 2 - Nav links */
.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.topbar-nav-link {
  font-family: "bebas-neue", sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.topbar-nav-link:hover {
  color: var(--main-white);
}

/* col 3 - Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
}

/* Language btn */
.topbar-lang-btn {
  font-family: "bebas-neue", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}
.topbar-lang-btn:hover {
  color: var(--main-white);
}

/* Cart button */
.topbar-cart-btn {
  font-family: "bebas-neue", sans-serif;
  font-size: 0.85rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.topbar-cart-btn:hover {
  color: var(--main-white);
}
.topbar-cart-count {
  color: var(--main-orange);
}

/* ── Hero editorial title ── */
.hero-editorial-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 2.5rem 3rem;
}
.hero-editorial-title {
  font-family: "bebas-neue", sans-serif;
  font-size: clamp(62px, 11.5vw, 180px);
  color: var(--main-white);
  letter-spacing: -0.05em;
  line-height: 0.88;
  margin: 0;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* Hero centered logo */
.section1 .logo {
  display: block;
}

/* Language switcher */
.topbar-lang-btn {
  font-family: "bebas-neue", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}
.topbar-lang-btn:hover {
  color: var(--main-white);
}

/* Hamburger (desktop: hidden) */
.topbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  grid-column: 3;
  justify-self: end;
}
.topbar-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--main-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.topbar-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.topbar-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.topbar-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer - display:none par défaut pour ne jamais occuper d'espace en flux normal */
.topbar-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 2rem 2.5rem;
  gap: 0;
  z-index: 999;
}
.topbar-drawer.open {
  display: flex;
}
.drawer-link {
  font-family: "bebas-neue", sans-serif;
  font-size: 2.2rem;
  color: var(--main-white);
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}
.drawer-link:hover {
  color: var(--main-orange);
}
.drawer-cart-btn {
  font-family: "bebas-neue", sans-serif;
  font-size: 1.6rem;
  background: var(--main-orange);
  border: none;
  color: var(--main-white);
  padding: 0.6rem 0;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  text-align: center;
}

/* Mobile topbar adjustments */
@media (max-width: 768px) {
  .fbo-topbar {
    grid-template-columns: 1fr auto;
    padding: 0 1.2rem;
  }
  .topbar-nav,
  .topbar-actions {
    display: none;
  }
  .topbar-hamburger {
    display: flex;
    grid-column: 2;
  }
  /* Hero title smaller on mobile */
  .hero-editorial-wrap {
    padding: 0 1.2rem 2rem;
  }
}

@media (max-width: 480px) {
  .topbar-brand {
    display: none;
  }
  .hero-editorial-title {
    font-size: clamp(48px, 16vw, 90px);
  }
}

/* ── Editorial Sections ── */
.editorial-section {
  padding: 5rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.editorial-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.section-num {
  font-size: 0.72rem;
  color: var(--main-orange);
  letter-spacing: 0.18em;
}
.section-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
}
.section-title {
  font-family: "bebas-neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--main-white);
  text-align: right;
}

@media (max-width: 576px) {
  .editorial-section {
    padding: 3rem 1.2rem;
  }
  .editorial-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .section-title {
    text-align: left;
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* ── Editorial Grid (shared by both product sections) ── */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.editorial-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.editorial-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
/* Remove right border on last column */
.editorial-grid .editorial-card:nth-child(4n) {
  border-right: none;
}
.editorial-grid.col-3 .editorial-card:nth-child(3n) {
  border-right: none;
}

.card-archive-num {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.12em;
  padding: 0.9rem 1rem 0;
}

/* Product image */
.card-image-wrap {
  overflow: hidden;
  background: #080808;
  flex-shrink: 0;
}
.card-image-wrap a {
  display: block;
}
.card-image-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.editorial-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

/* Card meta (title / price) */
.card-meta {
  padding: 1rem 1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex: 1;
}
.card-category {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.14em;
}
.card-title {
  font-family: "bebas-neue", sans-serif;
  font-size: 1.05rem;
  color: var(--main-white);
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.card-price {
  font-size: 1rem;
  color: var(--main-orange);
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Card actions (sizes + add to cart) */
.card-actions {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card-actions .sizes {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.card-actions .btn_size {
  font-size: 0.78rem;
  padding: 0.22em 0.6em;
  margin: 0;
  min-width: 34px;
  border-radius: 2px;
}
.card-actions .btn_cart {
  width: 100%;
  min-width: unset;
  max-width: unset;
  font-size: 0.88rem;
  padding: 0.55em 1em;
  border-radius: 0;
}

/* Card accordion */
.card-accordion {
  padding: 0 1rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.card-accordion .btn_option {
  font-size: 0.75rem;
  padding: 0.4rem 0;
  letter-spacing: 0.08em;
}
.card-accordion hr {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0.1rem 0;
}
.card-accordion ul li {
  font-size: 0.72rem;
}

/* Grid responsive */
@media (max-width: 1100px) {
  .editorial-grid,
  .editorial-grid.col-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-grid .editorial-card:nth-child(4n),
  .editorial-grid.col-3 .editorial-card:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .editorial-grid .editorial-card:nth-child(2n),
  .editorial-grid.col-3 .editorial-card:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 576px) {
  .editorial-grid,
  .editorial-grid.col-3 {
    grid-template-columns: 1fr;
  }
  .editorial-card {
    border-right: none !important;
  }
  .card-image-wrap img {
    height: 220px;
  }
}

/* ── CAN Jersey Placeholder Cards ── */
.can-jersey-placeholder {
  width: 100%;
  height: 260px;
  background: #080808;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Top stripe - country colors */
.can-jersey-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.can-card[data-jersey="angola"] .can-jersey-placeholder::before {
  background: linear-gradient(90deg, #000 33.3%, #CC0000 33.3%, #CC0000 66.6%, #FCD116 66.6%);
}
.can-card[data-jersey="mali"] .can-jersey-placeholder::before {
  background: linear-gradient(90deg, #CE1126 33.3%, #FCE700 33.3%, #FCE700 66.6%, #00A651 66.6%);
}
.can-card[data-jersey="cameroon"] .can-jersey-placeholder::before {
  background: linear-gradient(90deg, #007A5E 33.3%, #CE1126 33.3%, #CE1126 66.6%, #FCD116 66.6%);
}
.can-card[data-jersey="drc"] .can-jersey-placeholder::before {
  background: linear-gradient(90deg, #007FFF 50%, #CE1126 50%);
}

/* Watermark jersey number */
.can-watermark-num {
  position: absolute;
  font-family: "bebas-neue", sans-serif;
  font-size: 11rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.can-placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1rem;
}
.can-country-name {
  font-family: "bebas-neue", sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.18em;
}
.can-player-name {
  font-family: "bebas-neue", sans-serif;
  font-size: 2rem;
  color: var(--main-white);
  letter-spacing: 0.06em;
  line-height: 1;
}
.can-jersey-num {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}
.can-dial-code {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}
.can-coming-soon {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2em 0.7em;
  text-transform: uppercase;
}

/* CAN section note */
.can-section-note {
  margin-top: 2rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
  text-align: center;
}
.card-price.can-soon-label {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  font-weight: normal;
  letter-spacing: 0.1em;
}

@media (max-width: 576px) {
  .can-jersey-placeholder {
    height: 220px;
  }
}

/* ── Editorial Split - About Section ── */
.editorial-split {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 70vh;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.editorial-split-image {
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
}
.editorial-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.editorial-split-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.05);
  font-family: "bebas-neue", sans-serif;
  font-size: 5rem;
  letter-spacing: 0.3em;
}
.editorial-split-copy {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.editorial-split-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.18em;
  margin-bottom: 2rem;
}
.editorial-split-heading {
  font-family: "bebas-neue", sans-serif;
  font-size: clamp(3rem, 6vw, 7rem);
  color: var(--main-orange);
  margin: 0 0 2rem;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.editorial-split-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  max-width: 42ch;
  font-family: sans-serif;
  text-transform: none;
}
.editorial-split-cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: "bebas-neue", sans-serif;
  font-size: 0.88rem;
  color: var(--main-white);
  text-decoration: none;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--main-orange);
  padding-bottom: 0.2em;
  transition: color 0.2s ease;
  width: fit-content;
}
.editorial-split-cta:hover {
  color: var(--main-orange);
}

@media (max-width: 768px) {
  .editorial-split {
    grid-template-columns: 1fr;
  }
  .editorial-split-image {
    min-height: 55vw;
  }
  .editorial-split-copy {
    padding: 3rem 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ===== FOOTER ===== */

.fbo-footer {
  background-color: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4rem 3rem 2.5rem;
  margin-top: 4rem;
}

.fbo-footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.fbo-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fbo-footer-col--brand {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 2rem;
}

.fbo-footer-col--contact {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 2rem;
}

.fbo-footer-brand-name {
  font-size: 1rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}

.fbo-footer-baseline {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.fbo-footer-copy {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  margin-top: auto;
  padding-top: 1.5rem;
  text-transform: uppercase;
}

.fbo-footer-col-title {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.fbo-footer-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fbo-footer-link:hover {
  color: #fff;
}

.fbo-footer-insta svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fbo-footer {
    padding: 3rem 1.5rem 2rem;
  }

  .fbo-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fbo-footer-col--brand,
  .fbo-footer-col--contact {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 0;
    padding-bottom: 2rem;
  }
}
