/*
Theme Name: Astra Child Quizzical
Template: astra
Version: 1.0.0
Description: A bold industrial tools e-commerce theme with gold/silver/black color scheme
*/

/* CSS Variables for consistent theming */
:root {
    /* Colors - Bold Industrial Scheme */
    --primary-color: #D4AF37;
    --primary-hover: #B8860B;
    --secondary-color: #C0C0C0;
    --accent-color: #B8860B;
    --dark-bg: #0A0A0A;
    --light-bg: #1A1A1A;
    --text-color: #E5E5E5;
    --text-light: #999999;
    --text-white: #fff;
    --border-color: #333333;
    --border-light: #444444;
    --bg-light: #1A1A1A;
    --bg-white: #0A0A0A;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    
    /* Metallic Gradients */
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4A6 50%, #D4AF37 100%);
    --silver-gradient: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 50%, #C0C0C0 100%);
    --dark-gradient: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
    
    /* Shadows - Enhanced with gold tints */
    --shadow-sm: 0 2px 8px rgba(212, 175, 55, 0.15);
    --shadow-md: 0 4px 12px rgba(212, 175, 55, 0.2);
    --shadow-lg: 0 8px 24px rgba(212, 175, 55, 0.25);
    --shadow-xl: 0 12px 32px rgba(212, 175, 55, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.5);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    
    /* Transitions - Smoother animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius - Sharp industrial look */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Container Widths */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/*-----------------------------------------------
  Keyframe Animations
------------------------------------------------*/
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product fade-in animations */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/*-----------------------------------------------
  Performance Optimizations & Reduced Motion
------------------------------------------------*/

/* GPU Acceleration for smooth animations */
.product,
.button,
.hero-slide,
.products-slider .product,
#products-container .product {
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Reduced Motion Support - Respects user preferences */
@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;
    }
    
    /* Disable Ken Burns effect */
    .hero-slide-bg {
        animation: none !important;
    }
    
    /* Disable floating animations */
    .onsale,
    .product-badge {
        animation: none !important;
    }
    
    /* Disable parallax effects */
    .hero-slider-container,
    .hero-slide-bg {
        transform: none !important;
    }
    
    /* Simplify hover effects */
    .product:hover,
    .button:hover {
        transform: translateY(-2px) !important;
    }
}

/* Performance: Disable complex effects on low-end devices */
@media (max-width: 768px) and (max-resolution: 1dppx) {
    .product:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
    
    #products-container .product img {
        transform: none !important;
    }
    
    .hero-slide-bg {
        animation: none !important;
    }
}

/*-----------------------------------------------
  0. Single Product Page Layout
------------------------------------------------*/
/* Force proper centering for single product page with maximum specificity */
html body.single-product #page,
html body.single-product #content,
html body.single-product .ast-container,
html body.single-product #primary,
html body.single-product .ast-woocommerce-container,
html body.single-product div.product,
html body.single-product .woocommerce-tabs,
html body.single-product .woocommerce div.product div.summary,
html body.single-product .woocommerce-page div.product div.summary {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
}

/* Reset WooCommerce specific styles */
html body.single-product .woocommerce-page div.product div.summary,
html body.single-product .woocommerce div.product div.summary {
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

/* Reset any conflicting layouts */
html body.single-product #primary,
html body.single-product .ast-woocommerce-container {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Ensure proper content alignment */
html body.single-product #primary .ast-article-single {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  html body.single-product #page,
  html body.single-product #content,
  html body.single-product .ast-container,
  html body.single-product #primary,
  html body.single-product .ast-woocommerce-container,
  html body.single-product div.product,
  html body.single-product .woocommerce-tabs {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  html body.single-product #page,
  html body.single-product #content,
  html body.single-product .ast-container,
  html body.single-product #primary,
  html body.single-product .ast-woocommerce-container,
  html body.single-product div.product,
  html body.single-product .woocommerce-tabs {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/*-----------------------------------------------
  0.5. Keyframe Animations
------------------------------------------------*/
/* Metallic shine animation */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Gold glow pulse */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3D flip in */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0);
    }
}

/* Ken Burns zoom and pan effect */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-10px, -10px);
    }
}

/* Gold underline animation */
@keyframes goldUnderline {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/*-----------------------------------------------
  0.6. Performance Optimizations & Accessibility
------------------------------------------------*/
/* GPU acceleration for animated elements */
.product,
.hero-slide-bg,
.hero-text-overlay,
.button,
.woocommerce-loop-product__title,
img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Image lazy loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduce motion for accessibility */
@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;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-slide-bg {
        animation: none !important;
    }
    
    .product {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-text-overlay * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Keep essential animations but make them instant */
    .swiper-slide {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FFD700;
        --text-color: #FFFFFF;
        --border-color: #FFD700;
    }
    
    .product,
    .button {
        border-width: 2px;
    }
}

/* Dark mode support (in case user has OS-level dark mode) */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--dark-bg);
        color: var(--text-color);
    }
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .hero-slider-container,
    .products-slider-container,
    button,
    .button {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .product,
    .single-product-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/*-----------------------------------------------
  1. General
------------------------------------------------*/
/*Toute les pages sauf Home*/
body:not(.home) .site-header {
  margin-bottom: 30px; /* ou la valeur souhaitée */
}
/*CONTENEUR CENTRAL AVEC MARGES LATÉRALES S'applique au contenu principal, PAS au hero ni footer*/
.ast-container,
.site-content,
.page .ast-container,
.single-post .ast-container,
.single-product .ast-container,
.archive .ast-container,
.contact-horizontal-layout,
.content-wrapper,
.quizzical-cart-container,
.quizzical-thankyou-container,
.single-product #content {
  margin: 0 auto !important; /* Add !important to override conflicts */
  box-sizing: border-box;
  max-width: 1200px !important; /* Add !important for fixed max-width */
  padding: 0 20px !important; /* Add !important for consistent padding */
  width: 100% !important; /* Ensure full width within max-width */
  float: none !important; /* Prevent floating issues */
}

/* Mobile responsive padding adjustments */
@media (max-width: 480px) {
  .ast-container,
  .site-content,
  .page .ast-container,
  .single-post .ast-container,
  .single-product .ast-container,
  .archive .ast-container,
  .contact-horizontal-layout,
  .content-wrapper,
  .ingco-cart-container,
  .ingco-thankyou-container,
  .single-product #primary {
    padding: 0 15px !important; /* Reduced padding for small mobile screens */
  }
}

@media (max-width: 360px) {
  .ast-container,
  .site-content,
  .page .ast-container,
  .single-post .ast-container,
  .single-product .ast-container,
  .archive .ast-container,
  .contact-horizontal-layout,
  .content-wrapper,
  .ingco-cart-container,
  .ingco-thankyou-container {
    padding: 0 10px !important; /* Further reduced padding for very small screens */
  }
}

body.page-my-account #secondary,
body.woocommerce-account #secondary {
    display: none !important;
} 
/*-----------------------------------------------
  2.Header 
------------------------------------------------*/
/* ========== RESET & BASE ========== */
.site-header {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

.header-main-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ========== HEADER BOTTOM LINE ========== */
.header-bottom-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 0 10px;
}

/* Logo */
.site-header-left {
    flex: 0 0 auto;
}

.site-branding a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Menu central desktop */
.site-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-menu .main-header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.desktop-menu .main-header-menu > li > a {
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.desktop-menu .main-header-menu > li > a:hover,
.desktop-menu .main-header-menu > li.current-menu-item > a {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Sous-menus */
.main-header-menu .sub-menu {
    background-color: var(--dark-bg) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-left: 3px solid var(--primary-color) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 30px rgba(212, 175, 55, 0.15) !important;
    padding: 10px 0 !important;
    min-width: 200px;
    position: absolute;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.main-header-menu > li:hover > .sub-menu,
.main-header-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-header-menu .sub-menu li a {
    color: #fff !important;
    padding: 10px 20px !important;
    background: transparent !important;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-header-menu .sub-menu li a:hover {
    color: var(--primary-color) !important;
    background: var(--light-bg) !important;
    padding-left: 25px !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Icônes */
.site-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ast-site-header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.ast-site-header-icons .account-container,
.ast-site-header-icons .cart-container {
    position: relative;
    padding: 0;
    margin: 0;
}
.ast-site-header-account a,
.ast-site-header-cart a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ast-site-header-account a:hover,
.ast-site-header-cart a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    transform: scale(1.1);
}

.ast-site-header-icons i,
.ast-site-header-cart .ast-addon-cart-wrap i.astra-icon {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Badge panier */
.ast-site-header-cart {
    position: relative;
}

.ast-site-header-cart .count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    min-width: 18px !important;
    height: 18px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    font-size: 11px !important;
    font-weight: bold;
    border-radius: 50%;
    line-height: 18px !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    transform: scale(1) !important;
    border: 1px solid var(--primary-hover);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: goldPulse 2s infinite;
}
/* Hamburger */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.hamburger-box {
    width: 30px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: #fff;
    display: block;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    left: 0;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Menu mobile */
.mobile-menu-overlay {
    display: none;
    position: absolute; /* positionné par rapport au header */
    top: 100%; /* juste en dessous du header */
    left: 0;
    right: 0;
    background: #000;
    z-index: 9998;
}


.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-overlay .main-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay .main-header-menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    background: #000 !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-bottom: 1px solid #333;
}

.mobile-menu-overlay .main-header-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    padding-left: 30px !important;
}

.mobile-menu-overlay .main-header-menu .sub-menu {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.mobile-menu-overlay .main-header-menu .sub-menu li a {
    padding: 15px 20px;
    font-size: 16px;
    background: #000 !important;
    border-bottom: 1px solid #333;
}

.mobile-menu-overlay .main-header-menu .menu-item-has-children > a::after {
    display: none !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .site-header-center {
        display: none;
    }

     /* Ligne principale */
    .header-bottom-line {
        display: flex;
        align-items: center; /* aligne tout verticalement */
        justify-content: space-between;
        height: 60px; /* hauteur du header */
        padding: 0 10px;
    }

    /* Bloc contenant icônes + hamburger */
    .site-header-right {
        display: flex;
        align-items: center; /* aligne icônes et hamburger sur le même axe */
        gap: 10px;
    }
    /* Hamburger */
    .menu-toggle {
        display: flex;
        align-items: center; /* centre les lignes du hamburger verticalement */
        justify-content: center;
        padding: 0;
        width: 36px;
        height: 36px; /* même hauteur que les icônes pour un alignement parfait */
    }

    .hamburger-box {
        display: flex;
        align-items: center; /* centre la barre du hamburger verticalement */
    }
    .ast-site-header-cart .count {
        font-size: 10px;
        padding: 1px 4px;
        top: -5px;
        right: -5px;
    }

	 .mobile-menu-overlay {
        top: 100%; /* collé juste en dessous du header */
    }
}
/*-----------------------------------------------
  3.Footer 
------------------------------------------------*/
/* Extension full-width du footer */
.site-footer,
.custom-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 30px 0 20px;
  background: #000;
  color: #fff;
  z-index: 1;
  margin-top: 40px;
}
/* Conteneur intérieur centré */
.site-footer .ast-container,
.custom-footer .ast-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
/* Grille principale du footer */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
}
/* Blocs du footer (Logo, Liens, Catégories, Contact) */
.footer-main > div {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
  text-align: center;
}
/* Supprimer les puces et marges par défaut */
.footer-main ul,
.footer-main li {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Titres des sections */
.footer-main h4 {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-bottom: 12px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--secondary-color); /* Trait personnalisable */
  display: inline-block; /* Pour que le border-bottom ne prenne pas toute la largeur */
}
/* Liens, textes, adresses */
.footer-main a,
.footer-main p,
.footer-main address,
.footer-main li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
  line-height: 1.6;
}
.footer-main a:hover {
  color: var(--primary-color);
}
/* Logo du Footer */
.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 10px 0;
  padding-left :50px;
}
.footer-logo img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}
/* Liens Rapides (Menu Footer en 2 colonnes)*/
.footer-links-grid .two-columns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  margin-top: 8px;
}
.footer-links-grid .two-columns .footer-menu-col {
  flex: 1;
  max-width: 140px;
}
.footer-links-grid .two-columns .footer-menu-col li {
  margin: 4px 0;
  text-align: left;
}
.footer-links-grid .two-columns .footer-menu-col a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
/* Categories (Menu Footer en 2 colonnes)*/
.footer-cat-grid .two-columns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  margin-top: 8px;
}
.footer-cat-grid .two-columns .footer-cat-list {
  flex: 1;
  max-width: 140px;
}
.footer-cat-grid .two-columns .footer-cat-list li {
  margin: 4px 0;
  text-align: left;
}
.footer-cat-grid .two-columns .footer-cat-list a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}
/*Contact & Réseaux sociaux*/
.footer-main .social-links {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 1rem;
  gap: 10px;
}
.footer-main .social-links a {
  color: #fff;
  font-size: 1.4em;
  transition: color 0.3s ease;
}
.footer-main .social-links a:hover {
  color: var(--primary-color);
}
/* Footer bas (copyright)*/
.footer-bottom {
  width: 100%;
  text-align: center;
  padding: 15px 0; /* Réduction du padding */
  margin-top: 10px; /* Réduction de la marge */
  border-top: 1px solid #333;
  font-size: 0.9em;
  color: #aaa;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}
.sep {
  margin: 0 8px;
  color: #777;
}

/*-----------------------------------------------
 Responsive Footer - Mobile & Tablettes 
------------------------------------------------*/
@media (max-width: 768px) {
  .site-footer,
  .custom-footer {
    padding: 20px 0;
    margin-top: 25px;
  }
  .site-footer .ast-container,
  .custom-footer .ast-container {
    padding: 0 15px;
  }
  /* Utilisation de flex pour empiler les blocs */
  .footer-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Chaque bloc occupe toute la largeur */
  .footer-main > div {
    flex: 1 1 100%;
    min-width: auto;
    padding: 0 10px;
  }
  /* Titres */
  .footer-main h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
    display: inline-block;
    width: 100%;
    text-align: center;
  }
  /* Textes */
  .footer-main a,
  .footer-main p,
  .footer-main li a {
    font-size: 0.85em;
    line-height: 1.5;
    text-align: center;
  }
  /* Logo */
  .footer-logo {
    padding-left: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .footer-logo img {
    max-width: 70%;
    height: auto;
    object-fit: contain;
  }
  .footer-links-grid .two-columns,
  .footer-cat-grid .two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 10px 20px; /* espacement horizontal/vertical */
    justify-content: center;
    margin-top: 8px;
  }
  /* Colonnes équilibrées */
  .footer-links-grid .two-columns .footer-menu-col,
  .footer-cat-grid .two-columns .footer-cat-list {
    max-width: none;
    text-align: left; /* Texte aligné à gauche pour remplir l'espace */
  }
  .footer-links-grid .two-columns .footer-menu-col li,
  .footer-cat-grid .two-columns .footer-cat-list li {
    margin: 4px 0;
    text-align: left;
  }
  /* Social links */
  .footer-main .social-links {
    justify-content: center;
    margin: 10px auto;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-main .social-links a {
    font-size: 1.2em;
  }
  /* Footer bas */
  .footer-bottom {
    padding: 10px 0;
    font-size: 0.8em;
  }
}
/*-----------------------------------------------
  4.Page Accueil 
------------------------------------------------*/
/*-----------------------------------------------
  4.1 Conteneur principal de la page d'accueil
------------------------------------------------*/
.ast-woocommerce-container {
  float: none !important;
  /* Removed padding: 0 !important to allow centering */
  /* Removed width: 100% !important to allow centering */
  /* Removed margin: 0 !important to allow centering */
}
/*-----------------------------------------------
  4.2 HERO SLIDER : ANIMATION MODERNE
--------------------------------------------------- */
.hero-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    height: 500px; /* Increased for text overlay */
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Active slide animations */
.swiper-slide-active .hero-slide {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.15);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    animation: kenBurns 15s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.15) translate(0, 0);
    }
    100% {
        transform: scale(1.25) translate(-5%, -3%);
    }
}

/* Enhanced active slide animations */
.swiper-slide-active .hero-slide-bg {
    opacity: 1;
    animation: kenBurns 15s ease-out infinite alternate;
}

/* Previous slide animation */
.swiper-slide-prev .hero-slide-bg {
    transform: scale(1.2) translateX(-10%);
}

/* Next slide animation */
.swiper-slide-next .hero-slide-bg {
    transform: scale(1.2) translateX(10%);
}

/* Slide transition effects */
.swiper-slide-active,
.swiper-slide-prev,
.swiper-slide-next {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark gradient overlay for text contrast */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(10, 10, 10, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.swiper-slide-active .hero-slide::after {
    opacity: 1;
}

/* Hero text overlay */
.hero-content,
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
}

.swiper-slide-active .hero-content,
.swiper-slide-active .hero-text-overlay {
    opacity: 1;
}

.hero-content h2,
.hero-text-overlay .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-content h2::after,
.hero-text-overlay .hero-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 1rem auto 0;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    animation: expandWidth 0.8s ease 0.8s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.hero-content p,
.hero-text-overlay .hero-subtitle {
    font-size: 1.3rem;
    color: #E5E5E5;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-content .hero-cta,
.hero-text-overlay .hero-cta {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--dark-bg);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-hover);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.7s both;
    position: relative;
    overflow: hidden;
}

.hero-content .hero-cta::before,
.hero-text-overlay .hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-content .hero-cta:hover::before,
.hero-text-overlay .hero-cta:hover::before {
    left: 100%;
}

.hero-content .hero-cta:hover,
.hero-text-overlay .hero-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Text Overlay Styling */
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    transition: transform 0.3s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    background: var(--gold-gradient);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    animation: goldUnderline 1s ease-out forwards;
    animation-delay: 0.5s;
    width: 0;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold-gradient);
    background-size: 200% 100%;
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-hover);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover {
    background-position: 100% center;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Navigation buttons - Optimized for mobile */
.hero-next,
.hero-prev {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid var(--primary-hover);
    border-radius: 50%;
    color: var(--dark-bg);
    font-weight: 700;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.hero-prev {
    left: 10px;
    transform: translateY(-50%) translateX(-10px) scale(0.9);
}

.hero-next {
    right: 10px;
    transform: translateY(-50%) translateX(10px) scale(0.9);
}

.hero-slider-container:hover .hero-next,
.hero-slider-container:hover .hero-prev {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
}

.hero-next:hover,
.hero-prev:hover {
    background: var(--gold-gradient);
    background-position: 100% center;
    color: var(--dark-bg);
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.hero-next:active,
.hero-prev:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: var(--shadow-sm);
}

/* Enhanced Pagination for mobile */
.hero-pagination {
    bottom: var(--spacing-sm) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0;
}

.hero-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0.5;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.hero-pagination .swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--gold-gradient);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.hero-pagination .swiper-pagination-bullet-active::after {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design - Mobile First */
/* Default is now mobile size. We'll scale up for larger screens */

/* Mobile hero text responsive */
@media (max-width: 767px) {
    .hero-text-overlay {
        max-width: 95%;
        padding: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .hero-title::after {
        height: 3px;
        bottom: -8px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* Tablet Portrait and up */
@media (min-width: 768px) {
    .hero-slider-container {
        height: 550px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-next,
    .hero-prev {
        width: 46px;
        height: 46px;
    }
    
    .hero-prev {
        left: 20px;
    }
    
    .hero-next {
        right: 20px;
    }
    
    .hero-pagination {
        bottom: var(--spacing-md) !important;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero-slider-container {
        height: 650px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-next,
    .hero-prev {
        width: 50px;
        height: 50px;
    }
    
    .hero-prev {
        left: 30px;
    }
    
    .hero-next {
        right: 30px;
    }
    
    .hero-pagination {
        bottom: var(--spacing-lg) !important;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }
}

/* Support for larger screens */
@media (min-width: 1200px) {
    .hero-slider-container {
        height: 700px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 5rem;
    }
}

/* Mobile hero text adjustments */
@media (max-width: 767px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-content .hero-cta {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/*-----------------------------------------------
   Grands mobiles 414px–430px (iPhone 12/13/14/15, Samsung A, Infinix, Redmi Note)
-------------------------------------------------*/
@media (max-width: 430px) {
  .hero-banner-wrapper {
    height: 320px;
  }
  .hero-banner-wrapper img {
    max-height: 320px;
    object-fit: cover;
    object-position: center 25%;
  }
}
/*-----------------------------------------------
   Mobiles moyens 393px–410px (iPhone 11/12 Mini, Redmi Note)
-------------------------------------------------*/
@media (max-width: 393px) {
  .hero-banner-wrapper {
    height: 300px;
  }
  .hero-banner-wrapper img {
    max-height: 300px;
    object-fit: cover;
    object-position: center 25%;
  }
}
/*-----------------------------------------------
   Petits mobiles 375px–392px (Tecno, Infinix compacts, iPhone SE/11)
-------------------------------------------------*/
@media (max-width: 375px) {
  .hero-banner-wrapper {
    height: 270px;
  }
  .hero-banner-wrapper img {
    max-height: 270px;
    object-fit: cover;
    object-position: center 25%;
  }
}

/*-----------------------------------------------
   Très petits mobiles ≤ 360px
-------------------------------------------------*/
@media (max-width: 360px) {
  .hero-banner-wrapper {
    height: 250px;
  }
  .hero-banner-wrapper img {
    max-height: 250px;
    object-fit: cover;
    object-position: center 25%;
  }
}

/*-----------------------------------------------
   Paysage mobiles ≤ 768px (optionnel)
-------------------------------------------------*/
@media (max-width: 768px) and (orientation: landscape) {
  .hero-banner-wrapper {
    height: 50vh;
  }
  .hero-banner-wrapper img {
    object-position: center center;
  }
}
/*-----------------------------------------------
   Tablettes ≤ 768px
-------------------------------------------------*/
@media (max-width: 768px) {
  .hero-banner-wrapper {
    height: 400px;
  }
  .hero-banner-wrapper img {
    object-position: center center;
  }
}

/*-----------------------------------------------
 4.3 Layout Catégories (gauche) + Produits (droite)
------------------------------------------------*/
.custom-products-layout {
  display: flex;
  align-items: stretch; /* Étire les enfants sur toute la hauteur */
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: 20px;
}
/* Zone des produits (droite) */
.shop-content {
  flex: 1;
  min-width: 300px;
}
/* Titre des produits */
.slider-column .woocommerce-loop-title,
.shop-title {
  text-align: center;
  font-size: 1.8em;
  margin: 0 0 20px;
  max-width: 800px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.3em;
  color: var(--text-color);
}
/*-----------------------------------------------
  4.4 Barre de recherche 
------------------------------------------------*/
.search-wrapper {
  text-align: center;
  margin-bottom: 20px;
}

#search-input {
  padding: 10px;
  width: 60%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

#search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/*-----------------------------------------------
 4.5 Grille des produits
------------------------------------------------*/
#products-container .products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 15px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-bottom: 40px; /* Pour éviter un effet "collé" juste avant la pagination */
}

#products-container .product {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 0px !important;
  transition: all var(--transition-normal);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

#products-container .product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 2px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

#products-container .product::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  pointer-events: none;
}

#products-container .product:hover {
  transform: translateY(-12px) rotateX(5deg) scale(1.03);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.3);
  border-color: var(--primary-color);
}

#products-container .product:hover::before {
  opacity: 1;
}

#products-container .product:hover::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

#products-container .product img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  margin: 15px auto;
  max-width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
}

#products-container .product:hover img {
  transform: scale(1.1);
}

#products-container .woocommerce-loop-product__title {
  min-height: 2.4em; /* Hauteur fixe pour 2 lignes */
  line-height: 1.2em;
  overflow: hidden;
  font-size: 1em;
  margin: 0 0 5px;
  color: var(--text-color);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}

#products-container .product:hover .woocommerce-loop-product__title {
  color: var(--primary-color);
}

#products-container .price {
  font-weight: 800;
  font-size: 1.1em;
  color: var(--primary-color);
  margin: 5px 0;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.related.products ul.products li.product a.button,
#products-container .button {
  text-decoration: none !important;
  background: var(--gold-gradient) !important;
  background-size: 200% 100%;
  border: 2px solid var(--primary-hover) !important;
  color: var(--dark-bg) !important;
  padding: 6px 12px;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  min-height: auto;
  border-radius: var(--radius-md);   
  width: 70% !important;
  max-width: 180px;
  margin: 0 auto 10px auto !important;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#products-container .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

#products-container .button:hover::before {
  left: 100%;
}

#products-container .button:hover {
  background: var(--gold-gradient) !important;
  background-position: 100% center;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--primary-color) !important;
}

#products-container .button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

/*-----------------------------------------------
   Responsive Tablette
------------------------------------------------*/
@media (max-width: 1024px) {
  /* Conteneur principal en colonne */
  .custom-products-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    padding: 0 15px !important;
  }

  /* Barre de recherche en haut */
  .search-wrapper {
    order: 1 !important;
  }

  /* Titre des produits */
  .shop-title {
    order: 2 !important;
  }

  /* Zone des produits */
  .shop-content {
    order: 3 !important;
    width: 100% !important;
  }

  /* Sidebar : centrer le bloc horizontalement */
  .shop-sidebar {
    order: 4 !important;
    width: 280px;             /* Largeur fixe du bloc */
    margin: 30px auto 0 auto; /* Centrage horizontal avec auto */
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  }

  /* Ne PAS centrer le contenu à l’intérieur */
  .shop-sidebar,
  .shop-sidebar .wc-block-product-categories-list,
  .shop-sidebar .all-categories-link {
    text-align: left; /* Le contenu reste aligné à gauche */
  }

  /* Style du lien "Toutes les catégories" */
  .shop-sidebar .all-categories-link {
    display: block;
    margin-bottom: 10px;
    text-align: center; /* Optionnel : tu peux centrer juste ce lien si tu veux */
    font-weight: bold;
    color: #333;
    text-decoration: underline;
  }
}
/*-----------------------------------------------
   Responsive Mobile
------------------------------------------------*/
@media (max-width: 767px) {
  /* Réduction de l'espace entre les cartes + bordure */
  #products-container .products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important; /* Espacement entre les cartes (horizontal & vertical) */
    padding: 0 12px !important; /* Réduit l'espace latéral (gauche/droite) */
    margin: 0 !important;
  }

  /* Ajout de bordure aux cartes */
  #products-container .product {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background-color: white !important;
    padding: 6px 8px 2px 8px !important;
    margin: 0 !important;
    min-height: auto !important; /* Supprime toute hauteur fixe */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important; /* Permet à la carte de s’étirer uniformément */
    overflow: hidden !important;
  }

  /* Image : taille réduite, marges ajustées */
  #products-container .product img {
    max-height: 150px !important;
    width: 100% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    padding: 6px !important;
    border-radius: 6px !important;
    
  }

  /* Titre : plus compact */
  #products-container .woocommerce-loop-product__title {
    font-size: 0.9em !important;
    margin: 6px 0 4px !important;
    line-height: 1.2 !important;
    text-align: center;
  }

  /* Prix : plus petit, moins d'espace */
  #products-container .price {
    font-size: 0.8em !important;
    margin: 4px 0 !important;
    color: var(--secondary-color) !important;
  }

  /* Bouton "Ajouter au panier" : plus petit, bien positionné */
  #products-container .product .button,
  #products-container .product .add_to_cart_button {
  margin: 6px auto 2px !important;
  padding: 4px 8px !important;
  }

  /* Supprimer le tri en haut */
  .woocommerce-ordering {
    display: none !important;
  }
}

  /* centre le contenu du sidebar */
@media (max-width: 767px) {
  .shop-sidebar {
    width: 95% !important;       /* Increase width on mobile */
    margin: 15px auto 0 auto !important;  /* Reduce top margin */
    text-align: center !important;        /* centre le contenu du sidebar si nécessaire */
    padding: 10px !important;            /* Reduce padding */
    border-top: 1px solid #eee !important; /* conserver la séparation */
  }
}

@media (max-width: 480px) {
  .shop-sidebar {
    width: 98% !important;
    margin: 10px auto 0 auto !important;
    padding: 8px !important;
  }
}


/*-----------------------------------------------
   Sidebar centré sur iPhone 11 → 15, Samsung A, Tecno, Redmi, Infinix
------------------------------------------------*/
@media (min-width: 375px) and (max-width: 430px) and (max-width: 414px) {
  .shop-sidebar {
    width: 90% !important;               /* Largeur avec marges */
    margin: 20px auto 0 auto !important; /* Centre horizontalement + espace top */
    text-align: center !important;       /* Contenu centré */
    padding: 15px !important;            /* Espacement interne */
    border-top: 1px solid #eee !important;
  }
}

/* Samsung Galaxy A54, A34, A14, A04 */
@media (min-width: 360px) and (max-width: 412px) {
  /* Styles spécifiques pour ces appareils */
  .shop-sidebar {
    width: 90% !important;
    margin: 20px auto 0 auto !important;
    text-align: center !important;
    padding: 15px !important;
    border-top: 1px solid #eee !important;
  }
}

/*-----------------------------------------------
  1. Enlever la flèche sur tablette et mobile
------------------------------------------------*/

/* --- Cible le bouton "Ajouter au panier" sur tablette et mobile --- */
@media (max-width: 768px) {
  /* Supprime la flèche au-dessus du bouton */
  .single-product .woocommerce button[type="submit"]::before,
  .single-product .woocommerce a.button.add_to_cart_button::before {
    display: none !important;
  }
}

/* --- Pour mobile très petit (ex: iPhone SE) --- */
@media (max-width: 480px) {
  .single-product .woocommerce button[type="submit"]::before,
  .single-product .woocommerce a.button.add_to_cart_button::before {
    display: none !important;
  }
}

/*-----------------------------------------------
  Sliders (Produits en Promotion & Nouveautés)
------------------------------------------------*/
.woocommerce-loop-title {
  text-align: center;
  font-size: 1.8em;
  margin: 0 auto 20px;
  max-width: calc(100% - 80px);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.3em;
  color: var(--text-color);
}

.products-slider-container {
 	display: flex;
    align-items: center;
}

.products-slider-wrapper {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0;
  margin: 0 auto;
  width: 100%;
  max-width: 920px; /* ← Réduit pour éviter le dépassement */
  position: relative;
}

.products-slider-inner {
  overflow: hidden;
  width: 100%;
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
  will-change: transform;
  flex-wrap: nowrap;
  align-items: center;
}

.products-slider .product {
  min-width: 220px;
  max-width: 220px;
  flex: 0 0 auto;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  transform-style: preserve-3d;
}

.products-slider .product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 2px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.products-slider .product:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 175, 55, 0.25);
  border-color: var(--primary-color);
}

.products-slider .product:hover::before {
  opacity: 1;
}

.products-slider .product img {
  width: auto;
  height: 160px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  margin: 12px auto 8px;
  max-width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
}

.products-slider .product:hover img {
  transform: scale(1.15);
}

.products-slider .woocommerce-loop-product__title {
  font-size: 0.9em;
  margin: 8px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
  height: 1.2em;
  transition: color var(--transition-fast);
}

.products-slider .product:hover .woocommerce-loop-product__title {
  color: var(--primary-color);
}

.products-slider .price {
  font-size: 0.95em;
  margin: 5px 0;
  font-weight: 800;
  color: var(--primary-color);
  min-height: 1.4em;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.products-slider .button {
  text-decoration: none !important;
  background: var(--gold-gradient) !important;
  background-size: 200% 100%;
  border: 2px solid var(--primary-hover) !important;
  color: var(--dark-bg) !important;
  padding: 6px 12px;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  min-height: auto;
  border-radius: var(--radius-md);
  width: 70% !important;
  max-width: 180px;
  margin: 0 auto 10px auto !important;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.products-slider .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.products-slider .button:hover::before {
  left: 100%;
}

.products-slider .button:hover {
  background: var(--gold-gradient) !important;
  background-position: 100% center;
  transform: scale(1.05) translateY(-5px);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--primary-color) !important;
}

.products-slider .button:active {
  transform: scale(0.98) translateY(0);
  box-shadow: var(--shadow-sm);
}

.products-slider-container .slider-prev,
.products-slider-container .slider-next {
    background: var(--gold-gradient);
    border: 2px solid var(--primary-hover);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-bg);
    cursor: pointer;
    padding: 0;
    margin: 0 15px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

.products-slider-container .slider-prev:hover,
.products-slider-container .slider-next:hover {
    background: var(--gold-gradient);
    background-position: 100% center;
    transform: scale(1.15);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.products-slider-container .slider-prev:active,
.products-slider-container .slider-next:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-sm);
}

/* Taille réduite sur mobile */
@media (max-width: 768px) {

  .slider-prev {
  left: 15px;
}

.slider-next {
  right: 15px;
}

 .products-slider-inner {
    gap: 25px; /* augmente l'espace entre les cards */
  }

  .products-slider .product {
    margin-right: 10px; /* petit espace en plus pour aérer */
  }
}
/*-----------------------------------------------
  badge Promo WooCommerce
------------------------------------------------*/
/* Style commun pour le badge Promo WooCommerce */
.product .onsale {
  position: absolute;
  top: 10px; /* Positionne le badge en haut */
  left: 10px; /* Positionne le badge à gauche */
  background: #e74c3c;       /* Rouge promo */
  color: #fff;               /* Texte blanc */
  width: 80px;               /* Largeur fixe pour un carré */
  height: 40px;              /* Hauteur fixe pour un carré */
  display: flex;             /* Pour centrer le contenu horizontalement et verticalement */
  align-items: center;       /* Centre le contenu verticalement */
  justify-content: center;   /* Centre le contenu horizontalement */
  font-size: 0.7em;          /* Taille de police */
  font-weight: bold;         /* Police en gras */
  border-radius: 5px !important; /* Coins arrondis (mais pas trop ronds), priorité élevée */
  z-index: 5;                /* Assure que le badge reste au-dessus des autres éléments */
  text-transform: uppercase; /* Texte en majuscules */
  letter-spacing: 0.5px;     /* Espacement entre les lettres */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Ombre légère */
}

/* Supprime toute ancienne mise en forme WooCommerce par défaut */
.onsale {
  display: none; /* Cache partout par défaut */
}

/* Réaffiche uniquement dans une carte produit */
.product .onsale {
  display: inline-block;
}

/* Assurer que le conteneur produit ait position relative pour le placement */
.product {
  position: relative;
}
/*-----------------------------------------------
  3.Single Product Page - Mise en page
------------------------------------------------*/
/* Single product card container */
.single-product-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.single-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gold-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    pointer-events: none;
}

/*-----------------------------------------------
   Mise en page du produit : image à gauche, 
  résumé à droite dans la page single product
------------------------------------------------*/
.product-summary-right,
.product-images-left {
  flex: 1 1 50%;
  max-width: 50%;
}

/* Sticky product summary on scroll */
.single-product-summary-section {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    z-index: 5;
}

/* Mobile - remove sticky behavior */
@media (max-width: 768px) {
    .single-product-summary-section {
        position: relative;
        top: auto;
    }
    
    .product-summary-right,
    .product-images-left {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/*-----------------------------------------------
  images des produits dans la page produit
------------------------------------------------*/
/* Enhanced product image gallery */
.woocommerce div.product div.images {
    position: relative;
}

.woocommerce div.product div.images img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.05);
  max-width: 500px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.woocommerce div.product div.images img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-color);
}

/* Product gallery thumbnails */
.woocommerce div.product div.images .woocommerce-product-gallery__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:hover::before {
    opacity: 0.3;
}
/*-----------------------------------------------
Titre produit sur la page produit
------------------------------------------------*/
.single-product .entry-title {
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.single-product .entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.single-product .product_title {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Enhanced product price */
.single-product .price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    margin: 20px 0 !important;
    animation: goldPulse 2s infinite;
}

/* Enhanced add to cart button on single product */
.single-product .single_add_to_cart_button {
    padding: 15px 40px !important;
    font-size: 1.2rem !important;
    margin-top: 20px !important;
    width: 100% !important;
    max-width: 400px !important;
}
/*-----------------------------------------------
  Description courte produit - tableau responsive
------------------------------------------------*/
.woocommerce-product-details__short-description {
  max-width: 500px;     /* Limite la largeur */
  margin: 0 auto;       /* Centre sous l’image */
  overflow: auto;       /* Scroll si trop large */
}

.woocommerce-product-details__short-description table {
  width: 100%;
  table-layout: fixed;  /* Colonnes fixes */
}

.woocommerce-product-details__short-description table td,
.woocommerce-product-details__short-description table th {
  padding: 0.25em 0.5em;
  font-size: 0.9em;
  word-wrap: break-word;
}

/*-----------------------------------------------
  Supprimer bordure grise autour des images WooCommerce blocs
------------------------------------------------*/
.wc-block-components-product-image img.size-woocommerce_thumbnail,
.woocommerce div.product .images .woocommerce-product-gallery__image img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}


/*-----------------------------------------------
  4. Liste produits liés (related products)
------------------------------------------------*/

/* Grille des produits similaires - Force horizontal layout */
.woocommerce .single-product .related.products ul.products,
.single-product .related.products ul.products,
body .related.products ul.products,
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  flex-direction: unset !important; /* Override any flex settings */
  flex-wrap: unset !important;
}

/* Ensure individual product items display correctly in grid */
.woocommerce .single-product .related.products ul.products li.product,
.single-product .related.products ul.products li.product,
body .related.products ul.products li.product,
.related.products ul.products li.product {
  display: block !important;  /* Reset any flex/grid properties */
  width: auto !important;     /* Let grid control width */
  margin: 0 !important;       /* Remove any margin that could break grid */
  padding: 0 !important;      /* Grid gap handles spacing */
  box-sizing: border-box !important; /* Include padding in width calculation */
  float: none !important;     /* Remove any float */
  position: relative !important; /* Ensure proper positioning */
  flex: none !important;      /* Remove any flex properties */
}
/* Conteneur principal - Force container to use grid layout */
.related.products {
  width: 100%;
  overflow: hidden; /* Empêche les débordements */
  display: block !important; /* Ensure container doesn't interfere */
}

/* Additional specificity to override any theme/plugin interference */
.woocommerce .single-product .related.products,
.single-product .related.products,
.related.products {
  clear: both !important;
  display: block !important;
  width: 100% !important;
}

/* Force grid layout with highest specificity */
.woocommerce .single-product .related.products ul.products,
.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Nuclear option - Force grid with maximum specificity to override any theme/plugin interference */
.woocommerce-page .single-product .related.products ul.products,
.woocommerce .woocommerce-page .single-product .related.products ul.products,
html body.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  flex-direction: initial !important;
  flex-wrap: initial !important;
  align-items: initial !important;
  justify-content: initial !important;
}

.related.products ul.products li.product {
  background: var(--light-bg);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  transform-style: preserve-3d;
}

.related.products ul.products li.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  padding: 2px;
  background: var(--gold-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
  pointer-events: none;
}

.related.products ul.products li.product:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(212, 175, 55, 0.25);
  border-color: var(--primary-color);
}

.related.products ul.products li.product:hover::before {
  opacity: 1;
}

/* Image carrée centrée */
.related.products ul.products li.product img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-sm);
}

.related.products ul.products li.product:hover img {
  transform: scale(1.1);
}

/* Zone de contenu */
.ast-woocommerce-container li.product .astra-shop-summary-wrap,
.related.products ul.products li.product .astra-shop-summary-wrap {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* Titre */
.related.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  margin: 0 0 10px;
  flex-grow: 1;
  color: var(--text-color);
  text-align: center;
  transition: color var(--transition-fast);
}

.related.products ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--primary-color);
}

/* Catégorie */
.related.products ul.products li.product .ast-woo-product-category {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Prix */
.related.products ul.products li.product .price {
  font-weight: 800;
  font-size: 1.1em;
  color: var(--primary-color);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Style spécifique pour le titre "Produits similaires" */
.related.products.ast-container h2.ast-title {
  text-align: center;
  font-size: 1.8em;
  margin: 0 0 20px;
  max-width: 800px; /* 🔽 Limite la largeur du titre */
  width: 100%; /* 🔽 S'adapte au conteneur */
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.3em;
  color: var(--text-color);
  margin-left: auto; /* 🔽 Centre le titre */
  margin-right: auto;
}
/* Centrer le conteneur principal */
.related.products.ast-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement tout le contenu */
    gap: 20px; /* Espacement entre le titre et les produits */
    width: 100%; /* Prend toute la largeur disponible */
    max-width: 1200px; /* Largeur maximale pour une meilleure lisibilité */
    margin: 60px auto 40px; /* Top margin, center horizontally, bottom margin */
    clear: both; /* Clear any floated elements */
    position: relative;
    z-index: 1;
}

/* Ensure proper spacing from single product content */
.single-product .woocommerce div.product {
    margin-bottom: 40px; /* Space between product content and related products */
}

/* Fix for products without description - maintain consistent spacing */
.single-product .woocommerce-tabs {
    min-height: 100px; /* Minimum height even if empty */
    margin-bottom: 20px;
}

/* ==========================
   Responsive Related Products
   ========================== */

/* Tablette : 2 produits par ligne */
@media (max-width: 991px) {
  .related.products ul.products {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
  }
  .related.products ul.products li.product img {
      height: 180px;
  }
}

/* Mobile : 2 produits par ligne, compact */
@media (max-width: 767px) {
  .related.products ul.products {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      width: 100%;
  }
  .related.products ul.products li.product img {
      height: 150px;
  }
  .related.products.ast-container {
      margin: 40px auto 30px;
      gap: 15px;
  }
  .related.products.ast-container h2.ast-title {
      font-size: 1.5em;
      max-width: 90%;
      margin-bottom: 15px;
  }
}

/* Très petit écran : 1 produit par ligne */
@media (max-width: 480px) {
  .related.products ul.products {
      grid-template-columns: 1fr;
      gap: 12px;
  }
  .related.products ul.products li.product img {
      height: 140px;
  }
  .related.products.ast-container h2.ast-title {
      font-size: 1.3em;
      margin-bottom: 12px;
  }
}
/*-----------------------------------------------
  5. Pagination WooCommerce (numéros de page)
------------------------------------------------*/
/* Pagination : couleur primary */
.woocommerce-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
/* Couleur des liens de pagination */
.woocommerce-pagination a.page-numbers {
    color: black !important;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
/* Style des points "..." */
.woocommerce-pagination .page-numbers.dots {
    color: black;
    border: none;
}
.pagination-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 10px 0;
    margin-top: 40px !important; /* Ajustez la valeur selon votre besoin */
}
.woocommerce-pagination {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 40px !important; /* Ajustez la valeur selon votre besoin */
    margin-bottom: 15px !important;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.woocommerce-pagination li {
    display: inline-block;
}
.woocommerce-pagination ul li .page-numbers {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #000;
  line-height: 1.2;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: inline-block;
    padding: 5px 9px;
    font-size: 12px;
    color: black;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.woocommerce-pagination span.current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Search pagination info */
.woocommerce-pagination .pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Single product search styles */
.single-product-search-wrapper {
    margin: 40px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.single-product-search-wrapper h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3em;
    text-align: center;
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto 20px;
}

#single-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#single-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.search-clear-btn:hover {
    color: var(--primary-color);
}

/* Single product search results - row layout */
#single-products-container {
    margin-top: 20px;
}

#single-products-container .products {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#single-products-container .product {
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 0 !important;
    transition: box-shadow 0.3s ease;
}

#single-products-container .product:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#single-products-container .product img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    background: #f8f8f8 !important;
    border-radius: 6px !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

#single-products-container .product-info {
    flex-grow: 1;
    margin-right: 15px;
}

#single-products-container .woocommerce-loop-product__title {
    font-size: 1.1em !important;
    margin: 0 0 8px !important;
    color: #333 !important;
    text-decoration: none !important;
}

#single-products-container .woocommerce-loop-product__title:hover {
    color: var(--primary-color) !important;
}

#single-products-container .price {
    font-weight: bold !important;
    color: var(--secondary-color) !important;
    font-size: 1.1em !important;
    margin: 5px 0 !important;
}

#single-products-container .product .button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-md) !important;
    text-decoration: none !important;
    font-size: 0.9em !important;
    white-space: nowrap !important;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

#single-products-container .product .button:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--accent-color)) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile responsive for single product search */
@media (max-width: 768px) {
    #single-products-container .product {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    #single-products-container .product img {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    #single-products-container .product-info {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}
/*-----------------------------------------------
  5. Pagination WooCommerce - Version Mobile
------------------------------------------------*/
@media (max-width: 767px) {
  /* Espacement entre les produits et la pagination */
  .woocommerce-pagination {
   margin-top: 30px !important;
   margin-bottom: 15px !important;
    text-align: center;
    display: block;
  }
  /* Ajuster la liste de pagination */
  .woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 4px; /* Réduit l'espace entre les boutons */
    flex-wrap: wrap; /* Permet de sauter à la ligne si besoin */
  }

  /* Taille réduite des numéros de page */
  .woocommerce-pagination a,
  .woocommerce-pagination span {
    display: inline-block;
    padding: 6px 8px;
    font-size: 12px;
    color: #333;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }

  /* Hover + current */
  .woocommerce-pagination a:hover,
  .woocommerce-pagination span.current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-sm);
  }

  /* Pour éviter le débordement */
  .woocommerce-pagination li {
    margin: 0;
    list-style: none;
  }

  /* Si tu as des éléments "précédent" ou "suivant" */
  .woocommerce-pagination .dots {
    display: inline-block;
    padding: 6px 8px;
    color: #666;
    background: transparent;
    border: none;
    cursor: default;
  }
}

/*-----------------------------------------------
 5. Boutons "Ajouter au panier"
------------------------------------------------*/
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button.add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button {
  text-decoration: none !important;
  background: var(--gold-gradient) !important;
  background-size: 200% 100%;
  border: 2px solid var(--primary-hover) !important;
  color: var(--dark-bg) !important;
  padding: 6px 12px;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  min-height: auto;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.woocommerce a.button.add_to_cart_button::before,
.woocommerce button.button.add_to_cart_button::before,
.woocommerce a.button::before,
.woocommerce button.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.woocommerce a.button.add_to_cart_button:hover::before,
.woocommerce button.button.add_to_cart_button:hover::before,
.woocommerce a.button:hover::before,
.woocommerce button.button:hover::before {
  left: 100%;
}

.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.button.add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--gold-gradient) !important;
  background-position: 100% center;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--primary-color) !important;
}

.woocommerce a.button.add_to_cart_button:active,
.woocommerce button.button.add_to_cart_button:active,
.woocommerce a.button:active,
.woocommerce button.button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

/*-----------------------------------------------
  8. SIDEBAR CATÉGORIES - Version adaptée
------------------------------------------------*/
/* Hide logo and description in uncategorized category */
.term-uncategorized .term-description,
.term-uncategorized #attachment_1520 {
    display: none !important;
}

/* Hide title in product categories block */
.wp-block-woocommerce-product-categories .wc-block-product-categories__header {
    display: none !important;
}

/* Boîte de la sidebar */
.ast-filter-wrap .wp-block-woocommerce-product-categories {
 background-color: #f6f6f6;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  width: 260px;
  min-width: 220px;
  height: auto !important;
}

/* Reset des listes */
.ast-filter-wrap .wc-block-product-categories-list,
.ast-filter-wrap .wc-block-product-categories-list-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Boutons de catégories principales */
.ast-filter-wrap .wc-block-product-categories-list > .wc-block-product-categories-list-item > a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 1em;
  color: #333;
  text-decoration: none;
  transition: background 0.2s ease;
}

/* Ajouter une flèche DROITE seulement si la catégorie a des sous-catégories */
.ast-filter-wrap .wc-block-product-categories-list > .wc-block-product-categories-list-item:has(.wc-block-product-categories-list--depth-1) > a::before {
  content: '▸';
  float: right;
  font-size: 0.9em;
  color: #888;
  margin-top: 0.2em;
  transition: transform 0.2s ease;
}

/* Changer la flèche en bas quand ouvert */
.ast-filter-wrap .wc-block-product-categories-list > .wc-block-product-categories-list-item.open:has(.wc-block-product-categories-list--depth-1) > a::before {
  content: '▾';
}

/* Sous-catégories (depth 1 et 2) - cachées par défaut */
.ast-filter-wrap .wc-block-product-categories-list--depth-1,
.ast-filter-wrap .wc-block-product-categories-list--depth-2 {
  display: none;
  padding-left: 20px;
  margin-top: 10px;
}

/* Afficher les sous-catégories si le parent a la classe 'open' */
.ast-filter-wrap .wc-block-product-categories-list-item.open > .wc-block-product-categories-list--depth-1,
.ast-filter-wrap .wc-block-product-categories-list-item.open > .wc-block-product-categories-list--depth-2 {
  display: block;
}

/* Style des liens des sous-catégories */
.ast-filter-wrap .wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item > a,
.ast-filter-wrap .wc-block-product-categories-list--depth-2 .wc-block-product-categories-list-item > a {
  display: block;
  padding: 8px 12px;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95em;
  color: #444;
  text-decoration: none;
  margin-bottom: 5px;
}

/* Espacement des éléments de sous-catégorie */
.ast-filter-wrap .wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item,
.ast-filter-wrap .wc-block-product-categories-list--depth-2 .wc-block-product-categories-list-item {
  margin-top: 5px;
  margin-bottom: 5px;
}
/*-----------------------------------------------
  9. Réinitialisation du layout Astra 
-----------------------------------------------*/
/* Réinitialisation du layout Astra - Modified to allow centering */
/* Exclude WooCommerce pages from layout reset to prevent centering conflicts */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .ast-row,
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .ast-grid-row,
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .ast-grid-col {
  display: block !important;
  flex-direction: unset !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep #content .site-content out of reset to allow centering */

/* Keep .ast-container out of reset to allow our centering rules */

/*-----------------------------------------------
  10. Page À propos - Mise en page
------------------------------------------------*/
/* Espacement entre header/footer et contenu */
.site-main {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Mise en page centrale */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Espacement global réduit */
.ast-section-spacing {
  padding: 20px 0;
}
.ast-section-spacing:not(:last-child) {
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

/* Intro dans boîte */
.intro-wrapper {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  color: white;
}
.intro-section .ast-heading {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
}
.intro-section .ast-text {
  font-size: 1.1rem;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Mission & Vision */
.ast-columns-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.ast-columns-2 .ast-card {
  flex: 1 1 300px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.ast-columns-2 .ast-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--secondary-color);
}
.ast-columns-2 .ast-heading {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.ast-columns-2 p {
  color: #555;
  line-height: 1.5;
  font-size: 1rem;
}

/* Valeurs */
.valeurs-section .ast-heading {
  font-size: 1.6rem;
  margin-bottom: 15px;
  text-align: center;
}
.valeurs-section .ast-list-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
}
.ast-list-inline li {
  background: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}
.ast-list-inline li:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Équipe */
.ast-columns-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.ast-columns-3 .ast-heading {
  font-size: 1.6rem;
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}
.ast-columns-3 .ast-card {
  background: #fff;
  padding: 15px;
  width: 220px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ast-columns-3 .ast-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin-bottom: 10px;
  transition: var(--transition-normal);
}

.ast-columns-3 .ast-card:hover img {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}
.ast-columns-3 .ast-heading {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.ast-columns-3 .ast-text {
  font-size: 0.95rem;
  color: #555;
}

/* CTA Contact */
.contact-cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 500px;   /* Limite la largeur */
  margin: 0 auto;     /* Centre horizontalement */
}
.contact-cta-section .ast-heading {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.contact-cta-section .ast-button {
  display: inline-block;
  background: #fff;
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #fff;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.contact-cta-section .ast-button:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Typo globale */
.ast-heading {
  color: #222;
}
.ast-text {
  font-size: 1rem;
  color: #555;
}

/* Responsive */
@media (max-width: 900px) {
  .ast-columns-2,
  .ast-columns-3 {
    flex-direction: column;
    align-items: center;
  }
  .ast-list-inline {
    flex-direction: column;
    align-items: center;
  }
}


/*-----------------------------------------------
  12. Page Contact - Mise en page
------------------------------------------------*/

.page-template-page-contact .contact-horizontal-layout {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px 90px !important; /* ← Corrigé : 60px vertical, 90px horizontal */
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Bloc formulaire - à gauche */
.bloc-formulaire {
  flex: 1 1 48%;
  min-width: 300px;
}

/* Bloc infos - à droite */
.right-info-block {
  flex: 1 1 48%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Carte de contact */
.contact-info.ast-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f7f7f7;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.contact-info li:hover {
  background: #eee;
}

.contact-info li i {
  font-size: 1.8rem;
  color: var(--primary-color);
  min-width: 28px;
  text-align: center;
}

.contact-info li a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.contact-info li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
/*-----------------------------------------------
  Responsive : Mobile & Tablet - Contact 
------------------------------------------------*/
@media (max-width: 991px) {
  .contact-horizontal-layout {
    flex-direction: column;
    padding: 0 5px !important;
  }

  .bloc-formulaire,
  .right-info-block {
    flex: 1 1 100%;
    min-width: auto;
    width: 100%;
  }
}

/* Enhanced contact page mobile responsiveness */
@media (max-width: 768px) {
  .contact-horizontal-layout {
    gap: 20px; /* Reduce gap between form and info */
    padding: 0 10px !important;
  }
  
  .bloc-formulaire,
  .bloc-infos {
    width: 100% !important;
    max-width: none !important;
  }
  
  .contact-form-section.ast-card {
    padding: 20px !important; /* Reduce form padding */
    margin-bottom: 20px;
  }
  
  .contact-info-section.ast-card {
    padding: 20px !important; /* Reduce info padding */
  }
}

@media (max-width: 480px) {
  .contact-horizontal-layout {
    gap: 15px;
    padding: 0 5px !important;
  }
  
  .contact-form-section.ast-card,
  .contact-info-section.ast-card {
    padding: 15px !important;
    margin-bottom: 15px;
  }
  
  .contact-info ul li {
    padding: 8px 0 !important; /* Reduce list item padding */
  }
  
  .contact-info li i {
    font-size: 1.5rem; /* Reduce icon size */
  }

  .right-info-block {
    order: 1;
  }

  .bloc-formulaire {
    order: 2;
  }
}
/*-----------------------------------------------
   Page my account-orders
------------------------------------------------*/
/* Conteneur des boutons : alignement horizontal fluide */
.woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;           /* Empêche le retour à la ligne */
    text-align: center;            /* Centre les boutons */
    display: flex;
    justify-content: center;       /* Centre horizontalement */
    align-items: center;           /* Alignement vertical centré */
    gap: 8px;                      /* Espacement uniforme entre boutons */
    padding: 5px 0;
}


/* Style des boutons */
.woocommerce-orders-table__cell-order-actions .woocommerce-button {
    display: inline-block !important;
    margin: 0 !important;          /* Réinitialise les marges */
    padding: 6px 10px !important;  /* Taille réduite */
    font-size: 13px !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    height: auto !important;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.woocommerce-order .order_details tfoot .order-actions-button {
    margin-left: 10px;
    background-color: orangered;
    color: white !important;
    text-decoration: none;
}

/*-----------------------------------------------
   FORCER CENTRAGE PAGE MY ACCOUNT - FIX ASTRA SIDEBAR
------------------------------------------------*/

/* 1. Supprimer la sidebar de la mise en page */
body.woocommerce-account #secondary {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Forcer #primary à occuper 100% de la largeur disponible */
body.woocommerce-account #primary {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;

}

/* 3. S'assurer que le conteneur parent ne réserve pas d'espace pour la sidebar */
body.woocommerce-account.ast-left-sidebar #primary {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 4. Conteneur de contenu : déjà bien fait, on renforce */
body.woocommerce-account .entry-content {
    max-width: 800px;
    margin: 0 auto !important;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 5. Colonnes : s'assurer qu'elles sont centrées dans le conteneur */
body.woocommerce-account .u-columns {
    justify-content: center !important;
    flex-wrap: wrap; /* Pour mobile */
}

body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
    max-width: 100% !important; /* Sur mobile */
}

/* Force le centrage et masque le trait noir - Let global rules handle centering */
body.woocommerce-account .ast-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Remove width, padding, margin overrides to allow global centering */
}

/* Supprime la bordure de la sidebar */
body.woocommerce-account .widget-area.secondary {
    border-right: none !important;
    width: 0 !important;
    overflow: hidden;
    display: none !important; /* Cache complètement la sidebar */
}

/* Corrige les marges dues à la sidebar */
body.woocommerce-account .content-area.primary {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (min-width: 769px) {
    body.woocommerce-account .u-column1,
    body.woocommerce-account .u-column2 {
        max-width: 48% !important; /* Laisser un petit gap */
    }
}

/*-----------------------------------------------
   Page Checkout 
------------------------------------------------*/
/* Ajustement de l'espace blanc à gauche et à droite */
body.woocommerce-checkout .ast-container {
    max-width: 1200px !important; /* Match global max-width with !important */
    margin: 0 auto !important;
    padding: 0 20px !important; /* Standard padding format with !important */
}

/* Conteneur principal du formulaire */
body.woocommerce-checkout #primary {
    width: 100%;
    max-width: 1200px !important; /* Add centering constraints */
    margin: 0 auto !important;    /* Center horizontally */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    box-sizing: border-box;       /* Include padding in width calculation */
}

/* Colonne des détails client (gauche) */
body.woocommerce-checkout .col-1 {
    width: 60%;
    float: left;
    padding-right: 30px;
    box-sizing: border-box;
}

/* Colonne de récapitulatif de commande (droite) */
body.woocommerce-checkout .col-2 {
    width: 40%;
    float: right;
    padding-left: 30px;
    box-sizing: border-box;
}

/* Titres des sections */
body.woocommerce-checkout h3 {
    font-size: 1.5em;
    color: var(--text-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Champs de formulaire */
body.woocommerce-checkout .form-row {
    margin-bottom: 15px;
}

/* Bouton "Commander" */
body.woocommerce-checkout #place_order {
    background: var(--gold-gradient) !important;
    background-size: 200% 100%;
    color: var(--dark-bg) !important;
    border: 2px solid var(--primary-hover);
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

body.woocommerce-checkout #place_order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

body.woocommerce-checkout #place_order:hover::before {
    left: 100%;
}

/* Bouton "Valider la commande" */
.wc-proceed-to-checkout .checkout-button {
  background: var(--gold-gradient) !important;
  background-size: 200% 100%;
  border: 2px solid var(--primary-hover) !important;
  color: var(--dark-bg) !important;
  font-size: 0.9em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 25px;
  border-radius: var(--radius-md);
  width: auto;
  min-width: 160px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.wc-proceed-to-checkout .checkout-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.wc-proceed-to-checkout .checkout-button:hover::before {
  left: 100%;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--gold-gradient) !important;
  background-position: 100% center;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: var(--primary-color) !important;
}

.wc-proceed-to-checkout .checkout-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}


body.woocommerce-checkout #place_order:hover {
    background: var(--gold-gradient) !important;
    background-position: 100% center;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.woocommerce-checkout #place_order:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Tableau de récapitulatif */
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* Section de paiement */
body.woocommerce-checkout #payment {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
}

/* Optionnel : si tu veux plus d'espace dans les colonnes internes */
body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2 {
    padding: 0 30px;
}



/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
    body.woocommerce-checkout .col-1,
    body.woocommerce-checkout .col-2 {
        width: 100%;
        float: none;
        padding: 0;
    }
    
    /* Reduce checkout form padding on mobile */
    body.woocommerce-checkout #primary {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    body.woocommerce-checkout #primary {
        padding: 10px !important;
    }
}

/* Enhanced button responsiveness */
@media (max-width: 768px) {
  .woocommerce a.button.add_to_cart_button,
  .woocommerce button.button.add_to_cart_button,
  .woocommerce a.button,
  .woocommerce button.button {
    padding: 10px 15px !important; /* Larger touch targets */
    font-size: 0.9rem !important;
    min-height: 44px; /* iOS recommended minimum touch target */
  }
  
  /* Related products buttons */
  .related.products ul.products li.product a.button {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .woocommerce a.button.add_to_cart_button,
  .woocommerce button.button.add_to_cart_button,
  .woocommerce a.button,
  .woocommerce button.button {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    width: 100%; /* Full width on small screens */
    max-width: 280px; /* But not too wide */
    margin: 0 auto !important;
    display: block !important;
    }
}

/*-----------------------------------------------
   Page CGV
------------------------------------------------*/
.page-id-19 .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.page-id-19 .entry-title {
    text-align: center;   /* centre le titre principal */
}

/* Mettre les titres Article X en couleur primary */
.page-id-19 .entry-content h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 20px;
}
/* Titres des articles (Article 1, Article 2, etc.) */
.page-cgv h2, 
.page-cgv h3 {
  color: var(--primary-color); /* couleur des titres */
  text-align: center; /* centrer les titres */
  margin-top: 30px;
  margin-bottom: 10px;
}

/* Texte juste en dessous des titres */
.page-cgv p {
  text-align: center; /* centrer le texte */
  margin: 0 auto 20px;
  max-width: 900px; /* largeur max pour une meilleure lisibilité */
}

/* ========== ESPACE BLANC AUTOUR DE LA SECTION COMMENTAIRES ========== */
.page-id-19 #comments {
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .page-id-19 .entry-content {
        padding: 30px 20px;
        margin: 0 10px;
    }
    .page-id-19 #comments {
        padding: 0 20px;
        margin: 40px 10px 0;
    }
}
/*-----------------------------------------------
   Page Panier 
------------------------------------------------*/

/* Removed conflicting cart centering - using global centering instead */

/* Let .ast-container use our global centering rules */

/* Cart Page Specific Rules - Force Centering */
body.woocommerce-cart .ingco-cart-container {
    max-width: 1200px !important; /* Match global max-width with !important */
    margin: 0 auto !important;
    padding: 0 20px !important; /* Standard padding format with !important */
}

body.woocommerce-cart .ast-container {
    max-width: 1200px !important; /* Override WooCommerce defaults */
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Cart #primary container - match checkout structure */
body.woocommerce-cart #primary {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box;
}

/* Mobile responsive padding for WooCommerce containers */
@media (max-width: 480px) {
  body.woocommerce-cart .ingco-cart-container,
  body.woocommerce-cart .ast-container,
  body.woocommerce-cart #primary,
  body.woocommerce-checkout .ast-container,
  body.woocommerce-checkout #primary {
    padding: 0 15px !important;
  }
}

@media (max-width: 360px) {
  body.woocommerce-cart .ingco-cart-container,
  body.woocommerce-cart .ast-container,
  body.woocommerce-cart #primary,
  body.woocommerce-checkout .ast-container,
  body.woocommerce-checkout #primary {
    padding: 0 10px !important;
  }
}

/* Cart content styling - removed conflicting width/margin rules */
.woocommerce-cart .cart-content {
    width: 100%;
}

/* Centrer le tableau du panier */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .shop_table {
    margin: 0 auto;
}
/*-----------------------------------------------
  INLINE STYLES CLEANUP - Moved from templates
------------------------------------------------*/
/* No products found message (from functions.php) */
.no-products-found {
    padding: 20px;
    text-align: center;
}

/* Search error message (from Barre-recherche.php) */
.search-error-message {
    padding: 20px;
    color: red;
}

/* Site title fallback (from header.php) */
.site-title-fallback {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* Footer bottom text alignment (from footer.php) */
.footer-bottom {
    text-align: center;
}

/* Single product card layout (from content-single-product.php) */
.single-product-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-height: 500px;
}

.single-product-image-section {
    flex: 1;
    min-width: 300px;
}

.single-product-summary-section {
    flex: 1;
    min-width: 300px;
}

/* All categories link styling (moved from footer.php inline styles) */
.all-categories-link {
    display: block;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: underline;
    font-weight: bold;
    color: #333;
    text-align: center;
    font-size: 1em;
}

/*-----------------------------------------------
   Page Blog 
------------------------------------------------*/
/* Centrer le titre BLOG */
.entry-title {
    text-align: center;
}

#primary {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.custom-footer {
    margin-top: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/*-----------------------------------------------
   COMPREHENSIVE MOBILE OPTIMIZATION FINAL
------------------------------------------------*/

/* Enhanced typography for mobile */
@media (max-width: 768px) {
  .intro-section .ast-heading {
    font-size: 1.8rem; /* Reduced from 2rem */
  }
  .intro-section .ast-text {
    font-size: 1rem; /* Reduced from 1.1rem */
  }
  .ast-columns-2 .ast-heading {
    font-size: 1.2rem; /* Reduced from 1.4rem */
  }
  .valeurs-section .ast-heading {
    font-size: 1.4rem; /* Reduced from 1.6rem */
  }
  .contact-info h2 {
    font-size: 1.2rem; /* Reduced from 1.4rem */
  }
}

@media (max-width: 480px) {
  .intro-section .ast-heading {
    font-size: 1.6rem;
  }
  .intro-section .ast-text {
    font-size: 0.95rem;
  }
  .ast-columns-2 .ast-heading,
  .valeurs-section .ast-heading {
    font-size: 1.1rem;
  }
  .ast-columns-3 .ast-heading {
    font-size: 1rem;
  }
  .ast-columns-3 .ast-text {
    font-size: 0.9rem;
  }
}

/* Enhanced footer mobile responsiveness */
@media (max-width: 480px) {
  .site-footer,
  .custom-footer {
    padding: 10px 0;
    margin-top: 15px;
  }
  
  .site-footer .ast-container,
  .custom-footer .ast-container {
    padding: 0 10px;
  }
  
  .footer-links-grid,
  .footer-cat-grid {
    gap: 15px !important; /* Reduce grid gap */
  }
  
  .footer-menu-col,
  .footer-cat-list {
    padding: 0 5px;
  }
}

@media (max-width: 360px) {
  .site-footer,
  .custom-footer {
    padding: 8px 0;
    margin-top: 12px;
  }
  
  .footer-links-grid,
  .footer-cat-grid {
    gap: 10px !important;
  }
}

/* Hero banner mobile optimization */
@media (max-width: 480px) {
  .hero-banner-wrapper {
    height: 280px; /* Optimize for small screens */
  }
  .hero-banner-wrapper img {
    max-height: 280px;
    object-position: center 30%; /* Better focus on small screens */
  }
}

/* Single product mobile improvements */
@media (max-width: 768px) {
  .single-product .woocommerce div.product .woocommerce-product-gallery {
    margin-bottom: 20px; /* Add spacing between image and content */
  }
  
  .single-product .entry-summary {
    padding: 15px; /* Add padding to product summary */
  }
  
  .single-product .woocommerce-tabs {
    margin-top: 30px; /* Add spacing above tabs */
  }
}

@media (max-width: 480px) {
  .single-product .entry-summary {
    padding: 10px;
  }
  
  .single-product .woocommerce-tabs {
    margin-top: 20px;
  }
  
  /* Product price styling on mobile */
  .single-product .price {
    font-size: 1.2rem !important;
    margin-bottom: 15px;
  }
}