/* ============================================
   HAITIDESIGNS - CORRECTIONS CSS CONSOLIDÉES
   Ce fichier doit être chargé EN DERNIER
   ============================================ */

/* ============================================
   1. BOUTON ADD TO CART - STYLE UNIFORME
   Texte noir souligné partout
   ============================================ */
html body .woocommerce ul.products li.product a.button.add_to_cart_button,
html body .woocommerce ul.products li.product a.add_to_cart_button,
html body .woocommerce a.button.add_to_cart_button,
html body ul.products li.product a.add_to_cart_button,
html body ul.products li.product a.button.add_to_cart_button,
html body .related.products li.product a.add_to_cart_button,
html body .shop-page ul.products li.product a.add_to_cart_button,
html body.woocommerce ul.products li.product a.button,
html body.woocommerce-page ul.products li.product a.button,
html body #featured-product a.add_to_cart_button,
html body #trending_products a.add_to_cart_button,
html body .product-content a.add_to_cart_button,
html body a.add_to_cart_button {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #000 !important;
  text-decoration: underline !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  padding: 5px 0 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.5 !important;
  margin: 5px 0 !important;
}

html body .woocommerce ul.products li.product a.add_to_cart_button:hover,
html body ul.products li.product a.add_to_cart_button:hover,
html body a.add_to_cart_button:hover {
  background: none !important;
  background-color: transparent !important;
  color: #333 !important;
  text-decoration: underline !important;
}

html body .woocommerce ul.products li.product a.add_to_cart_button::after,
html body ul.products li.product a.add_to_cart_button::after,
html body a.add_to_cart_button::after {
  display: none !important;
  content: none !important;
}

/* ============================================
   2. BOUTON WISHLIST - STYLE AVEC BORDURE
   ============================================ */
html body .woocommerce ul.products li.product .yith-wcwl-add-button,
html body .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
html body ul.products li.product .yith-wcwl-add-button,
html body ul.products li.product .yith-wcwl-add-to-wishlist,
html body .yith-wcwl-add-button,
html body .yith-wcwl-add-to-wishlist,
html body .tinvwl_add_to_wishlist_button {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
  border: 1px solid #ccc !important;
  padding: 8px 15px !important;
  background: #fff !important;
  margin: 10px auto !important;
  text-align: center !important;
  border-radius: 3px !important;
}

html body .yith-wcwl-add-button a,
html body .yith-wcwl-add-to-wishlist a,
html body .tinvwl_add_to_wishlist_button a {
  color: #333 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

html body .yith-wcwl-add-button a i,
html body .yith-wcwl-add-to-wishlist a i,
html body .yith-wcwl-add-button a svg {
  margin-right: 5px !important;
  color: #333 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

/* ============================================
   3. FORMULAIRES LOGIN/REGISTER - STYLE UNIFORME
   ============================================ */
html body .woocommerce-form-login,
html body .woocommerce-form-register,
html body .woocommerce form.login,
html body .woocommerce form.register {
  padding: 30px !important;
  background: #f9f9f9 !important;
  border-radius: 10px !important;
  border: 1px solid #e5e5e5 !important;
  margin-bottom: 20px !important;
}

html body .woocommerce form .form-row label {
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 5px !important;
}

html body .woocommerce form .form-row input.input-text,
html body .woocommerce form .form-row input[type=text],
html body .woocommerce form .form-row input[type=email],
html body .woocommerce form .form-row input[type=password] {
  padding: 12px 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  width: 100% !important;
  font-size: 14px !important;
}

html body .woocommerce form .form-row input.input-text:focus,
html body .woocommerce form .form-row input[type=text]:focus,
html body .woocommerce form .form-row input[type=email]:focus,
html body .woocommerce form .form-row input[type=password]:focus {
  border-color: #dd9933 !important;
  outline: none !important;
  box-shadow: 0 0 5px rgba(221, 153, 51, 0.3) !important;
}

/* Bouton Login/Register */
html body .woocommerce form.login button.woocommerce-button,
html body .woocommerce form.register button.woocommerce-button,
html body .woocommerce button.woocommerce-form-login__submit,
html body .woocommerce button.woocommerce-form-register__submit,
html body .woocommerce .woocommerce-form-login button[type=submit],
html body .woocommerce .woocommerce-form-register button[type=submit] {
  background-color: #dd9933 !important;
  color: #fff !important;
  padding: 12px 30px !important;
  border: none !important;
  border-radius: 5px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

html body .woocommerce form.login button.woocommerce-button:hover,
html body .woocommerce form.register button.woocommerce-button:hover {
  background-color: #c88a2e !important;
}

/* ============================================
   4. FOOTER - STYLE COMPACT UNIFORME
   ============================================ */
html body #footer,
html body #footer_box,
html body #footer_box.darkbox,
html body .outer-footer {
  background: #3018A5 !important;
  background-color: #3018A5 !important;
}

html body #footer_box {
  padding-top: 30px !important;
  padding-bottom: 10px !important;
}

html body #footer_box .footer-cols .footer-pad {
  padding: 20px 10px !important;
}

html body #footer_box h3.widget-title,
html body #footer_box .widget h3,
html body #footer h3 {
  margin-bottom: 10px !important;
  padding-bottom: 5px !important;
  font-size: 18px !important;
  color: #fff !important;
}

html body #footer ul li {
  padding: 3px 0 !important;
}

html body #footer .social_widget {
  margin-top: 10px !important;
}

html body #footer .social_widget a {
  width: 35px !important;
  height: 35px !important;
  padding: 6px !important;
  margin: 0 5px !important;
}

/* ============================================
   5. COULEUR ACCENT UNIFORME #dd9933
   ============================================ */
html body .woocommerce .button.alt,
html body .woocommerce button.button.alt,
html body .woocommerce input.button.alt,
html body .woocommerce a.button.alt,
html body .woocommerce #respond input#submit.alt,
html body .woocommerce div.product form.cart .button {
  background-color: #dd9933 !important;
  color: #fff !important;
  border: none !important;
}

html body .woocommerce .button.alt:hover,
html body .woocommerce button.button.alt:hover {
  background-color: #c88a2e !important;
}

/* ============================================
   6. RESPONSIVE - MOBILE
   ============================================ */
@media screen and (max-width: 991px) {
  html body #footer_box .footer-cols .footer-pad {
    padding: 15px 10px !important;
  }
  html body #footer_box {
    padding-top: 20px !important;
  }
  html body #footer_box h3.widget-title,
  html body #footer h3 {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 767px) {
  /* Footer mobile */
  html body #footer_box .footer-cols .footer-pad {
    padding: 10px 5px !important;
  }
  html body #footer_box {
    padding-top: 15px !important;
    padding-bottom: 5px !important;
  }
  html body #footer_box h3.widget-title,
  html body #footer h3 {
    font-size: 14px !important;
    margin-bottom: 5px !important;
  }
  html body #footer ul li {
    padding: 2px 0 !important;
    font-size: 12px !important;
  }
  html body #footer .social_widget a {
    width: 30px !important;
    height: 30px !important;
    padding: 4px !important;
    margin: 0 2px !important;
    font-size: 14px !important;
  }
  
  /* Boutons produits mobile */
  html body .woocommerce ul.products li.product a.add_to_cart_button,
  html body ul.products li.product a.add_to_cart_button {
    font-size: 11px !important;
    padding: 4px 0 !important;
  }
  html body .yith-wcwl-add-button,
  html body .yith-wcwl-add-to-wishlist {
    padding: 6px 10px !important;
    margin: 8px auto !important;
  }
  html body .yith-wcwl-add-button a,
  html body .yith-wcwl-add-to-wishlist a {
    font-size: 12px !important;
  }
  
  /* Formulaires mobile */
  html body .woocommerce-form-login,
  html body .woocommerce-form-register {
    padding: 20px 15px !important;
  }
}

@media screen and (max-width: 480px) {
  html body #footer_box .footer-cols .footer-pad {
    padding: 8px 5px !important;
  }
  html body #footer_box h3.widget-title,
  html body #footer h3 {
    font-size: 13px !important;
  }
  html body #footer ul li {
    font-size: 11px !important;
  }
  html body #footer .social_widget a {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }
  html body .woocommerce ul.products li.product a.add_to_cart_button {
    font-size: 10px !important;
  }
}

/* ============================================

/* ============================================
   7. BEST CATEGORY - SINGLE COLUMN ON MOBILE
   Fixed selectors matching actual HTML structure
   ============================================ */
@media screen and (max-width: 1024px) {
  /* Force single column layout on tablets and mobile */
  #category-section .grid-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
  
  #category-section .grid-container .item {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 10px auto !important;
  }
  
  #category-section .grid-container .item img.cat-image {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  #category-section .grid-container .item p.category {
    text-align: center !important;
    margin-top: 15px !important;
  }
}

@media screen and (max-width: 767px) {
  #category-section .grid-container .item {
    max-width: 250px !important;
  }
  
  #category-section .grid-container .item img.cat-image {
    width: 180px !important;
    height: 180px !important;
  }
}

@media screen and (max-width: 480px) {
  #category-section .grid-container .item {
    max-width: 220px !important;
  }
  
  #category-section .grid-container .item img.cat-image {
    width: 150px !important;
    height: 150px !important;
  }
}
