/*
Theme Name: Perfumes Assad
Theme URI: 
Author: Alfredo Dávila
Author URI: 
Description: Perfumes Assad Theme from Highline Theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: highline
Text Domain: perfumes-assad
Tags: 
*/
:root {
  --drawer-width: 480px;
  --neg-drawer-width: calc(var(--drawer-width) * -1);
}

.wp-block-woocommerce-add-to-cart-form form.cart>.quantity:not(.wc-block-components-quantity-selector) .qty {
  margin-right: 0;
  height: auto;
}

/* Default image */
#productCategoryImg {
  background-image: url('/wp-content/uploads/2025/07/banner-productos.png');
  background-size: cover;
  background-position: center;
}

body.term-caballero #productCategoryImg {
  background-image: url('/wp-content/uploads/2025/08/WhatsApp-Image-2025-08-04-at-12.52.45-1.jpeg');
  background-size: cover;
  background-position: center;
}

body.term-dama #productCategoryImg {
  background-image: url('/wp-content/uploads/2025/08/pexels-karolina-grabowska-4871166-1.jpg');
  background-size: cover;
  background-position: 50% 57%;
}

body.term-unisex #productCategoryImg {
  background-image: url('/wp-content/uploads/2025/08/pexels-karolina-grabowska-8361488.jpg');
  background-size: cover;
  background-position: 50% 42%;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout div {
  display: block;
  z-index: 1;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart div {
  z-index: 1;
}

.lista-marcas-scroll {
  max-height: 200px;      /* Altura máxima */
  overflow-y: auto;       /* Scroll vertical */
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f8f8f8;
  border-radius: 6px;
}

.filtro-marcas {
  list-style: none;
  padding: 0;
}
.filtro-marcas li {
  margin-bottom: 6px;
}
.filtro-marcas a {
  text-decoration: none;
  color: #333;
}
.filtro-marcas a:hover {
  text-decoration: underline;
}

.filtro-marcas li.activo a {
  font-weight: bold;
  color: #0073aa;
}

.wc-block-grid__product-image img {
  background: transparent !important;
}

.pa-main-product-title {
  min-height: 45px;
}

.woocommerce-product-gallery img {
    background-color: transparent !important;
}

.wc-block-checkout__form .wc-block-components-validation-error {
    top: -4px !important;
    right: -6px !important;
}

@media (max-width: 780px) {
  .wc-block-checkout__form .wc-block-components-text-input.has-error {
      padding-bottom: 20px !important;
  }
  
  .wc-block-checkout__form .wc-block-components-validation-error {
      top: 60px !important;
      right: -16px !important;
  }
}

.has-scrolling-text .scrolling-text-list img {
    width: 17px !important;
}

#wa-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
}

.wa-box {
  position: relative;
}

#wa-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.wa-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 10px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: wa-pulse 2s infinite;
}

.wa-button img {
  width: 24px;
}

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37,211,102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}

.wa-product-btn {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  margin-top: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.wa-product-btn:hover {
  background: #1ebe5d;
}