/*
 Theme Name:   Shopwell Child
 Theme URI:    https://kmerways.com
 Description:  Theme enfant pour la boutique en ligne Kmerways (Cameroun)
 Author:       Kmerways Dev Team
 Author URI:   https://kmerways.com
 Template:     shopwell
 Version:      1.1.2
 Text Domain:  shopwell-child
*/

/* ==========================================================================
   1. VARIABLES DE DESIGN SYSTEM KMERWAYS
   ========================================================================== */
:root {
  /* Palette Kmerways */
  --kw-blue-primary: #0040A8;
  --kw-blue-dark: #002D7A;
  --kw-blue-darker: #001E54;
  --kw-blue-light: #F0F5FF;
  --kw-blue-border: #D0E1FD;
  
  /* Couleurs Mobile Money & Accents */
  --kw-gold-momo: #FFB800;
  --kw-gold-hover: #E5A600;
  --kw-orange-om: #FF6600;
  --kw-green-cameroon: #007A3D;
  --kw-red-cameroon: #CE1126;
  
  /* Typographie & Nuances */
  --kw-text-heading: #0F172A;
  --kw-text-body: #334155;
  --kw-text-muted: #64748B;
  --kw-bg-surface: #FFFFFF;
  --kw-bg-light: #F8FAFC;
  
  /* Surcharge des variables Shopwell Parent */
  --shopwell-color__primary: #0040A8 !important;
  --shopwell-color__primary--dark: #002D7A !important;
  --shopwell-color__primary--darker: #001E54 !important;
  --shopwell-color__primary--gray: #F0F5FF !important;
  --shopwell-color__heading: #0F172A !important;
  --shopwell-border__radius: 8px !important;
}

/* ==========================================================================
   2. POLICES ET TYPOGRAPHIE
   ========================================================================== */
body {
  color: var(--kw-text-body);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, 
.site-title, .elementor-heading-title {
  color: var(--kw-text-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ==========================================================================
   3. HEADER & BARRE DE RECHERCHE
   ========================================================================== */
/* Header logo */
.site-header .custom-logo-link img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.site-header .custom-logo-link:hover img {
  transform: scale(1.02);
}

/* Barre de recherche Kmerways */
.header-search form,
.shopwell-search form {
  border-radius: 30px !important;
  border: 2px solid var(--kw-blue-primary) !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 64, 168, 0.08);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-search form:focus-within,
.shopwell-search form:focus-within {
  box-shadow: 0 4px 18px rgba(0, 64, 168, 0.18);
  border-color: var(--kw-blue-dark) !important;
}

.header-search button[type="submit"],
.shopwell-search button[type="submit"] {
  background-color: var(--kw-blue-primary) !important;
  color: #FFFFFF !important;
  border-radius: 0 28px 28px 0 !important;
  transition: background-color 0.25s ease !important;
}

.header-search button[type="submit"]:hover,
.shopwell-search button[type="submit"]:hover {
  background-color: var(--kw-gold-momo) !important;
  color: var(--kw-blue-darker) !important;
}

/* Badges Panier & Wishlist */
.header-cart .count,
.header-wishlist .count,
.shopwell-badge-count {
  background: var(--kw-gold-momo) !important;
  color: var(--kw-blue-darker) !important;
  font-weight: 800 !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

/* ==========================================================================
   4. SECTION HÉROS (BANNIÈRE ACCUEIL)
   ========================================================================== */
.hero-price,
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: 7px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--kw-blue-border);
  box-shadow: 0 4px 14px rgba(0, 64, 168, 0.1);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--kw-blue-primary);
}
.hero-badge-tag .badge-icon {
  font-size: 16px;
}
.hero-price .hero-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--kw-text-muted);
}
.hero-price .hero-amount {
  font-size: 15px;
  font-weight: 800;
  color: var(--kw-blue-primary);
}

/* ==========================================================================
   ALIGNEMENT GLOBAL DE LA GRILLE (CONFORME AU SITE DISTANT KMERWAYS.COM)
   ========================================================================== */
@media (min-width: 1200px) {
  .container {
    width: 1340px;
  }
}

@media (min-width: 1200px) and (max-width: 1339px) {
  .container {
    max-width: 100%;
  }
}

.shopwell-blog-page .site-content {
  padding-top: 33px;
}

/* Boutons d'action */
.elementor-button,
a.button,
button.button,
input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 25px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.elementor-button:hover,
a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 64, 168, 0.22) !important;
}

/* ==========================================================================
   5. BARRE DE RÉASSURANCE KMERWAYS (LIVRAISON, MOMO, CONFIANCE)
   ========================================================================== */
.elementor-widget-icon-box {
  transition: transform 0.25s ease;
}

.elementor-widget-icon-box:hover {
  transform: translateY(-3px);
}

.elementor-widget-icon-box .elementor-icon-box-icon {
  background: var(--kw-blue-light);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 14px !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.elementor-widget-icon-box:hover .elementor-icon-box-icon {
  background: var(--kw-gold-momo);
  transform: scale(1.08);
}

.elementor-widget-icon-box .elementor-icon-box-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--kw-text-heading) !important;
  margin-bottom: 3px !important;
}

.elementor-widget-icon-box .elementor-icon-box-description {
  font-size: 13px !important;
  color: var(--kw-text-muted) !important;
  line-height: 1.45 !important;
}

/* ==========================================================================
   6. CARTES PRODUITS WOOCOMMERCE
   ========================================================================== */
.woocommerce ul.products li.product,
.shopwell-product-wrapper {
  border-radius: 12px !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  padding: 14px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.woocommerce ul.products li.product:hover,
.shopwell-product-wrapper:hover {
  transform: translateY(-4px) !important;
  border-color: var(--kw-blue-border) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 64, 168, 0.12) !important;
}

/* Badges Promo & Chaud */
.woocommerce span.onsale,
.shopwell-badge.onsale {
  background: linear-gradient(135deg, var(--kw-red-cameroon), #EF4444) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  box-shadow: 0 2px 6px rgba(206, 17, 38, 0.3) !important;
}

.shopwell-badge.featured,
.shopwell-badge.hot {
  background: var(--kw-gold-momo) !important;
  color: var(--kw-blue-darker) !important;
  font-weight: 800 !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
}

/* Titres de produits */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--kw-text-heading) !important;
  transition: color 0.2s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--kw-blue-primary) !important;
}

/* Prix */
.woocommerce ul.products li.product .price {
  color: var(--kw-blue-primary) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--kw-text-muted) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: var(--kw-blue-primary) !important;
}

/* Bouton Ajouter au Panier */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  background-color: var(--kw-blue-light) !important;
  color: var(--kw-blue-primary) !important;
  border: 1px solid var(--kw-blue-border) !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
  background-color: var(--kw-blue-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--kw-blue-primary) !important;
}

/* ==========================================================================
   7. SECTIONS AVIS CLIENTS & TÉMOIGNAGES
   ========================================================================== */
.elementor-element-20726 .elementor-widget-image-box .elementor-image-box-title {
  color: var(--kw-blue-primary) !important;
  font-weight: 700 !important;
}

.elementor-element-20726 .elementor-widget-image-box .elementor-image-box-description {
  color: var(--kw-green-cameroon) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

/* ==========================================================================
   8. FOOTER MODERNE KMERWAYS
   ========================================================================== */
.site-footer {
  background-color: var(--kw-blue-darker) !important;
  color: #94A3B8 !important;
  border-top: 4px solid var(--kw-gold-momo);
}

.site-footer h1, .site-footer h2, .site-footer h3, 
.site-footer h4, .site-footer h5, .site-footer h6,
.site-footer .widget-title {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.site-footer a {
  color: #CBD5E1 !important;
  transition: color 0.2s ease !important;
}

.site-footer a:hover {
  color: var(--kw-gold-momo) !important;
}

.site-footer .footer-copyright,
.site-footer .site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #64748B !important;
  font-size: 13px;
}

/* ==========================================================================
   9. OPTIMISATIONS MOBILES
   ========================================================================== */
@media (max-width: 768px) {
  .site-header .custom-logo-link img {
    max-height: 38px;
  }
  
  .woocommerce ul.products li.product {
    padding: 10px !important;
  }
  
  .hero-price {
    font-size: 12px;
    padding: 4px 12px;
  }
}

/* ==========================================================================
   10. MENU TIROIR COMPTE KMERWAYS (OFFSCREEN ACCOUNT PANEL)
   ========================================================================== */
.kmwm-panel-links {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kmwm-panel-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 8px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.kmwm-panel-links li a > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kmwm-panel-links li a:hover {
  background-color: #f1f5f9;
  color: #0040A8;
}

.kmwm-panel-links__sell a {
  background-color: #0040A8;
  color: #ffffff !important;
  font-weight: 700 !important;
  justify-content: center !important;
  gap: 8px;
  margin-bottom: 8px;
}

.kmwm-panel-links__sell a:hover {
  background-color: #002D7A !important;
  color: #ffffff !important;
}

.kmwm-panel-links__wallet a {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534 !important;
  font-weight: 600 !important;
  margin-bottom: 4px;
}

.kmwm-panel-links__logout {
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.kmwm-panel-links__logout a {
  color: #dc2626 !important;
}

.kmwm-panel-badge {
  font-style: normal;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.kmwm-panel-badge--muted {
  background-color: #e2e8f0;
  color: #475569;
}

