/* =============================================
   Mapharma France - Main Stylesheet (Premium)
   ============================================= */

:root {
  --primary: #0E8F58;
  --primary-dark: #065F3A;
  --primary-light: #D1FAE5;
  --accent: #E8B53D;
  --accent-hover: #D4A030;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --border: #E5E7EB;
  --border-light: #F1F5F9;
  --promo: #DC2626;
  --promo-bg: #FEE2E2;
  --success: #059669;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --glass-bg: rgba(255,255,255,0.1);
  --glass-border: rgba(255,255,255,0.2);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip-link {
  position: absolute; left: -9999px; z-index: 99999;
  background: var(--primary); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== ANIMATIONS GLOBALES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,143,88,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(14,143,88,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  line-height: 1.4;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(232,181,61,0.3); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-add-cart {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  padding: 10px 20px;
  font-size: 14px;
  width: 100%;
}
.btn-add-cart:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-newsletter {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  padding: 14px 32px;
  white-space: nowrap;
}
.btn-newsletter:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.btn-shine:hover::after { left: 100%; }

/* ===== ANNOUNCEMENT BAR (Glassmorphism) ===== */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}
.announcement-bar a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* ===== PROMO BANNER (Urgence) ===== */
.promo-banner {
  background: linear-gradient(90deg, #DC2626, #EF4444, #DC2626);
  background-size: 200% 100%;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  animation: promo-pulse 2s ease infinite;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2.5s infinite;
}
.promo-banner strong { font-weight: 700; }
.promo-banner .promo-code {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  margin-left: 6px;
  border: 1px dashed rgba(255,255,255,0.4);
}
@keyframes promo-pulse {
  0%, 100% { opacity: 1; background-position: 0% 50%; }
  50% { opacity: 0.9; background-position: 100% 50%; }
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-timer {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.countdown-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  min-width: 60px;
  transition: var(--transition-bounce);
}
.countdown-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.25);
}
.countdown-number {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: block;
  line-height: 1;
}
.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.5px;
}
.countdown-separator {
  font-size: 24px;
  font-weight: 700;
  align-self: center;
  opacity: 0.7;
}

/* ===== TRUST BADGES BAR ===== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.trust-badge-item:hover { color: var(--primary); }
.trust-badge-item svg {
  color: var(--primary);
  flex-shrink: 0;
}
.trust-badge-item .trust-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(14,143,88,0.4);
  animation: float-pulse 2s ease infinite;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
}
.floating-cta.visible { display: flex; }
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14,143,88,0.5);
}
@keyframes float-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== SOCIAL PROOF TOAST ===== */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 950;
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  border-left: 4px solid var(--primary);
  animation: toast-slide-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.social-proof-toast.toast-hiding {
  animation: toast-slide-out 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.toast-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
}
.toast-content { flex: 1; min-width: 0; }
.toast-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2px;
}
.toast-text strong { font-weight: 600; }
.toast-product {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.toast-close:hover { color: var(--promo); }
@keyframes toast-slide-in {
  from { transform: translateX(-120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-slide-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-120%); opacity: 0; }
}

/* ===== PROGRESS BAR (Livraison gratuite) ===== */
.progress-bar-container {
  background: var(--bg-alt);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}
.progress-bar-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-bar-label .label-highlight {
  color: var(--primary);
  font-weight: 600;
}
.progress-bar-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
.progress-bar-amount {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: right;
}

/* ===== STICKY ADD TO CART ===== */
.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 12px 20px;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-light);
}
.sticky-atc.visible { display: flex; }
.sticky-atc-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.sticky-atc-info img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.sticky-atc-details { min-width: 0; }
.sticky-atc-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.sticky-atc-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.sticky-atc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== PRODUCT GALLERY (Ameliore) ===== */
.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-gallery-main {
  grid-column: 1 / -1;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
  cursor: zoom-in;
  transition: var(--transition);
}
.product-gallery-main:hover {
  border-color: var(--primary);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.product-gallery-main:hover img { transform: scale(1.03); }
.product-gallery-thumb {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== CART DRAWER (Slide-in) ===== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 600;
}
.cart-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cart-drawer-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.cart-drawer-empty svg {
  margin-bottom: 16px;
  opacity: 0.5;
}
.cart-drawer-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  animation: fadeInRight 0.3s ease forwards;
}
.cart-drawer-item-image {
  width: 72px;
  height: 72px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.cart-drawer-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-drawer-item-details { flex: 1; min-width: 0; }
.cart-drawer-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.cart-drawer-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
}
.cart-drawer-subtotal .amount {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}
.cart-drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== QUANTITY STEPPER ===== */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.quantity-stepper button {
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
  font-size: 16px;
  font-weight: 600;
}
.quantity-stepper button:hover {
  background: var(--primary);
  color: #fff;
}
.quantity-stepper button:active { transform: scale(0.95); }
.quantity-stepper input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  outline: none;
  -moz-appearance: textfield;
}
.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar-item .icon { opacity: 0.9; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.site-branding { flex-shrink: 0; }
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-link:hover { text-decoration: none; }
.logo-icon { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo-tagline { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Search */
.header-search { flex: 1; max-width: 480px; }
.search-form { position: relative; display: flex; }
.search-field {
  width: 100%;
  padding: 12px 48px 12px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: var(--bg-alt);
}
.search-field:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,143,88,0.12);
}
.search-field::placeholder { color: var(--text-muted); }
.search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.search-submit:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  position: relative;
}
.header-action:hover { color: var(--primary); }
.action-label { font-size: 11px; }
.header-cart .cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--promo);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: pulse-glow 2s infinite;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text);
}

/* ===== NAVIGATION ===== */
.main-navigation {
  background: var(--primary);
}
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 0;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
  background: var(--primary-dark);
  border-bottom-color: var(--accent);
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 200;
  padding: 8px 0;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.nav-menu .sub-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #059669);
  padding: 80px 0 100px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,181,61,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}
.hero-subtitle {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: float 6s ease-in-out infinite;
}
/* Floating badges */
.hero-float-badge {
  position: absolute;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  animation: float 3s ease-in-out infinite;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-float-badge .badge-price { font-size: 22px; color: var(--accent); font-weight: 700; }
.hero-float-badge.badge-1 { top: 5%; right: -5%; animation-delay: 0s; }
.hero-float-badge.badge-2 { top: 35%; right: -10%; animation-delay: 1s; }
.hero-float-badge.badge-3 { bottom: 10%; right: 0%; animation-delay: 2s; }

/* ===== TRUST SECTION ===== */
.trust-section {
  background: #fff;
  padding: 50px 0;
  border-bottom: 1px solid var(--border-light);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  text-align: center;
  padding: 16px;
  transition: var(--transition);
}
.trust-item:hover { transform: translateY(-4px); }
.trust-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: var(--transition);
}
.trust-item:hover .trust-icon {
  background: var(--primary);
  color: #fff;
}
.trust-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.trust-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== SECTIONS COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}
.section-cta { text-align: center; margin-top: 40px; }

/* ===== CATEGORIES ===== */
.categories-section { background: var(--bg-alt); padding: 70px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.category-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition-bounce);
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.cat-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  transition: var(--transition);
}
.category-card:hover .cat-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.cat-name {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

/* ===== PRODUCTS ===== */
.products-section { background: #fff; padding: 70px 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-bounce);
  border: 1px solid var(--border-light);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14,143,88,0.15);
}
.product-image {
  position: relative;
  background: var(--bg-alt);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--promo);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  z-index: 2;
}
.product-badge.badge-bestseller {
  background: var(--accent);
  color: var(--text);
}
.product-badge.badge-new {
  background: #3B82F6;
}
.product-badge.badge-stock {
  background: var(--success);
}
.product-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateX(0);
}
.quick-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}
.quick-action-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.product-info { padding: 16px; }
.product-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--primary); }
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.product-rating .star { flex-shrink: 0; }
.rating-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.price-regular {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-sale {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.price-current del { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.price-current ins { text-decoration: none; }

/* ===== WHY SECTION ===== */
.why-section {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  padding: 70px 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.why-item {
  text-align: center;
  padding: 32px 24px;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}
.why-item:hover {
  background: rgba(255,255,255,0.6);
  transform: translateY(-4px);
}
.why-icon {
  width: 72px; height: 72px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.why-item:hover .why-icon {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}
.why-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.why-item p { color: var(--text-secondary); font-size: 15px; }

/* ===== REVIEWS ===== */
.reviews-section { background: #fff; padding: 70px 0; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  border: 1px solid transparent;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.review-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--text);
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #059669 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.newsletter-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.newsletter-subtitle {
  opacity: 0.9;
  margin-bottom: 32px;
  font-size: 16px;
  position: relative;
  z-index: 1;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-rgpd {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { padding-right: 20px; }
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.footer-desc {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; }
.footer-payment {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-badge {
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.footer-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.footer-contact .contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-legal a:hover { color: #fff; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }

/* ===== CONTENT AREA (blog, page, single) ===== */
.site-main {
  padding: 60px 0;
}
.content-area { flex: 1; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.post-card .post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.post-card:hover .post-thumbnail img { transform: scale(1.05); }
.post-card .post-content { padding: 20px; }
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.post-title {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }
.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}
.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.read-more:hover { color: var(--primary-dark); }

/* Page content */
.page-content { max-width: 900px; margin: 0 auto; }
.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}
.page-body { font-size: 16px; line-height: 1.8; }
.page-body h2, .page-body h3 { margin: 24px 0 12px; }
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin: 0 0 16px 24px; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }

/* Single post */
.single-post { max-width: 900px; margin: 0 auto; }
.post-header { margin-bottom: 32px; }
.post-featured-image { margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; }
.post-meta-top {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.single-post .post-title { font-size: 36px; margin-bottom: 24px; }
.post-body { font-size: 16px; line-height: 1.8; }
.post-body p { margin-bottom: 16px; }
.post-body h2, .post-body h3 { margin: 32px 0 16px; }
.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-share { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.post-share a { padding: 6px 14px; background: var(--bg-alt); border-radius: var(--radius-sm); font-size: 13px; color: var(--text); }
.post-share a:hover { background: var(--primary-light); color: var(--primary); }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { padding: 4px 12px; background: var(--bg-alt); border-radius: var(--radius-full); font-size: 13px; color: var(--text-secondary); }
.post-tags a:hover { background: var(--primary-light); color: var(--primary); }

/* Sidebar */
.widget-area { width: 300px; flex-shrink: 0; }
.widget { margin-bottom: 24px; padding: 20px; background: var(--bg-alt); border-radius: var(--radius-md); }
.widget-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* Pagination */
.pagination, .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-numbers, .pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.page-numbers.current, .pagination .current {
  background: var(--primary);
  color: #fff;
}
.page-numbers:hover:not(.current) { background: var(--primary-light); color: var(--primary); }

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .error-title { font-size: 120px; font-weight: 700; color: var(--primary); line-height: 1; }
.error-404 h2 { font-size: 28px; margin-bottom: 16px; }
.error-404 p { color: var(--text-secondary); margin-bottom: 32px; }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce-products-header { margin-bottom: 32px; }
.woocommerce-products-header__title { font-size: 36px; font-weight: 700; }
.woocommerce-result-count { color: var(--text-secondary); font-size: 14px; }
.woocommerce-ordering select {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* Product page */
.product .woocommerce-product-gallery { border-radius: var(--radius-md); overflow: hidden; }
.product .entry-title { font-size: 28px; font-weight: 700; }
.product .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.product .price del { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.product .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--text-secondary); line-height: 1.7; }

/* Cart / Checkout */
.woocommerce table.shop_table { border-radius: var(--radius-md); border-color: var(--border); }
.woocommerce table.shop_table th { background: var(--bg-alt); font-weight: 600; }
.woocommerce .cart_totals h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.woocommerce-checkout .woocommerce-form-coupon-toggle { margin-bottom: 20px; }
.woocommerce form.checkout { background: var(--bg-alt); padding: 24px; border-radius: var(--radius-md); }

/* Messages */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.woocommerce-message { border-left: 4px solid var(--success); }
.woocommerce-info { border-left: 4px solid #3B82F6; }
.woocommerce-error { border-left: 4px solid var(--promo); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }

/* ===== NEW REFACTORED CLASSES (v2.0.4) ===== */



/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #059669);
  padding: 60px 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-number {
  font-size: 48px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  opacity: 0.9;
  margin-top: 8px;
  font-size: 15px;
}

/* Promo Image Section */
.promo-image-section {
  padding: 0 0 40px;
}
.promo-image-section img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Why Content Grid (2-col desktop) */
.why-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.why-image-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.why-grid-stacked {
  grid-template-columns: 1fr;
  gap: 20px;
}
.why-item-card {
  text-align: left;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.why-item-card .why-icon {
  margin: 0 0 12px;
}

/* ===== LEGAL PAGES BASE STYLES ===== */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.legal-title {
  font-size: 36px;
  margin-bottom: 16px;
}
.legal-date {
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-heading {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}
.legal-list {
  margin: 16px 0 16px 24px;
  line-height: 2;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}
.legal-table tr:nth-child(even) {
  background: var(--bg-alt);
}

/* ===== RESPONSIVE QUICK FIXES ===== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-drawer { width: 380px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .section-title { font-size: 24px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 36px; }
  .why-content-grid { grid-template-columns: 1fr; }
  .why-image-col { order: -1; max-width: 400px; margin: 0 auto; }
  .why-grid,
  .reviews-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu { display: none; flex-direction: column; }
  .main-navigation.mobile-open .nav-menu { display: flex; }
  .newsletter-form { flex-direction: column; }
  .trust-bar { flex-direction: column; gap: 16px; align-items: center; }
  .floating-cta { bottom: 24px; right: 16px; padding: 12px 18px; font-size: 13px; }
  .social-proof-toast { max-width: calc(100vw - 48px); left: 12px; bottom: 12px; }
  .sticky-atc { padding: 10px 12px; }
  .sticky-atc-info { display: none; }
  .cart-drawer { width: 100%; }
  .product-gallery { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .product-gallery-main { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-section { padding: 40px 0 50px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .countdown-timer { gap: 8px; }
  .countdown-item { padding: 8px 12px; min-width: 52px; }
  .countdown-number { font-size: 22px; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 30px; }
  .stat-label { font-size: 13px; }
  .header-actions .header-action:not(.header-cart) { display: none; }
  #social-toast { max-width: calc(100vw - 24px); left: 12px; bottom: 12px; padding: 12px 16px; }
  #toast-avatar { width: 36px; height: 36px; font-size: 12px; }
}


/* =============================================
   NOUVELLES SECTIONS DYNAMIQUES (v2)
   Trust Marquee, Carousels, Flash Sale,
   How It Works, Brands, Reviews, Blog, Trust Bar
   ============================================= */

/* ---------------------------------------------
   1. Trust Marquee (defilant infini horizontal)
   --------------------------------------------- */
.trust-marquee-section {
  background: var(--bg-dark);
  padding: 16px 0;
  overflow: hidden;
}

.trust-marquee-track {
  display: flex;
  width: max-content;
}

.trust-marquee-content {
  display: flex;
  gap: 48px;
  animation: marquee-scroll 30s linear infinite;
}

.trust-marquee-content:hover {
  animation-play-state: paused;
}

.trust-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-marquee-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



/* ---------------------------------------------
   3. Categories Carousel
   --------------------------------------------- */
.cat-carousel-section {
  padding: 60px 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.cat-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.cat-carousel-nav {
  display: flex;
  gap: 8px;
}

.cat-carousel-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cat-carousel-nav button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cat-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-carousel-track::-webkit-scrollbar {
  display: none;
}

.cat-carousel-track.auto-scroll {
  animation: cat-scroll 40s linear infinite;
}

.cat-carousel-track.auto-scroll:hover {
  animation-play-state: paused;
}

.cat-carousel-card {
  flex: 0 0 160px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-bounce);
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid var(--border);
}

.cat-carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.cat-carousel-card .cat-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: var(--transition);
}

.cat-carousel-card:hover .cat-icon {
  background: var(--primary);
}

.cat-carousel-card .cat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  transition: var(--transition);
}

.cat-carousel-card:hover .cat-icon svg {
  stroke: #fff;
}

.cat-carousel-card .cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.cat-carousel-card .cat-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

@keyframes cat-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------------------------------------
   4. Products Carousel
   --------------------------------------------- */
.products-carousel-section {
  padding: 60px 0;
}

.products-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.products-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.products-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.product-carousel-card {
  flex: 0 0 calc(25% - 15px);
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.product-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-carousel-card .pc-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.product-carousel-card .pc-image img {
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-carousel-card:hover .pc-image img {
  transform: scale(1.05);
}

.product-carousel-card .pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--promo);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.product-carousel-card .pc-info {
  padding: 16px;
}

.products-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.products-carousel-nav:hover {
  background: var(--primary);
  color: #fff;
}

.products-carousel-nav.prev {
  left: -22px;
}

.products-carousel-nav.next {
  right: -22px;
}

.products-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.products-carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.products-carousel-dots .dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ===== FLASH SALE ===== */
.flash-sale-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #059669);
  padding: 60px 0;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.flash-sale-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}
.flash-sale-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: pulse-glow 2s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.flash-sale-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.flash-sale-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.flash-countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.flash-countdown-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  min-width: 80px;
  border: 1px solid rgba(255,255,255,0.2);
}
.flash-countdown-item .fc-number {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}
.flash-countdown-item .fc-label {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works-section {
  padding: 80px 0;
  background: var(--bg-alt);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 0;
  border-radius: 2px;
}
.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(14,143,88,0.3);
  border: 4px solid var(--bg-alt);
  position: relative;
}
.step-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------------------------------------------
   7. Brands Marquee
   --------------------------------------------- */
.brands-marquee-section {
  padding: 40px 0;
  background: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brands-marquee-track {
  display: flex;
  width: max-content;
}

.brands-marquee-content {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: brands-scroll 25s linear infinite;
}

.brands-marquee-content:hover {
  animation-play-state: paused;
}

.brand-item {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-item:hover {
  color: var(--primary);
}

@keyframes brands-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== REVIEWS CAROUSEL ===== */
.reviews-carousel-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
}
.reviews-carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.reviews-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.review-carousel-card {
  flex: 0 0 100%;
  padding: 0 20px;
}
.review-carousel-card .rc-inner {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.review-carousel-card .rc-inner .review-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}
.review-carousel-card .rc-inner .review-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.review-carousel-card .rc-inner .review-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.review-carousel-card .rc-inner .review-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.reviews-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 18px;
  transition: var(--transition);
}
.reviews-carousel-nav:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.reviews-carousel-nav.prev {
  left: -20px;
}
.reviews-carousel-nav.next {
  right: -20px;
}
.reviews-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.reviews-carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}
.reviews-carousel-dots .dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ===== BLOG PREVIEW ===== */
.blog-preview-section {
  padding: 60px 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card .blog-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), #E0F2FE);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card .blog-image svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary);
  opacity: 0.5;
}
.blog-card .blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .blog-cat {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card h3 {
  font-size: 17px;
  margin: 8px 0;
  line-height: 1.4;
}
.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex: 1;
}
.blog-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== TRUST BOTTOM BAR ===== */
.trust-bottom-bar {
  background: var(--bg-dark);
  padding: 40px 0;
}
.trust-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.trust-bottom-item {
  color: #fff;
}
.trust-bottom-item .tbi-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.trust-bottom-item .tbi-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}
.trust-bottom-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}
.trust-bottom-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---------------------------------------------
   11. Section Headers
   --------------------------------------------- */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-header-flex .section-title {
  margin-bottom: 0;
}

.section-header-flex .view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== RESPONSIVE NEW SECTIONS ===== */
@media (max-width: 1024px) {
  .hero-section .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-title { font-size: 36px; }
  .hero-subtitle { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-image-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
  .hero-float-badge { display: none; }
  .flash-sale-title { font-size: 32px; }
  .product-carousel-card { flex: 0 0 calc(33.333% - 14px); }
}
@media (max-width: 768px) {
  .hero-section { padding: 50px 0 60px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .steps-grid::before { display: none; }
  .step-number { width: 60px; height: 60px; font-size: 22px; }
  .flash-sale-title { font-size: 26px; }
  .flash-countdown-item { padding: 12px 16px; min-width: 60px; }
  .flash-countdown-item .fc-number { font-size: 24px; }
  .product-carousel-card { flex: 0 0 calc(50% - 10px); }
  .blog-grid { grid-template-columns: 1fr; }
  .trust-bottom-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cat-carousel-card { flex: 0 0 140px; padding: 20px 12px; }
  .reviews-carousel-nav.prev { left: 0; }
  .reviews-carousel-nav.next { right: 0; }
  .review-carousel-card .rc-inner { padding: 24px; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 8px; }
  .products-carousel-nav.prev { left: 0; }
  .products-carousel-nav.next { right: 0; }
  .products-carousel-nav { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-bottom-grid { grid-template-columns: 1fr; }
  .product-carousel-card { flex: 0 0 100%; }
  .flash-countdown-item .fc-number { font-size: 20px; }
  .flash-countdown-item { padding: 10px 12px; min-width: 55px; }
  .flash-sale-title { font-size: 22px; }
  .brand-item { font-size: 14px; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-bottom-item .tbi-icon { width: 44px; height: 44px; }
}


/* =============================================
   SINGLE POST / BLOG - Enhanced Styles
   ============================================= */

.single-post .site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-post .post-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text);
}

.single-post .post-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
  align-items: center;
}

.single-post .post-meta .post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-post .post-meta .post-meta-item svg {
  flex-shrink: 0;
}

.single-post .post-meta .post-meta-separator {
  color: var(--border);
}

.single-post .post-meta a {
  color: var(--primary);
}

.single-post .post-meta a:hover {
  color: var(--primary-dark);
}

.single-post .post-featured-image {
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.single-post .post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post .post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}

.single-post .post-content h2 {
  font-size: 28px;
  margin: 32px 0 16px;
  color: var(--text);
}

.single-post .post-content h3 {
  font-size: 22px;
  margin: 24px 0 12px;
  color: var(--text);
}

.single-post .post-content h4 {
  font-size: 20px;
  margin: 20px 0 10px;
  color: var(--text);
}

.single-post .post-content p {
  margin-bottom: 20px;
}

.single-post .post-content ul,
.single-post .post-content ol {
  margin: 0 0 20px 24px;
}

.single-post .post-content ul {
  list-style: disc;
}

.single-post .post-content ol {
  list-style: decimal;
}

.single-post .post-content li {
  margin-bottom: 8px;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.single-post .post-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
}

.single-post .post-content blockquote p {
  margin-bottom: 0;
}

.single-post .post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.single-post .post-content a:hover {
  color: var(--primary-dark);
}

.single-post .post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

.single-post .post-content table th,
.single-post .post-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.single-post .post-content table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
}

.single-post .post-content table tr:nth-child(even) {
  background: var(--bg-alt);
}

.single-post .post-content code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--promo);
}

.single-post .post-content pre {
  background: var(--bg-dark);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.single-post .post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Post footer - Tags */
.single-post .post-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.single-post .post-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.single-post .post-tags svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.single-post .post-tags a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  font-size: 13px;
  margin: 2px;
  color: var(--text-secondary);
  transition: var(--transition);
  text-decoration: none;
}

.single-post .post-tags a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Prev/Next Post Navigation */
.single-post .post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.single-post .post-navigation a {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.single-post .post-navigation a:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.single-post .post-navigation .nav-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.single-post .post-navigation .nav-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.single-post .post-navigation a:hover .nav-title {
  color: var(--primary);
}

/* Single Post Responsive */
@media (max-width: 768px) {
  .single-post .site-main {
    padding: 24px 16px;
  }

  .single-post .post-title {
    font-size: 26px;
  }

  .single-post .post-content {
    font-size: 16px;
  }

  .single-post .post-meta {
    gap: 10px;
    font-size: 13px;
  }

  .single-post .post-meta .post-meta-separator {
    display: none;
  }

  .single-post .post-meta .post-meta-item {
    width: 100%;
  }

  .single-post .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-post .post-navigation {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   SINGLE PRODUCT - Enhanced Styles
   ============================================= */

.single-product .site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}

.single-product .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.single-product .woocommerce-product-gallery {
  position: relative;
}

.single-product .woocommerce-product-gallery__wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.single-product .product .entry-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.single-product .product .price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.single-product .product .price del {
  font-size: 20px;
  color: var(--text-muted);
  margin-right: 10px;
  font-weight: 400;
}

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

.single-product .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.single-product .woocommerce-product-details__short-description a {
  color: var(--primary);
  text-decoration: underline;
}

.single-product .cart {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.single-product .cart .quantity input {
  width: 70px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.single-product .cart .quantity input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 143, 88, 0.12);
}

.single-product .cart .single_add_to_cart_button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.single-product .cart .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 143, 88, 0.3);
}

.single-product .product_meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.single-product .product_meta > span {
  display: block;
  margin-bottom: 4px;
}

.single-product .product_meta a {
  color: var(--primary);
}

.single-product .product_meta a:hover {
  color: var(--primary-dark);
}

/* WooCommerce Tabs */
.single-product .woocommerce-tabs {
  margin-top: 40px;
}

.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.single-product .woocommerce-tabs ul.tabs::before {
  display: none;
}

.single-product .woocommerce-tabs ul.tabs li {
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 500;
  background: none;
  border-radius: 0;
  margin: 0 0 -2px 0;
  position: relative;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  background: none;
}

.single-product .woocommerce-tabs ul.tabs li a {
  color: inherit;
  text-decoration: none;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: inherit;
}

/* Tab panels */
.single-product .woocommerce-Tabs-panel {
  padding: 24px 0;
  font-size: 16px;
  line-height: 1.7;
}

.single-product .woocommerce-Tabs-panel h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text);
}

.single-product .woocommerce-Tabs-panel p {
  margin-bottom: 16px;
}

.single-product .woocommerce-Tabs-panel a {
  color: var(--primary);
}

.single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
}

.single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes th,
.single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.single-product .woocommerce-Tabs-panel table.woocommerce-product-attributes th {
  background: var(--bg-alt);
  font-weight: 600;
  width: 200px;
}

/* Reviews */
.single-product .woocommerce-Reviews .commentlist {
  list-style: none;
  padding: 0;
}

.single-product .woocommerce-Reviews .commentlist .review {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.single-product .woocommerce-Reviews .commentlist .review:last-child {
  border-bottom: none;
}

.single-product .woocommerce-Reviews .star-rating {
  color: var(--accent);
}

.single-product .woocommerce-Reviews .comment-text {
  padding: 16px 0;
}

.single-product .woocommerce-Reviews .meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.single-product .woocommerce-Reviews .description {
  font-size: 15px;
  line-height: 1.7;
}

/* Review Form */
.single-product #review_form {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.single-product #review_form .comment-reply-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

/* Product Sale Flash Badge */
.single-product .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--promo);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  z-index: 10;
}

/* Related / Upsells */
.single-product .related.products,
.single-product .upsells.products {
  margin-top: 60px;
}

.single-product .related.products h2,
.single-product .upsells.products h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Breadcrumbs */
.single-product .woocommerce-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.single-product .woocommerce-breadcrumb a {
  color: var(--primary);
}

.single-product .woocommerce-breadcrumb a:hover {
  color: var(--primary-dark);
}

/* Stock notice */
.single-product .stock {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.single-product .stock.in-stock {
  background: #F0FDF4;
  color: var(--success);
}

.single-product .stock.out-of-stock {
  background: var(--promo-bg);
  color: var(--promo);
}

/* Grouped product table */
.single-product table.group_table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.single-product table.group_table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* Variations */
.single-product table.variations {
  width: 100%;
  margin-bottom: 20px;
}

.single-product table.variations th,
.single-product table.variations td {
  padding: 8px 0;
  text-align: left;
}

.single-product table.variations label {
  font-weight: 600;
  color: var(--text);
}

.single-product table.variations select {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  min-width: 200px;
}

.single-product .single_variation_wrap {
  margin-top: 16px;
}

/* Single Product Responsive */
@media (max-width: 768px) {
  .single-product .product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .single-product .product .entry-title {
    font-size: 24px;
  }

  .single-product .product .price {
    font-size: 22px;
  }

  .single-product .woocommerce-tabs ul.tabs {
    flex-wrap: wrap;
  }

  .single-product .woocommerce-tabs ul.tabs li {
    padding: 10px 16px;
    font-size: 14px;
  }

  .single-product .cart {
    flex-direction: column;
    align-items: stretch;
  }

  .single-product .cart .quantity input {
    width: 100%;
  }

  .single-product .cart .single_add_to_cart_button {
    width: 100%;
  }
}