body {
  font-family: Po02;
  background: #f5f5f5;
  font-weight: bold;
  padding-top: 70px;
}

.noscroll {
  overflow: hidden !important;
}

.auth-1,
.auth-2,
.auth-3,
.auth-4,
.auth-5,
.auth-6,
.auth-7,
.auth-8,
.auth-9,
.auth-10,
.auth-11,
.auth-12,
.auth-13,
.auth-14,
.auth-15,
.auth-16,
.auth-17,
.auth-18,
.auth-19,
.auth-20 {
  display: none;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.pleaseCommand {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 300px;
}

@media screen and (max-width: 1100px) {
  .pleaseCommand {
    display: none;
  }
}

.main-header {
  position: fixed;
  top: 0;
  width: calc(90%);
  background: #fff;
  box-shadow: 0 2px 30px #0001;
  z-index: 1;
  padding: 8px 20px;
  margin: 10px 5%;
  border-radius: 10px;
  z-index: 2;
}


.main-content {
  margin: 0 5%;
}

@media (max-width: 600px) {
  .main-header {
    width: 100%;
    top: 0;
    margin: 0;
    border-radius: 0;
  }

  .main-content {
    width: 100%;
    margin: 0;
    padding: 0 20px;
  }
}

/* La recherche */

.search-mobile-bar>.mio {
  display: flex;
  border: solid 3px #e0e0e0;
  padding: 9px 30px 9px 20px;
  border-radius: 20px 0 0 20px;
  border-right: none;
  margin-right: -20px;
  background: var(--primary);
  cursor: pointer;
  color: red;
}

.search-mobile-bar {
  display: none;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.search-mobile-input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
}

.search-mobile-input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  right: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px var(--shadow-2);
  max-height: 600px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: all 0.3s;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0%);
}

.search-section {
  padding: 15px 20px;
}

.search-section-title {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 5px;
}

.search-suggestion-item:hover {
  background: var(--primary-1);
}

.search-suggestion-item .mio {
  font-size: 22px;
  color: var(--primary);
}

.search-suggestion-item .text {
  font-size: 14px;
  color: var(--text-color);
  flex: 1;
}

/* Styles pour la section remboursements (similaire aux commandes) */
.orders-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
}

.tab-btn {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn.active {
  border-color: var(--primary);
}

.orders-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.order-card {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 6px 20px #0001;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.order-number {
  font-weight: 700;
  color: var(--text-color);
}

.status-badge {
  font-size: 13px;
  color: #555;
}

.order-info-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px dashed #f0f0f0;
  margin-top: 8px;
}

.order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 720px;
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-body {
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
}


.search-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 10px 0;
}

/* Section résultats avec 2 colonnes */
.search-results-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  padding: 20px;
}

.suggestions-column,
.products-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.suggestions-column .search-section {
  padding: 0;
}

.category-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-color);
}

.category-suggestion-item:hover {
  background: var(--primary-1);
}

.category-suggestion-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* .category-suggestion-item .text {
  font-size: 14px;
  font-weight: 500;
} */

/* Produits dans recherche */
.product-search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid #f0f0f0;
}

.product-search-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-1);
}

.product-search-item img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.product-search-info {
  flex: 1;
}

.product-search-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-search-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
}

.product-search-price .old-price {
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
  margin-left: 5px;
}

.product-search-stock {
  font-size: 12px;
  margin-top: 4px;
}

.product-search-stock.in-stock {
  color: green;
}

.product-search-stock.out-stock {
  color: red;
}

.view-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: #eee;
  border-radius: 0;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.view-all-link:hover {
  background: var(--primary);
  color: #fff;
}

/* .view-all-link .mio {
  font-size: 20px;
} */

/* Mini loader */
.miniLoader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.miniLoader img {
  width: 60px;
  height: 60px;
  opacity: 0.7;
}

.miniLoader p {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
}


/* Responsive */
@media screen and (max-width: 768px) {
  .search-results-container {
    grid-template-columns: 1fr;
  }

  .suggestions-column {
    order: 2;
  }

  .products-column {
    order: 1;
  }
}

/* Message vide */
.empty-search {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.empty-search .mio {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-search p {
  font-size: 15px;
  line-height: 1.6;
}

/* FIN RECHERCHE =========================================== */

input[type=checkbox] {
  width: max-content;
  max-width: max-content;
}

.header-content>div:not(.search-wrapper, .search-dropdown) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  justify-content: space-between;
}

/* Menu hamburger */
.menu-toggle {
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  font-family: Po02 !important;
}

.menu-toggle .mio {
  font-size: 28px;
  color: var(--primary);
  color: #fff;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 20px;
}

.logo img {
  /* width: 120px; */
  height: 40px;
  margin: 0 3% 0 5px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  color: var(--primary);
  font-size: 22px;
}

.logo-text .tagline {
  font-size: 11px;
  color: var(--ssecondary);
}

/* Barre de recherche */
.search-wrapper {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 15px;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-1);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  background: var(--pprimary);
  transform: translateY(-50%) scale(1.05);
}

.search-btn .mio {
  color: #fff;
  font-size: 22px;
}

/* Icône recherche mobile */
.search-icon-mobile {
  display: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
}

.search-icon-mobile:hover {
  background: var(--primary-1);
}

.search-icon-mobile .mio {
  font-size: 26px;
  color: var(--text-color);
}

/* Actions header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Panier */
.cart-wrapper {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-wrapper:hover {
  background: var(--primary-1);
}

.cart-icon {
  font-size: 28px;
  color: var(--text-color);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Utilisateur connecté */
.user-wrapper {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 12px;
  transition: all 0.3s;
  background: var(--primary-1);
  border-radius: 20px;
  border: solid 1px var(--primary-3);
}

.user-trigger:hover {
  background: var(--primary-3);
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 14px;
  color: var(--text-color);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-icon {
  font-size: 20px;
  color: var(--text-color);
}

/* Non connecté */
.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-login:hover {
  background: var(--pprimary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-1);
}

.settings-icon {
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-icon:hover {
  background: var(--primary-1);
}

.settings-icon .mio {
  font-size: 26px;
  color: var(--text-color);
}

/* Dropdown utilisateur */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 30px var(--shadow-2);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 2;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.dropdown-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.dropdown-user-info h4 {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 4px;
}

.dropdown-user-info p {
  font-size: 13px;
  color: #888;
}

.dropdown-menu {
  padding: 10px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-color);
}

.dropdown-item:hover {
  background: var(--primary-1);
}

.dropdown-item .mio {
  font-size: 22px;
  color: var(--primary);
}

.dropdown-item span {
  font-size: 14px;
}

.dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 10px 0;
}

/* Toggle devise */
.currency-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f8f8f8;
  margin: 10px;
  gap: 20px;
}

.currency-toggle-text {
  font-size: 13px;
  color: var(--text-color);
}

.toggle-switch {
  position: relative;
  width: 45px;
  min-width: 45px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

.toggle-switch.active::after {
  left: 23px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .header-content {
    gap: 10px;
  }

  .search-wrapper {
    display: none;
  }

  .search-icon-mobile {
    display: block;
  }

  /* Dropdown recherche en fullscreen sur mobile */
  .search-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100%;
    max-width: 100%;
    border-radius: 0;
    opacity: 0;
    transform: translateY(-100%);
  }

  .search-dropdown.active {
    opacity: 1;
    transform: translateY(0);
  }

  /* Afficher barre recherche mobile */
  .search-dropdown .search-mobile-bar {
    display: flex;
    align-items: center;
  }

  .logo-text .tagline {
    display: none;
  }

  .user-name {
    display: none;
  }

  .btn-login {
    padding: 8px 15px;
    font-size: 13px;
  }
}

@media screen and (max-width: 500px) {

  .main-header,
  .main-content {
    padding: 12px 3%;
  }

  .main-header .mio {
    font-size: 20px;
  }

  .logo img {
    width: 100px;
  }

  .header-content>div:not(.search-wrapper) {
    gap: 1px;
  }

  .header-actions {
    gap: 10px;
  }

  .auth-actions {
    gap: 0;
  }
}

/* Menu hamburger sidebar */
.sidebar-overlay {
  background: #0001;
  backdrop-filter: blur(3px);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar-overlay.active {
  pointer-events: initial;
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -100%;
  bottom: 0;
  width: 320px;
  max-width: 85%;
  background: #fff;
  box-shadow: 2px 0 20px var(--shadow-2);
  transition: all 0.3s;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.sidebar-menu.active {
  left: 0;
}

.sidebar-header {
  padding: 25px 20px;
  background: linear-gradient(135deg, var(--primary), var(--pprimary));
  color: #fff;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.sidebar-logo img {
  height: 45px;
  filter: brightness(0) invert(1);
}

.sidebar-logo-text {
  font-size: 22px;
}

.sidebar-tagline {
  font-size: 12px;
  opacity: 0.9;
  margin: -10px 0 0 35px;
}

.sidebar-content {
  padding: 20px 0;
  overflow-y: auto;
  flex: 1;
}

.sidebar-section {
  margin-bottom: 15px;
}

.sidebar-section-title {
  padding: 10px 20px;
  font-size: 12px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-item:hover {
  background: var(--primary-1);
  padding-left: 25px;
}

.sidebar-item .mio {
  font-size: 24px;
  color: var(--primary);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.sidebar-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iti {
  width: 100%;
}

.sidebar-footer-link {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s;
}

.sidebar-footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Formulaire de connexion / Inscription */
.auth-popup {
  align-items: center;
  backdrop-filter: blur(2px);
}

form .entry:focus-within {
  border: 0;
  box-shadow: none;
}

.auth-popup .popup {
  max-width: 450px;
  width: 100%;
  overflow-y: auto;
  border-radius: 5px;
}

.auth-popup .popup.create {
  max-width: 600px;
}

.groups {
  display: flex;
  gap: 10px;
}

.groups>div {
  width: 100%;
}

@media (max-width: 360px) {
  .auth-popup .groups {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .auth-popup.popups {
    padding: 0;
  }

  .auth-popup .popup {
    max-width: 100% !important;
    padding: 0;
    border-radius: 0;
    min-height: 100%;
  }
}

.auth-popup h2 {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  margin: 0;
  font-size: 20px;
}

.auth-popup h2 .mio {
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s;
}

.auth-popup h2 .mio:hover {
  background: var(--primary-1);
}

.auth-popup .popup-body {
  padding: 30px;
}

.auth-popup .auth-logo {
  margin-bottom: 10px;
}

.auth-popup .auth-info {
  font-size: 14px;
  line-height: 1.6;
}

.auth-popup .entry .icons {
  color: var(--primary);
  font-size: 22px;
}

.auth-popup a {
  color: var(--ssecondary);
  text-decoration: none;
}

.auth-popup a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .auth-popup .popup-body {
    padding: 20px;
  }
}

/* ==================== BANNIÈRES ==================== */
.banner-section {
  margin: 20px 0 40px;
}

.banner-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(95%);
}

.banner-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
}

.banner-link {
  display: inline-flex;
  padding: 15px 30px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.banner-nav {
  position: absolute;
  bottom: 20px;
  transform: translateY(-50%);
  background: #fff2;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.banner-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.banner-nav.prev {
  right: 80px;
}

.banner-nav.nextt {
  right: 30px;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #fff;
  width: 25px;
  border-radius: 5px;
}

/* ==================== SECTIONS PRODUITS ==================== */
.products-section {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  color: var(--text-color);
}

.section-header h2 .mio {
  color: var(--primary);
  font-size: 28px;
}

.see-all {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.see-all:hover {
  gap: 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-1);
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 25px var(--shadow-2);
  transform: translateY(-8px);
}

.product-image-link {
  display: block;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Bouton favoris */
.btn-favorite {
  position: absolute;
  top: 190px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1;
}

.btn-favorite:hover {
  background: #fff;
  transform: scale(1.1);
}

.btn-favorite .mio {
  color: var(--primary);
  font-size: 22px;
}

.btn-favorite.active .mio {
  animation: heartBeat 0.3s;
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.promo-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: #000;
  color: #fff;
  padding: 5px 40px;
  font-size: 11px;
  font-weight: bold;
  transform: rotate(45deg);
  z-index: 1;
}

.product-card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: max-content;
  flex: 1;
}

.product-card-body>div:not(.btns) {
  flex: 1;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
  font-family: Po03;
  margin: 15px 0 8px;
}

.product-price .old-price {
  font-size: 14px;
  color: var(--primary);
  text-decoration: line-through;
  font-family: Po02;
}

.product-stock {
  font-size: 12px;
  margin-bottom: 12px;
}

.product-stock.in-stock {
  color: green;
}

.product-stock.out-stock {
  color: red;
}

.product-card-body .btns {
  border-top: solid 1px #ddd;
  padding-top: 20px;
  align-items: end;
}

.btn-add-cart {
  width: max-content;
  max-width: max-content;
  padding: 12px 25px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: auto;
}

/* .btn-add-cart:hover {
  background: var(--pprimary);
} */

.btn-add-cart .mio {
  font-size: 18px;
}

.product-name-link {
  text-decoration: none;
  color: inherit;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  min-height: 24px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars .mio {
  font-size: 16px;
}

.star-full {
  color: #ffc107;
}

.star-half {
  color: #ffc107;
}

.star-empty {
  color: #ddd;
}

.rating-text {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.badge-new {
  background: #a2fab055;
  color: #1f9833;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
  font-family: Po02;
  text-transform: uppercase;
}

.product-variants-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.product-variants-info .mio {
  font-size: 16px;
  color: var(--primary);
}

.btn-add-cart.in-cart {
  background: #ff4444;
}

.btn-add-cart.in-cart:hover {
  background: #cc0000;
}


/* ==================== FILTRES ==================== */
.filters-section {
  margin-bottom: 25px;
}

.filters-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  color: var(--text-color);
  position: relative;
}

.filters-toggle:hover {
  border-color: var(--primary);
  background: var(--primary-1);
}

.filters-toggle.has-filters {
  border-color: var(--primary);
  background: var(--primary-1);
}

.filters-toggle .mio {
  font-size: 20px;
  color: var(--primary);
}

.filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.filters-toggle .arrow {
  margin-left: 8px;
  transition: transform 0.3s;
}

.filters-toggle.active .arrow {
  transform: rotate(180deg);
}

.filters-panel {
  display: none;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
  margin-top: -2px;
  animation: slideDown 0.3s;
}

.filters-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 0;
  transition: all 0.3s;
}

.filter-radio:hover {
  padding-left: 5px;
  color: var(--primary);
}

.filter-radio input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.btn-reset-filters,
.btn-apply-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-reset-filters {
  background: #f0f0f0;
  color: var(--text-color);
}

.btn-reset-filters:hover {
  background: #e0e0e0;
}

.btn-apply-filters {
  background: var(--primary);
  color: #fff;
}

.btn-apply-filters:hover {
  background: var(--pprimary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-reset-filters .mio,
.btn-apply-filters .mio {
  font-size: 18px;
}

.no-products {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}

.no-products .mio {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-products p {
  font-size: 16px;
  color: #888;
}

@media screen and (max-width: 768px) {
  .filters-panel.active {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
  }

  .btn-reset-filters,
  .btn-apply-filters {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== CATÉGORIES ==================== */
.categories-showcase {
  margin: 60px 0;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
}

.categories-showcase h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  margin-bottom: 30px;
}

.categories-showcase h2 .mio {
  color: var(--primary);
  font-size: 32px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
}

.category-card:hover {
  background: var(--primary-1);
  transform: translateY(-5px);
}

.category-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.category-card span {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
  .banner-slider {
    height: 250px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media screen and (max-width: 480px) {
  .banner-slider {
    height: 200px;
    border-radius: 15px;
  }
}

/* ==================== POPUP PANIER ==================== */
.cart-popup .popup {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cart-popup h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  margin: 0;
  font-size: 20px;
}

.cart-count-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  margin-left: auto;
}

.cart-popup .popup-body {
  flex: 1;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
  padding: 20px;
}

/* Message panier vide */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart .mio:not(.noo) {
  font-size: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart p {
  font-size: 16px;
  color: #888;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-shopping {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-shopping:hover {
  background: var(--pprimary);
  transform: translateY(-2px);
}

/* Liste produits */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* Item panier - NOUVEAU DESIGN */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  transition: all 0.3s;
  position: relative;
}

.cart-item:hover {
  border-color: var(--primary-3);
  box-shadow: 0 4px 15px var(--shadow-1);
}

/* Image produit */
.cart-item-image {
  position: relative;
}

.cart-item-image img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.btn-remove-item {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1;
}

.btn-remove-item:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.btn-remove-item .mio {
  color: #fff;
  font-size: 18px;
}

/* Contenu item */
.cart-item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* En-tête item */
.cart-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.cart-item-title {
  flex: 1;
}

.cart-item-title h4 {
  font-size: 16px;
  margin: 0 0 6px 0;
  color: var(--text-color);
  line-height: 1.4;
}

.cart-item-stock {
  font-size: 12px;
  margin-top: 4px;
}

.cart-item-stock.in-stock {
  color: green;
}

.cart-item-stock.out-stock {
  color: red;
}

/* Quantité */
.cart-item-quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.quantity-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f8f8;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.quantity-selector button {
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border: 1px solid #e0e0e0;
}

.quantity-selector button:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
}

.quantity-selector button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-selector button .mio {
  font-size: 20px;
  color: var(--text-color);
}

.quantity-selector button:hover:not(:disabled) .mio {
  color: #fff;
}

.quantity-selector input {
  width: 45px;
  text-align: center;
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-family: Po02;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-color);
}

/* Prix */
.cart-item-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
}

.price-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.price-total .price-label {
  color: var(--primary);
}

.price-total .price-value {
  font-size: 18px;
  color: var(--primary);
}

/* Note personnalisée */
.cart-item-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
}

.note-label .mio {
  font-size: 18px;
  color: var(--primary);
}

.btn-toggle-note {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-color);
}

.btn-toggle-note:hover {
  background: var(--primary-1);
  border-color: var(--primary);
}

.btn-toggle-note .mio {
  font-size: 16px;
}

.note-input-wrapper {
  display: none;
  flex-direction: column;
  gap: 8px;
}

.note-input-wrapper.active {
  display: flex;
}

.note-textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  transition: all 0.3s;
  resize: none;
}

.note-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-1);
}

.note-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-save-note,
.btn-cancel-note {
  padding: 6px 15px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-save-note img {
  width: 10px;
}

.btn-save-note {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cancel-note {
  background: #f0f0f0;
  color: var(--text-color);
}

.btn-cancel-note:hover {
  background: #e0e0e0;
}

.note-display {
  display: none;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  border-left: 3px solid var(--primary);
}

.note-display.active {
  display: block;
}

/* Variantes */
.cart-item-variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variants-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
}

.variants-label .mio {
  font-size: 18px;
  color: var(--primary);
}

.variants-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Variantes tailles */
.variant-option {
  padding: 8px 16px;
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-color);
}

.variant-option:hover {
  background: var(--primary-1);
  border-color: var(--primary);
}

.variant-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.variant-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Variantes couleurs */
.variant-color {
  /* position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%; */
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
  /* overflow: hidden; */
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 30px;
  padding: 2px 10px 2px 5px;
}

.variant-color:hover {
  transform: scale(1.1);
  border-color: var(--primary);
}

.variant-color.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--primary);
}

.variant-color.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.variant-color-inner {
  /* width: 100%;
  height: 100%; */
  width: 25px;
  height: 25px;
  border-radius: 50%;
}

.variant-color-name {
  /* position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%); */
  font-size: 10px;
  color: #888;
  white-space: nowrap;
  /* opacity: 0; */
  transition: opacity 0.3s;
  line-height: 15px;
  display: inline-block;
}

/* Total & Actions */
.cart-actions {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
  margin-top: 20px;
}

.cart-total-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  border-radius: 12px;
  margin-bottom: 20px;
  border: 2px solid var(--primary-3);
}

.total-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.total-amount {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary);
}

.cart-buttons {
  display: flex;
  gap: 12px;
}

.btn-clear-cart,
.btn-checkout {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  font-size: 15px;
  max-width: max-content;
}

#cartModal .btns {
  justify-content: end;
}

.btn-clear-cart:hover {
  background: #e0e0e0;
}

.btn-clear-cart .mio,
.btn-checkout .mio {
  font-size: 22px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cart-item {
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding: 15px;
  }

  .cart-item-image img {
    height: 100px;
  }

  .cart-item-header {
    flex-direction: column;
    gap: 12px;
  }

  .cart-item-quantity {
    align-items: flex-start;
  }

  .cart-item-pricing {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .price-total {
    align-items: flex-start;
  }

  .cart-buttons {
    flex-direction: column;
  }

  .cart-total-section {
    padding: 15px 20px;
  }

  .total-label {
    font-size: 16px;
  }

  .total-amount {
    font-size: 22px;
  }
}

@media screen and (max-width: 600px) {
  .cart-popup {
    padding: 0;
  }

  .cart-popup .popup {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 0;
  }

  .cart-popup .popup-body {
    max-height: calc(100vh - 80px);
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    width: 100%;
  }

  .cart-item-image img {
    width: 100%;
    height: 200px;
  }

  .btn-remove-item {
    top: 10px;
    right: 10px;
  }
}

/* ==================== FOOTER ==================== */
.main-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 5% 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-main {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 45px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 22px;
  font-weight: bold;
}

.footer-tagline {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 10px;
  font-style: italic;
  margin: -10px 0 15px 0;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 20px;
}

.footer-language {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lang-btn {
  padding: 8px 15px;
  background: #2a2a2a;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact .mio {
  font-size: 18px;
  color: var(--primary);
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 25px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 13px;
  color: #888;
}

@media screen and (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-main {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media screen and (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-footer {
    padding: 40px 5% 20px;
  }
}

/* Styles spécifiques page recherche */
.search-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 5%;
}

.search-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 30px;
  color: #888;
}

.search-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.search-breadcrumb a:hover {
  text-decoration: underline;
}

.search-breadcrumb .mio {
  font-size: 20px;
}

.search-bar-section {
  margin-bottom: 40px;
}

.search-bar-section.compact {
  margin-bottom: 30px;
}

.search-bar-section.full {
  text-align: center;
  padding: 60px 0;
}

.search-bar-section.full h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.search-bar-form {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.search-bar-form input {
  width: 100%;
  padding: 15px 60px 15px 25px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-size: 16px;
  transition: all 0.3s;
}

.search-bar-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-1);
}

.search-bar-form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.search-bar-form button:hover {
  background: var(--pprimary);
  transform: translateY(-50%) scale(1.05);
}

.search-bar-form button .mio {
  color: #fff;
  font-size: 24px;
}

.suggested-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 900px;
  margin: 40px auto 0;
}

.suggested-product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-1);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text-color);
}

.suggested-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-2);
}

.suggested-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.suggested-product-body {
  padding: 15px;
}

.suggested-product-body h3 {
  font-size: 14px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.suggested-product-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
}

@media screen and (max-width: 768px) {
  .suggested-products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}


.no-results {
  text-align: center;
  padding: 0 20px 50px;
  margin-top: -50px;
}

.no-results .mio {
  font-size: 100px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-results h2 {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.no-results p {
  font-size: 16px;
  color: #888;
  margin-bottom: 30px;
}

/* MENTIONS LEGALES */
/* Container principal */
#mentions {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.6;
  color: #333;
}

/* Titre principal (si tu en ajoutes un dans ton index.php) */
#mentions h1 {
  text-align: center;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #f4f4f4;
  padding-bottom: 20px;
}

/* Sections des mentions */
#mentions section {
  margin-top: 20px;
  margin-bottom: 35px;
  background: #fff;
  padding: 30px 5%;
  border-radius: 5px;
}

.intro-text {
  font-style: italic;
  color: #666;
  font-size: 1.1rem !important;
  margin-bottom: 40px;
  text-align: center !important;
  margin-bottom: 50px !important;
}

/* Titres des parties (1, 2, 3...) */
#mentions h2 {
  font-size: 1.25rem;
  color: #d4af37;
  /* Une touche dorée pour le côté Divin's */
  margin-bottom: 15px;
  border-left: 3px solid #d4af37;
  padding-left: 15px;
}

/* Paragraphes */
#mentions p {
  margin-bottom: 5px;
}

/* Mise en avant (Propriétaire, SIRET, etc.) */
#mentions strong {
  color: #000;
  font-weight: 600;
  font-family: Po01;
}

/* Liens à l'intérieur des mentions */
#mentions a {
  color: var(--pprimary);
  text-decoration: none;
  transition: 0.3s;
}

#mentions a:hover {
  text-decoration: underline;
}

/* Adaptabilité Mobile */
@media (max-width: 768px) {
  #mentions {
    padding: 15px;
    margin: 20px auto;
  }

  #mentions h2 {
    font-size: 1.1rem;
  }
}

/* État initial : invisible et légèrement décalé vers le bas */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* État final : visible et à sa place */
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* BOX COOKIE */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 3px solid #d4af37;
  box-shadow: 0 5px 100px rgba(0, 0, 0, 0.5);
  padding: 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.cookie-content {
  max-width: 1000px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.cookie-content a {
  color: #d4af37;
  text-decoration: underline;
}

.btn-cookie {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: 0.3s;
  border-radius: 4px;
}

.btn-cookie:hover {
  background: #d4af37;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}


/* Page PRODUCTS */

/* ==================== FIL D'ARIANE ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span:not(.mio) {
  color: #888;
}

.breadcrumb .mio {
  font-size: 18px;
  color: #ccc;
}

/* ==================== SECTION NOUVEAUTÉS ==================== */
.new-products-section {
  margin-bottom: 50px;
}

.new-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.new-badge-product {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #4CAF50, #8BC34A);
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* ==================== CONTRÔLES PRODUITS ==================== */
.products-list-section {
  margin-top: 40px;
}

.products-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.control-left,
.control-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-select {
  padding: 12px 40px 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 250px;
  font-family: Po02;
  font-weight: bold;
}

.category-select:hover {
  border-color: var(--primary);
}

.category-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-1);
}

.filters-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  color: var(--text-color);
}

.filters-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--primary-1);
}

.filters-toggle-btn.has-filters {
  border-color: var(--primary);
  background: var(--primary-1);
}

.filters-toggle-btn .mio {
  font-size: 20px;
  color: var(--primary);
}

.filters-badge-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

/* Panel filtres principal */
.main-filters-panel {
  display: none;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  animation: slideDown 0.3s;
}

.main-filters-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ==================== BOUTON CHARGER PLUS ==================== */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 35px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-load-more:hover {
  background: var(--pprimary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary-3);
}

.btn-load-more .mio {
  font-size: 22px;
}

/* ==================== DÉTAIL PRODUIT ==================== */
.product-detail-section {
  margin: 40px auto;
  max-width: 1200px;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

/* Galerie images */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
  height: fit-content;
}

.main-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  /* aspect-ratio: 1; */
  border-radius: 20px;
  overflow: hidden;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  margin: 0 auto;
  height: 300px;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-badge-detail {
  position: absolute;
  top: 20px;
  right: -35px;
  background: #000;
  color: #fff;
  padding: 8px 50px;
  font-size: 13px;
  font-weight: bold;
  transform: rotate(45deg);
  z-index: 1;
}

.thumbnails-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.thumbnail {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s;
  background: #f8f8f8;
}

.thumbnail:hover {
  border-color: var(--primary-3);
}

.thumbnail.active {
  border-color: var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Infos produit */


.product-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.product-category-tag {
  display: inline-block;
}

.product-category-tag a {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: underline;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s;
}

.product-category-tag a:hover {
  background: var(--primary);
  color: #fff;
}

.btn-favorite-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  color: var(--text-color);
}

.btn-favorite-detail:hover {
  background: var(--primary-1);
}

.btn-favorite-detail.active {
  border-color: var(--primary);
  background: var(--primary-1);
}

.btn-favorite-detail .mio {
  font-size: 20px;
  color: var(--primary);
}

.product-title {
  font-size: 32px;
  margin: 0 0 15px 0;
  line-height: 1.3;
  color: var(--text-color);
}

/* Avis inline sous le titre */
.product-rating-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.stars-inline {
  display: flex;
  gap: 2px;
}

.star-wrapper {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.star-wrapper .mio {
  font-size: 22px;
}

.star-colored {
  color: var(--secondary);
}

.star-gray {
  color: #ddd;
}

/* Demi-étoile avec overlay */
.star-wrapper.half-star {
  position: relative;
}

.star-wrapper.half-star .star-half-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

.rating-value-inline {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

.reviews-count-inline {
  color: #888;
  font-size: 14px;
}

/* SKU */
.product-sku {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.sku-label {
  font-weight: 600;
}

.sku-value {
  color: #888;
}

/* Prix */
.product-pricing-detail {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.price-promo-detail {
  font-size: 36px;
  font-weight: bold;
  font-family: Po03;
  color: var(--primary);
}

.price-original-detail {
  font-size: 24px;
  color: #888;
  text-decoration: line-through;
}

.price-normal-detail {
  font-size: 36px;
  font-family: Po01;
  color: var(--text-color);
}

.price-save {
  padding: 6px 15px;
  background: #4CAF50;
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Stock */
.product-stock-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  max-width: max-content;
  margin: 10px 0 15px;
}

.product-stock-detail.in-stock {
  background: #E8F5E9;
  color: #2E7D32;
}

.product-stock-detail.out-stock {
  background: #FFEBEE;
  color: #C62828;
}

.product-stock-detail .mio {
  font-size: 22px;
}

/* Variantes */
.product-variants-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.variant-label-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.variant-label-detail .mio {
  font-size: 20px;
  color: var(--primary);
}

.variants-options-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Variantes couleurs */
.variant-color-detail {
  position: relative;
  border-radius: 20px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  padding: 5px;
}

.variant-color-detail:hover:not(.disabled) {
  transform: scale(1.1);
  border-color: var(--primary);
}

.displayNone.v2 {
  display: none !important;
}

.variant-color-detail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--primary);
}

a.byName {
  display: inline-block;
  color: #fff;
  background: var(--ssecondary);
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  margin: 0 5px;
}

.variant-color-detail.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.variant-color-inner-detail {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.variant-color-name-detail {
  font-size: 14px;
  color: #555;
  display: inline-block;
  margin: 0 10px;
}

/* Variantes tailles */
.variant-size-detail {
  padding: 12px 20px;
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-color);
}

.variant-size-detail:hover:not(.disabled) {
  background: var(--primary-1);
  border-color: var(--primary);
}

.variant-size-detail.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.variant-size-detail.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Quantité */
.product-quantity-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-quantity-detail label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.quantity-selector-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.quantity-selector-detail button {
  width: 45px;
  height: 45px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.quantity-selector-detail button:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
}

.quantity-selector-detail button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity-selector-detail button .mio {
  font-size: 22px;
  color: var(--text-color);
}

.quantity-selector-detail button:hover:not(:disabled) .mio {
  color: #fff;
}

.quantity-selector-detail input {
  width: 80px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-color);
  font-family: Po01;
}

/* Actions */
.product-actions-detail {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.btn-add-cart-detail,
.btn-buy-now-detail {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  max-width: max-content;

}

.btn-add-cart-detail {
  background: var(--primary);
  color: #fff;
}

.btn-add-cart-detail:hover:not(:disabled) {
  background: var(--pprimary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-3);
}

.btn-add-cart-detail.in-cart {
  background: #ff4444;
}

.btn-add-cart-detail.in-cart:hover {
  background: #cc0000;
}

.btn-add-cart-detail:disabled,
.btn-buy-now-detail:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-buy-now-detail {
  background: #000;
  color: #fff;
}

.btn-buy-now-detail:hover:not(:disabled) {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-add-cart-detail .mio,
.btn-buy-now-detail .mio {
  font-size: 24px;
}

/* Infos supplémentaires */
.product-extra-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 12px;
}

.extra-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.extra-info-item .mio {
  font-size: 28px;
  color: var(--primary);
  margin-top: 3px;
}

.extra-info-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.extra-info-item p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* Description produit */
.product-description-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.description-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 0 0 20px 0;
  color: var(--text-color);
}

.description-title .mio {
  font-size: 26px;
  color: var(--primary);
}

.product-description-content {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* ==================== AVIS CLIENTS ==================== */
.reviews-section {
  margin: 60px auto;
  max-width: 1000px;
}

.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.review-item {
  padding: 25px;
  background: #f8f8f8;
  border-radius: 15px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.review-user-info {
  flex: 1;
  min-width: 120px;
}

.review-user-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-color);
  margin-bottom: 4px;
}

.review-date {
  font-size: 13px;
  color: #888;
}

.review-rating-stars {
  display: flex;
  gap: 2px;
}

.review-rating-stars .star-wrapper .mio {
  font-size: 18px;
}

.review-comment {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.review-comment.v2>div.hea h3 div span.mio {
  font-weight: normal;
  font-size: 16px;
  color: #0d0;
}

.review-comment.v2>div.hea h3>span {
  font-family: Po02;
  font-size: 14px;
  color: #888;
}

.review-comment.v2>div.hea h3 div {
  gap: 5px;
  display: flex;
  align-items: center;
}

.review-comment.v2>div.hea h3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 20px;
}

.review-comment.v2>div.hea img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 3px;
}

.review-comment.v2>div.hea {
  display: flex;
  gap: 15px;
  align-items: center;
}

.review-comment.v2 {
  background: #0f01;
  padding: 20px;
  border-radius: 10px;
  margin-top: 15px;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .product-title {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .new-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .products-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .category-select {
    min-width: 100%;
  }

  .main-filters-panel.active {
    grid-template-columns: 1fr;
  }

  .product-actions-detail {
    flex-direction: column;
  }

  .tabs-header {
    gap: 0;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 15px;
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .product-title {
    font-size: 22px;
  }

  .price-promo-detail,
  .price-normal-detail {
    font-size: 28px;
  }

  .price-original-detail {
    font-size: 18px;
  }

  .thumbnails-container {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
  }
}

/* ========================== FIN AVIS CLIENT ================== */

.checkout-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  font-family: Po02;
  font-weight: bold;
}

.checkout-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #0001;
}

.checkout-header h1 {
  font-size: 28px;
  color: var(--text-color);
  font-family: Po01;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  font-family: Po02;
  font-weight: bold;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #e8e8e8;
  transform: translateX(-3px);
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Récapitulatif commande */
.order-summary {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 20px #0001;
  border: 2px solid #f0f0f0;
}

.order-summary h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.products-list::-webkit-scrollbar {
  width: 6px;
}

.products-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.products-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.product-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fafafa;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.product-item:hover {
  border-color: var(--primary-3);
  box-shadow: 0 2px 10px #0001;
}

.product-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.product-details {
  flex: 1;
}

.product-details h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-color);
  font-family: Po01;
}

.product-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.product-note {
  display: flex;
  align-items: start;
  gap: 5px;
  font-size: 13px;
  color: #777;
  font-style: italic;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 5px;
}

.product-note .mio {
  font-size: 16px;
  color: var(--primary);
}

.product-total {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
  font-family: Po01;
}

/* Total commande */
.order-total {
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 16px;
}

.total-row.delivery-fee {
  color: var(--ssecondary);
  font-size: 15px;
}

.total-row.main-total {
  font-size: 20px;
  font-weight: bold;
  padding-top: 15px;
  margin-top: 10px;
  border-top: 2px solid #f0f0f0;
}

.total-row.main-total .amount {
  color: var(--primary);
  font-size: 24px;
  font-family: Po01;
}

/* Avertissement devise */
.currency-warning {
  display: flex;
  gap: 12px;
  padding: 15px;
  background: linear-gradient(135deg, var(--secondary-2), var(--secondary-1));
  border-left: 4px solid var(--ssecondary);
  border-radius: 8px;
  margin-top: 20px;
}

.currency-warning .mio {
  font-size: 24px;
  color: var(--ssecondary);
  flex-shrink: 0;
}

.currency-warning p {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Formulaire checkout */
.checkout-form-wrapper {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 20px #0001;
  border: 2px solid #f0f0f0;
}

.client-info {
  margin-bottom: 30px;
}

.client-info h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.info-card {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  border-radius: 10px;
  padding: 20px;
  border: 2px solid var(--primary-3);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--primary-2);
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row .label {
  color: #666;
  font-size: 14px;
}

.info-row .value {
  color: var(--text-color);
  font-size: 15px;
  font-family: Po01;
}

.btn-modify {
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Po02;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-modify:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Formulaire */
.checkout-form h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: Po02;
  font-weight: bold;
  font-size: 15px;
  color: var(--text-color);
  background: #fafafa;
  transition: all 0.3s ease;
}

.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
}

.checkout-form textarea {
  resize: none;
  height: 80px;
}

.btn-pay {
  width: 100%;
  margin-top: 25px;
  padding: 18px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Po01;
}

.btn-pay:disabled {
  background: #777;
  border-color: #555;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-pay:disabled:hover {
  transform: none;
  opacity: 0.6;
}

/* Authentification requise */
.auth-required {
  text-align: center;
  padding: 40px 20px;
}

.auth-required h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.auth-required p {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-login {
  display: inline-flex;
}

/* Responsive */
@media (max-width: 1024px) {
  .checkout-content {
    grid-template-columns: 1fr;
  }

  .order-summary {
    order: 2;
  }

  .checkout-form-wrapper {
    order: 1;
  }
}

@media (max-width: 768px) {
  .checkout-container {
    padding: 15px;
  }

  .checkout-header h1 {
    font-size: 22px;
  }

  .product-item:not(.v2) {
    flex-direction: column;
  }

  .product-item img {
    width: 100%;
    height: 150px;
  }

  .product-total {
    justify-content: center;
    font-size: 20px;
  }

  .total-row.main-total .amount {
    font-size: 20px;
  }

  .btn-pay {
    font-size: 16px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .checkout-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-item.v2 .product-price {
    flex-direction: column;
  }

  .product-subtotal {
    margin-top: 8px;
  }

  .btn-back {
    width: 100%;
    justify-content: center;
  }

  .product-meta {
    flex-direction: column;
    gap: 5px;
  }

  .currency-warning {
    flex-direction: column;
  }
}


/* ========================================
   STYLES POUR LE MODAL DES AVIS
   ======================================== */

.product-avis-button-container {
  margin-top: 20px;
}

.btn-avis-detail {
  margin: -20px 0 20px;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.btn-avis-detail .mio {
  font-size: 20px;
}

/* Modal Avis */
.modal-avis {
  justify-content: center;
}

.modal-avis-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-avis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  color: var(--primary);
}

.modal-avis-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.btn-close-avis {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.btn-close-avis:hover {
  transform: rotate(90deg);
  background: #0001;
}

.modal-avis-body {
  padding: 30px;
}

/* Section Note (Étoiles) */
.avis-rating-section {
  margin-bottom: 30px;
}

.avis-rating-section label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.avis-stars-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.star-button {
  background: none;
  border: 2px solid #ddd;
  color: #ddd;
  font-size: 32px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-button:hover {
  color: #ffc107;
  border-color: #ffc107;
  transform: scale(1.1);
}

.star-button.selected {
  color: #ffc107;
  border-color: #ffc107;
}

.star-button .mio {
  font-size: 32px;
}

/* Section Commentaire */
.avis-comment-section {
  margin-bottom: 20px;
}

.avis-comment-section label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.avis-textarea {
  border: 2px solid #e0e0e0;
}

.avis-textarea:focus {
  outline: none;
  border-color: #ff5588;
  box-shadow: 0 0 0 3px rgba(255, 85, 136, 0.1);
}

.avis-char-count {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  color: #999;
}

.avis-comment-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  margin-bottom: 0;
}

/* Actions */
.avis-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-save-avis,
.btn-cancel-avis {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save-avis {
  background: linear-gradient(135deg, #ff5588 0%, #ff6b9d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 85, 136, 0.3);
}

.btn-save-avis:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 85, 136, 0.4);
}

.btn-cancel-avis {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #e0e0e0;
}

.btn-cancel-avis:hover {
  background: #e0e0e0;
  border-color: #d0d0d0;
}

.btn-save-avis .mio,
.btn-cancel-avis .mio {
  font-size: 18px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .modal-avis-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-avis-header {
    padding: 15px 20px;
  }

  .modal-avis-header h2 {
    font-size: 18px;
  }

  .modal-avis-body {
    padding: 20px;
  }

  .avis-stars-selector {
    gap: 10px;
  }

  .star-button {
    padding: 6px 10px;
    font-size: 24px;
  }

  .star-button .mio {
    font-size: 24px;
  }

  .avis-actions {
    flex-direction: column;
  }

  .btn-save-avis,
  .btn-cancel-avis {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 500px) {
  .modal-avis {
    padding: 0;
    display: block;
  }

  .modal-avis-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0;
  }
}

/* ============== PAGES DE RÉSULTAT PAIEMENT ============== */

.payment-result {
  padding-top: 50px;
  display: flex;
  justify-content: center;
}

.result-container {
  max-width: 700px;
  width: 100%;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

/* Icônes de résultat */
.success-icon,
.cancelled-icon,
.failed-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  animation: scaleIn 0.5s ease;
}

.success-icon {
  background: linear-gradient(135deg, rgb(35, 161, 35), #1f9833);
}

.cancelled-icon {
  background: linear-gradient(135deg, #ffa726, #ff9800);
}

.failed-icon {
  background: linear-gradient(135deg, red, crimson);
}

.success-icon .mio,
.cancelled-icon .mio,
.failed-icon .mio {
  font-size: 100px;
  color: white;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* Titres */
.result-container h1 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 15px;
  font-family: Po01;
}

.order-number {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.order-number strong {
  color: var(--primary);
  font-family: Po01;
}

/* Messages */
.success-message,
.cancelled-message,
.failed-message {
  background: #0d02;
  border-radius: 15px;
  padding: 25px;
  margin: 30px 0;
}

.cancelled-message {
  background: var(--pprimary-1);
}

.failed-message {
  background: #dc143c11;
}

.success-message p,
.cancelled-message p,
.failed-message p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-color);
  margin: 10px 0;
}

/* Actions */
.result-container .actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-family: Po01;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f5f5f5;
  color: var(--text-color);
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
}

/* Variante pour colorSpecial */
.specialVariant {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.rdvCom strong {
  font-family: Po01;
}

.rdvCom {
  padding: 8px 20px;
  border-radius: 10px;
  background: #0001;
  text-align: left;
}

.colorSpecial {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive pages résultat */
@media (max-width: 768px) {
  .result-container {
    padding: 40px 25px;
  }

  .result-container h1 {
    font-size: 26px;
  }

  .success-icon,
  .cancelled-icon,
  .failed-icon {
    width: 100px;
    height: 100px;
  }

  .success-icon .mio,
  .cancelled-icon .mio,
  .failed-icon .mio {
    font-size: 60px;
  }

  .result-container .actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== SECTION: MES COMMANDES ==================== */

.section-hidden {
  display: none;
}

.section-header {
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-header h1 {
  font-size: 28px;
  color: #333;
  margin: 0 0 5px 0;
}

.section-subtitle {
  color: #888;
  margin: 0;
  font-size: 14px;
}

/* Onglets */
.orders-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  flex-wrap: no-wrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #999;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  font-family: Po02;
  min-width: fit-content;
}

.tab-btn:hover {
  color: #666;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: #e8e8e8;
  border-radius: 50%;
  font-size: 12px;
  color: #666;
  margin-left: 5px;
}

.tab-btn.active .tab-count {
  background: var(--primary);
  color: white;
}

/* Container des commandes */
.orders-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  min-height: 200px;
}

@media (max-width: 768px) {
  .orders-container {
    grid-template-columns: 1fr;
  }
}

/* Carte de commande */
.order-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
}

.order-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.order-number {
  font-weight: bold;
  color: #333;
  font-size: 16px;
}

.order-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.order-menu-btn:hover {
  background: #f0f0f0;
}

.order-menu-btn .mio {
  font-size: 22px;
  color: #666;
}

/* Info ligne */
.order-info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.order-info-line:last-child {
  border-bottom: none;
}

.info-label {
  color: #888;
}

.info-value {
  color: #333;
  font-weight: bold;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* Menu contextuel */
.order-menu {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  z-index: 1;
  top: 100%;
  right: 0;
  margin-top: 5px;
}

.order-menu-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-weight: bold;
}

.order-menu-item:hover {
  background: #f8f8f8;
  color: var(--primary);
}

.order-menu-item.danger {
  color: #dc3545;
}

.order-menu-item.danger:hover {
  background: #fef2f2;
  color: #dc3545;
}

.order-menu-item .mio {
  font-size: 18px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e8e8e8;
  background: #f8f8f8;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
}

/* Timeline de la commande */
.order-timeline {
  position: relative;
  padding: 20px 0;
  margin: 20px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  position: relative;
  z-index: 1;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.timeline-item.completed .timeline-dot {
  background: var(--primary);
}

.timeline-item .mio {
  font-size: 16px;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 3px;
}

.timeline-date {
  font-size: 12px;
  color: #999;
}

/* Détails produits */
.products-list {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.product-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.product-item:last-child {
  border-bottom: none;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #e0e0e0;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 3px;
}

.product-details {
  font-size: 12px;
  color: #888;
  margin-bottom: 3px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.product-qty {
  color: #666;
}

.product-subtotal {
  font-weight: bold;
  color: var(--primary);
}

/* Totaux */
.order-totals {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
}

.total-row.final {
  border-top: 2px solid #e0e0e0;
  padding-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
}

/* Actions */
.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-action {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-family: Po02;
}

.btn-primary-action {
  background: var(--primary);
  color: white;
}

.btn-primary-action:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-secondary-action {
  background: #e8e8e8;
  color: #333;
}

.btn-secondary-action:hover {
  background: #d0d0d0;
}

.btn-danger-action {
  background: #dc3545;
  color: white;
}

.btn-danger-action:hover {
  background: #c82333;
}

/* Formulaire remboursement */
.refund-form {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-size: 13px;
}

.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: Po02;
  resize: none;
  height: 150px;
  font-weight: bold;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--pprimary-1);
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.empty-title {
  font-size: 18px;
  font-weight: bold;
  color: #999;
  margin-bottom: 5px;
}

.empty-text {
  font-size: 13px;
  color: #bbb;
}

/* Loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.loader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.dropzone.dragover {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.dropzone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.dropzone {
  text-align: center;
  border-radius: 6px;
  position: relative;
  height: 200px;
  max-width: 350px;
  border: 2px dashed var(--secondary-4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
  gap: 8px;
  flex-direction: column;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--secondary-3);
}

.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-1);
}

.dropzone .mio {
  font-size: 32px;
  opacity: .7;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==================== SECTION AVIS ==================== */
.avis-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.avis-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  transition: box-shadow 0.3s;
}

.avis-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avis-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.avis-product-img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.avis-product-info {
  flex: 1;
}

.avis-product-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--primary);
  text-decoration: underline;
}

.avis-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.avis-stars {
  display: flex;
  gap: 2px;
}

.avis-stars .mio {
  font-size: 14px;
  color: #ffc107;
}

.avis-stars .mio.gray {
  color: #ddd;
}

.avis-date {
  font-size: 12px;
  color: #999;
}

.avis-menu-wrapper {
  position: relative;
}

.avis-menu {
  position: absolute;
  top: 0;
  right: 35px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  overflow: hidden;
}

.avis-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  font-weight: bold;
  width: 100%;
}

.avis-menu-item:last-child {
  border-bottom: none;
}

.avis-menu-item:hover {
  background: #f5f5f5;
}

.avis-menu-item.danger {
  color: #dc3545;
}

.avis-menu-item.danger:hover {
  background: #ffe6e6;
}

.avis-content {
  margin-bottom: 12px;
}

.avis-comment {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 0 6px 6px 0;
  border-left: 3px solid #888;
}

.avis-response {
  background: #f0f8ff;
  border-radius: 6px 0 0 6px;
  padding: 12px;
  border-right: 3px solid #4169e1;
  margin-top: 10px;
}

.avis-response-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.avis-response-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avis-response-user {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.avis-response-user .mio {
  font-size: 14px;
  color: #4caf50;
}

.avis-response-date {
  font-size: 12px;
  color: #999;
}

.avis-response-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.btn-new-avis {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--pprimary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-new-avis:hover {
  background: var(--primary);
}

.btn-new-avis .mio {
  font-size: 18px;
}

/* Stars selector */
.stars-selector {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}

.star-selector {
  font-size: 32px;
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s, transform 0.2s;
}

.star-selector:hover,
.star-selector.active {
  color: #ffc107;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .section-header h1 {
    font-size: 22px;
  }

  .orders-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    border-radius: 0;
    min-width: 100%;
    min-height: 100%;
  }

  .order-actions {
    flex-direction: column;
  }

  .avis-container {
    grid-template-columns: 1fr;
  }

  .modal-body {
    max-height: auto;
    overflow: unset;
  }
}

/* Favorites styles */
.favorites-container .favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.favorite-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.favorite-card .fav-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.favorite-card .fav-body {
  flex: 1;
}

.favorite-card .fav-title {
  font-weight: 700;
  color: var(--text-color, #222);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

.favorite-card .fav-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  padding: 10px 0;
}

#clear-favorites-btn {
  max-width: max-content;
}

.favorite-card .fav-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 780px) {
  .favorites-container .favorites-grid {
    grid-template-columns: 1fr;
  }
}

/* Settings section styles */
.settings-container {
  display: grid;
  gap: 30px;
  max-width: 600px;
}

.settings-group {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.settings-group h3 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
}

.profile-pic-figure {
  margin: 0 0 15px 0;
  text-align: center;
}

.profile-pic-figure img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
  display: inline-block;
}

.settings-form {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 25px;
  display: grid;
  gap: 18px;
}

.settings-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-form .form-group label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-color, #222);
}

.settings-form .form-group input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: Po02;
  font-weight: bold;
  outline: none;
  transition: border-color 0.3s;
}

.settings-form .form-group input:focus {
  border-color: var(--primary-color, #333);
}

.settings-form .form-group input[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}

.settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .settings-container {
    max-width: 100%;
  }

  .settings-form {
    padding: 15px;
  }

  .settings-actions {
    flex-direction: column-reverse;
  }

  .settings-actions .btn-action {
    width: 100%;
  }
}