/* Definici車n de fuentes personalizadas */
@font-face {
    font-family: 'Giaza';
    src: url('https://thebeautyspotshop.com/wp-content/themes/thebeautyspot/assets/fonts/Giaza.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Catchy Mager';
    src: url('https://thebeautyspotshop.com/wp-content/themes/thebeautyspot/assets/fonts/catchy-mager.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Coco Gothic Light';
    src: url('https://thebeautyspotshop.com/wp-content/themes/thebeautyspot/assets/fonts/Coco-Gothic-Light-trial.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Coco Gothic Ultralight';
    src: url('https://thebeautyspotshop.com/wp-content/themes/thebeautyspot/assets/fonts/Coco-Gothic-Ultralight-trial.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* Estilos generales para otros botones de WooCommerce */
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.single_add_to_cart_button {
    background-color: #5e0a1c !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: bold !important;
    transition: background-color 0.3s;
}

.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.single_add_to_cart_button:hover {
    background-color: #4a0816 !important;
}

.woocommerce .quantity .qty {
    width: 4em !important;
    text-align: center;
    border-radius: 0.5rem !important;
    border: 1px solid #fad7cd !important;
    padding: 0.5rem !important;
    height: auto !important;
}

.product-image-container {
    background-color: #ffffff;
    border-radius: 0.5rem; /* 8px */
    padding: 4px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid rgba(250, 215, 205, 0.3); /* tbs-accent/30 */
}



/*------------------ EDITAR FOTO PRODUCTO ---------------------------*/
/* Asegura que no se estiren las columnas del single product */
.single-product div.product .grid { align-items: start !important; }

/* Imagen a su tamaño natural, sin “altura forzada” */
.single-product .product-image-container img {
  display: block;
  width: 100%;
  height: auto !important;
}
/* ===== Single product: hacer la imagen un poco más pequeña ===== */
/* Capamos el ancho de la columna de la foto y la centramos en el grid */
:root{
  --tbs-product-media: 540px;   /* ajusta aquí el ancho “bonito” de la imagen */
}

.single-product div.product .product-image-container{
  max-width: var(--tbs-product-media);
  width: 100%;
  justify-self: center; /* centra dentro de la columna del grid */
}

/* En pantallas grandes puedes permitir un pelín más si quieres */
@media (min-width: 1280px){
  :root{ --tbs-product-media: 560px; }
}
@media (min-width: 1536px){
  :root{ --tbs-product-media: 600px; } /* opcional */
}

/* Imagen 100% del contenedor, sin forzar altura (evita pixelado) */
.single-product .product-image-container img{
  display: block;
  width: 100%;
  height: auto !important;
  image-rendering: auto;
}
.woocommerce div.product form.cart .button {
    vertical-align: middle;
    float: left;
    font-family: 'Catchy Mager';
}

/*--------------------- Ajustar parrilla de productos ---------------------*/
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
   /*min-height: 100px!important;*/
}

.woocommerce div.product {
    margin-bottom: 0;
    position: relative;
    background-color: #FFFFFF;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-radius: 10px;
}
body.post-type-archive-product .products .px-2{
  min-height:120px; /* en vez de height fijo */
}

/* ========= NORMALIZAR TARJETAS EN PAGINAS DE MARCA ========= */
body.tax-product_brand ul.products { align-items: stretch; }
body.tax-product_brand ul.products li.product{
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
}

/* Imagen SIEMPRE cuadrada, rellena y con esquinas redondeadas */
body.tax-product_brand .product-image-container{
  position:relative;
  aspect-ratio:1/1;          /* cuadrado */
  overflow:hidden;
  border-radius:12px;
}
body.tax-product_brand .product-image-container img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

/* Bloque de texto/precio con altura consistente */
body.tax-product_brand ul.products li.product .px-2{
  display:flex; flex-direction:column;
  justify-content:space-between;
  gap:.25rem;
  min-height:120px;          /* ajústalo si lo quieres un poco más alto/bajo */
  padding-left:.5rem; padding-right:.5rem;
}

/* Título a 2 líneas máx (misma altura) */
body.tax-product_brand ul.products li.product .px-2 h2,
body.tax-product_brand ul.products li.product .px-2 h3,
body.tax-product_brand ul.products li.product .woocommerce-loop-product__title{
  font-family:"Coco Gothic Light",sans-serif;
  font-size:16px; line-height:1.6;
  margin:.5rem 0 .25rem;
  min-height:3.2em;                /* 2 líneas x 1.6em */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Precio con espacio reservado (evita saltos) */
body.tax-product_brand ul.products li.product .price{
  min-height:1.8rem;
  margin:0 0 .5rem;
}

/* CTA al fondo del card */
body.tax-product_brand ul.products li.product .mt-auto{ margin-top:auto !important; }
body.tax-product_brand ul.products li.product .mt-auto .button{
  margin:0 auto;               /* centrado horizontal (opcional) */
}
/* ============ PÁGINAS DE MARCA: Layout en GRID (no masonry/columns) ============ */
/* Apaga cualquier column-count del tema */
body.tax-product_brand ul.products{
  column-count: initial !important;
  column-gap: 0 !important;
}

/* Usa un grid real con filas/columnas */
body.tax-product_brand ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 32px;                     /* separaciones entre tarjetas */
  align-items: stretch;          /* todas las tarjetas estiran en altura */
}

/* Breakpoints (ajústalos a tu gusto) */
@media (max-width: 1280px){
  body.tax-product_brand ul.products{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px){
  body.tax-product_brand ul.products{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  body.tax-product_brand ul.products{ grid-template-columns: 1fr; }
}

/* Cada tarjeta ocupa su celda y estira a la misma altura */
body.tax-product_brand ul.products li.product{
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Imagen cuadrada y recortada (como ya veníamos usando) */
body.tax-product_brand .product-image-container{
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}
body.tax-product_brand .product-image-container img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Bloque de texto/precio consistente */
body.tax-product_brand ul.products li.product .px-2{
  display:flex; flex-direction:column; gap:.25rem;
  justify-content:space-between;
  min-height: 120px;      /* súbelo si alguna marca necesita más aire */
  padding-left:.5rem; padding-right:.5rem;
}

/* Título a 2 líneas */
body.tax-product_brand ul.products li.product .px-2 h2,
body.tax-product_brand ul.products li.product .px-2 h3,
body.tax-product_brand ul.products li.product .woocommerce-loop-product__title{
  font-family:"Coco Gothic Light",sans-serif;
  font-size:16px; line-height:1.6;
  margin:.5rem 0 .25rem;
  min-height:3.2em;                  /* 2 líneas */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Precio con reserva de espacio */
body.tax-product_brand ul.products li.product .price{
  min-height:1.8rem;
  margin:0 0 .5rem;
}

/* CTA pegado al fondo del card */
body.tax-product_brand ul.products li.product .mt-auto{ margin-top:auto !important; }
body.tax-product_brand ul.products li.product .mt-auto .button{ margin:0 auto; }

.woocommerce .products ul::after, .woocommerce .products ul::before, .woocommerce ul.products::after, .woocommerce ul.products::before {
    content: " ";
    display: none;
}
/* ===== Gutter de 32px en páginas de marca ===== */
:root{ --tbs-grid-gap: 32px; }

body.tax-product_brand ul.products{
  /* seguimos en grid */
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  column-gap: var(--tbs-grid-gap) !important;  /* espacio horizontal */
  row-gap: var(--tbs-grid-gap) !important;     /* espacio vertical (ajústalo si quieres) */
}

/* quita el margen inferior que pone Woo por defecto a cada tarjeta */
body.tax-product_brand ul.products li.product{
  margin: 0 !important;
}

/* breakpoints opcionales (por si los necesitas) */
@media (max-width: 1280px){
  body.tax-product_brand ul.products{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px){
  body.tax-product_brand ul.products{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  body.tax-product_brand ul.products{ grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
    #menu-principal ul.sub-menu > li > a {
        
        white-space: pre-wrap!important;
       
    }
}

/*--------------------ARREGLO FRANJA BLANCA TIPOS DE PIEL ------------------*/
/* ============================
   Recs en "Tipos de piel" (single-tipos_de_piel)
   – Hace el contenedor de imagen cuadrado y la imagen a cover
============================ */

/* 1) Wrapper cuadrado y recorte */
body.single-tipos_de_piel .grid [class*="group"] > a:first-child,
body.single-tipos_de_piel .grid [class*="group"] .product-image-container{
  position: relative;
  display: block;
  padding-top: 100%;        /* cuadrado */
  border-radius: 12px;
  overflow: hidden;
}

/* 2) La imagen rellena al 100% del wrapper (sin franjas) */
body.single-tipos_de_piel .grid [class*="group"] > a:first-child img,
body.single-tipos_de_piel .grid [class*="group"] .product-image-container img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;  /* gana a height:auto de Woo */
  object-fit: cover;
  display: block;           /* evita el “gap” de línea base */
}

/* (Opcional) separaciones de 32px si el grid viene con gap-6 (24px) */
body.single-tipos_de_piel .grid.gap-6{ gap: 32px !important; }

/*-------------- carritO ICONO -------------*/

/* Badge del carrito */
.tbs-cart-link { position: relative; }

.tbs-cart-count{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  line-height: 18px;
  text-align: center;

  font-size: 11px;
  font-weight: 700;

  color: #fff;
  background: #5e0a1c;           /* color de marca */
  border-radius: 9999px;          /* pill */
  border: 2px solid #fff;         /* anillo blanco */
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* Por si la clase "hidden" viene de Tailwind, manténla: */
.tbs-cart-count.hidden { display: none; }

/*------ TAMAÑO GALERIA PRODUCTO -------*/
/* ===== Single product: galería grande y sin fondo ===== */

/* 1) La columna de la galería ocupa un poco más del ancho en desktop */
@media (min-width: 1024px){
  .single-product .grid.md\:grid-cols-2{
    /* 56% / 44% aprox */
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 3rem;
  }
}

/* 2) Quitar cualquier fondo blanco y bordes en la galería */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image a{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 3) Asegurar que la imagen rellene la columna (sin quedar pequeña) */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image{
  width: 100% !important;
  max-width: none !important;
}

/* 4) Las imágenes a 100% del contenedor. 
      object-fit: contain respeta el lienzo sin recortar */
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery__wrapper img{
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  border-radius: 12px; /* opcional, para seguir tu estilo */
}

/* 5) Evitar que algún contenedor meta color blanco de fondo */
.single-product .tbs-gallery,
.single-product .container,
.single-product .content-area,
.single-product .site-main,
.single-product main,
.single-product .entry-content,
.single-product .woocommerce div.product{
  background: transparent !important;
}

/* 6) Quitar padding/márgenes extra que achican visualmente la imagen */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image{
  margin: 0 !important;
  padding: 0 !important;
}

/* 7) Si usas miniaturas/slider, que no restrinjan el ancho */
.single-product .flex-control-thumbs,
.single-product .woocommerce-product-gallery__trigger{
  background: transparent !important;
}
.tbs-gallery {
    display: flex;
    justify-content: end;
}

/*------------------ Arreglar pagina simple -------------*/

/* ===== Páginas legales / plantilla por defecto ===== */

/* Contenedor de texto más estrecho y cómodo de leer */
.page-template-default #tbs-main-content .prose {
  max-width: 72ch;                 /* ~ 72 caracteres por línea */
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;            /* ~17px */
  line-height: 1.8;
  color: #2b2b2b;
  overflow-wrap: anywhere;         /* que no se rompa el layout con palabras muy largas */
  justify-content: center;
}

/* Título principal */
.page-template-default #tbs-main-content h1 {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Jerarquía de subtítulos */
.page-template-default #tbs-main-content .prose h2,
.page-template-default #tbs-main-content .prose h3,
.page-template-default #tbs-main-content .prose h4 {
  color: #5e0a1c;                  /* vinotinto de marca */
  font-family: "Catchy Mager", serif;
  line-height: 1.25;
  margin-top: 2.25rem;
  margin-bottom: .75rem;
  scroll-margin-top: 96px;         /* compensa el header fijo al anclar */
}

/* Párrafos y separación vertical uniforme */
.page-template-default #tbs-main-content .prose p { margin: 1rem 0; }

/* Listas claras */
.page-template-default #tbs-main-content .prose ul,
.page-template-default #tbs-main-content .prose ol { 
  margin: 1rem 0 1.25rem; 
  padding-left: 1.25rem; 
}
.page-template-default #tbs-main-content .prose li { margin: .35rem 0; }
.page-template-default #tbs-main-content .prose ul { list-style: disc; }
.page-template-default #tbs-main-content .prose ol { list-style: decimal; }
.page-template-default #tbs-main-content .prose li::marker { color: #5e0a1c; }

/* Enlaces “de documento” */
.page-template-default #tbs-main-content .prose a {
  color: #5e0a1c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-template-default #tbs-main-content .prose a:hover {
  opacity: .85;
}

/* Tablas responsivas y legibles */
.page-template-default #tbs-main-content .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
   /* para permitir scroll horizontal en móvil */
  overflow-x: auto;
  border: 1px solid rgba(94,10,28,.15);
}
.page-template-default #tbs-main-content .prose th,
.page-template-default #tbs-main-content .prose td {
  padding: .65rem .8rem;
  border: 1px solid rgba(94,10,28,.12);
  text-align: left;
}
.page-template-default #tbs-main-content .prose th {
  background: #ffede2;            /* rosa claro de marca */
  color: #5e0a1c;
  font-weight: 600;
 
}

/* Citas/avisos */
.page-template-default #tbs-main-content .prose blockquote {
  margin: 1.25rem 0;
  padding: .9rem 1rem;
  border-left: 4px solid #5e0a1c;
  background: #ffede2;
  color: #2b2b2b;
}

/* Separadores */
.page-template-default #tbs-main-content .prose hr {
  border: 0;
  border-top: 1px solid rgba(94,10,28,.15);
  margin: 2rem 0;
}

/* Imágenes dentro del contenido */
.page-template-default #tbs-main-content .prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
}
/*----- Cambio OVERLAY HERO ---*/
.bg-tbs-primary {
    --tw-bg-opacity: 0.5!important;
    background-color: rgb(143 20 72 / var(--tw-bg-opacity))!important;
}
/* Evita scroll horizontal en toda la web sin romper position:fixed */
body {
    overflow-x: clip;
}
.leading-tight {
    line-height: 0.8!important;
}
/* ------------------------------------------- */
/* ARREGLO PARA EL GAP DE HOVER DEL MENÚ DESPLEGABLE */
/* Cierra el espacio vertical entre el enlace y el submenú */
/* ------------------------------------------- */

/* 1. Aumentar la zona de activación del enlace principal (CREAR EL PUENTE) */
/* Usamos !important para asegurar que sobreescriba las clases de Tailwind */
.menu-item > a {
    display: block !important;
    /* Añade un padding extra abajo. 20px es un buen punto de partida. */
    padding-bottom: 20px !important; 
}

/* 2. Subir el submenú para que su borde superior coincida con el borde inferior del enlace */
/* El selector .menu-item > ul apunta al submenú desplegable */
.menu-item > ul {
    /* Este valor debe ser el negativo exacto del padding-bottom que definiste arriba. */
    margin-top: -20px !important;
    
    /* Esto es opcional, pero ayuda si el translate-y-2 interfiere, 
       asegurando que el submenú se posicione correctamente. */
    transform: none !important; 
}