/*
Theme Name: Mayottec
Theme URI: https://mayottec.com
Author: WilsonCorp
Author URI: https://mayottec.com
Description: A custom WooCommerce theme for Mayottec
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mayottec
Tags: e-commerce, woocommerce, responsive-layout
*/

:root {
  --primary: #e6007e;      /* Magenta from logo */
  --primary-light: #f48fb1; /* Lighter magenta */
  --primary-dark: #b4005f; /* Darker magenta for hover states */
  --secondary: #3b0764;    /* Purple/Blue from logo */
  --secondary-dark: #20043a; /* Darker purple for gradient */
  --accent: #065f46;       /* Green from logo */
  --dark: #1e293b;
  --light: #f8f9fa;
  --gray: #64748b;
  --light-gray: #f2f2f2;
  --nav-bg: var(--secondary);       /* Use secondary for navigation */
  
  /* Additional colors for the palette */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Spacing system based on 8px */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  color: var(--secondary);
}

p {
  margin-bottom: var(--space-2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2);
  width: 100%;
}

/* Main content area should flex-grow to push footer down */
#content, main, .content-area {
  flex: 1 0 auto;
}

/* Header */
.site-header {
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 80px;
}

.site-branding img {
  max-height: 50px;
}

.site-branding .logo {
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary);
}

.site-branding .logo span {
  color: var(--primary);
}

.search-form {
  display: flex;
  flex: 1;
  max-width: 500px;
  margin: 0 var(--space-3);
}

.search-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--light-gray);
  border-radius: 4px 0 0 4px;
  outline: none;
  font-size: 14px;
}

.search-form button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.search-form button:hover {
  background-color: var(--primary-dark);
}

.header-actions {
  display: flex;
  gap: var(--space-3);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.action-btn:hover {
  color: var(--primary);
}

.action-btn i {
  font-size: 20px;
  margin-bottom: 5px;
}

/* Cart icon with counter */
.cart-icon-container {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Main Navigation */
.main-navigation {
  background-color: var(--secondary);
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 15px 20px;
  display: block;
  transition: background-color 0.3s ease;
}

.nav-menu a:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu .current-menu-item > a {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: var(--space-5) 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: white;
}

.hero p {
  font-size: 1rem;
  margin-bottom: var(--space-3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.9;
}

.cta-btn {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Categories */
.product-categories {
  padding: var(--space-5) 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--secondary);
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.category-card {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: var(--space-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-top: var(--space-1);
  margin-bottom: 0;
  color: var(--dark);
}

.category-card img, .category-card .emoji-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-1);
  font-size: 40px;
}

/* Category & Shop Archive Page */
.category-banner,
.shop-banner {
  background-color: var(--secondary);
  background-size: cover;
  background-position: center;
  color: white;
  padding: var(--space-4) 0;
  text-align: center;
  position: relative;
}

.category-banner::before,
.shop-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58, 7, 100, 0.85) 0%, rgba(230, 0, 126, 0.85) 100%);
  z-index: 1;
}

.category-banner .container,
.shop-banner .container {
  position: relative;
  z-index: 2;
}

.category-title,
.shop-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: white;
}

.category-description,
.shop-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  opacity: 0.9;
}

.shop-content {
  padding: var(--space-4) 0 var(--space-5);
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  flex-direction: column;
  min-height: 60vh;
}

.shop-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--light-gray);
}

.woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: var(--space-3);
}

.woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.woocommerce-result-count {
  font-size: 14px;
  color: var(--gray);
}

/* Products in Archive Layout */
ul.products {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  width: 100%;
}

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.products li.product .product-card {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products li.product .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.products li.product a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}

.products li.product .product-img {
  height: 200px;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--light-gray);
}

.products li.product img {
  max-height: 100%;
  max-width: 100%;
  width: auto !important;
  object-fit: contain;
  margin: 0 !important;
  transition: transform 0.5s ease;
}

.products li.product:hover img {
  transform: scale(1.03);
}

.products li.product .product-info {
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 500;
  margin-bottom: 10px !important;
  color: var(--dark);
  line-height: 1.3;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

.products li.product .price {
  font-size: 16px !important;
  font-weight: bold;
  color: var(--primary) !important;
  margin-bottom: 10px;
  display: block;
}

.products li.product .price del {
  color: var(--gray);
  font-size: 14px;
  font-weight: normal;
  margin-right: 5px;
}

.products li.product .price ins {
  text-decoration: none;
}

.products li.product .product-actions {
  display: block;
  text-align: center;
  margin-top: auto;
  margin-bottom: 15px !important;
}

.products li.product .button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  display: inline-block;
  width: 80%; 
  max-width: 200px;
  transition: all 0.3s ease;
  text-transform: none;
  margin: 0 auto;
}

.products li.product .button:hover {
  background-color: var(--primary-dark);
}

/* Pagination */
.woocommerce-pagination {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: center;
  width: 100%;
}

.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  border: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul.page-numbers li {
  border: none;
  margin: 0 4px;
}

.woocommerce-pagination ul.page-numbers li .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  color: var(--gray);
  background-color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.woocommerce-pagination ul.page-numbers li .page-numbers:hover:not(.current) {
  background-color: var(--light-gray);
  color: var(--dark);
}

/* Products */
.products-section {
  padding: var(--space-5) 0;
  background-color: var(--light-gray);
}

/* Fix for homepage products */
.front-page .product-actions,
.home .product-actions {
  text-align: center;
}

.front-page .product-price,
.home .product-price {
  text-align: center;
}

.front-page .add-to-cart,
.home .add-to-cart {
  display: inline-block;
  margin: 0 auto;
  width: 80%;
  max-width: 200px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.product-card {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: var(--space-2);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.03);
}

.product-info {
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  text-align: center;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.3;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-price ins {
  text-decoration: none;
}

.product-price del {
  color: var(--gray);
  font-size: 14px;
  font-weight: normal;
  margin-right: 5px;
}

.product-actions {
  display: block;
  text-align: center;
  margin-top: auto;
}

.add-to-cart {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  display: inline-block;
  width: 80%;
  max-width: 200px;
  transition: background-color 0.3s ease;
  text-align: center;
  margin: 0 auto;
}

.add-to-cart:hover {
  background-color: var(--primary-dark);
}

.add-to-cart.added {
  background-color: var(--success);
}

.add-to-cart.loading {
  opacity: 0.8;
}

.add-to-cart.ajax_add_to_cart:before {
  content: "";
}

.add-to-cart.ajax_add_to_cart:after {
  content: "Ajouter au panier";
}

.wishlist-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background-color: var(--light-gray);
  border: none;
  margin-left: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--gray);
}

.wishlist-btn:hover {
  background-color: var(--primary-light);
  color: white;
}

/* Services */
.services-section {
  padding: var(--space-5) 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-card {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.05);
  padding: var(--space-3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.service-card i, .service-card .emoji-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.service-card h3 {
  margin-bottom: var(--space-1);
  color: var(--secondary);
  font-size: 16px;
  font-weight: 600;
}

.service-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background-color: var(--secondary);
  color: white;
  padding: var(--space-4) 0 var(--space-2);
  flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-column h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-column p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.legal-links {
  margin-top: var(--space-1);
  font-size: 13px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  margin: 0 5px;
}

.legal-links a:hover {
  color: white;
  text-decoration: underline;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-content h2 {
  margin-bottom: var(--space-3);
  color: var(--secondary);
  text-align: center;
  font-size: 1.8rem;
}

.legal-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--primary);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 10px;
}

.legal-content h4 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
  color: var(--secondary);
  font-size: 1.2rem;
}

.legal-content p, .legal-content li {
  margin-bottom: var(--space-2);
  color: var(--dark);
}

.legal-content ul, .legal-content ol {
  margin-left: var(--space-3);
  margin-bottom: var(--space-3);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
}

.legal-content table th, .legal-content table td {
  padding: 10px;
  border: 1px solid var(--light-gray);
  text-align: left;
}

.legal-content table th {
  background-color: var(--light-gray);
  font-weight: 600;
}

.last-update {
  text-align: right;
  font-style: italic;
  color: var(--gray);
  margin-bottom: var(--space-3);
}

/* Single Product Page */
.single-product-container {
  padding: var(--space-4) 0;
  max-width: 1200px;
  margin: 0 auto;
}

.product-related-container {
  margin-top: var(--space-5);
}

.product-detail-wrapper {
  margin-bottom: var(--space-5);
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Product Gallery */
.product-gallery {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.woocommerce-product-gallery {
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  border: 1px solid var(--light-gray);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.woocommerce-product-gallery img {
  border-radius: 4px;
  max-height: 400px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.woocommerce-product-gallery figure {
  text-align: center;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: var(--space-2) 0;
}

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px !important;
  padding: 0 !important;
  justify-content: center;
}

.flex-control-thumbs li {
  width: 70px !important;
  height: 70px !important;
  margin: 0 !important;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--light-gray);
}

.flex-control-thumbs li img {
  height: 100%;
  object-fit: cover;
}

/* Product Information */
.product-info-container {
  padding: var(--space-2);
}

.product-badge {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.product-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--secondary);
  line-height: 1.2;
}

.product-rating {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
}

.product-rating .star-rating {
  margin-right: 10px;
  color: var(--primary);
}

/* Étoiles personnalisées pour les avis */
.product-stars {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.product-stars .star {
  font-size: 18px;
  margin-right: 2px;
}

.product-stars .star.full {
  color: var(--primary);
}

.product-stars .star.half {
  position: relative;
  color: #ccc;
}

.product-stars .star.half:before {
  content: '★';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  color: var(--primary);
}

.product-stars .star.empty {
  color: #ccc;
}

.product-stars .rating-value {
  margin-left: 5px;
  font-weight: 600;
  color: var(--primary);
}

.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.product-price del {
  font-size: 1.1rem;
  color: var(--gray);
  margin-right: 10px;
  font-weight: normal;
}

.product-price ins {
  text-decoration: none;
}

.product-short-description {
  margin-bottom: var(--space-3);
  color: var(--gray);
  line-height: 1.6;
}

/* Add to Cart Section */
.product-add-to-cart {
  margin-bottom: var(--space-3);
}

.quantity-wrapper {
  margin-bottom: var(--space-2);
}

.quantity-wrapper label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
  color: var(--dark);
}

.quantity .qty {
  width: 100px;
  padding: 10px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 16px;
}

.add-to-cart-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: var(--space-2);
}

.add-to-cart-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Product Meta */
.product-meta {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--light-gray);
  font-size: 14px;
}

.product-sku, .product-categories {
  margin-bottom: 8px;
}

.meta-label {
  color: var(--dark);
  font-weight: 500;
  margin-right: 5px;
}

.meta-value {
  color: var(--gray);
}

/* Product Tabs */
.product-tabs {
  margin-top: var(--space-4);
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--light-gray);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.tabs-navigation {
  display: flex;
  background-color: var(--light-gray);
  padding: 0 var(--space-2);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tab-button {
  padding: 15px var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  transition: all 0.3s ease;
  font-size: 15px;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
}

.tab-button.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.tabs-content {
  padding: var(--space-3);
}

.tab-panel {
  display: none !important;
}

.tab-panel.active {
  display: block !important;
}

.tab-content-inner {
  line-height: 1.6;
  color: var(--dark);
}

.tab-content-inner p {
  margin-bottom: var(--space-2);
}

.tab-content-inner h2, .tab-content-inner h3 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  color: var(--secondary);
}

/* Specifications Table */
.specifications-table {
  width: 100%;
  border-collapse: collapse;
}

.specifications-table tr {
  border-bottom: 1px solid var(--light-gray);
}

.specifications-table tr:last-child {
  border-bottom: none;
}

.specifications-table th, .specifications-table td {
  padding: 12px 10px;
  text-align: left;
}

.specifications-table th {
  width: 30%;
  font-weight: 500;
  color: var(--dark);
}

.specifications-table td {
  color: var(--gray);
}

/* Reviews */
.woocommerce-Reviews,
#reviews {
  max-width: 800px;
  margin: 0 auto;
}

.woocommerce-Tabs-panel {
  padding: var(--space-3);
}

.woocommerce-Tabs-panel--description,
.woocommerce-Tabs-panel--additional_information,
.woocommerce-Tabs-panel--reviews {
  margin-top: var(--space-2);
}

.woocommerce-Reviews-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-3);
}

.comment-form-rating {
  margin-bottom: var(--space-2);
}

.comment-form-rating label {
  margin-bottom: 8px;
  display: block;
}

p.stars a {
  color: var(--primary);
}

/* Clickable stars for ratings */
.clickable-stars {
  display: flex;
  font-size: 24px;
  margin-bottom: 15px;
}

.clickable-stars .star {
  color: #ccc;
  cursor: pointer;
  margin-right: 5px;
  transition: color 0.2s;
}

.clickable-stars .star.active {
  color: var(--primary);
}

.clickable-stars .star:hover {
  color: var(--primary);
}

/* Étoiles dans les commentaires */
.review-stars {
  margin-bottom: 5px;
}

.review-stars .star {
  font-size: 16px;
}

.woocommerce-product-rating .star-rating,
.star-rating span:before {
  color: var(--primary) !important;
}

.wc-tabs {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  display: flex;
  background-color: var(--light-gray);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.wc-tabs li {
  margin: 0 !important;
}

.wc-tabs li a {
  padding: 15px var(--space-2);
  background: transparent;
  border: none !important;
  cursor: pointer;
  font-weight: 500 !important;
  color: var(--gray);
  position: relative;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none !important;
  font-size: 15px;
  outline: none !important;
  box-shadow: none !important;
}

.wc-tabs li.active a {
  color: var(--primary);
}

.wc-tabs li.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.comment-form-comment label {
  display: block;
  margin-bottom: 8px;
}

.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
}

.form-submit input[type="submit"] {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
  background-color: var(--primary-dark);
}

/* Related Products */
.related.products {
  margin-top: var(--space-5);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.related.products > h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  text-align: center;
  position: relative;
  padding-bottom: var(--space-1);
}

.related.products > h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.related.products ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}

.related.products li.product {
  max-width: 200px;
  margin: 0 auto;
  width: 100%;
}

.related.products .product-card {
  height: 100%;
}

.related.products .product-img {
  height: 150px;
}

.related.products .product-info {
  padding: var(--space-2) var(--space-3);
}

.related.products .product-price {
  margin-bottom: 10px;
}

.related.products .add-to-cart {
  width: 100%;
}

/* My Account Page - Simplified Design */
.woocommerce-account .woocommerce {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-2) var(--space-5);
  display: flex;
  flex-wrap: wrap;
}

/* Fix clearfix issue */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
  content: '';
  display: table;
  clear: both;
}

/* Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 25% !important;
  float: left;
  padding-right: var(--space-3);
  margin-bottom: var(--space-3);
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  overflow: hidden;
  background-color: white;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--light-gray);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  padding: 15px var(--space-2);
  display: block;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background-color: var(--light-gray);
  color: var(--primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background-color: var(--primary);
  color: white;
}

/* Content */
.woocommerce-account .woocommerce-MyAccount-content {
  width: 70% !important;
  float: right !important;
  padding: var(--space-3);
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--light-gray);
  box-sizing: border-box;
  margin-bottom: var(--space-3);
}

/* Clear unwanted styles */
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  background-color: #f7f7f7 !important;
  color: var(--dark) !important;
  border-top-color: var(--primary) !important;
  border-radius: 4px;
  padding: 15px 15px 15px 50px !important;
}

.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before {
  color: var(--primary) !important;
}

.woocommerce-account .woocommerce-error::before {
  color: var(--error) !important;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin-top: 0;
  color: var(--secondary);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: var(--space-1);
  margin-bottom: var(--space-3);
}

.woocommerce-account .woocommerce-MyAccount-content p {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

/* Address */
.woocommerce-account .woocommerce-Addresses {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  flex: 1;
  min-width: 240px;
  padding: var(--space-2);
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  margin-bottom: var(--space-3);
  background-color: #f9f9f9;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  color: var(--primary);
  font-size: 13px;
}

.woocommerce-account .woocommerce-MyAccount-content address {
  font-style: normal;
  line-height: 1.6;
}

/* Forms */
.woocommerce-account .woocommerce-MyAccount-content fieldset {
  border: 1px solid var(--light-gray);
  padding: var(--space-2);
  margin: var(--space-3) 0;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.woocommerce-account .woocommerce-MyAccount-content legend {
  font-weight: 500;
  padding: 0 var(--space-1);
  color: var(--secondary);
  font-size: 15px;
}

.woocommerce-account .woocommerce-MyAccount-content .form-row {
  margin-bottom: var(--space-2) !important;
  padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background-color: white;
  box-shadow: none;
}

.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-account .woocommerce-MyAccount-content .button {
  background-color: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 4px !important;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  line-height: 1.5 !important;
}

.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover {
  background-color: var(--primary-dark) !important;
}

/* Orders table */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-table--order-downloads {
  border: 1px solid var(--light-gray) !important;
  border-radius: 4px !important;
  border-collapse: collapse;
  margin-bottom: var(--space-3) !important;
}

.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-table--order-downloads th {
  background-color: var(--light-gray);
  padding: 12px 15px !important;
  font-weight: 600;
  text-align: left;
}

.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .woocommerce-table--order-downloads td {
  padding: 15px !important;
  border-top: 1px solid var(--light-gray) !important;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table .button,
.woocommerce-account .woocommerce-table--order-downloads .button {
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: normal !important;
  margin: 2px;
}

/* Hide WooCommerce notices and View Cart button */
.woocommerce-notices-wrapper,
.added_to_cart.wc-forward {
  display: none !important;
}

/* Cart Page */
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content,
.single-product .site-content,
.tax-product_cat .site-content,
.post-type-archive-product .site-content {
  min-height: calc(100vh - 300px);
  display: flex;
  flex-direction: column;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce,
.single-product .single-product-container,
.tax-product_cat .shop-content,
.post-type-archive-product .shop-content {
  flex: 1;
}

/* Élément vide pour pousser le footer */
.woocommerce-cart .site-content::after,
.woocommerce-checkout .site-content::after,
.woocommerce-account .site-content::after,
.single-product .site-content::after,
.tax-product_cat .site-content::after,
.post-type-archive-product .site-content::after {
  content: '';
  display: block;
  min-height: 50px;
}

.woocommerce-cart .woocommerce {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-4) 0 var(--space-5);
}

.woocommerce-cart-form {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--light-gray);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.woocommerce-cart table.shop_table {
  border: none !important;
  margin-bottom: 0 !important;
}

.woocommerce-cart table.shop_table th {
  font-weight: 600;
  padding: 15px !important;
  border-bottom: 1px solid var(--light-gray) !important;
  border-top: none !important;
  background-color: var(--light-gray);
  color: var(--dark);
}

.woocommerce-cart table.shop_table td {
  padding: 15px !important;
  border-top: none !important;
  border-bottom: 1px solid var(--light-gray) !important;
}

.woocommerce-cart table.shop_table tr:last-child td {
  border-bottom: none !important;
}

.woocommerce-cart .product-remove a.remove {
  color: var(--gray) !important;
  font-weight: 400;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 22px;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.woocommerce-cart .product-remove a.remove:hover {
  background-color: var(--error) !important;
  color: white !important;
  border-color: var(--error);
}

.woocommerce-cart .product-thumbnail img {
  width: 80px !important;
  height: auto;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 5px;
}

.woocommerce-cart .product-name a {
  color: var(--dark);
  font-weight: 500;
}

.woocommerce-cart .product-name a:hover {
  color: var(--primary);
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
  color: var(--primary);
  font-weight: 600;
}

.woocommerce-cart .quantity .qty {
  width: 70px;
  padding: 8px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
}

.woocommerce-cart .coupon {
  display: flex;
  gap: 10px;
}

.woocommerce-cart .coupon input {
  padding: 11px 15px !important;
  border: 1px solid var(--light-gray) !important;
  border-radius: 4px !important;
  font-size: 14px !important;
}

.woocommerce-cart .coupon button {
  padding: 12px 15px !important;
  font-size: 14px !important;
  background-color: var(--primary) !important;
  color: white !important;
  border: none !important;
  font-weight: 500 !important;
}

.woocommerce-cart .coupon button:hover {
  background-color: var(--primary-dark) !important;
}

.woocommerce-cart .actions button[name="update_cart"] {
  background-color: var(--gray) !important;
  color: white !important;
  border: none !important;
  padding: 12px 15px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.woocommerce-cart .actions button[name="update_cart"]:hover {
  background-color: var(--dark) !important;
}

.woocommerce-cart .cart-collaterals {
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--light-gray);
  padding: var(--space-3);
}

.woocommerce-cart .cart-collaterals h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
  color: var(--secondary);
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 10px;
}

.woocommerce-cart .cart-collaterals table {
  border: none !important;
}

.woocommerce-cart .cart-collaterals table th {
  border: none !important;
  padding: 15px 0 !important;
  font-weight: 500;
  width: 30%;
}

.woocommerce-cart .cart-collaterals table td {
  border: none !important;
  padding: 15px 0 !important;
  text-align: right;
}

.woocommerce-cart .cart-collaterals .order-total th,
.woocommerce-cart .cart-collaterals .order-total td {
  font-weight: 600;
  border-top: 1px solid var(--light-gray) !important;
}

.woocommerce-cart .cart-collaterals .order-total td .amount {
  color: var(--primary);
  font-size: 1.2rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--primary) !important;
  color: white !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  padding: 15px !important;
  font-size: 16px !important;
  text-transform: uppercase;
  transition: all 0.3s ease !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: var(--primary-dark) !important;
}

/* Hide Edit buttons in cart */
table.cart .product-name .edit,
.cart_totals tr.order-total a.edit {
  display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .related.products ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none;
  }
  
  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: var(--space-3);
    padding-right: 0;
  }
  
  .woocommerce-cart .shop_table_responsive tr td {
    text-align: right !important;
    display: block;
    border-bottom: none !important;
    padding: 10px 15px !important;
  }
  
  .woocommerce-cart .shop_table_responsive tr td:before {
    content: attr(data-title) ": ";
    font-weight: 600;
    float: left;
    color: var(--dark);
  }
  
  .woocommerce-cart .shop_table_responsive tr td.product-remove:before,
  .woocommerce-cart .shop_table_responsive tr td.product-thumbnail:before {
    display: none;
  }
  
  .woocommerce-cart .shop_table_responsive tr td.product-remove {
    text-align: center !important;
    width: 100%;
    padding-bottom: 0 !important;
  }
  
  .woocommerce-cart .shop_table_responsive tr td.product-thumbnail {
    text-align: center !important;
    width: 100%;
    padding-top: 0 !important;
  }
  
  .woocommerce-cart .shop_table_responsive tr:last-child td:last-child {
    border-bottom: 1px solid var(--light-gray) !important;
  }
  
  .woocommerce-cart .coupon {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .woocommerce-cart .coupon button {
    width: 100% !important;
    margin-top: 5px !important;
  }
  
  .header-top {
    padding: var(--space-2) 0;
    height: auto;
    flex-wrap: wrap;
  }
  
  .site-branding {
    margin-bottom: var(--space-2);
    width: 100%;
    text-align: center;
  }
  
  .search-form {
    max-width: 100%;
    margin: var(--space-2) 0;
    order: 3;
    width: 100%;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-around;
    margin-bottom: var(--space-2);
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .nav-menu a {
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .products-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-navigation {
    flex-wrap: wrap;
  }
  
  .related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 1.4rem;
  }
  
  .related.products ul.products {
    grid-template-columns: 1fr;
  }
}

/* No products found styling */
.woocommerce-no-products-found {
  text-align: center;
  padding: var(--space-5) var(--space-2);
}

.no-products-message {
  max-width: 600px;
  margin: 0 auto;
}

.no-products-icon {
  font-size: 64px;
  margin-bottom: var(--space-3);
  color: var(--gray);
}

.woocommerce-no-products-found h2 {
  margin-bottom: var(--space-2);
  color: var(--secondary);
}

.woocommerce-no-products-found p {
  margin-bottom: var(--space-3);
  color: var(--gray);
}

.woocommerce-no-products-found .search-form {
  max-width: 400px;
  margin: var(--space-3) auto;
}

.woocommerce-no-products-found .return-to-shop {
  display: inline-block;
  margin-top: var(--space-3);
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.woocommerce-no-products-found .return-to-shop:hover {
  background-color: var(--primary-dark);
}

.woocommerce .product-info {
  padding: 0 !important;
  display: block !important;
  flex-direction: unset !important;
  flex-grow: unset !important;
}