/**
 * CONTAINER MODERNE AVEC MEDIA QUERIES
 * Approche Mobile-First avec breakpoints standards 2025
 */

/* Variables CSS pour les breakpoints */
:root {
  --primary-color: #c42333;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --hover-color: #63151d;
  --white-color: #63151d;
  --gray-color: #cccccc;

  --breakpoint-xs: 320px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;
  --breakpoint-3xl: 1600px;

  /* Container max-widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1320px;
  --container-3xl: 1536px;

  /* Gutters */
  --gutter-xs: 1rem;
  --gutter-sm: 1.5rem;
  --gutter-md: 2rem;
  --gutter-lg: 2.5rem;
  --gutter-xl: 3rem;

  /* Typography avec Inter */
  --font-family-primary: "Gotham Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-family-secondary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen;

  /* Font weights Inter */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Font sizes fluides */
  --font-size-xs: clamp(0.75rem, 0.5vw + 0.7rem, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.5vw + 0.8rem, 1rem);
  --font-size-base: clamp(1rem, 1vw + 0.8rem, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1.5vw + 0.8rem, 1.25rem);
  --font-size-xl: clamp(1.25rem, 2vw + 0.8rem, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 3vw + 0.8rem, 2rem);
  --font-size-3xl: clamp(2rem, 4vw + 1rem, 3rem);

  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
}

::selection {
  background-color: rgba(
    196,
    35,
    51,
    0.3
  ); /* Utilisation de rgba pour la transparence */
  color: #333333;
}

::-moz-selection {
  /* Firefox */
  background-color: rgba(196, 35, 51, 0.3);
  color: #333333;
}
/* ====================================
   TYPOGRAPHY GLOBALE AVEC Inter
   ================================== */

/* Fallback pendant le chargement de la font */

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-Medium.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-Medium.woff")
      format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-MediumItalic.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-MediumItalic.woff")
      format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-BoldItalic.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-BoldItalic.woff")
      format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-BookItalic.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-BookItalic.woff")
      format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-Book.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-Book.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-Bold.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-Bold.woff")
      format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-Light.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-Light.woff")
      format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("/themes/spirale/assets/fonts/gotham/GothamRnd-LightItalic.woff2")
      format("woff2"),
    url("/themes/spirale/assets/fonts/gotham/GothamRnd-LightItalic.woff")
      format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("sans-serif");
  font-display: swap;
  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 10%;
}

/* Application de Poppins sur le body */
body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  /* line-height: var(--line-height-normal); */
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: #f8f9fc;
}

#wrapper {
  background: #f8f9fc;
}

a:hover {
  color: var(--primary-color) !important;
}

/* Titres avec Poppins */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: 0.5em;
  color: #2c3e50;
}

h1,
.h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

h2,
.h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h3,
.h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

h4,
.h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

h5,
.h5 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

h6,
.h6 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Paragraphes optimisés */
p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1em;
}

/* ====================================
   CONTAINER DE BASE - MOBILE FIRST
   ================================== */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-xs);
  padding-right: var(--gutter-xs);
}

/* ====================================
   CONTAINER FLUIDE MODERNE
   ================================== */

.container-fluid {
  width: 100%;
  padding-left: var(--gutter-xs);
  padding-right: var(--gutter-xs);
}

/* ====================================
   CONTAINER AVEC CLAMP() - MODERNE
   ================================== */

.container-modern {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

/* ====================================
   MEDIA QUERIES - MOBILE FIRST
   ================================== */

/* Extra Small devices (landscape phones) */
@media (min-width: 576px) {
  .container {
    max-width: var(--container-sm);
    padding-left: var(--gutter-sm);
    padding-right: var(--gutter-sm);
  }

  .container-fluid {
    padding-left: var(--gutter-sm);
    padding-right: var(--gutter-sm);
  }
}

/* Small devices (tablets) */
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
    padding-left: var(--gutter-md);
    padding-right: var(--gutter-md);
  }

  .container-fluid {
    padding-left: var(--gutter-md);
    padding-right: var(--gutter-md);
  }
}

/* Medium devices (desktops) */
@media (min-width: 992px) {
  .container {
    max-width: var(--container-lg);
    padding-left: var(--gutter-lg);
    padding-right: var(--gutter-lg);
  }

  .container-fluid {
    padding-left: var(--gutter-lg);
    padding-right: var(--gutter-lg);
  }
}

/* Large devices (large desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
    padding-left: var(--gutter-xl);
    padding-right: var(--gutter-xl);
  }

  .container-fluid {
    padding-left: var(--gutter-xl);
    padding-right: var(--gutter-xl);
  }
}

/* Extra large devices (extra large desktops) */
@media (min-width: 1400px) {
  .container {
    max-width: var(--container-xxl);
  }
}

/* 3XL devices (ultra wide screens) */
@media (min-width: 1600px) {
  .container {
    max-width: var(--container-3xl);
  }
}

/* ====================================
   CONTAINERS SPÉCIALISÉS
   ================================== */

/* Container étroit pour le contenu textuel */
.container-narrow {
  width: 100%;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-xs);
  padding-right: var(--gutter-xs);
}

@media (min-width: 576px) {
  .container-narrow {
    padding-left: var(--gutter-sm);
    padding-right: var(--gutter-sm);
  }
}

/* Container large pour les sections hero */
.container-wide {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-xs);
  padding-right: var(--gutter-xs);
}

@media (min-width: 768px) {
  .container-wide {
    padding-left: var(--gutter-md);
    padding-right: var(--gutter-md);
  }
}

@media (min-width: 1200px) {
  .container-wide {
    padding-left: var(--gutter-xl);
    padding-right: var(--gutter-xl);
  }
}

/* ====================================
   MEDIA QUERIES AVANCÉES
   ================================== */

/* Orientation portrait sur tablettes */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Écrans haute densité */
@media (min-resolution: 192dpi), (min-resolution: 2dppx) {
  .container {
    /* Ajustements pour les écrans Retina */
  }
}

/* Préférences utilisateur - Motion réduite */
@media (prefers-reduced-motion: reduce) {
  .container {
    scroll-behavior: auto;
  }
}

/* Préférences utilisateur - Thème sombre */
@media (prefers-color-scheme: dark) {
  .container {
    /* Ajustements pour le mode sombre */
  }
}

/* ====================================
   QUERY CONTAINERS (NOUVEAU)
   ================================== */

/* Container queries - approche moderne */
.card-container {
  container-type: inline-size;
  container-name: card;
}

@container card (min-width: 300px) {
  .card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* ====================================
   UTILITIES RESPONSIVE
   ================================== */

   .p-7 {
    padding: 1.75rem !important;
}
.w-225px {
    width: 225px !important;
}

.text-xs {
  font-size: var(--font-size-xs);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

.text-3xl {
  font-size: var(--font-size-3xl);
}

.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

.font-extrabold {
  font-weight: var(--font-weight-extrabold);
}

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

/* Classes utilitaires pour affichage responsive */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-grid {
  display: grid !important;
}

.d-inline {
  display: inline !important;
}

.flex-column {
      flex-direction: column;
}

.align-items-start {
      align-items: flex-start;
}


@media (min-width: 576px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }

  .d-sm-grid {
    display: grid !important;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-grid {
    display: grid !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-lg-grid {
    display: grid !important;
  }
}

@media (min-width: 1200px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-flex {
    display: flex !important;
  }

  .d-xl-grid {
    display: grid !important;
  }
}

/* ====================================
   PADDING & MARGIN RESPONSIVE
   ================================== */

.p-responsive {
  padding: clamp(1rem, 3vw, 3rem);
}

.px-responsive {
  padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
}

.py-responsive {
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

/* ====================================
   OPTIMISATIONS PERFORMANCE
   ================================== */

/* Préchargement critique des fonts */
.font-display-swap {
  font-display: swap;
}

/* Réduction motion pour accessibilité */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #4f9eff;
  }

  body {
    background-color: #1a1a1a;
    color: #e5e5e5;
  }
}

/* ====================================
   PRINT STYLES
   ================================== */

@media print {
  body {
    font-family: var(--font-family-secondary);
    /* Fallback pour l'impression */
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* ====================================
   EXEMPLES D'USAGE AVANCÉ
   ================================== */

   .menu-sub-dropdown {
    display: none;
    border-radius: .475rem;
    background-color: #fff;
    box-shadow: 0 0 50px 0 rgba(82, 63, 105, .1);
    z-index: 105;
}

/* Container pour sections avec fond pleine largeur */
.section-container {
  width: 100%;
}

.section-container .container {
  /* Le contenu reste dans le container normal */
}

/* Container avec débordement contrôlé */
.overflow-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.overflow-container .container {
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
}

/* ====================================
   FALLBACKS POUR ANCIENS NAVIGATEURS
   ================================== */

/* Fallback pour navigateurs sans support de clamp() */
@supports not (width: clamp(1rem, 5vw, 3rem)) {
  .container-modern {
    width: 100%;
    max-width: 1320px;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  @media (max-width: 767px) {
    .container-modern {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  }
}

/* ====================================
   CONTAINER AVEC CSS GRID
   ================================== */

.grid-container {
  display: grid;
  grid-template-columns:
    [full-start] minmax(1rem, 1fr) [content-start] minmax(0, 1320px)
    [content-end] minmax(1rem, 1fr) [full-end];
  width: 100%;
}

.grid-container > * {
  grid-column: content;
}

.grid-container .full-width {
  grid-column: full;
}

/* ====================================
   HEADER
   ================================== */

#header .header-top {
  padding: 0;
}

#header .header-top-one {
  padding: 0;
  padding: 1.25rem 0;
}

.header-nav {
  background: #8e1212;
}

#header .header-nav a {
  color: #fff;
}

#header .header-nav a:hover {
  color: #d2d2d2 !important;
}

.top-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .header-nav .right-nav {
  /* justify-content: center; */
}

#header .header-nav .blockcart {
  background: #7e1313;
  color: #fff"
}

#header .header-nav .cart-preview .shopping-cart {
  color: #fff;
}

#header #top-menu .category {
  max-width: 15em;
}

#header .header-top .menu {
    padding-left: 0px; 
}

#header #top-menu .dropdown-item {
  white-space: normal;
      color: #333;
}

#header #top-menu .top-menu {
  display: flex;
  justify-content: center;
}

#header #top-menu #category-3 .top-menu {
  flex-wrap: wrap;
  justify-content: flex-start;
}

#header #top-menu #category-3 .top-menu .category {
  max-width: 19em;
}

.top-menu a[data-depth="0"] {
    font-size: 1.2rem;
}

.header-top-two {
  background: #f1f1f1;
}

#_desktop_logo {
  display: flex;
  justify-content: center;
}

#header .header-nav .cart-preview.active {
  background: #bd3434;
}

#contact-link {
  color: #fff;
}

#menu-icon {
  color: #fff;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
}

#header .header-nav .blockcart {
  /* height: auto;
  padding: 0; */
}

#header .header-nav {
  max-height: 61px;
  /* padding: 1em; */
}

#header .header-nav #_desktop_contact_link #contact-link {
  margin-top: 0px;
  padding: 1em;
  margin-left: 0rem;
}


#header .header-nav .user-info {
  margin-top: 3px;
  margin-left: 0rem;
}

#header .header-nav .blockcart {
  height: 3.6rem;
  padding: 1rem;
}

.contact-link, .right-nav{
  width: 32rem;
   max-width: 32rem;

}

.LoginButton_button{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-info svg path {
  fill: #fff;
}

.user-info svg {
font-size: 75px;
    width: 55px;
    height: 45px;
}

#header #_desktop_user_info .user-info .dropdown > a.account{
    display: flex;
    padding: 5px;
    align-items: center;
}

#header #_desktop_user_info .dropdown.open .dropdown-menu
 {
    display: flex;
    padding: 5px;
    align-items: flex-start;
    flex-direction: column;
}

#header .header-nav .user-info .signout {
    margin-left: 0.625rem;
}

#header #_desktop_user_info .dropdown.open .dropdown-menu a{
  color: #333;
}

#checkout .header-nav{
	display: none !important;
}

@media (max-width: 1200px) {
	#header .header-nav {
		max-height: 100%;
	}
    .top-nav-wrapper {
        flex-direction: column;
    }  

    .contact-link, .right-nav {
		width: auto;
	}
	#header .header-nav #menu-icon {
		height: 2.5rem;
		display: flex;
		align-items: center;
	}
	#header .header-nav .user-info .account {
		display: flex;
		height: 4rem;
		align-items: center;
	}
	#header .header-nav .blockcart {
		height: 4rem;
		padding: 1rem;
		display: flex;
		align-items: center;
	}

	.user-info > a > div{
		height: 4rem;
		display: flex;
		align-items: center;
	}
}

@media (max-width: 767px) {
    #header .top-logo img {
        width: auto;
        max-height: 4rem;
    }

    #header .top-logo {
        justify-content: center;
    }

}

/* ====================================
   FOOTER
   ================================== */
#footer {
  background-color: #fff;
}

.block_newsletter {
  background: #f8f0e6;
  padding: 2em;
  border-radius: 2em;
}

/* ====================================
   HOMEPAGE CAROUSSEL
   ================================== */
.carousel .carousel-inner {
  height: 575px;
}

.carousel .carousel-item figure {
  width: 100%;
}

/* ====================================
   CATEGORY
   ================================== */
.block-category h1 {
  color: #fff;
}

#subcategories ul li {
  width: calc(80% / 4 - 20px);
  min-width: 185px;
}

#subcategories ul li a {
  color: var(--primary-color);
}

body #subcategories ul li .subcategory-image a:hover,
body #subcategories ul li:hover .subcategory-image a {
  border: 5px solid var(--secondary-color);
}

body #subcategories ul li .subcategory-name:hover {
  color: var(--secondary-color);
}

.block-category,
.block-categories,
#search_filters_brands,
#gcorderform_block_left {
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
}

#gcorderform_block_left p {
  text-align: left;
}

#gcorderform_block_left img {
  margin: 0px auto;
  display: block;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  #subcategories ul li {
    width: calc(80% / 4 - 20px);
    min-width: 151px;
  }
}

/* ====================================
   CARD PRODUCT MINIATURE
   ================================== */

/* Style de la carte produit */

.page-index .product,
.page-search .product {
  width: 20%;
  min-width: 220px;
}

.product-miniature {
  display: block;
  position: relative;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.product-miniature:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.thumbnail-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
}

.thumbnail-top {
  position: relative;
  overflow: hidden;
}

.product-thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

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

.product-thumbnail:hover img {
  transform: scale(1.05);
}

.highlighted-informations {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumbnail-container:hover .highlighted-informations {
  opacity: 1;
}

.quick-view {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  transition: color 0.2s ease;
}

.quick-view:hover {
  color: rgba(255, 255, 255, 0.8);
}

.product-description {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.product-flags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.product-flag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
  border-radius: 9999px;
}

.product-miniature .product-flags li.product-flag {
  min-width: auto;
  min-height: auto;
  padding: 0.1125rem 0.6375rem;
  margin-top: 0px;
  font-size: 0.7rem;
  text-transform: uppercase;
  word-break: break-word;
  pointer-events: auto;
  background: #24b9d7;
}

.product-flag.new {
  background-color: #10b981;
}

.wishlist-button-add {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
  z-index: 10;
}

.wishlist-button-add:hover {
  background-color: #ffffff;
}

.wishlist-button-add i {
  color: #4b5563;
  transition: color 0.2s ease;
}

.wishlist-button-add:hover i {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  #js-product-list .products .product,
  .featured-products .products .product {
    float: left;
    width: 50%;
  }

  .header-top-one {
    display: none;
  }

  .page-index .product,
  .page-search .product {
    min-width: 190px;
  }

  .product-title {
    font-size: 1rem;
  }

  .price {
    font-size: 1.125rem;
  }

  .product-flags {
    top: 0.5rem;
    left: 0.5rem;
  }

  .wishlist-button-add {
    top: 0.5rem;
    right: 0.5rem;
  }
  #search_widget {
    margin-bottom: 0;
  }
}

#products .all-product-link,
.featured-products .all-product-link,
.product-accessories .all-product-link {
  color: #8d1212;
  text-decoration: underline;
}

/* ====================================
   NEWSLETTER
   ================================== */

.block_newsletter {
  margin-bottom: 2em !important;
}

.block_newsletter .d-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.block_newsletter #block-newsletter-label {
  font-size: 1.9125rem;
}

footer a {
  color: var(--hover-color) !important;
}

@media (max-width: 768px) {
  .block_newsletter {
    border-radius: 0;
  }
}

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

/* Footer Container */
.footer-container {
  background-color: #fafafa;
  color: #333;
  padding: 4rem 0 2rem;
  position: relative;
}

/* Sections */
.footer-container .links {
  margin-bottom: 2rem;
}

/* Titres */
.footer-container .h3,
.footer-container .h4,
.block-contact-title {
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-container .h3::after,
.footer-container .h4::after,
.block-contact-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: #8e1212;
}

/* Lists */
.footer-container ul {
  padding: 0;
  margin: 0;
}

.footer-container li {
  margin-bottom: 0.75rem;
}

.footer-container a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.125rem;
  display: inline-block;
  position: relative;
}

.footer-container a:hover {
  color: #ffffff;
}

.footer-container a:hover::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #8e1212;
  transform: scaleX(1);
  transition: transform 0.2s ease;
}

/* Block Contact */
.block-contact {
  font-size: 0.95rem;
  line-height: 1.75;
}

#contact-infos {
  color: #333;
}

#contact-infos a {
  color: #ffffff;
  font-weight: 500;
}

/* Copyright */
footer .text-sm-center {
  border-top: 1px solid rgb(0 0 0 / 10%);
  margin-top: 2rem;
  padding-top: 2rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.text-sm-center a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.text-sm-center a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    padding: 2rem;
  }

  .footer-container .h3,
  .footer-container .h4,
  .block-contact-title {
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .footer-container .links {
    margin-bottom: 1.5rem;
  }

  .collapse {
    display: none;
  }

  .collapse.in {
    display: block;
  }

  /* Style pour les toggles mobile */
  .title[data-target] {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-toggler.collapse-icons {
    color: #ffffff;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-container .links ul {
  animation: fadeIn 0.3s ease-out;
}

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

/* Pagination Container */

.pagination .page-list {
  background: transparent;
  border: none;
}

.pagination {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  font-family: var(--font-family-primary);
}

/* Texte "Affichage X-Y de Z article(s)" */
.pagination .col-md-4 {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Liste de pagination */
.page-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items de pagination */
.page-list li {
  margin: 0;
}

/* Liens de pagination */
.page-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

/* Hover des liens */
.page-list li a:hover:not(.disabled) {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #1f2937;
}

/* Page active */
.page-list li.current a {
  background-color: #8e1212;
  border-color: #8e1212;
  color: #ffffff;
  font-weight: 500;
}

/* Lien désactivé */
.page-list li a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Bouton Suivant */
.page-list li a.next {
  padding-right: 1rem;
  gap: 0.25rem;
}

/* .page-list li a.next i.material-icons::after {
  content: "arrow_forward";
  font-family: "Material Icons";
  font-size: 1.25rem;
  margin-left: 0.25rem;
} */

/* Responsive */
@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination .col-md-4 {
    text-align: center;
    width: 100%;
  }

  .pagination .col-md-6 {
    width: 100%;
  }

  .page-list {
    justify-content: center;
  }

  .page-list li a {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Animations */
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.page-list li a {
  animation: scaleIn 0.2s ease-out;
}

/* Focus styles pour l'accessibilité */
.page-list li a:focus {
  outline: 2px solid #8e1212;
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .page-list li a {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
  }

  .page-list li a:hover:not(.disabled) {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .page-list li.current a {
    background-color: #8e1212;
    border-color: #8e1212;
  }

  .pagination .col-md-4 {
    color: #9ca3af;
  }
}

/* ====================================
   PAGE ACCOUNT
   ================================== */

.page-my-account #content .links a:hover i {
  color: var(--primary-color);
}

.page-my-account #content .links > a .link-item {
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
}

.page-my-account #content .links a div.link-item {
  display: block;
  height: 100%;
  padding: 1rem;
  background: #fff;
}

.page-my-account #content .account-link-card {
  border: none;
}

#main .page-content {
  margin-bottom: 1.563rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
}

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

.product-prices.js-product-prices {
  display: flex;
}

.tab-content {
  background: #fff;
  padding: 2em;
}

.tab-content a {
  color: var(--primary-color);
}

.product-container .product-price {
  font-size: 2.1538461538rem;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  color: var(--primary-color);
}

.tabs .nav-tabs .nav-link.active {
  color: var(--primary-color);
  border: none;
  border-bottom: var(--primary-color) 3px solid;
}

.tabs .nav-tabs .nav-link:hover {
  border-bottom: var(--primary-color) 3px solid;
}

#blockcart-modal .product-name {
  font-size: 1.125rem;
  color: var(--primary-color);
}

.btn-primary:hover {
  color: #ffffff !important;
}

.card.cart-container,
.card.cart-summary {
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
}

.checkout-left,
.checkout-right {
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
  background: #fff;
}

.row-wrapper-flex {
  display: flex;
  gap: 2em;
}

.checkout-right a {
  color: var(--secondary-color);
  text-decoration: none;
}

.product-price {
  display: inline-block;
  max-width: 100%;
  color: var(--primary-color);
}

.form-control:focus {
  color: #232323;
  background-color: #fff;
  outline: 0.1875rem solid var(--primary-color) !important;
}

.custom-radio input[type="radio"]:checked + span {
  background-color: var(--primary-color);
}

body#checkout section.checkout-step .address-item.selected {
  background: #fff;
  border: var(--primary-color) 3px solid;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px #0000000d;
}

body#checkout section.checkout-step a {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .row-wrapper-flex {
    flex-direction: column-reverse;
  }
}

/* Carousel Styles */
.carousel .carousel-inner {
  height: 575px;
  position: relative;
  overflow: hidden;
}

.carousel .carousel-item {
  height: 100%;
}

.carousel .carousel-item figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel .carousel-item img {
  width: auto;
  height: 100%;
  max-width: none;
  position: relative;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .carousel .carousel-inner {
    height: 575px;
  }

  .carousel .carousel-item figure {
    background-color: #f8f9fa;
  }

  .carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Style pour la caption */
  .carousel .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
  }
}

/* ====================================
   AUTHENTIFICATION
   ================================== */

.page-authentication #content,
.page-registration #content {
  padding: 1rem;
  background: #fff;
    max-width: 100%;
  margin: 0 auto;
}

.page-authentication #content a,
.page-registration #content a {
  color: var(--primary-color);
}


#send-reset-link{
  border-radius: 0px 0.75rem 0.75rem 0px;
}

.forgotten-password .form-fields label.required {
    width: 160px;
}

.ps-social-follow svg{
  width: 50px;
  height: 50px  ;
}

#products-per-page-select.dropdown-menu {
    left: -10.5rem;
}