/*
Theme Name: CD Mundo
Author: CD Mundo
Version: 1.0
Description: Tema base ligero para WooCommerce (CD Mundo)
Text Domain: cdmundo
*/

/* =====================
   BASE
===================== */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: Arial, Helvetica, sans-serif;
  color:#111;
  background:#f5f6f8;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }

/* Regla general de imágenes */
img{ max-width:100%; height:auto; display:block; }

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

/* ===============================
   HEADER CD MUNDO
=============================== */
.site-header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.header-row{
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px 0;
}

/* Logo CD [M] UNDO */
.cdm-logo{
  display:flex;
  align-items:center;
  gap:-6px;
  color:#111;
}

.cdm-logo__cd,
.cdm-logo__undo{
  font-size:26px;
  font-weight:600;
  letter-spacing:.1px;
  line-height:1;
  color:#111;
}

/* Ajustes finos */
.cdm-logo__cd{
  position:relative;
  left:-20px;
  top:0px;
}

.cdm-logo__m{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  top:-2px;
}

.cdm-logo__mimg{
  width:40px;
  height:40px;
  object-fit:contain;
  display:block;
}

/* Menú */
.main-nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:18px;
}

.main-nav__list a{
  color:#111;
  font-weight:700;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.main-nav__list a:hover{
  opacity:.7;
  text-decoration:underline;
}

/* Buscador (FiboSearch) a la derecha */
.header-search{
  margin-left:auto;
  width:360px;
  max-width:440px;
}

/* Asegurar visibilidad del buscador */
.header-search .dgwt-wcas-search-wrapp,
.header-search .dgwt-wcas-search-form,
.header-search form{
  width:100% !important;
  display:block !important;
}

/* ===============================
   ICONO MI CUENTA (SVG)
=============================== */
.header-account{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;

  /* moverlo si quieres */
  position:relative;
  left:-30px;
  top:0px;

  transition:transform .2s ease;
}

/* wrapper controla tamaño */
.account-icon-wrap{
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* SVG más negro y grueso */
.account-icon-wrap svg{
  width:100%;
  height:100%;
  display:block;
  stroke:#000 !important;
  stroke-width:2.6 !important;
  fill:none !important;
  opacity:1 !important;
}

.account-icon-wrap svg [fill]{
  fill:#000 !important;
}

.header-account:hover{
  transform:scale(1.06);
}

/* Responsive */
@media (max-width: 900px){
  .header-row{ flex-wrap:wrap; }
  .header-search{
    width:100%;
    max-width:none;
    margin-left:0;
  }
}

/* =====================
   CONTENIDO / CARD
===================== */
.site-main{ padding:22px 0 40px; }

.card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  padding:18px;
}

/* =====================
   Woo basic
===================== */
.woocommerce .woocommerce-breadcrumb{ margin:0 0 14px; opacity:.85; }
.woocommerce div.product .product_title{ margin-top:0; }

.woocommerce ul.products li.product{
  background:#fff;
  border-radius:14px;
  padding:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.woocommerce ul.products li.product a img{ border-radius:12px; }

.main-nav{ margin-top: 5px; }

/* ===============================
   SUBHEADER - versión limpia final
=============================== */
.subheader{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.subheader-row{
  display:flex;
  align-items:center;
  gap:22px;
  padding:10px 0;
  flex-wrap:wrap;
}

.subheader-link,
.subheader-dd__trigger{
  font-weight:500 !important;
}

.subheader-link{
  font-size:13px;
  color:#111;
  padding:6px 0;
  border-bottom:none;
  text-decoration:none;
  opacity:.95;
}

.subheader-link:hover{ opacity:.65; }

.subheader-dd{
  position:relative;
  display:flex;
  align-items:center;
}

.subheader-dd__trigger{
  font-size:13px;
  color:#111;
  border-bottom:2px solid #111;
  padding:1px 0;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
  line-height:1;
  cursor:pointer;
}

.dd-arrow{
  font-size:11px;
  opacity:.8;
  transform: translateY(1px);
}

/* Dropdown panel */
.subheader-dd__panel{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  box-shadow:0 18px 40px rgba(0,0,0,.10);
  padding:10px;
  transform-origin: top;
  transform: translateY(-6px);
  opacity:0;
  visibility:hidden;
  transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
  z-index:9999;
}

.subheader-dd__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.subheader-dd__list a{
  display:block;
  padding:9px 10px;
  border-radius:8px;
  font-size:13px;
  font-weight:500;
  color:#111;
}

.subheader-dd__list a:hover{
  background:#f3f4f6;
}

.subheader-dd:hover .subheader-dd__panel,
.subheader-dd:focus-within .subheader-dd__panel{
  transform: translateY(0);
  opacity:1;
  visibility:visible;
}

/* Responsive */
@media (max-width: 900px){
  .subheader-row{ gap:14px; }
}

/* ======================================================
   HOME: HERO 500x500 + BANNER (SIN MONTARSE AL FOOTER)
====================================================== */

/* IMPORTANTE: NO usar transform para mover bloques.
   Para moverlos: usa margin-left / margin-top (positivos). */

body.home .cdm-home-hero{
  width:100%;
  display:flex;
  justify-content:flex-start;
  padding:30px 0 10px;
  margin:0;
  clear:both;
}

body.home .cdm-hero-card{
  position:relative !important;
  width:500px !important;
  height:500px !important;
  border-radius:26px !important;
  overflow:hidden !important;
  background:#111;
  box-shadow:0 18px 50px rgba(0,0,0,.22);

  /* ✅ MOVER HERO AQUÍ (seguro) */
  margin-left:50px;
  margin-top:0px;
}

/* Slider */
body.home .cdm-hero-media{
  position:absolute !important;
  inset:0 !important;
}

body.home .cdm-hero-img{
  position:absolute !important;
  inset:0 !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  opacity:0;
  transition: opacity 900ms ease;
}
body.home .cdm-hero-img.is-active{ opacity:1; }

/* Flechas */
body.home .cdm-hero-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:5;
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  background: rgba(255,255,255,.85);
  color:#111;
  font-size:20px;
  font-weight:bold;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s;
}
body.home .cdm-hero-arrow:hover{ background:#fff; }
body.home .cdm-hero-arrow.prev{ left:15px; }
body.home .cdm-hero-arrow.next{ right:15px; }

/* Quitar overlay gris (si lo tenías antes) */
body.home .cdm-hero-card::after{ display:none !important; }

/* BANNER DE TINTAS (debajo del hero, sin negativos) */
body.home .cdm-banner-wrapper{
  width:100%;
  display:block;
  clear:both;
  margin:20px 0 60px; /* espacio REAL antes del footer */
  padding-left:40px;  /* alinea con el hero */
}

body.home .cdm-banner{
  position:relative;
  width:600px;
  height:200px;
  border-radius:20px;
  overflow:hidden;
  background:#f5f7fb;

  /* ✅ MOVER BANNER AQUÍ (seguro) */
  margin-left:200px;  /* derecha/izquierda */
  margin-top:-500px;   /* arriba/abajo (NUNCA negativo) */
}

body.home .cdm-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

/* Responsive home */
@media (max-width: 1100px){
  body.home .cdm-hero-card{ margin-left:18px; }
  body.home .cdm-banner-wrapper{ padding-left:18px; }
  body.home .cdm-banner{ width:92vw; max-width:600px; }
}
@media (max-width: 560px){
  body.home .cdm-hero-card{
    width:92vw !important;
    height:92vw !important;
    margin-left:4vw;
  }
  body.home .cdm-banner-wrapper{ padding-left:4vw; }
  body.home .cdm-banner{ width:92vw; height:180px; }
}

/* ===============================
   FOOTER: ESTRUCTURA LIMPIA (full width)
   (UNA SOLA VERSIÓN, sin duplicados)
=============================== */

/* footer full width */
.site-footer{
  padding:0 !important;
  background:#fff !important;
}

/* sin contenedor limitado */
.site-footer .container{
  max-width:none !important;
  padding:0 !important;
}

/* wrapper principal */
.footer-card{
  width:100% !important;
  border-radius:0 !important;
  box-shadow:none !important;
  border:none !important;
  overflow:visible !important;
}

/* TOP: 4 columnas escritorio */
.footer-top{
  max-width:1200px;
  margin:0 auto;
  padding:28px 18px 18px;

  display:grid !important;
  grid-template-columns: 1.3fr 1fr 1fr 1fr !important;
  align-items:start !important;
  gap:0 !important;
  clear:both !important;
}

.footer-col{ min-width:0 !important; padding:0 22px; }

.footer-col--sep{
  border-left:1px solid rgba(0,0,0,.08) !important;
}

/* títulos */
.footer-title{
  margin:0 0 14px;
  font-size:22px;
  font-weight:700;
  color:#111;
}

/* items contacto */
.footer-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin:10px 0;
  color:#222;
  font-size:16px;
  line-height:1.55;
}
.footer-ico{
  width:24px;
  text-align:center;
  opacity:.8;
}

/* listas */
.footer-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-list a{
  color:#222;
  font-size:16px;
  line-height:1.5;
}
.footer-list a:hover{
  opacity:.7;
  text-decoration:underline;
}

/* Iconos sociales como imágenes */
.footer-social-icons{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:12px;
}
.footer-social-icon img{
  width:28px;
  height:28px;
  object-fit:contain;
  display:block;
  opacity:.95;
}
.footer-social-icon:hover img{ opacity:.7; }

/* Divider full width */
.footer-divider{
  height:1px;
  background:rgba(0,0,0,.08);
  width:100% !important;
  max-width:none !important;
}

/* Pagos */
.footer-payments{
  width:100% !important;
  max-width:none !important;
  padding:18px 0 22px !important;
  text-align:center;
  clear:both !important;
}

.footer-payments__title{
  font-size:16px;
  color:#222;
  margin-bottom:14px;
}

.footer-payments__icons{
  display:flex;
  gap:22px;
  justify-content:center;
  align-items:center;
}
.footer-payments__icons img{
  height:28px;
  width:auto;
  display:block;
}

/* Barra final */
.footer-bottom{
  width:100% !important;
  background:#f3f4f6 !important;
  padding:16px 18px !important;
  text-align:center !important;
  margin:0 !important;
  clear:both !important;
  color:#111;
  font-size:16px;
}

/* Evita que links del footer se pongan azules */
.site-footer a{ color:#111; }
.site-footer a:hover{ opacity:.75; }

/* Responsive footer */
@media (max-width: 980px){
  .footer-top{
    grid-template-columns: 1fr 1fr !important;
    row-gap:18px !important;
  }
  .footer-col--sep{ border-left:none !important; }
  .footer-col{ padding:0 10px; }
}

@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr !important; }
  .footer-payments__icons{ flex-wrap:wrap; gap:14px; }
}



/* =========================
   FIX: Banner tintas NO afecta footer
========================= */

/* Asegura que el banner siempre reserve su espacio real */
body.home .cdm-banner-wrapper{
  display: block !important;
  width: 100% !important;
  clear: both !important;

  /* Este padding crea el "aire" entre banner y footer */
  padding-bottom: 80px !important;
}

/* El banner en flujo normal (NO absolute, NO transform) */
body.home .cdm-banner{
  position: relative !important;
  transform: none !important;

  /* 🔧 MUEVE EL BANNER AQUÍ SIN ROMPER NADA */
  margin-top: 0px !important;     /* si quieres subir NO uses negativo */
  margin-left: 600px !important;    /* derecha/izquierda */
}

/* Si quieres "subir visualmente" el contenido, sube el recorte de la imagen */
body.home .cdm-banner img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;

  /* 🔧 MUEVE LA IMAGEN DENTRO DEL BANNER SIN MOVER EL FOOTER */
  object-position: center 40% !important; /* sube/baja solo la foto */
}



/* ===========================
   CONTENEDOR 3 BANNERS
=========================== */

body.home .cdm-home-top__right{
  position: relative;

  width: 650px;     /* 🔧 cambia ancho */
  height: auto;     /* se adapta */

  margin-left: 45px; /* 🔧 mover derecha */
  margin-top: -500px;  /* 🔧 mover arriba/abajo */

  display: flex;
  flex-direction: column;
  gap: 20px;
}


body.home .cdm-banner{
  width: 100%;
  height: 180px;     /* 🔧 altura base */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

body.home .cdm-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home .cdm-banner--tintas{
  margin-left: 0px;  /* 🔧 mueve horizontal */
  margin-top: 0px;   /* 🔧 mueve vertical */
}

body.home .cdm-banner--tintas2{
  margin-left: 0px;
  margin-top: 0px;
}

body.home .cdm-banner--otro{
  margin-left: 0px;
  margin-top: 0px;
}



/* ===========================
   OVERLAY TEXTO + BOTÓN
=========================== */

body.home .cdm-banner{
  position: relative;
  overflow: hidden;
}

body.home .cdm-banner-overlay{
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  color: #fff;
  max-width: 55%;
}

body.home .cdm-banner-overlay h3{
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

body.home .cdm-banner-overlay p{
  font-size: 15px;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* BOTÓN */
body.home .cdm-banner-btn{
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  background: #ffffff;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

body.home .cdm-banner-btn:hover{
  background: #111;
  color: #fff;
}


/* =========================
   HOME - MÁS VENDIDOS (CONTENEDOR FLOTANTE)
========================= */
/* =========================
   HOME - MÁS VENDIDOS (ARREGLADO)
========================= */

.home-best-sellers-wrap{
  width: 100%;
  padding: 40px 0 60px;
}

/* CONTENEDOR BLANCO FLOTANTE */
.home-best-sellers-card{
  width: 100%;
  max-width: 1400px;     /* ANCHO */
  max-height: 750px;     /* ALTURA */
  margin: 0 auto;        /* centra el contenedor */

  background: #ffffff;   /* <-- recupera el blanco */
  border-radius: 20px;   /* <-- esquinas redondeadas */
  box-shadow: 0 10px 28px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06); /* <-- sombra suave */
  border: 1px solid rgba(0,0,0,0.06); /* borde sutil */

  overflow: hidden;        /* si se pasa del max-height, scroll interno */
}

/* Header */
.home-best-sellers-head{
  margin: 18px 22px 12px; /* solo para separar título (no toca ancho/alto del contenedor) */
}
.home-best-sellers-head h2{
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #111;
}
.home-best-sellers-head p{
  margin: 0;
  font-size: 14px;
  color: #666;
}



/* Tarjeta de producto (Woo) */
.home-best-sellers-card ul.products li.product{
  margin: 0 !important;
  width: 100% !important;

  background: #fff;
  border-radius: 16px;
  padding: 12px; /* compacta un poco la altura */

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);

  transition: transform .2s ease, box-shadow .2s ease;
}

.home-best-sellers-card ul.products li.product:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

/* Evita que Woo meta estilos */
.home-best-sellers-card ul.products li.product a{
  display: block;
}

/* IMAGEN (Woo) - limita altura sin romper */
.home-best-sellers-card ul.products li.product a img{
  max-height: 150px;
  width: 100%;
  object-fit: contain;
}




/* =========================
   SOLO COLORES (SIN TAMAÑOS)
========================= */

/* PRECIO MORADO */
.home-best-sellers-card .price,
.home-best-sellers-card .woocommerce-Price-amount{
  color: #6b46ff !important; /* morado del ejemplo */
}

/* BOTÓN MORADO DEGRADADO */
.home-best-sellers-card .button,
.home-best-sellers-card .add_to_cart_button{
  background: linear-gradient(135deg, #5b3df5, #8b5cf6) !important;
  color: #ffffff !important;
  border: none !important;
}

/* Hover (solo color más intenso) */
.home-best-sellers-card .button:hover,
.home-best-sellers-card .add_to_cart_button:hover{
  background: linear-gradient(135deg, #4c2ef0, #7c3aed) !important;
}


/* =========================
   AJUSTE PRECIO + BOTÓN
========================= */

/* Hacer un poco más grande el precio */
.home-best-sellers-card .price,
.home-best-sellers-card .woocommerce-Price-amount{
  font-size: 15px !important;  /* ajusta 18px, 20px, 22px según te guste */
}

/* Quitar algo de altura al botón */
.home-best-sellers-card .button,
.home-best-sellers-card .add_to_cart_button{
  height: 35px !important;     /* antes seguramente está en 45-48px */
  line-height: 16px !important;
}



/* =========================
   AJUSTE ESPACIO + ANCHO TARJETAS
========================= */

/* 1️⃣ Reducir espacio entre precio y botón */
.home-best-sellers-card .price{
  margin-bottom: 6px !important;
}

.home-best-sellers-card .button,
.home-best-sellers-card .add_to_cart_button{
  margin-top: 0 !important;
}




/* =========================
   SOMBRA PROFESIONAL TARJETAS
========================= */

.home-best-sellers-card ul.products li.product{
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 10px 24px rgba(0,0,0,0.06);
  transition: box-shadow .25s ease, transform .25s ease;
}

/* Hover elegante */
.home-best-sellers-card ul.products li.product:hover{
  box-shadow:
    0 6px 14px rgba(0,0,0,0.06),
    0 18px 40px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

/* =========================
   SOMBRA MÁS MARCADA EN BORDES
========================= */

.home-best-sellers-card ul.products li.product{
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),   /* borde sutil */
    0 8px 20px rgba(0,0,0,0.08);  /* sombra general alrededor */
  transition: box-shadow .25s ease, transform .25s ease;
}

.home-best-sellers-card ul.products li.product:hover{
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 14px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}


/* =========================
   BOTÓN MÁS ANCHO EN TARJETA
========================= */

.home-best-sellers-card ul.products li.product .button,
.home-best-sellers-card ul.products li.product .add_to_cart_button{
  width: 100% !important;      /* ocupa todo el ancho */
  display: block !important;   /* evita que quede inline */
  text-align: center;
}



/* =====================================
   CENTRAR BLOQUE SUPERIOR SIN CONTENEDOR EXTRA
===================================== */

body.home .cdm-home-top{
  width: 100%;
  display: flex;
  justify-content: center; /* centra horizontalmente */
}

body.home .cdm-home-top__inner{
  width: 100%;
  max-width: 1200px; /* mismo ancho que productos */
}


/* =====================================
   CENTRADO REAL SIN DESPLAZAMIENTO
===================================== */

body.home .cdm-home-top{
  width: 100%;
}

body.home .cdm-home-top__inner{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;   /* esto es el centrado correcto */
}


body.home .cdm-home-top__inner{
  margin-left: -640px;
}






/* =========================
   CARRUSEL CATEGORÍAS (CÍRCULOS)
========================= */
.cdm-cats{
  width: 100%;
  max-width: 1200px;
  margin: 28px auto 10px;
}

.cdm-cats-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cdm-cats-head h2{
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #111;
}

.cdm-cats-more{
  color: #111;
  text-decoration: underline;
  font-weight: 600;
}

.cdm-cats-wrap{
  position: relative;
}

.cdm-cats-track{
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 54px 10px; /* deja espacio para flechas */
  -webkit-overflow-scrolling: touch;
}

.cdm-cats-track::-webkit-scrollbar{
  height: 8px;
}
.cdm-cats-track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.12);
  border-radius: 99px;
}

.cdm-cat{
  flex: 0 0 auto;
  text-decoration: none;
  color: #111;
  width: 120px;
  text-align: center;
}

.cdm-cat-circle{
  width: 120px;          /* más grande */
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0,0,0,.08);
  transition: transform .2s ease;
}

.cdm-cat-circle:hover{
  transform: translateY(-4px);
}

.cdm-cat-circle img{
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.cdm-cat-fallback{
  font-weight: 800;
  color: #666;
  letter-spacing: 0.5px;
}

.cdm-cat-name{
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

/* Flechas */
.cdm-cats-arrow{
  position: absolute;
  top: 46px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}

.cdm-cats-arrow.prev{ left: 6px; }
.cdm-cats-arrow.next{ right: 6px; }

.cdm-cats-arrow:hover{
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px){
  .cdm-cats{ padding: 0 14px; }
  .cdm-cats-head h2{ font-size: 24px; }
  .cdm-cat{ width: 105px; }
  .cdm-cat-circle{ width: 84px; height: 84px; }
  .cdm-cats-track{ padding-left: 46px; padding-right: 46px; }
}


/* Sección completa (espacio arriba/abajo) */
.cdm-cats-section{
  padding: 28px 0 40px;
}

/* Card centrada tipo “contenedor” */
.cdm-cats-card{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 26px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

/* Head */
.cdm-cats-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom: 18px;
}

.cdm-cats-head h2{
  margin:0;
  font-size: 28px;
  font-weight: 900;
}

.cdm-cats-more{
  color:#111;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  opacity:.75;
}
.cdm-cats-more:hover{ opacity:1; text-decoration:underline; }

/* Responsivo padding */
@media (max-width: 520px){
  .cdm-cats-card{ padding: 18px 14px 12px; border-radius: 18px; }
  .cdm-cats-head h2{ font-size: 22px; }
}


.cdm-benefits{
  padding: 40px 0 60px;
}

.cdm-benefits-card{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,.06);
}

.cdm-benefits h2{
  text-align:center;
  font-size:28px;
  font-weight:900;
  margin-bottom:40px;
}

.cdm-benefits-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:30px;
  text-align:center;
}

.cdm-benefit-icon{
  font-size:36px;
  margin-bottom:15px;
}

.cdm-benefit h4{
  font-size:16px;
  margin-bottom:8px;
}

.cdm-benefit p{
  font-size:14px;
  opacity:.75;
}

/* Responsive */
@media (max-width: 900px){
  .cdm-benefits-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px){
  .cdm-benefits-grid{
    grid-template-columns: 1fr;
  }
}



/* =========================
   CDM - Marcas (CARD BLANCO + FADE + SIN AIRE)
========================= */

.cdm-brands{
  width: 100%;
  padding: 36px 0 54px;
}

/* ✅ Card blanco visible */
.cdm-brands-card{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 26px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

/* Inner (ya no hace falta limitar porque el card ya limita) */
.cdm-brands-inner{
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Header */
.cdm-brands-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 16px;
}

.cdm-brands-head h2{
  margin:0;
  font-size: 26px;
  font-weight: 900;
}

.cdm-brands-more{
  color:#111;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  opacity:.75;
}
.cdm-brands-more:hover{
  opacity:1;
  text-decoration:underline;
}

/* Marquee: ocupa todo el ancho del card */
.cdm-brands-marquee{
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  white-space: nowrap;
  border-radius: 18px; /* para que el fade se vea suave dentro del card */
}

/* Fade laterales (usa el fondo del card: blanco) */
.cdm-brands-marquee:before,
.cdm-brands-marquee:after{
  content:"";
  position:absolute;
  top:0;
  width: 70px;
  height: 100%;
  z-index: 2;
  pointer-events:none;
}
.cdm-brands-marquee:before{
  left:0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}
.cdm-brands-marquee:after{
  right:0;
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}

/* Track: sin aire */
.cdm-brands-track{
  display:flex;
  align-items:center;
  gap: 34px;

  width: max-content;
  min-width: 200%;
  will-change: transform;

  animation: cdmMarquee 18s linear infinite;
}

.cdm-brands-marquee:hover .cdm-brands-track{
  animation-play-state: paused;
}

/* Logos sin marco */
.cdm-brand{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width: 130px;
  height: 60px;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: transform .2s ease;
}
.cdm-brand:hover{ transform: scale(1.08); }

.cdm-brand img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .78;
  transition: filter .2s ease, opacity .2s ease;
}
.cdm-brand:hover img{
  filter: grayscale(0%);
  opacity: 1;
}

/* ✅ Si tu PHP está duplicado 2 veces (lista normal + 1 duplicada) */
@keyframes cdmMarquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-20%); }
}

/* Responsive */
@media (max-width: 520px){
  .cdm-brands-card{ padding: 18px 14px 12px; border-radius: 18px; }
  .cdm-brand{ width: 95px; height: 46px; }
  .cdm-brands-track{ gap: 16px; animation-duration: 14s; }
  .cdm-brands-marquee:before,
  .cdm-brands-marquee:after{ width: 42px; }
}


/* =========================
   PATCH: Marcas FULL WIDTH (sin rearmar)
   Pega al FINAL del CSS
========================= */

#cdmBrands.cdm-brands{
  width: 100%;
}

#cdmBrands .cdm-brands-card{
  width: 100vw !important;                 /* full ancho real */
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;/* se “sale” del contenedor */
  margin-right: calc(50% - 50vw) !important;

  border-radius: 0 !important;             /* de lado a lado */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Mantén el título centrado, y el carrusel también */
#cdmBrands .cdm-brands-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Si querés que el carrusel llegue más a los bordes del viewport
   (dentro del fondo blanco full width), quitamos el padding del marquee */
#cdmBrands .cdm-brands-marquee{
  border-radius: 0 !important;
}

/* Fade siempre blanco (porque el fondo del bloque es blanco) */
#cdmBrands .cdm-brands-marquee:before,
#cdmBrands .cdm-brands-marquee:after{
  width: 80px;
}
#cdmBrands .cdm-brands-marquee:before{
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}
#cdmBrands .cdm-brands-marquee:after{
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}

/* Evita “aire” y que se compriman */
#cdmBrands .cdm-brands-track{
  min-width: 200%;
  will-change: transform;
}
#cdmBrands .cdm-brand{
  flex: 0 0 auto;
}




/* =========================
   PATCH: Fondo full width + carrusel full width (sin blanco a los lados)
   Pegar AL FINAL
========================= */

/* 1) Fondo (card) full width */
#cdmBrands .cdm-brands-card{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2) Deja el header centrado (si querés) */
#cdmBrands .cdm-brands-head{
  max-width: 1200px;
  margin: 0 auto 12px !important;
  padding: 0 20px !important;
}

/* 3) PERO el carrusel NO se centra: se vuelve full width */
#cdmBrands .cdm-brands-marquee{
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 4) Fade en los bordes del viewport */
#cdmBrands .cdm-brands-marquee:before,
#cdmBrands .cdm-brands-marquee:after{
  width: 90px !important;
}
#cdmBrands .cdm-brands-marquee:before{
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%) !important;
}
#cdmBrands .cdm-brands-marquee:after{
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%) !important;
}

/* 5) Evitar “aire” y compresión rara */
#cdmBrands .cdm-brands-track{
  min-width: 200% !important;
  will-change: transform;
}
#cdmBrands .cdm-brand{
  flex: 0 0 auto !important;
}

/* Opcional: si querés que corra un poco más “lleno” en pantallas grandes */
@media (min-width: 1200px){
  #cdmBrands .cdm-brands-track{ gap: 26px; }
}



/* =========================
   FIX DEFINITIVO: carrusel marcas full width siempre
   (Pegar AL FINAL del CSS)
========================= */

/* 1) Evita scroll horizontal si 100vw empuja 1-2px */
html, body{
  overflow-x: hidden;
}

/* 2) Asegura que ningún padre lo recorte */
#cdmBrands,
#cdmBrands *{
  /* no usamos overflow: visible en * global, solo en wrappers clave abajo */
}

/* 3) El bloque blanco de marcas a todo el viewport */
#cdmBrands .cdm-brands-card{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible !important; /* ✅ importantísimo */
}

/* 4) El carrusel (marquee) también a todo el viewport */
#cdmBrands .cdm-brands-marquee{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: hidden !important; /* ✅ aquí sí, para el fade */
  border-radius: 0 !important;
}

/* 5) Si tu tema tiene wrappers que recortan con overflow:hidden, los anulamos SOLO aquí */
#cdmBrands,
#cdmBrands .cdm-brands-inner{
  overflow: visible !important;
  max-width: none !important;
}

/* 6) Fade en los bordes del viewport */
#cdmBrands .cdm-brands-marquee:before,
#cdmBrands .cdm-brands-marquee:after{
  width: 90px !important;
}
#cdmBrands .cdm-brands-marquee:before{
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%) !important;
}
#cdmBrands .cdm-brands-marquee:after{
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%) !important;
}

/* 7) Evita “aire” y compresión */
#cdmBrands .cdm-brands-track{
  min-width: 200% !important;
  width: max-content !important;
  will-change: transform;
}
#cdmBrands .cdm-brand{
  flex: 0 0 auto !important;
}


/* Ajuste manual de espacio externo */
#cdmBrands{
  margin-top: -50px;   /* súbelo más si quieres (-30, -40) */
  margin-bottom: -50px; /* júntalo con la siguiente sección */
}

  
  
  
  
  /* =========================
   CDM - Destacados por marca (SIN depender del ID)
========================= */

.cdm-tabs{
  padding: 38px 0 54px;
}

.cdm-tabs-card{
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  padding: 26px 22px 20px;
}

.cdm-tabs-head h2{
  margin: 0 0 14px;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.cdm-tabs-nav{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin: 0 0 18px;
}

.cdm-tab{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.cdm-tab:hover{ transform: translateY(-1px); }

.cdm-tab.is-active{
  background: #5b2bd8;
  color: #fff;
  border-color: transparent;
}

.cdm-panel{ display:none; }
.cdm-panel.is-active{ display:block; }



.cdm-pcard{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 12px;
  display:flex;
  flex-direction:column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cdm-pcard:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.cdm-pimg{
  display:block;
  border-radius: 12px;
  overflow:hidden;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,.05);
}

.cdm-pimg img{
  width:100%;
  height: 165px;
  object-fit: contain;
  display:block;
}

.cdm-ptitle{
  display:block;
  margin: 10px 0 8px;
  color:#111;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.25;
  text-decoration:none;
  min-height: 34px;
}

.cdm-pprice{
  font-weight: 900;
  margin-bottom: 10px;
}

.cdm-pbtns{
  margin-top:auto;
  display:flex;
  gap:10px;
}

.cdm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 900;
  text-decoration:none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.cdm-btn--ghost{
  border-color: rgba(0,0,0,.12);
  background: #fff;
  color:#111;
}

.cdm-pbtns .button,
.cdm-pbtns a.button{
  background: #5b2bd8;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  height: 36px;
  padding: 0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
}

.cdm-tabs-foot{
  display:flex;
  justify-content:center;
  margin-top: 16px;
}


@media (max-width: 520px){
  .cdm-tabs{ padding: 28px 0 42px; }
  .cdm-tabs-card{ padding: 18px 14px 14px; border-radius: 18px; }
  .cdm-tabs-head h2{ font-size: 22px; }
  .cdm-tab{ padding: 9px 12px; font-size: 13px; }
  .cdm-pbtns{ flex-direction: column; }
  .cdm-btn,
  .cdm-pbtns .button{ width: 100%; }
}




/* =========================
   CDM Tabs estilo "pill" (como imagen)
========================= */

/* contenedor cápsula */
#cdmTabsBrands .cdm-tabs-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  width: fit-content;
  margin: 0 auto 18px;
  padding: 6px;
  border: 2px solid #5b2bd8;      /* morado */
  border-radius: 999px;
  background: #fff;
}

/* botones dentro de la cápsula */
#cdmTabsBrands .cdm-tab{
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  background: transparent;
  color: #5b2bd8;
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 999px;
  cursor:pointer;
  line-height: 1;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

/* separador sutil entre tabs */
#cdmTabsBrands .cdm-tab + .cdm-tab{
  border-left: 1px solid rgba(91,43,216,.25);
}

/* activo */
#cdmTabsBrands .cdm-tab.is-active{
  background: #5b2bd8;
  color: #fff;
}

/* hover */
#cdmTabsBrands .cdm-tab:hover{
  transform: translateY(-1px);
}

/* icono (si lo agregas) */
#cdmTabsBrands .cdm-tab .cdm-tab-ico{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
}

/* responsive: que no se rompa */
@media (max-width: 520px){
  #cdmTabsBrands .cdm-tabs-nav{
    width: 100%;
    justify-content: space-between;
  }
  #cdmTabsBrands .cdm-tab{
    padding: 9px 12px;
    font-size: 13px;
  }
}




/* =========================================
   CDM - Destacados por marca:
   Tarjetas IGUAL que "Más vendidos"
   (Pegar AL FINAL del CSS)
========================================= */

/* Tarjeta igual a las de .home-best-sellers-card ul.products li.product */
#cdmTabsBrands .cdm-pcard{
  margin: 0 !important;
  width: 100% !important;

  background: #fff !important;
  border-radius: 16px !important;
  padding: 12px !important;

  border: 1px solid rgba(0,0,0,0.06) !important;

  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 8px 20px rgba(0,0,0,0.08) !important;

  display: flex !important;
  flex-direction: column !important;

  transition: box-shadow .25s ease, transform .25s ease !important;
}

#cdmTabsBrands .cdm-pcard:hover{
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 14px 32px rgba(0,0,0,0.12) !important;
  transform: translateY(-3px) !important;
}

/* Imagen como en más vendidos */
#cdmTabsBrands .cdm-pimg{
  display: block !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

#cdmTabsBrands .cdm-pimg img{
  max-height: 150px !important;
  width: 100% !important;
  object-fit: contain !important;
  border-radius: 12px !important;
}

/* Título */
#cdmTabsBrands .cdm-ptitle{
  display: block !important;
  margin: 10px 0 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #111 !important;
  min-height: 34px !important;
}

/* Precio morado igual a más vendidos */
#cdmTabsBrands .cdm-pprice,
#cdmTabsBrands .cdm-pprice .woocommerce-Price-amount{
  color: #6b46ff !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  margin-bottom: 6px !important;
}

/* Quitar "Ver detalle" si querés que quede como la segunda imagen (solo botón morado) */
#cdmTabsBrands .cdm-btn--ghost{
  display: none !important;
}

/* Botón morado degradado full width como en más vendidos */
#cdmTabsBrands .cdm-pbtns{
  margin-top: auto !important;
}

#cdmTabsBrands .cdm-pbtns .button,
#cdmTabsBrands .cdm-pbtns .add_to_cart_button,
#cdmTabsBrands .cdm-pbtns a.button{
  width: 100% !important;
  display: block !important;
  text-align: center !important;

  height: 35px !important;
  line-height: 16px !important;

  background: linear-gradient(135deg, #5b3df5, #8b5cf6) !important;
  color: #fff !important;

  border: none !important;
  border-radius: 3px !important;
  font-weight: 900 !important;
}

#cdmTabsBrands .cdm-pbtns .button:hover,
#cdmTabsBrands .cdm-pbtns .add_to_cart_button:hover,
#cdmTabsBrands .cdm-pbtns a.button:hover{
  background: linear-gradient(135deg, #4c2ef0, #7c3aed) !important;
}
  
  
  
  
  
  
  #cdmTabsBrands .cdm-pbtns .button,
#cdmTabsBrands .cdm-pbtns .add_to_cart_button,
#cdmTabsBrands .cdm-pbtns a.button{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;  /* centra horizontal */
  text-align:center !important;
}






#cdmTabsBrands .cdm-ptitle{
  font-weight: 600 !important;   /* antes 800/900 */
}

#cdmTabsBrands .cdm-pprice,
#cdmTabsBrands .cdm-pprice .woocommerce-Price-amount{
  font-weight: 600 !important;   /* quitar bold fuerte */
}




/* Ajuste proporcional de tarjeta */
#cdmTabsBrands .cdm-pcard{
  padding: 20px !important;      /* más aire interno */
  min-height: 320px !important;  /* altura más cómoda */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
  
  
  #cdmTabsBrands .cdm-ptitle{
  font-size: 16px !important;   /* aumenta tamaño */
}





/* =========================
   CDM - Tabs: título y selector fuera del contenedor
========================= */

/* Quita el look de "card" del contenedor principal */
#cdmTabsBrands .cdm-tabs-card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* Deja título + tabs fuera (sin caja) */
#cdmTabsBrands .cdm-tabs-head{
  margin-bottom: 10px !important;
}
#cdmTabsBrands .cdm-tabs-head h2{
  margin: 0 0 10px !important;
}

/* selector (pill) sin empujar al card */
#cdmTabsBrands .cdm-tabs-nav{
  margin: 0 auto 18px !important;
}

/* ✅ El contenedor AHORA será el panel (solo productos) */
#cdmTabsBrands .cdm-panel.is-active{
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.06) !important;
  padding: 22px !important;
}

/* si querés que el card de productos ocupe todo el ancho del bloque */
#cdmTabsBrands .cdm-tabs-panels{
  max-width: 1200px;
  margin: 0 auto;
}

/* opcional: quitar el botón "Ver todo" si está dentro y no lo querés en el card */
#cdmTabsBrands .cdm-tabs-foot{
  margin-top: 14px !important;
}







/* =========================
   CTA WhatsApp Premium (igual al ejemplo)
========================= */

#cdmCtaWhatsapp{
  padding: 46px 0 60px;
}

/* Card */
#cdmCtaWhatsapp .cdm-ctaX-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 48px;
  border-radius: 22px;

  position: relative;
  overflow: hidden;

  background: radial-gradient(1200px 500px at 78% 50%, rgba(34,197,94,.18), transparent 60%),
              linear-gradient(180deg, #0f0f10 0%, #0b0b0c 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Brillo extra (glow verde) */
#cdmCtaWhatsapp .cdm-ctaX-inner::before{
  content:"";
  position:absolute;
  right:-120px;
  top:50%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(34,197,94,.28), rgba(34,197,94,0) 60%);
  filter: blur(2px);
  pointer-events:none;
}

/* “Grano” suave */
#cdmCtaWhatsapp .cdm-ctaX-inner::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: .18;
  mix-blend-mode: overlay;
  pointer-events:none;
}

#cdmCtaWhatsapp .cdm-ctaX-text{
  position: relative;
  z-index: 2;
  max-width: 620px;
}

#cdmCtaWhatsapp .cdm-ctaX-text h2{
  margin: 0 0 10px;
  color: #fff;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: .2px;
}

#cdmCtaWhatsapp .cdm-ctaX-text p{
  margin: 0;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  line-height: 1.55;
}

/* Botón */
#cdmCtaWhatsapp .cdm-ctaX-btn{
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 16px 22px;
  border-radius: 14px;

  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;

  box-shadow:
    0 18px 40px rgba(34,197,94,.25),
    0 0 0 1px rgba(255,255,255,.10) inset;

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#cdmCtaWhatsapp .cdm-ctaX-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    0 22px 50px rgba(34,197,94,.35),
    0 0 0 1px rgba(255,255,255,.14) inset;
}

#cdmCtaWhatsapp .cdm-ctaX-ico{
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px){
  #cdmCtaWhatsapp .cdm-ctaX-inner{
    padding: 34px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  #cdmCtaWhatsapp .cdm-ctaX-btn{
    width: 100%;
    justify-content: center;
  }
  #cdmCtaWhatsapp .cdm-ctaX-text h2{
    font-size: 28px;
  }
}









/* =====================
   BLOQUE RASTREO CARGO
===================== */
/* SECCIÓN GENERAL */
.rastreo-cargo {
  display: flex;
  width: 100%;
  height: 260px;          /* ALTURA CONTROLADA */
  background: #000;
  overflow: hidden;
}

/* LADO IZQUIERDO */
.rastreo-cargo-texto {
  width: 50%;
  padding: 60px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* LADO DERECHO (CONTENEDOR) */
.rastreo-cargo-media {
  width: 50%;
  height: 100%;           /* RESPETA ALTURA DE LA SECCIÓN */
}

/* CONTENEDOR INTERNO */
.rastreo-cargo-media-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* IMAGEN */
.rastreo-cargo-media-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* LLENA SIN ESTIRARSE */
  display: block;
}
/* BOTÓN CARGO – RESET TOTAL */
.btn-cargo {
  all: unset;                    /* 👈 elimina estilos nativos */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 18px;
  padding: 10px 22px;

  background-color: #c4161c;     /* rojo Cargo */
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;

  border-radius: 32px;
  cursor: pointer;

  transition: all 0.25s ease;
}

/* Hover */
.btn-cargo:hover {
  background-color: #a81216;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196,22,28,0.45);
}

/* Quitar foco gris/azul */
.btn-cargo:focus {
  outline: none;
  box-shadow: none;
}
.btn-cargo {
  padding: 10px 22px !important;
  font-size: 15px !important;
  max-width: max-content !important;
}






/* =========================
   CDM - Pills estilo Click (perfectamente redondas)
========================= */

#cdmTabsBrands .cdm-tabs-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;

  padding:4px;                       /* pequeño espacio interno */
  border:2px solid #5b2bd8;
  border-radius:999px;
  background:#fff;

  width:fit-content;
  margin:0 auto 20px;
}

/* Botones */
#cdmTabsBrands .cdm-tab{
  border:none !important;
  background:transparent;
  color:#5b2bd8;

  font-weight:900;
  padding:10px 22px;
  border-radius:999px;               /* ✅ SIEMPRE redondo */

  transition:all .15s ease;
  cursor:pointer;
}

/* Activo */
#cdmTabsBrands .cdm-tab.is-active{
  background:#5b2bd8;
  color:#fff;
}

/* Hover */
#cdmTabsBrands .cdm-tab:not(.is-active):hover{
  background:rgba(91,43,216,.08);
}

/* Quitar cualquier separador */
#cdmTabsBrands .cdm-tab + .cdm-tab{
  border-left:none !important;
}
  
  
  
  
  /* ✅ Forzar miniatura de categoría a llenar el círculo */
.cdm-cat-circle{
  width: 120px;          /* ajusta a tu tamaño real */
  height: 120px;
  border-radius: 50%;
  overflow: hidden;      /* recorta lo que sobresalga */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* La imagen llena el círculo */
.cdm-cat-circle img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;   /* ✅ llena (recorta un poco si hace falta) */
  object-position: center !important;
  display: block;
}





/* ✅ FIX definitivo: que la miniatura llene el círculo */
.cdm-cat-circle{
  width: 120px;          /* tu tamaño real */
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display:block;         /* mejor que flex en este caso */
  position: relative;
}

/* mata límites típicos */
.cdm-cat-circle img{
  max-width: none !important;
  max-height: none !important;
  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center !important;

  display: block !important;
}

/* por si Woo mete la imagen dentro de <a> o <span> y le mete tamaños */
.cdm-cat-circle > *{
  width: 100% !important;
  height: 100% !important;
  display:block !important;
}



/* ✅ override total si tu tema pone img{height:auto} global */
.cdm-cats .cdm-cat-circle img{
  height: 100% !important;
}
  
  
  
  
  
  
  /* ✅ Quitar aro interno + forzar llenado total */
.cdm-cat-circle{
  padding: 0 !important;                 /* ✅ sin aire */
  background: transparent !important;    /* o #fff si quieres */
  box-shadow: none !important;           /* ✅ mata inset */
  border: 0 !important;                  /* ✅ si había borde dentro */
  overflow: hidden !important;
  border-radius: 50% !important;
}

/* fuerza al hijo a ocupar todo */
.cdm-cat-circle img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display:block !important;
}



.cdm-cat-circle img{
  transform: scale(1.35); /* prueba 1.3 - 1.5 */
}


.cdm-cat-circle img{
  transform: scale(1.4);
  object-fit: cover;
}



.cdm-cat-circle img{
  width: 115%;
  height: 115%;
  object-fit: cover;
}
  
  
  
  
  
  
  
 


@media (max-width: 520px){
  .cdm-cats-card{ padding: 16px 14px !important; border-radius: 18px !important; }

  .cdm-cats-head h2{ font-size: 20px !important; }
  .cdm-cats-more{ font-size: 13px !important; }

  /* círculos más pequeños */
  .cdm-cat-circle{
    width: 86px !important;
    height: 86px !important;
  }

  .cdm-cat-name{
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  /* flechas un poco más chicas */
  .cdm-cats-arrow{
    width: 34px !important;
    height: 34px !important;
  }
}






@media (max-width: 520px){
  /* tabs a ancho completo */
  #cdmTabsBrands .cdm-tabs-nav{
    width: 100% !important;
    max-width: 420px;
    margin: 0 auto 14px !important;
  }
  #cdmTabsBrands .cdm-tab{
    flex: 1;
    padding: 10px 10px !important;
    font-size: 13px !important;
  }

  /* cards en 1 columna (o 2 si quieres) */
  .cdm-brand-products ul.products{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}


@media (max-width: 900px){
  .cdm-cta{
    padding: 16px !important;
    border-radius: 18px !important;
  }
}
@media (max-width: 520px){
  .cdm-cta{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .cdm-cta .cdm-cta-btn{
    width: 100% !important;
    text-align: center !important;
    
  }
}



/* =========================
   CDM HEADER (RESPONSIVE)
========================= */
.cdm-header{ position: sticky; top: 0; z-index: 1000; background: #fff; }
.cdm-header-top{ border-bottom: 1px solid rgba(17,24,39,.10); }

.cdm-header-top-row{
  display:flex; align-items:center; gap:14px;
  padding: 10px 0;
}

.cdm-header-logo{ flex: 0 0 auto; }
.cdm-header-search{ flex: 1 1 auto; min-width: 260px; max-width: 620px; }
.cdm-header-icons{ display:flex; align-items:center; gap:10px; margin-left:auto; }

.cdm-cart{ position: relative; display:inline-flex; align-items:center; }
.cdm-cart-count{
  position:absolute; top:-8px; right:-10px;
  min-width:18px; height:18px; padding:0 5px;
  border-radius: 999px; background:#1e3a8a; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800;
}

/* Menú desktop */
.cdm-header-bottom{ background:#fff; }
.cdm-menu{ list-style:none; margin:0; padding: 10px 0; display:flex; gap:18px; flex-wrap:wrap; }
.cdm-menu a{ text-decoration:none; color:#111827; font-weight:800; font-size:13px; }

/* Subheader */
.cdm-subheader{ border-bottom: 1px solid rgba(17,24,39,.10); }
.cdm-subheader-row{ display:flex; align-items:center; gap:14px; padding:10px 0; flex-wrap:wrap; }
.cdm-sub-link{ text-decoration:none; color:#111827; font-weight:700; font-size:13px; }

.cdm-dd{ position: relative; }
.cdm-dd-btn{
  border:0; background:transparent;
  font-weight:800; cursor:pointer; padding:8px 10px; border-radius:10px;
}
.cdm-dd-panel{
  display:none; position:absolute; top: calc(100% + 8px); left:0;
  width: 240px; background:#fff; border:1px solid rgba(17,24,39,.10);
  border-radius:14px; padding:8px; box-shadow:0 20px 50px rgba(0,0,0,.10);
  z-index:1200;
}
.cdm-dd:hover .cdm-dd-panel{ display:block; }
.cdm-dd-panel a{
  display:block; padding:10px 10px; border-radius:10px;
  text-decoration:none; color:#111827; font-weight:700;
}
.cdm-dd-panel a:hover{ background: rgba(17,24,39,.06); }

/* Burger */
.cdm-burger{
  display:none;
  width:44px; height:44px;
  border:0; background: rgba(17,24,39,.06);
  border-radius:12px; cursor:pointer;
  align-items:center; justify-content:center;
  flex-direction:column; gap:5px;
}
.cdm-burger span{ width:18px; height:2px; background:#111827; border-radius:2px; display:block; }

/* Móvil */
@media (max-width: 920px){
  .cdm-hide-mobile{ display:none !important; }
  .cdm-burger{ display:inline-flex; }
}

/* Drawer móvil */
.cdm-menu-overlay{
  position: fixed; inset:0;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events:none;
  transition: opacity .2s ease;
  z-index: 2000;
}
.cdm-mobile-menu{
  position: fixed; top:0; left:0;
  width: min(86vw, 360px); height: 100%;
  background:#fff;
  transform: translateX(-102%);
  transition: transform .22s ease;
  z-index: 2001;
  display:flex; flex-direction:column;
}
body.cdm-menu-open .cdm-menu-overlay{ opacity:1; pointer-events:auto; }
body.cdm-menu-open .cdm-mobile-menu{ transform: translateX(0); }

.cdm-mobile-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px; border-bottom:1px solid rgba(17,24,39,.10);
}
.cdm-menu-close{
  width:40px; height:40px; border:0; border-radius:12px;
  background: rgba(17,24,39,.06); cursor:pointer;
}
.cdm-mobile-body{ padding:14px; overflow:auto; }
.cdm-mobile-search{ margin-bottom: 12px; }

.cdm-mobile-list{
  list-style:none; margin:0; padding:0;
}
.cdm-mobile-list a{
  display:block; padding:12px 10px; border-radius:12px;
  text-decoration:none; color:#111827; font-weight:800;
}
.cdm-mobile-list a:hover{ background: rgba(17,24,39,.06); }




  
  
  /* Evitar iconos gigantes */
.header-account img,
.header-cart img{
  width: 22px;
  height: 22px;
  display: block;
}

/* Carrito: burbuja */
.header-cart{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-cart .cdm-cart-count{
  position:absolute;
  top:-8px;
  right:-10px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#1e3a8a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
}
  
  
  
  /* =========================
   BUSCADOR MÓVIL TIPO IMPOAUTO
========================= */
.cdm-mobile-searchbar{ display:none; }

@media (max-width: 920px){
  .cdm-mobile-searchbar{
    display:block;
    background: #fff;
    border-bottom: 1px solid rgba(17,24,39,.10);
    padding: 10px 0 14px;
  }

  .cdm-mobile-searchbar-inner{
    background: rgba(17,24,39,.06);
    border-radius: 999px;
    padding: 10px 12px;
  }

  /* Ajustes generales para inputs dentro del wrapper */
  .cdm-mobile-searchbar-inner input[type="search"],
  .cdm-mobile-searchbar-inner input[type="text"]{
    width: 100%;
    height: 44px;
    border: 0 !important;
    outline: none;
    background: transparent;
    padding: 0 8px;
  }
}
  
  
  

/* =========================
   BUSCADOR EXTRA SOLO MOVIL
   (arregla duplicado en PC)
========================= */

/* Por defecto (PC): NO se muestra */
.cdm-mobile-searchbar{
  display: none !important;
}

/* Solo móvil: SÍ se muestra */
@media (max-width: 920px){
  .cdm-mobile-searchbar{
    display: block !important;
  }
}


/* =========================================================
   BUSCADOR MOVIL (CONTROL MANUAL EN PX)
   - Fuerza: solo móvil
   - En desktop: siempre oculto (para evitar duplicado)
========================================================= */

/* 1) DESKTOP: ocultar SIEMPRE el buscador móvil extra */
@media (min-width: 921px){
  .cdm-mobile-searchbar{
    display: none !important;
  }
}

/* 2) MOVIL: mostrar y controlar en PX */
@media (max-width: 920px){

  /* BLOQUE EXTERNO: espacio y ubicación general */
  .cdm-mobile-searchbar{
    display: block !important;
    position: relative !important;

    /* Separación respecto al header */
    padding-top: 8px !important;
    padding-bottom: 12px !important;

    /* Si quieres empujarlo hacia abajo o arriba */
    margin-top: 0px !important;    /* + baja, - sube */

    background: #fff !important;
    border-bottom: 1px solid rgba(17,24,39,.10) !important;
  }



  /* 3) INPUTS: atrapar FiboSearch y buscador normal */
  .cdm-mobile-searchbar input[type="search"],
  .cdm-mobile-searchbar input[type="text"],
  .cdm-mobile-searchbar .dgwt-wcas-search-input,      /* FiboSearch (muchas veces usa esta) */
  .cdm-mobile-searchbar .dgwt-wcas-search-input[type="search"]{
    width: 100% !important;
    height: 44px !important;     /* alto en px */
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    font-size: 16px !important;
    padding: 0 10px !important;
    box-shadow: none !important;
  }

  /* Si FiboSearch mete un contenedor extra, lo limpiamos */
  .cdm-mobile-searchbar form,
  .cdm-mobile-searchbar .dgwt-wcas-search-wrapp,
  .cdm-mobile-searchbar .dgwt-wcas-search-wrapp form{
    margin: 0 !important;
  }
}




/* =========================
   HOME - PRODUCTOS DESTACADOS (FINAL)
   Sección: .home-best-sellers-wrap / .home-best-sellers-card
========================= */

.home-best-sellers-wrap{
  width: 100%;
  padding: 40px 0 60px;
}


/* Header */
.home-best-sellers-head{
  margin: 18px 22px 12px;
}
.home-best-sellers-head h2{
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #111;
}
.home-best-sellers-head p{
  margin: 0;
  font-size: 14px;
  color: #666;
}



/* TARJETA Woo */
.home-best-sellers-card ul.products li.product{
  margin: 0 !important;
  width: 100% !important;

  background: #fff;
  border-radius: 16px;
  padding: 12px;

  border: 1px solid rgba(0,0,0,0.06);

  /* SOMBRA PROFESIONAL (UNA SOLA) */
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 8px 20px rgba(0,0,0,0.08);

  transition: box-shadow .25s ease, transform .25s ease;
}

.home-best-sellers-card ul.products li.product:hover{
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 14px 32px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

/* Link Woo */
.home-best-sellers-card ul.products li.product a{
  display: block;
  text-decoration: none;
}

/* IMAGEN */
.home-best-sellers-card ul.products li.product a img{
  max-height: 150px;
  width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

/* TÍTULO (para que no se haga gigante ni mayúsculas) */
.home-best-sellers-card .woocommerce-loop-product__title{
  margin: 0 0 8px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  color: #111 !important;
}

/* PRECIO */
.home-best-sellers-card .price,
.home-best-sellers-card .woocommerce-Price-amount{
  color: #6b46ff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  margin-bottom: 6px !important;
}

/* BOTÓN */
.home-best-sellers-card ul.products li.product .button,
.home-best-sellers-card ul.products li.product .add_to_cart_button{
  width: 100% !important;
  display: block !important;
  text-align: center !important;

  height: 35px !important;
  line-height: 35px !important;

  border-radius: 3px !important;
  border: none !important;

  background: linear-gradient(135deg, #5b3df5, #8b5cf6) !important;
  color: #fff !important;

  margin-top: 0 !important;
  padding: 0 12px !important;
  font-weight: 900 !important;
}

.home-best-sellers-card ul.products li.product .button:hover,
.home-best-sellers-card ul.products li.product .add_to_cart_button:hover{
  background: linear-gradient(135deg, #4c2ef0, #7c3aed) !important;
}

/* RESPONSIVE */
@media (max-width: 768px){
  .home-best-sellers-card{
    width: calc(100% - 28px);
    margin: 0 14px;
  }
}
  
  
  /* =========================
   QUITAR NEGRITA TITULO + PRECIO
   Productos más vendidos
========================= */

/* Título del producto */
.home-best-sellers-card .woocommerce-loop-product__title{
  font-weight: 700 !important;   /* puedes probar 400 o 500 */
}

/* Precio */
.home-best-sellers-card .price,
.home-best-sellers-card .woocommerce-Price-amount{
  font-weight: 600 !important;   /* precio sin negrita */
}




/* =========================================
   BUSCADOR MÓVIL (CDM) - LIMPIO Y ESTABLE
   - Evita duplicados
   - Compatible Safari / Chrome iOS
========================================= */

/* Desktop: NO mostrar barra móvil */
@media (min-width: 921px){
  .cdm-mobile-searchbar{ display:none !important; }
}

/* Móvil: mostrar barra debajo del header */
@media (max-width: 920px){

  .cdm-mobile-searchbar{
    display:block !important;
    background:#fff !important;
    border-bottom:1px solid rgba(17,24,39,.10) !important;
    padding: 10px 0 14px !important;

    /* sube/baja la barra (ajusta a tu gusto) */
    margin-top: -6px !important;
  }

  .cdm-mobile-searchbar-inner{
    width: calc(100% - 28px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;

    background: rgba(17,24,39,.06) !important;
    border-radius: 999px !important;

    height: 46px !important;
    display:flex !important;
    align-items:center !important;

    position: relative !important; /* clave para iconos absolute */
    overflow: hidden !important;
  }

  /* Wrapper de FiboSearch */
  .cdm-mobile-searchbar .dgwt-wcas-search-wrapp,
  .cdm-mobile-searchbar .dgwt-wcas-search-form,
  .cdm-mobile-searchbar form{
    width: 100% !important;
    margin: 0 !important;
    height: 46px !important;
    display:flex !important;
    align-items:center !important;
    position: relative !important;
  }

  /* Input */
  .cdm-mobile-searchbar input[type="search"],
  .cdm-mobile-searchbar input[type="text"],
  .cdm-mobile-searchbar .dgwt-wcas-search-input{
    width: 100% !important;
    height: 46px !important;
    line-height: 46px !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;

    padding: 0 16px 0 44px !important; /* espacio para lupa */
    font-size: 16px !important;        /* evita zoom iOS */
    box-shadow: none !important;

    -webkit-appearance: none !important;
    appearance: none !important;
  }

  /* Botón / icono (evita “bloque gris”) */
  .cdm-mobile-searchbar button,
  .cdm-mobile-searchbar button[type="submit"]{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Lupa: forzar ubicación estable */
  .cdm-mobile-searchbar .dgwt-wcas-ico-magnifier,
  .cdm-mobile-searchbar .dgwt-wcas-search-icon{
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    opacity: .9 !important;
  }
}



/* =========================================
   FIBOSEARCH (DGWT) - LOOK BLANCO CON BORDE
   SOLO PARA TU BUSCADOR MOVIL
========================================= */
@media (max-width: 600px){

  /* El "pill" */
  #cdmMobileSearchbar .cdm-mobile-searchbar-inner{
    background: #fff !important;
    border: 2px solid rgba(17,24,39,.20) !important; /* borde gris */
    border-radius: 999px !important;
    height: 52px !important;                         /* un poco más alto como ImpoAuto */
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  /* Wrapper del plugin */
  #cdmMobileSearchbar .dgwt-wcas-search-wrapp,
  #cdmMobileSearchbar form{
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
  }

  /* Input: deja espacio para la lupa */
  #cdmMobileSearchbar input[type="search"],
  #cdmMobileSearchbar input[type="text"],
  #cdmMobileSearchbar .dgwt-wcas-search-input{
    width: 100% !important;
    height: 52px !important;
    line-height: 52px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;

    padding-left: 54px !important;  /* espacio para la lupa */
    padding-right: 16px !important;

    font-size: 18px !important;
    color: #111827 !important;

    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
  }

  /* Placeholder */
  #cdmMobileSearchbar input::placeholder{
    color: rgba(17,24,39,.55) !important;
    opacity: 1 !important;
  }

  /* Lupa fija a la izquierda */
  #cdmMobileSearchbar .dgwt-wcas-ico-magnifier,
  #cdmMobileSearchbar .dgwt-wcas-search-icon{
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    opacity: .9 !important;
    z-index: 2 !important;
  }

  /* Quitar cualquier fondo/botón raro del plugin */
  #cdmMobileSearchbar button,
  #cdmMobileSearchbar button[type="submit"]{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}


/* =========================================
   BUSCADOR MÓVIL: look compacto (como tu ejemplo 2)
========================================= */
@media (max-width: 600px){

  /* Caja */
  #cdmMobileSearchbar .cdm-mobile-searchbar-inner{
    height: 40px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid rgba(17,24,39,.55) !important;  /* borde fino */
    overflow: hidden !important;
  }

  /* Wrapper del plugin */
  #cdmMobileSearchbar .dgwt-wcas-search-wrapp,
  #cdmMobileSearchbar form{
    height: 40px !important;
  }

  /* Input */
  #cdmMobileSearchbar input[type="search"],
  #cdmMobileSearchbar input[type="text"],
  #cdmMobileSearchbar .dgwt-wcas-search-input{
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px !important;             /* más compacto */
    padding-left: 40px !important;          /* espacio para lupa */
    padding-right: 12px !important;
  }

  /* Lupa (más pequeña y alineada) */
  #cdmMobileSearchbar .dgwt-wcas-ico-magnifier,
  #cdmMobileSearchbar .dgwt-wcas-search-icon{
    left: 14px !important;
    width: 16px !important;
    height: 16px !important;
  }

  /* Si el icono es SVG dentro */
  #cdmMobileSearchbar .dgwt-wcas-ico-magnifier svg,
  #cdmMobileSearchbar .dgwt-wcas-search-icon svg{
    width: 16px !important;
    height: 16px !important;
  }
}





/* =========================================
   BUSCADOR MÓVIL: ESPACIADOS EXACTOS (como tu imagen 2)
========================================= */
@media (max-width: 600px){

  /* Caja */
  #cdmMobileSearchbar .cdm-mobile-searchbar-inner{
    height: 40px !important;
    background: #fff !important;
    border: 1px solid rgba(17,24,39,.55) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  /* Wrapper del plugin: sin padding raro */
  #cdmMobileSearchbar .dgwt-wcas-search-wrapp,
  #cdmMobileSearchbar .dgwt-wcas-search-form,
  #cdmMobileSearchbar form{
    height: 40px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Lupa fija (con aire a la izquierda) */
  #cdmMobileSearchbar .dgwt-wcas-ico-magnifier,
  #cdmMobileSearchbar .dgwt-wcas-search-icon{
    position: absolute !important;
    left: 14px !important;              /* ← aire izquierdo */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    opacity: .9 !important;
    pointer-events: none !important;
  }

  #cdmMobileSearchbar .dgwt-wcas-ico-magnifier svg,
  #cdmMobileSearchbar .dgwt-wcas-search-icon svg{
    width: 16px !important;
    height: 16px !important;
    display: block !important;
  }

  /* Input: el texto debe arrancar DESPUÉS de la lupa + espacio */
  #cdmMobileSearchbar input[type="search"],
  #cdmMobileSearchbar input[type="text"],
  #cdmMobileSearchbar .dgwt-wcas-search-input{
    width: 100% !important;
    height: 40px !important;
    line-height: 40px !important;

    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;

    font-size: 14px !important;
    padding: 0 12px 0 42px !important;  /* 14px (left) + 16px icon + ~12px espacio */
    box-shadow: none !important;

    -webkit-appearance: none !important;
    appearance: none !important;
  }

  /* Placeholder limpio */
  #cdmMobileSearchbar input::placeholder{
    opacity: 1 !important;
    color: rgba(17,24,39,.55) !important;
  }
}


/* =========================================
   AJUSTE ESPACIO IZQUIERDO BUSCADOR MOVIL
========================================= */
@media (max-width:600px){

  /* quitar padding interno del plugin */
  #cdmMobileSearchbar .dgwt-wcas-search-wrapp{
    padding-left: 0 !important;
  }

  /* mover lupa más a la izquierda */
  #cdmMobileSearchbar .dgwt-wcas-ico-magnifier,
  #cdmMobileSearchbar .dgwt-wcas-search-icon{
    left: 10px !important;
  }

  /* mover texto también */
  #cdmMobileSearchbar input[type="search"],
  #cdmMobileSearchbar input[type="text"],
  #cdmMobileSearchbar .dgwt-wcas-search-input{
    padding-left: 34px !important;
  }

}








/* =========================
   CONTROL MANUAL ICONOS HEADER
   cuenta + carrito
========================= */

/* CONTENEDOR GENERAL */
.header-account,
.header-cart{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== ICONO CUENTA ===== */
.header-account img{
  width: 32px;      /* tamaño */
  height: 32px;     /* tamaño */
  display: block;
  transform: translateX(10px) translateY(0px); /* mover */
}

/* ===== ICONO CARRITO ===== */
.header-cart img{
  width: 28px;      /* tamaño */
  height: 28px;     /* tamaño */
  display: block;
  transform: translateX(0px) translateY(0px); /* mover */
}

/* ===== BURBUJA DEL CARRITO ===== */
.header-cart .cdm-cart-count{
  position: absolute;
  top: -8px;        /* subir / bajar */
  right: -10px;     /* izquierda / derecha */

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}




/* =========================
   AJUSTE MANUAL SOLO BOTONES
   BANNERS DERECHA
========================= */

.cdm-banner .cdm-banner-btn{
  position: relative;
}

/* Banner 1 */
.cdm-banner--tintas .cdm-banner-btn{
  transform: translateY(0px);
}

/* Banner 2 */
.cdm-banner--heads .cdm-banner-btn{
  transform: translateY(-8px); /* súbelo */
}

/* Banner 3 */
.cdm-banner--service .cdm-banner-btn{
  transform: translateY(0px);
}






/* =========================================
   TIENDA / ARCHIVO WOOCOMMERCE
   5 productos por fila + tarjetas pro
========================================= */

/* Contenedor general de productos */
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
.tax-product_tag ul.products{
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;

  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Tarjeta */
.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product{
  margin: 0 !important;
  width: 100% !important;

  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06) !important;

  padding: 14px !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;

  transition: transform .22s ease, box-shadow .22s ease;
}

.post-type-archive-product ul.products li.product:hover,
.tax-product_cat ul.products li.product:hover,
.tax-product_tag ul.products li.product:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10) !important;
}

/* Link del producto */
.post-type-archive-product ul.products li.product a,
.tax-product_cat ul.products li.product a,
.tax-product_tag ul.products li.product a{
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

/* Imagen */
.post-type-archive-product ul.products li.product img,
.tax-product_cat ul.products li.product img,
.tax-product_tag ul.products li.product img{
  width: 100% !important;
  max-height: 170px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 12px !important;
}

/* Título */
.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.tax-product_tag ul.products li.product .woocommerce-loop-product__title{
  margin: 0 0 10px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #111 !important;
  text-transform: none !important;
  min-height: 56px;
}

/* Precio */
.post-type-archive-product ul.products li.product .price,
.post-type-archive-product ul.products li.product .woocommerce-Price-amount,
.tax-product_cat ul.products li.product .price,
.tax-product_cat ul.products li.product .woocommerce-Price-amount,
.tax-product_tag ul.products li.product .price,
.tax-product_tag ul.products li.product .woocommerce-Price-amount{
  color: #6b46ff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

/* Botón */
.post-type-archive-product ul.products li.product .button,
.post-type-archive-product ul.products li.product .add_to_cart_button,
.tax-product_cat ul.products li.product .button,
.tax-product_cat ul.products li.product .add_to_cart_button,
.tax-product_tag ul.products li.product .button,
.tax-product_tag ul.products li.product .add_to_cart_button{
  width: 100% !important;
  display: block !important;
  text-align: center !important;

  margin-top: auto !important;
  padding: 11px 12px !important;

  border: none !important;
  border-radius: 3px !important;

  background: linear-gradient(135deg, #5b3df5, #8b5cf6) !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.post-type-archive-product ul.products li.product .button:hover,
.post-type-archive-product ul.products li.product .add_to_cart_button:hover,
.tax-product_cat ul.products li.product .button:hover,
.tax-product_cat ul.products li.product .add_to_cart_button:hover,
.tax-product_tag ul.products li.product .button:hover,
.tax-product_tag ul.products li.product .add_to_cart_button:hover{
  background: linear-gradient(135deg, #4c2ef0, #7c3aed) !important;
}

/* Ocultar viñetas raras si aparecen */
.post-type-archive-product ul.products li.product::marker,
.tax-product_cat ul.products li.product::marker,
.tax-product_tag ul.products li.product::marker{
  content: "" !important;
}

/* Barra superior: resultados + ordenar */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{
  margin-bottom: 20px !important;
}

.woocommerce .woocommerce-ordering select{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}

/* Responsive */
@media (max-width: 1200px){
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products{
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 992px){
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px){
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px){
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products{
    grid-template-columns: 1fr !important;
  }
}



/* ocultar contador de resultados */
.woocommerce-result-count{
  display: none !important;
}
    
    
    
/* =========================
   CONTROL ORDEN PRODUCTOS
========================= */

.woocommerce-ordering{
  position: relative;
  transform: translateX(999px) translateY(-26px); /* mover */
}
    
    
/* =========================
   TARJETAS PRODUCTOS TIENDA
========================= */

.post-type-archive-product ul.products li.product{
  border-radius: 18px !important;

  box-shadow:
    0 2px 6px rgba(0,0,0,0.05),
    0 10px 28px rgba(0,0,0,0.08) !important;

  transition: transform .25s ease, box-shadow .25s ease !important;
}

.post-type-archive-product ul.products li.product:hover{
  transform: translateY(-4px);

  box-shadow:
    0 6px 14px rgba(0,0,0,0.06),
    0 18px 40px rgba(0,0,0,0.12) !important;
}
    
    
.post-type-archive-product ul.products li.product img{
  border-radius: 10px;
}

/* quitar espacio arriba de la tienda */

.post-type-archive-product .woocommerce-products-header{
  margin-bottom: 10px !important;
}

.post-type-archive-product .woocommerce-products-header h1{
  margin-bottom: 0 !important;
}

.post-type-archive-product .woocommerce-ordering{
  margin-bottom: 10px !important;
}
   
   /* =========================
   SUBIR CONTENIDO DE TIENDA
========================= */

/* quitar margen superior del header */
.post-type-archive-product .woocommerce-products-header{
  margin-top: -20px !important;
  padding-top: 0 !important;
}

/* quitar margen del título */
.post-type-archive-product .woocommerce-products-header h1{
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* quitar espacio del orden */
.post-type-archive-product .woocommerce-ordering{
  margin-top: -35px !important;
  margin-bottom: 10px !important;
}

/* subir productos */
.post-type-archive-product ul.products{
  margin-top: 0 !important;
} 
    
    
    
/* =========================
   HACER TARJETAS MÁS ANCHAS
========================= */

/* ampliar contenedor de la tienda */
.post-type-archive-product .site-main{
  max-width: 1320px;
  margin: auto;
}

/* reducir espacio entre tarjetas */
.post-type-archive-product ul.products{
  gap: 14px !important;
}

/* hacer tarjetas ligeramente más anchas */
.post-type-archive-product ul.products li.product{
  padding: 16px !important;
}

/* =========================
   TARJETAS TIENDA MÁS ANCHAS
========================= */

.post-type-archive-product ul.products{
  display: grid !important;

  /* tarjetas más anchas */
  grid-template-columns: repeat(5, minmax(240px, 1fr)) !important;

  justify-content: center;
  gap: 18px;
}



/* =========================
   TIENDA - SOLO CONTENIDO
   sin afectar header
========================= */

/* mantener header normal */
.post-type-archive-product .site-header .container,
.post-type-archive-product .subheader .container{
  max-width: 1200px !important;
}

/* ampliar solo el contenido de la tienda */
.post-type-archive-product .site-main > .container{
  max-width: 1460px !important;
}

/* card blanca solo del contenido */
.post-type-archive-product .site-main > .container > .card{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}



/* =========================================

/* =========================================
   SINGLE PRODUCT - CD MUNDO
   Diseño nuevo sin tocar galería nativa Woo
========================================= */

.single-product .site-main > .container{
  max-width: 1240px !important;
}

.single-product div.product{
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.cdm-single-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 42px;
  align-items: start;
  width: 100%;
}

/* No tocar la galería interna de WooCommerce */
.cdm-single-gallery{
  width: 100%;
  min-width: 0;
}

.single-product div.product .summary,
.cdm-single-summary-card{
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
}

.cdm-single-summary-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 26px;
  padding: 34px 34px 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}

.single-product div.product .product_title{
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 18px;
}

.cdm-product-divider{
  width: 100%;
  height: 1px;
  background: #e9e9e9;
  margin: 0 0 18px;
}

.cdm-product-sku{
  font-size: 15px;
  color: #7a7f89;
  margin-bottom: 10px;
  font-weight: 600;
}

.cdm-product-sku span{
  color: #556070;
  font-weight: 700;
}

.single-product div.product .woocommerce-product-rating{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.single-product div.product .star-rating{
  margin: 0 !important;
}

.single-product div.product .woocommerce-review-link{
  font-size: 15px;
  color: #606a78;
  text-decoration: none;
}

.cdm-price-stock-row{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.single-product div.product p.price,
.single-product div.product span.price{
  margin: 0 !important;
  font-size: 2.2rem;
  font-weight: 800;
  color: #179c43 !important;
  line-height: 1;
}

.single-product div.product p.price ins,
.single-product div.product span.price ins{
  text-decoration: none;
}

.single-product div.product p.price del,
.single-product div.product span.price del{
  opacity: .45;
  font-size: .7em;
  margin-right: 8px;
}

.cdm-stock{
  font-size: 15px;
  font-weight: 700;
}

.cdm-stock.in-stock{
  color: #179c43;
}

.cdm-stock.out-of-stock{
  color: #d93025;
}

.single-product div.product form.cart{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.single-product div.product form.cart .quantity{
  margin: 0 !important;
}

.single-product div.product form.cart .quantity .qty{
  height: 54px;
  min-width: 88px;
  border: 1px solid #d9dce3;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  background: #fff;
  box-shadow: none;
}

.single-product div.product form.cart button.single_add_to_cart_button{
  height: 56px;
  padding: 0 34px;
  border-radius: 999px;
  border: 0;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4b3df0, #8d4df5);
  color: #fff;
  box-shadow: 0 10px 20px rgba(102, 74, 245, .22);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.single-product div.product form.cart button.single_add_to_cart_button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(102, 74, 245, .28);
}

.single-product div.product form.cart button.single_add_to_cart_button:disabled{
  opacity: .7;
  cursor: not-allowed;
}

.cdm-product-bottom-info{
  margin-top: 4px;
}

.cdm-product-short-description,
.single-product div.product .woocommerce-product-details__short-description{
  color: #253247;
}

.cdm-product-short-description p,
.single-product div.product .woocommerce-product-details__short-description p{
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
}

.cdm-product-benefits{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.cdm-benefit-item{
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cdm-product-description-box{
  width: 100%;
  margin-top: 34px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 22px;
  padding: 28px 32px;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
}

.cdm-product-description-box h2{
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #16233b;
  font-weight: 800;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9e9e9;
}

.cdm-product-description-content{
  font-size: 16px;
  line-height: 1.8;
  color: #4e5a6d;
}

.cdm-product-description-content p:last-child{
  margin-bottom: 0;
}

.single-product div.product .product_meta{
  display: none !important;
}

.single-product div.product .summary{
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}

@media (max-width: 1024px){
  .cdm-single-layout{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cdm-single-summary-card{
    max-width: 100%;
  }
}

@media (max-width: 767px){
  .single-product div.product{
    padding: 18px;
    border-radius: 20px;
  }

  .cdm-single-summary-card{
    padding: 22px 18px 18px;
    border-radius: 18px;
  }

  .single-product div.product .product_title{
    font-size: 1.45rem;
    margin-bottom: 14px;
  }

  .single-product div.product p.price,
  .single-product div.product span.price{
    font-size: 1.85rem;
  }

  .single-product div.product form.cart{
    flex-direction: column;
    align-items: stretch;
  }

  .single-product div.product form.cart .quantity{
    width: 100%;
  }

  .single-product div.product form.cart .quantity .qty{
    width: 100%;
  }

  .single-product div.product form.cart button.single_add_to_cart_button{
    width: 100%;
  }

  .cdm-product-description-box{
    padding: 22px 18px;
    border-radius: 18px;
  }

  .cdm-product-description-box h2{
    font-size: 1.45rem;
  }
}








/* agrandar toda la columna izquierda */
.cdm-single-layout{
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 520px) !important;
  gap: 56px !important;
}

/* permitir que la galería ocupe más espacio */
.cdm-single-gallery{
  width: 100% !important;
  max-width: 100% !important;
}

/* agrandar el contenedor nativo de WooCommerce */
.single-product .cdm-single-gallery .woocommerce-product-gallery{
  width: 100% !important;
  max-width: 100% !important;
}

/* agrandar el área visible de la imagen */
.single-product .cdm-single-gallery .flex-viewport{
  min-height: 500px !important;
}

/* centrar mejor la imagen dentro */
.single-product .cdm-single-gallery .woocommerce-product-gallery__wrapper,
.single-product .cdm-single-gallery .woocommerce-product-gallery__image{
  min-height: 620px !important;
}






/* quitar espacio de toda la zona de galería */
.single-product .woocommerce-product-gallery{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* quitar espacio debajo de la imagen principal */
.single-product .woocommerce-product-gallery .flex-viewport{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* contenedor de navegación de miniaturas */
.single-product .woocommerce-product-gallery .flex-control-nav{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* lista de miniaturas */
.single-product .woocommerce-product-gallery .flex-control-thumbs{
  margin: 0 !important;
  padding: 0 !important;
  gap: 0px;
  display: flex;
  align-items: flex-start;
}

/* cada miniatura */
.single-product .woocommerce-product-gallery .flex-control-thumbs li{
  margin: 0 !important;
  padding: 0 !important;
}

/* subir visualmente las miniaturas */
.single-product .woocommerce-product-gallery .flex-control-nav{
  transform: translateY(-20px) !important;
}



/* quitar altura extra del área principal */
.single-product .woocommerce-product-gallery .flex-viewport{
  height: auto !important;
  min-height: unset !important;
}

/* quitar altura forzada de cada slide */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image{
  min-height: unset !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* quitar separación del bloque de miniaturas */
.single-product .woocommerce-product-gallery .flex-control-nav{
  margin-top: 0 !important;
  padding-top: 0 !important;
}




/* =========================================
   OVERRIDE FUERTE - MINIATURAS PEGADAS
   Sin borrar reglas anteriores
========================================= */

body.single-product .cdm-single-gallery .woocommerce-product-gallery,
body.single-product .cdm-single-gallery .flex-viewport,
body.single-product .cdm-single-gallery .woocommerce-product-gallery__wrapper,
body.single-product .cdm-single-gallery .woocommerce-product-gallery__image {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* cancelar alturas forzadas anteriores */
body.single-product .cdm-single-gallery .flex-viewport,
body.single-product .cdm-single-gallery .woocommerce-product-gallery__wrapper,
body.single-product .cdm-single-gallery .woocommerce-product-gallery__image {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}

/* que el slide mida solo lo que necesita */
body.single-product .cdm-single-gallery .woocommerce-product-gallery__image {
  display: block !important;
}

/* asegurar que la imagen principal no meta espacio extra */
body.single-product .cdm-single-gallery .woocommerce-product-gallery__image a,
body.single-product .cdm-single-gallery .woocommerce-product-gallery__image img {
  display: block !important;
  margin-bottom: 0 !important;
}

/* miniaturas pegadas a la visualización */
body.single-product .cdm-single-gallery .flex-control-nav,
body.single-product .cdm-single-gallery .flex-control-thumbs {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* si aún quieres subirlas un poco más */
body.single-product .cdm-single-gallery .flex-control-nav {
  position: relative !important;
  top: 20px !important;
}

/* quitar separación individual */
body.single-product .cdm-single-gallery .flex-control-thumbs li,
body.single-product .cdm-single-gallery .flex-control-thumbs img {
  margin-bottom: 0 !important;
}



/* marco de miniaturas */
.single-product .woocommerce-product-gallery .flex-control-thumbs img{
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  transition: all .2s ease;
}

/* miniatura activa */
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active{
  border-color: #6b4df5;
}

/* hover */
.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover{
  border-color: #6b4df5;
}


/* ocultar el primer bloque de productos relacionados */
.single-product .related.products:first-of-type{
  display:none !important;
}



/* =========================================
   RELATED PRODUCTS - MISMO ESTILO DE TARJETA
========================================= */

.single-product .related.products {
  margin-top: 36px;
}

.single-product .related.products > h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 24px;
}

/* grid de productos */
.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
  display: none !important;
}

.single-product .related.products ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 20px 18px !important;
  background: #fff;
  border: 1px solid #e9e9ee;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.single-product .related.products ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}

/* imagen */
.single-product .related.products ul.products li.product a img {
  width: 100% !important;
  max-width: 180px;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

/* link principal */
.single-product .related.products ul.products li.product a {
  text-decoration: none;
}

/* título */
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px !important;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px !important;
  min-height: 66px;
}

/* precio */
.single-product .related.products ul.products li.product .price {
  display: block;
  font-size: 1.65rem !important;
  font-weight: 800;
  color: #6d4cff !important;
  margin: 0 0 14px !important;
  line-height: 1.1;
}

.single-product .related.products ul.products li.product .price del {
  opacity: .45;
  font-size: .75em;
  margin-right: 6px;
}

.single-product .related.products ul.products li.product .price ins {
  text-decoration: none;
  color: inherit !important;
}

/* botón */
.single-product .related.products ul.products li.product .button,
.single-product .related.products ul.products li.product .add_to_cart_button,
.single-product .related.products ul.products li.product .product_type_simple {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50px;
  margin-top: auto !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #5b45f4, #7a57ff) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: transform .2s ease, opacity .2s ease;
}

.single-product .related.products ul.products li.product .button:hover,
.single-product .related.products ul.products li.product .add_to_cart_button:hover,
.single-product .related.products ul.products li.product .product_type_simple:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* ocultar cosas que afean la tarjeta si aparecen */
.single-product .related.products ul.products li.product .star-rating,
.single-product .related.products ul.products li.product .onsale,
.single-product .related.products ul.products li.product .added_to_cart {
  display: none !important;
}

/* responsive */
@media (max-width: 1024px) {
  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .single-product .related.products ul.products {
    grid-template-columns: 1fr !important;
  }

  .single-product .related.products ul.products li.product {
    padding: 16px !important;
    border-radius: 16px;
  }

  .single-product .related.products ul.products li.product a img {
    max-width: 150px;
    height: 150px;
  }

  .single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    min-height: auto;
  }
}







/* =========================================
   RELATED PRODUCTS - CARRUSEL COMPACTO
========================================= */

/* contenedor general */
.single-product .related.products {
  margin-top: 36px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 26px 24px 28px;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
  overflow: hidden;
}

/* titulo */
.single-product .related.products > h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 20px;
}

/* fila tipo carrusel */
.single-product .related.products ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 10px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
}

.single-product .related.products ul.products::-webkit-scrollbar {
  height: 8px;
}

.single-product .related.products ul.products::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 999px;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
  display: none !important;
}

/* tarjeta compacta */
.single-product .related.products ul.products li.product {
  flex: 0 0 260px !important;
  width: 260px !important;
  max-width: 260px !important;
  min-height: 390px;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  background: #fff;
  border: 1px solid #e9e9ee;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}

.single-product .related.products ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}

/* imagen */
.single-product .related.products ul.products li.product a img {
  width: 100% !important;
  max-width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

/* link */
.single-product .related.products ul.products li.product a {
  text-decoration: none;
}

/* titulo */
.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px !important;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px !important;
  min-height: 62px;
}

/* precio */
.single-product .related.products ul.products li.product .price {
  display: block;
  font-size: 1.05rem !important;
  font-weight: 800;
  color: #6d4cff !important;
  margin: 0 0 14px !important;
  line-height: 1.1;
}

.single-product .related.products ul.products li.product .price del {
  opacity: .45;
  font-size: .8em;
  margin-right: 6px;
}

.single-product .related.products ul.products li.product .price ins {
  text-decoration: none;
  color: inherit !important;
}

/* boton */
.single-product .related.products ul.products li.product .button,
.single-product .related.products ul.products li.product .add_to_cart_button,
.single-product .related.products ul.products li.product .product_type_simple {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-top: auto !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #5b45f4, #7a57ff) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* ocultar elementos innecesarios */
.single-product .related.products ul.products li.product .star-rating,
.single-product .related.products ul.products li.product .onsale,
.single-product .related.products ul.products li.product .added_to_cart {
  display: none !important;
}

/* tablet */
@media (max-width: 1024px) {
  .single-product .related.products ul.products li.product {
    flex: 0 0 230px !important;
    width: 230px !important;
    max-width: 230px !important;
  }
}

/* movil */
@media (max-width: 767px) {
  .single-product .related.products {
    padding: 20px 16px 22px;
    border-radius: 18px;
  }

  .single-product .related.products > h2 {
    font-size: 1.45rem;
  }

  .single-product .related.products ul.products {
    gap: 14px;
  }

  .single-product .related.products ul.products li.product {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px !important;
    min-height: 340px;
    padding: 14px !important;
  }

  .single-product .related.products ul.products li.product a img {
    max-width: 120px;
    height: 120px;
  }

  .single-product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    min-height: 56px;
  }
}





/* =========================================
   RELATED PRODUCTS - CARRUSEL CON FLECHAS
========================================= */

.single-product .related.products{
  margin-top: 36px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 24px;
  padding: 26px 24px 28px;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}

.single-product .related.products > h2{
  font-size: 1.8rem;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 20px;
}

/* wrapper del carrusel */
.cdm-related-carousel{
  position: relative;
}

.cdm-related-track{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cdm-related-track::-webkit-scrollbar{
  display: none;
}

/* fila horizontal */
.single-product .related.products ul.products{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px;
  margin: 0;
  padding: 4px 2px 8px;
  list-style: none;
}

.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after{
  display: none !important;
}

/* tarjeta compacta */
.single-product .related.products ul.products li.product{
  flex: 0 0 240px !important;
  width: 240px !important;
  max-width: 240px !important;
  min-height: 360px;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  background: #fff;
  border: 1px solid #e9e9ee;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.single-product .related.products ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}

/* imagen */
.single-product .related.products ul.products li.product a img{
  width: 100% !important;
  max-width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

/* links */
.single-product .related.products ul.products li.product a{
  text-decoration: none;
}

/* título */
.single-product .related.products ul.products li.product .woocommerce-loop-product__title{
  font-size: 16px !important;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px !important;
  min-height: 62px;
}

/* precio */
.single-product .related.products ul.products li.product .price{
  display: block;
  font-size: 1.05rem !important;
  font-weight: 800;
  color: #6d4cff !important;
  margin: 0 0 14px !important;
  line-height: 1.1;
}

.single-product .related.products ul.products li.product .price del{
  opacity: .45;
  font-size: .8em;
  margin-right: 6px;
}

.single-product .related.products ul.products li.product .price ins{
  text-decoration: none;
  color: inherit !important;
}

/* botón */
.single-product .related.products ul.products li.product .button,
.single-product .related.products ul.products li.product .add_to_cart_button,
.single-product .related.products ul.products li.product .product_type_simple{
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin-top: auto !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #5b45f4, #7a57ff) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* ocultar elementos extra */
.single-product .related.products ul.products li.product .star-rating,
.single-product .related.products ul.products li.product .onsale,
.single-product .related.products ul.products li.product .added_to_cart{
  display: none !important;
}

/* flechas */
.cdm-related-arrow{
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  color: #16233b;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdm-related-arrow.prev{
  left: 4px;
}

.cdm-related-arrow.next{
  right: 4px;
}

.cdm-related-arrow:hover{
  transform: translateY(-50%) scale(1.04);
}

/* dar espacio lateral para que no tapen tarjetas */
.single-product .related.products .cdm-related-track{
  padding: 0 28px;
}

/* responsive */
@media (max-width: 1024px){
  .single-product .related.products ul.products li.product{
    flex: 0 0 220px !important;
    width: 220px !important;
    max-width: 220px !important;
  }
}

@media (max-width: 767px){
  .single-product .related.products{
    padding: 20px 16px 22px;
    border-radius: 18px;
  }

  .single-product .related.products > h2{
    font-size: 1.45rem;
  }

  .single-product .related.products .cdm-related-track{
    padding: 0 8px;
  }

  .single-product .related.products ul.products{
    gap: 14px;
  }

  .single-product .related.products ul.products li.product{
    flex: 0 0 190px !important;
    width: 190px !important;
    max-width: 190px !important;
    min-height: 325px;
    padding: 14px !important;
  }

  .single-product .related.products ul.products li.product a img{
    max-width: 115px;
    height: 115px;
  }

  .single-product .related.products ul.products li.product .woocommerce-loop-product__title{
    font-size: 15px !important;
    min-height: 54px;
  }

  .cdm-related-arrow{
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}






/* =========================================
   TIENDA / ARCHIVO - 5 PRODUCTOS POR FILA
========================================= */

/* solo tienda, categorías, etiquetas y búsqueda de productos */
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
.tax-product_tag ul.products,
.woocommerce-search-results ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.post-type-archive-product ul.products::before,
.post-type-archive-product ul.products::after,
.tax-product_cat ul.products::before,
.tax-product_cat ul.products::after,
.tax-product_tag ul.products::before,
.tax-product_tag ul.products::after,
.woocommerce-search-results ul.products::before,
.woocommerce-search-results ul.products::after {
  display: none !important;
}

.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product,
.woocommerce-search-results ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}

/* tablet */
@media (max-width: 1200px) {
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce-search-results ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 992px) {
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce-search-results ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce-search-results ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .post-type-archive-product ul.products,
  .tax-product_cat ul.products,
  .tax-product_tag ul.products,
  .woocommerce-search-results ul.products {
    grid-template-columns: 1fr !important;
  }
}








/* =========================================
   MI CUENTA - DISEÑO PERSONALIZADO
========================================= */

.woocommerce-account .woocommerce{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

/* columna izquierda */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background: #f7f7fa;
  padding: 42px 26px 34px;
  border-right: 1px solid #ececf2;
  min-width: 0;
}

/* columna derecha */
.woocommerce-account .woocommerce-MyAccount-content{
  background: #fff;
  padding: 48px 52px;
  min-width: 0;
}

/* ocultar lista vieja por defecto mientras la reestilizamos */
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* items menú */
.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  margin: 0 0 10px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  color: #2a3344;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{
  background: #eef2ff;
  color: #3f63b5;
  transform: translateX(2px);
}

/* item activo */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background: #eef2ff;
  color: #3f63b5;
  font-weight: 800;
}

/* salir */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a{
  color: #9d2b2b;
}

/* contenido derecha */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content > h1,
.woocommerce-account .woocommerce-MyAccount-content > h2:first-child{
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 26px;
}

/* textos principales */
.woocommerce-account .woocommerce-MyAccount-content p{
  font-size: 1.15rem;
  line-height: 1.7;
  color: #2a3344;
}

/* línea suave */
.woocommerce-account .woocommerce-MyAccount-content hr{
  border: 0;
  border-top: 1px solid #ececec;
  margin: 28px 0;
}

/* formularios internos */
.woocommerce-account .woocommerce-MyAccount-content input,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea{
  width: 100%;
  min-height: 52px;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content textarea{
  min-height: 140px;
  padding: 14px 16px;
}

.woocommerce-account .woocommerce-MyAccount-content button,
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]{
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b45f4, #7a57ff);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(91,69,244,.18);
}

/* tablas de pedidos */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account table.shop_table{
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td{
  padding: 16px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-account table.shop_table tr:last-child td{
  border-bottom: 0;
}

/* =========================
   PERFIL IZQUIERDO CUSTOM
========================= */

.cdm-account-profile{
  position: relative;
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 24px;
  padding: 74px 22px 24px;
  text-align: center;
  margin-top: 52px;
  margin-bottom: 26px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.cdm-account-avatar{
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #d9dde6;
  border: 6px solid #f7f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cdm-account-avatar svg{
  width: 54px;
  height: 54px;
  fill: #9ca3af;
}

.cdm-account-email{
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 8px;
  word-break: break-word;
}

.cdm-account-role{
  font-size: 1.05rem;
  color: #9097a6;
  margin: 0;
}

/* =========================
   DASHBOARD CARDS
========================= */

.cdm-account-dashboard-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.cdm-account-card{
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cdm-account-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
}

.cdm-account-card-icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 28px;
}

.cdm-account-card.orders .cdm-account-card-icon{
  background: #efe7fb;
  color: #8b5cf6;
}

.cdm-account-card.address .cdm-account-card-icon{
  background: #e8f0ff;
  color: #5b8def;
}

.cdm-account-card.details .cdm-account-card-icon{
  background: #fdf1dc;
  color: #e7a83b;
}

.cdm-account-card h3{
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #16233b;
  font-weight: 800;
}

.cdm-account-card p{
  margin: 0;
  color: #5f6878;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* enlaces del dashboard Woo default */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-MyAccount-dashboard a{
  color: #365ea8;
  font-weight: 600;
}

/* responsive */
@media (max-width: 1100px){
  .woocommerce-account .woocommerce{
    grid-template-columns: 290px 1fr;
  }

  .woocommerce-account .woocommerce-MyAccount-content{
    padding: 38px 30px;
  }

  .cdm-account-dashboard-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px){
  .woocommerce-account .woocommerce{
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation{
    border-right: 0;
    border-bottom: 1px solid #ececf2;
    padding: 28px 18px 22px;
  }

  .woocommerce-account .woocommerce-MyAccount-content{
    padding: 28px 18px;
  }

  .woocommerce-account .woocommerce-MyAccount-content h2,
  .woocommerce-account .woocommerce-MyAccount-content h3,
  .woocommerce-account .woocommerce-MyAccount-content > h1,
  .woocommerce-account .woocommerce-MyAccount-content > h2:first-child{
    font-size: 2.1rem;
  }

  .cdm-account-profile{
    margin-top: 44px;
  }

  .cdm-account-dashboard-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



/* =========================================
   MI CUENTA - FIX FUERTE DE ESTRUCTURA
========================================= */

.woocommerce-account .woocommerce{
  display: grid !important;
  grid-template-columns: 360px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

/* =========================
   COLUMNA IZQUIERDA
========================= */

.woocommerce-account .woocommerce-MyAccount-navigation{
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 34px 24px 30px !important;
  background: #f8f8fb;
  border-right: 1px solid #ececf2;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  margin: 0 0 10px !important;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px !important;
  border-radius: 14px;
  text-decoration: none !important;
  color: #263246 !important;
  font-size: 1.08rem;
  font-weight: 600;
  box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background: #eef2ff !important;
  color: #3f63b5 !important;
  font-weight: 800;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{
  background: #eef2ff !important;
  color: #3f63b5 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a{
  color: #9d2b2b !important;
}

/* =========================
   PERFIL EN LA COLUMNA IZQUIERDA
========================= */

.cdm-account-profile{
  position: relative;
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 24px;
  padding: 72px 22px 24px;
  text-align: center;
  margin: 22px 0 26px !important;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  order: -1;
}

.cdm-account-avatar{
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #d9dde6;
  border: 6px solid #f8f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdm-account-avatar svg{
  width: 48px;
  height: 48px;
  fill: #98a0ad;
}

.cdm-account-email{
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 6px;
  word-break: break-word;
}

.cdm-account-role{
  margin: 0;
  font-size: .98rem;
  color: #96a0af;
}

/* =========================
   COLUMNA DERECHA
========================= */

.woocommerce-account .woocommerce-MyAccount-content{
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 48px 52px !important;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content::after,
.woocommerce-account .woocommerce-MyAccount-navigation::after{
  display: none !important;
  content: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content > h1,
.woocommerce-account .woocommerce-MyAccount-content > h2:first-child{
  font-size: 3rem !important;
  line-height: 1.1;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 26px !important;
}

.woocommerce-account .woocommerce-MyAccount-content p{
  font-size: 1.12rem;
  line-height: 1.75;
  color: #2a3344;
  margin-bottom: 18px;
}

/* =========================
   GRID DE CARDS
========================= */

.cdm-account-dashboard-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 34px !important;
  width: 100%;
}

.cdm-account-card{
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 260px;
  background: #fff;
  border: 1px solid #ececf2;
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  box-sizing: border-box;
  text-decoration: none !important;
  color: inherit !important;
}

.cdm-account-card-icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 28px;
}

.cdm-account-card.orders .cdm-account-card-icon{
  background: #efe7fb;
  color: #8b5cf6;
}

.cdm-account-card.address .cdm-account-card-icon{
  background: #e8f0ff;
  color: #5b8def;
}

.cdm-account-card.details .cdm-account-card-icon{
  background: #fdf1dc;
  color: #e7a83b;
}

.cdm-account-card h3{
  font-size: 1.1rem !important;
  line-height: 1.25;
  font-weight: 800;
  color: #16233b;
  margin: 0 0 10px !important;
}

.cdm-account-card p{
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.7;
  color: #5f6878;
}

/* links internos del dashboard */
.woocommerce-account .woocommerce-MyAccount-dashboard a{
  color: #365ea8;
}

/* =========================
   TABLETS
========================= */

@media (max-width: 1100px){
  .woocommerce-account .woocommerce{
    grid-template-columns: 300px minmax(0, 1fr) !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content{
    padding: 38px 28px !important;
  }

  .cdm-account-dashboard-grid{
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   MÓVIL
========================= */

@media (max-width: 767px){
  .woocommerce-account .woocommerce{
    grid-template-columns: 1fr !important;
    border-radius: 20px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation{
    border-right: 0;
    border-bottom: 1px solid #ececf2;
    padding: 28px 18px 22px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content{
    padding: 28px 18px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content h2,
  .woocommerce-account .woocommerce-MyAccount-content h3,
  .woocommerce-account .woocommerce-MyAccount-content > h1,
  .woocommerce-account .woocommerce-MyAccount-content > h2:first-child{
    font-size: 2.1rem !important;
  }

  .cdm-account-dashboard-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .cdm-account-card{
    min-height: auto;
  }
}




/* =========================================
   FIX TITULOS CARDS MI CUENTA
========================================= */

.cdm-account-card h3{
  font-size: 22px !important;
  line-height: 1.2 !important;
  font-weight: 800;
  margin: 0 0 10px !important;
  color: #16233b;
  word-break: normal;
}

.cdm-account-card{
  overflow: hidden;
}

/* texto pequeño debajo */
.cdm-account-card p{
  font-size: 15px !important;
  line-height: 1.6;
}


/* quitar contenedor blanco general de mi cuenta */
.woocommerce-account .woocommerce{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* panel derecho flotante */
.woocommerce-account .woocommerce-MyAccount-content{
  background: #fff;
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  margin-left: 28px;
}


/* barra lateral izquierda */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background: #f7f7fb;
  border-radius: 24px;
  padding: 30px 22px;
}


/* eliminar contenedor general de mi cuenta */
.woocommerce-account .woocommerce{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* estructura libre */
.woocommerce-account .woocommerce{
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  gap: 40px;
}


/* sidebar izquierda */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

/* =========================================
   MI CUENTA - OVERRIDE FINAL HORIZONTAL CD MUNDO
   (solo afecta la página Mi Cuenta)
========================================= */

body.woocommerce-account{
  background:#f3f4f8 !important;
}

.woocommerce-account .entry-title{
  display:none !important;
}

.woocommerce-account .woocommerce{
  max-width:1280px !important;
  margin:36px auto 70px !important;
  padding:0 18px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:28px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.woocommerce-account .cdm-account-profile,
.woocommerce-account .cdm-account-avatar,
.woocommerce-account .cdm-account-email,
.woocommerce-account .cdm-account-role{
  display:none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation{
  width:100% !important;
  float:none !important;
  margin:0 !important;
  padding:22px 28px !important;
  min-height:92px !important;
  background:#fff !important;
  border:1px solid #e8ebf2 !important;
  border-radius:28px !important;
  box-shadow:0 10px 26px rgba(15,23,42,.04) !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:24px !important;
  position:relative !important;
  overflow:visible !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation::before{
  content:"Mi cuenta";
  display:block;
  flex:0 0 auto;
  font-size:24px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.02em;
  color:#16233b;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  width:auto !important;
  margin:0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-height:46px !important;
  padding:0 20px !important;
  border-radius:999px !important;
  background:transparent !important;
  color:#16233b !important;
  font-size:16px !important;
  font-weight:600 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
  transition:background .2s ease,color .2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{
  background:#eef1f6 !important;
  color:#16233b !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background:#eceff5 !important;
  color:#16233b !important;
  font-weight:700 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a{
  color:#16233b !important;
}

.woocommerce-account .woocommerce-MyAccount-content{
  width:100% !important;
  float:none !important;
  margin:0 auto !important;
  padding:20px 0 0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:center;
}

.woocommerce-account .cdm-account-dashboard-title{
  margin:8px 0 18px !important;
  font-size:30px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  letter-spacing:-.02em;
  color:#16233b !important;
  text-align:center !important;
}

.woocommerce-account .woocommerce-MyAccount-content > p{
  max-width:980px;
  margin-left:auto !important;
  margin-right:auto !important;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type{
  font-size:18px !important;
  line-height:1.7 !important;
  color:#1f2937 !important;
  margin-bottom:14px !important;
}

.woocommerce-account .woocommerce-MyAccount-content > p:not(.woocommerce-info):not(:first-of-type){
  font-size:17px !important;
  line-height:1.8 !important;
  color:#334155 !important;
  margin-bottom:0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content a{
  color:#16233b !important;
  font-weight:700;
  text-decoration:none;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover{
  text-decoration:underline;
}

.woocommerce-account .cdm-account-dashboard-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:26px !important;
  max-width:930px !important;
  margin:42px auto 0 !important;
}

.woocommerce-account .cdm-account-card{
  min-height:260px !important;
  background:#fff !important;
  border:1px solid #e6eaf2 !important;
  border-radius:24px !important;
  padding:36px 34px !important;
  box-shadow:0 8px 24px rgba(15,23,42,.04) !important;
  text-align:left !important;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.woocommerce-account .cdm-account-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(15,23,42,.08) !important;
  border-color:#dce3ef !important;
}

.woocommerce-account .cdm-account-card-icon{
  width:74px !important;
  height:74px !important;
  border-radius:22px !important;
  margin-bottom:24px !important;
  font-size:30px !important;
}

.woocommerce-account .cdm-account-card h3{
  margin:0 0 14px !important;
  font-size:22px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#16233b !important;
  text-align:left !important;
}

.woocommerce-account .cdm-account-card p{
  margin:0 !important;
  font-size:16px !important;
  line-height:1.7 !important;
  color:#475569 !important;
  text-align:left !important;
}

/* formularios / endpoints internos */
.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account .woocommerce-form,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .addresses,
.woocommerce-account .u-columns{
  max-width:980px;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:left !important;
}

.woocommerce-account .woocommerce-MyAccount-content form p,
.woocommerce-account .woocommerce-MyAccount-content form label,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title,
.woocommerce-account .woocommerce-MyAccount-content table,
.woocommerce-account .woocommerce-MyAccount-content th,
.woocommerce-account .woocommerce-MyAccount-content td{
  text-align:left !important;
}

/* pequeño fix para que el header se comporte normal en Mi Cuenta */
.woocommerce-account .site-header,
.woocommerce-account .header-row,
.woocommerce-account .header-search,
.woocommerce-account .header-account{
  transform:none !important;
}

@media (max-width:1100px){
  .woocommerce-account .woocommerce-MyAccount-navigation{
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    padding:24px !important;
    min-height:auto !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul{
    justify-content:flex-start !important;
  }

  .woocommerce-account .cdm-account-dashboard-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:767px){
  .woocommerce-account .woocommerce{
    margin:24px auto 50px !important;
    padding:0 14px !important;
    gap:20px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation{
    border-radius:22px !important;
    padding:20px 16px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation::before{
    font-size:22px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul{
    gap:8px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li a{
    min-height:40px !important;
    padding:0 16px !important;
    font-size:15px !important;
  }

  .woocommerce-account .cdm-account-dashboard-title{
    font-size:26px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
  .woocommerce-account .woocommerce-MyAccount-content > p:not(.woocommerce-info):not(:first-of-type){
    font-size:16px !important;
    line-height:1.7 !important;
  }

  .woocommerce-account .cdm-account-dashboard-grid{
    grid-template-columns:1fr !important;
    gap:18px !important;
    margin-top:30px !important;
  }

  .woocommerce-account .cdm-account-card{
    min-height:auto !important;
    padding:26px 22px !important;
    border-radius:20px !important;
  }

  .woocommerce-account .cdm-account-card-icon{
    width:64px !important;
    height:64px !important;
    border-radius:18px !important;
    margin-bottom:20px !important;
    font-size:28px !important;
  }

  .woocommerce-account .cdm-account-card h3{
    font-size:20px !important;
  }
}





/* =========================================
   HEADER COMPACTO SOLO EN MI CUENTA
   CONTROL MANUAL
========================================= */

body.woocommerce-account .site-header{
  padding: 0 !important;
  margin: 0 !important;
}

body.woocommerce-account .site-header .container,
body.woocommerce-account .site-header > .container{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* FILA PRINCIPAL DEL HEADER */
body.woocommerce-account .header-row{
  min-height: unset !important;
  height: auto !important;
  padding-top: 0px !important;      /* ajusta este */
  padding-bottom: 0px !important;   /* ajusta este */
  margin: 0 !important;
  align-items: center !important;
}

/* todos los hijos de la fila */
body.woocommerce-account .header-row > *{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
}

/* LOGO */
body.woocommerce-account .site-branding,
body.woocommerce-account .header-logo,
body.woocommerce-account .custom-logo-link{
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* MENÚ PRINCIPAL */
body.woocommerce-account .main-nav,
body.woocommerce-account .main-nav ul,
body.woocommerce-account .main-nav__list{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center !important;
}

/* BUSCADOR */
body.woocommerce-account .header-search{
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

body.woocommerce-account .header-search .dgwt-wcas-search-wrapp,
body.woocommerce-account .header-search .dgwt-wcas-search-form,
body.woocommerce-account .header-search form{
  margin: 0 !important;
  padding: 0 !important;
}

/* reduce visualmente altura del buscador solo aquí */
body.woocommerce-account .header-search input[type="search"],
body.woocommerce-account .header-search input[type="text"]{
  height: 42px !important;   /* ajusta este */
}

/* ICONOS DERECHA */
body.woocommerce-account .header-account,
body.woocommerce-account .header-cart,
body.woocommerce-account .header-icons{
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* SUBHEADER */
body.woocommerce-account .subheader{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top: 0 !important;
}

body.woocommerce-account .subheader-row{
  padding-top: 6px !important;     /* ajusta este */
  padding-bottom: 6px !important;  /* ajusta este */
  margin: 0 !important;
  min-height: unset !important;
}

/* elimina separación extra entre header y contenido */
body.woocommerce-account .site-header + *{
  margin-top: 0 !important;
}

/* si el contenido principal tiene espacio arriba en mi cuenta */
body.woocommerce-account .site-main,
body.woocommerce-account main.site-main,
body.woocommerce-account .content-area{
  margin-top: 0 !important;
  padding-top: 30px !important;   /* ajusta este si quieres más pegado */
}

/* oculta cualquier barra rara móvil en desktop */
@media (min-width: 921px){
  body.woocommerce-account .cdm-mobile-searchbar,
  body.woocommerce-account #cdmMobileSearchbar{
    display: none !important;
  }
}



body.woocommerce-account .header-row { padding-top: 0px !important; padding-bottom: 0px !important; }



body.woocommerce-account .header-row { transform: translateY(-30px); }

body.woocommerce-account .entry-title {
  display: none !important;
}


body.woocommerce-account h1.entry-title,
body.woocommerce-account .woocommerce-products-header__title,
body.woocommerce-account .page-title {
  display: none !important;
}



/* =========================
   RESPONSIVE CD MUNDO (TIPO IMPOAUTO)
========================= */

@media (max-width: 900px){

  /* CONTENEDOR */
  .container{
    padding: 0 16px;
  }

  /* HEADER */
  .header-row{
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-search{
    width: 100%;
    order: 3;
    margin-top: 10px;
  }

  .main-nav__list{
    flex-wrap: wrap;
    gap: 10px;
  }

  /* SUBHEADER */
  .subheader-row{
    flex-wrap: wrap;
    gap: 10px;
  }

  /* HERO + BANNERS (CLAVE) */
  body.home .cdm-home-top__inner{
    margin-left: 0 !important;
  }

  body.home .cdm-home-top{
    display: block;
  }

  body.home .cdm-home-hero{
    justify-content: center;
  }

  body.home .cdm-hero-card{
    width: 92vw !important;
    height: 92vw !important;
    margin: 0 auto !important;
  }

  body.home .cdm-home-top__right{
    width: 100%;
    margin: 20px 0 0 0 !important;
  }

  body.home .cdm-banner{
    width: 100%;
    height: 160px;
    margin: 0 !important;
  }


  /* CATEGORÍAS */
  .cdm-cat{
    width: 90px;
  }

  .cdm-cat-circle{
    width: 70px;
    height: 70px;
  }

  /* FOOTER */
  .footer-top{
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

}

/* 📱 MÓVIL PEQUEÑO (como en ImpoAuto) */
@media (max-width: 480px){



  body.home .cdm-banner{
    height: 140px;
  }

  .cdm-cat{
    width: 80px;
  }

  .cdm-cat-circle{
    width: 60px;
    height: 60px;
  }

}


.woocommerce-account .page-title {
    display: none !important;
}



/* =====================================
   MÁS VENDIDOS
===================================== */

.home-best-sellers{
    max-width: 1300px;
    margin: 40px auto;
}


.home-best-sellers-card h2{
    text-align: center;
    margin-bottom: 40px;
}

/* Carrusel */

.carousel-wrapper{
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-viewport{
    width:100%;
    overflow:hidden;
}

.carousel-track{
    display:flex;
    gap:20px;
    width:max-content;
    transition:transform .4s ease;
    will-change:transform;
}

/* Tarjetas */

.producto-card{
    flex: 0 0 220px;

    background: #fff;

    border-radius: 16px;

    padding: 12px;

    border: 1px solid rgba(0,0,0,.06);

    box-shadow:
        0 0 0 1px rgba(0,0,0,.04),
        0 8px 20px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    display: flex;
    flex-direction: column;
}

.producto-card:hover{
    transform: translateY(-3px);

    box-shadow:
        0 0 0 1px rgba(0,0,0,.06),
        0 14px 32px rgba(0,0,0,.12);
}

.producto-card > a:first-child{
    text-decoration:none;
    color:inherit;

    display:flex;
    flex-direction:column;

    min-height:280px;   /* prueba entre 300 y 320px */
}

.producto-card img{
    width: 100%;
    height: 160px;
    object-fit: contain;

    margin-bottom: 12px;
}

.producto-card h3{
    font-size:16px;
    font-weight:800;
    line-height:1.25;
    color:#111;

    min-height:60px;
    margin-bottom:10px;
}

.producto-precio{
    display:block;
    font-size:16px;
    font-weight:900;
    color:#6b46ff;
    margin-bottom:12px;
}

/* Botón Woo */

.producto-card .button,
.producto-card .add_to_cart_button{
    width: 100% !important;

    margin-top: auto !important;

    display: block !important;

    text-align: center !important;

    height: 38px !important;

    line-height: 38px !important;

    border-radius: 4px !important;

    border: none !important;

    background: linear-gradient(135deg,#5b3df5,#8b5cf6) !important;

    color: #fff !important;

    font-weight: 900 !important;

    padding: 0 12px !important;
}

.producto-card .button:hover,
.producto-card .add_to_cart_button:hover{
    background: linear-gradient(135deg,#4c2ef0,#7c3aed) !important;
}

/* Flechas */

.carousel-btn{
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: #5b3df5;

    color: #fff;

    cursor: pointer;

    z-index: 20;
} 

.carousel-btn.prev{
    left: 12px;
}

.carousel-btn.next{
    right: 12px;
}

.carousel-btn:disabled{
    opacity: .3;
    cursor: not-allowed;
}

/* Móvil */

@media(max-width:768px){

    .home-best-sellers-card{
        padding: 30px 20px;
    }

    .carousel-btn{
        display:none;
    }

    .carousel-viewport{
        overflow-x:auto;
        overflow-y:hidden;

        scroll-snap-type:x mandatory;

        -webkit-overflow-scrolling:touch;
    }

    .carousel-viewport::-webkit-scrollbar{
        display:none;
    }

    .carousel-track{
        transform:none !important;
        width:auto;
    }

    .producto-card{
        flex:0 0 200px;

        scroll-snap-align:start;
    }
}

@media(max-width:420px){

    .producto-card{
        flex:0 0 185px;
    }
}



.cdm-carousel ul.products li.product .woocommerce-loop-product__title{
    min-height: 100px !important;
    line-height: 1.3 !important;
    overflow: hidden;
}





/* ==========================
   DESTACADOS POR MARCA CARRUSEL
========================== */

.cdm-brand-carousel{
    position: relative;
}

.cdm-brand-viewport{
    overflow: hidden;
}

.cdm-brand-products{
    display:flex !important;
    gap:20px !important;
    flex-wrap:nowrap !important;

    transition:transform .4s ease;
    will-change:transform;
}

/* tarjetas */

.cdm-brand-products .cdm-pcard{
    flex: 0 0 220px !important;
}

/* flechas */

.cdm-brand-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);

    width:44px;
    height:44px;

    border:none;
    border-radius:50%;

    background:#5b3df5;
    color:#fff;

    cursor:pointer;
    z-index:20;
}

.cdm-brand-btn.prev{
    left:-22px;
}

.cdm-brand-btn.next{
    right:-22px;
}

.cdm-brand-btn:disabled{
    opacity:.35;
    cursor:not-allowed;
}

/* móvil */

@media(max-width:768px){

    .cdm-brand-btn{
        display:none;
    }

    .cdm-brand-viewport{
        overflow-x:auto;
        overflow-y:hidden;

        scroll-snap-type:x mandatory;

        -webkit-overflow-scrolling:touch;
    }

    .cdm-brand-viewport::-webkit-scrollbar{
        display:none;
    }

    .cdm-brand-products{
        transform:none !important;
    }

    .cdm-brand-products .cdm-pcard{
        scroll-snap-align:start;

        flex:0 0 200px !important;
    }
}




/* ==========================================
   SOMBRA MÁS ELEGANTE PARA TARJETAS DEL CARRUSEL
========================================== */

.cdm-pcard{
    box-shadow:
        0 0 0 1px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.10) !important;

    transition: transform .25s ease, box-shadow .25s ease;
}

.cdm-pcard:hover{
    transform: translateY(-4px);

    box-shadow:
        0 0 0 1px rgba(0,0,0,.06),
        0 16px 36px rgba(0,0,0,.16) !important;
}


.cdm-brand-viewport{
    padding: 12px 6px;
}



/* ==========================================
   SOMBRA TARJETAS - MÁS VENDIDOS
========================================== */

.home-best-sellers-card ul.products li.product{
    box-shadow:
        0 0 0 1px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.10) !important;

    transition: transform .25s ease, box-shadow .25s ease;
}

.home-best-sellers-card ul.products li.product:hover{
    transform: translateY(-4px);

    box-shadow:
        0 0 0 1px rgba(0,0,0,.06),
        0 16px 36px rgba(0,0,0,.16) !important;
}

.home-best-sellers-card .cdm-carousel{
    padding: 20px 6px;
}




/* ==========================================
   TÍTULOS PRINCIPALES DE LA HOME
========================================== */

.home-best-sellers-card h2,
.cdm-tabs-head h2{
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #111 !important;
    text-align: center !important;
    margin: 0 0 24px !important;
    line-height: 1.2;
    letter-spacing: -.3px;
}







/* ==========================================
   BANNERS HOME - CARRUSEL SOLO EN MÓVIL
========================================== */

@media (max-width:768px){

  body.home .cdm-home-top__right{

    width:calc(100% - 30px) !important;
    margin:25px auto 0 !important;

    display:flex !important;
    flex-direction:row !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;

    scrollbar-width:none;

    gap:16px !important;
    padding:0 15px !important;

    box-sizing:border-box;
  }


  body.home .cdm-home-top__right::-webkit-scrollbar{
      display:none;
  }


  body.home .cdm-banner{

      flex:0 0 calc(100% - 30px);
      min-width:calc(100% - 30px);

      height:300px !important;

      scroll-snap-align:center;

      border-radius:18px;
      overflow:hidden;
  }


  body.home .cdm-banner img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block;
  }


  body.home .cdm-banner-overlay{
      padding:22px;
  }


  body.home .cdm-banner-overlay h3{
      font-size:20px;
      line-height:1.2;
  }


  body.home .cdm-banner-overlay p{
      font-size:14px;
      margin:10px 0 14px;
  }


  body.home .cdm-banner-btn{
      padding:10px 18px;
      font-size:14px;
      white-space:nowrap;
  }

}



.home-best-sellers-card{
    overflow:hidden !important;
}


/* Evitar zoom al tocar rápidamente las flechas del carrusel */
.carousel-btn,
.cdm-brand-btn,
.cdm-cats-arrow,
.cdm-prev,
.cdm-next{

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    user-select: none;
    -webkit-user-select: none;
}



.cdm-hero-arrow{
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    user-select:none;
    -webkit-user-select:none;
}




/* Ocultar flechas de categorías en móvil */
@media (max-width:768px){

    .cdm-cats-arrow{
        display:none !important;
    }

    .cdm-cats-track{
        padding:6px 10px 10px !important;
    }

}



@media (max-width:768px){

    #cdmTabsBrands .cdm-tabs-head{
        margin-bottom:12px;
    }

    #cdmTabsBrands .cdm-tabs-nav{
        width:fit-content !important;
        max-width:fit-content !important;
        padding:4px !important;
        margin:0 auto 15px !important;
    }

    #cdmTabsBrands .cdm-tab{
        padding:8px 14px !important;
        font-size:13px !important;
    }

}


@media (max-width: 768px) {

  .rastreo-cargo-texto p {
    display: none;
  }

  .rastreo-cargo-texto {
    text-align: center;
    padding: 20px 15px;
  }

  .rastreo-cargo-texto h2 {
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.3;
  }

  .btn-cargo {
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

}




@media (max-width: 768px) {

    .footer-col {
        text-align: center;
    }

    .footer-item {
        justify-content: center;
        text-align: center;
    }

    .footer-item span:last-child {
        text-align: center;
    }

    .footer-list {
        padding: 0;
        list-style: none;
        text-align: center;
    }

    .footer-list li {
        text-align: center;
    }

    .footer-social-icons {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

}










@media (max-width: 768px) {

    .cdm-single-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 25px;
        align-items: center;
    }


    /* Imagen arriba */
    .cdm-single-gallery {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        display: flex;
        justify-content: center;
    }


    .cdm-single-gallery .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }


    .cdm-single-gallery img.wp-post-image {
        width: 100% !important;
        height: auto !important;
        max-width: 450px;
        margin: auto;
        display: block;
    }


    /* Información abajo */
    .cdm-single-layout .summary {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }


    .cdm-single-summary-card {
        width: 100% !important;
        box-sizing: border-box;
    }


    /* Evita que WooCommerce saque la imagen gigante del zoom */
    .cdm-single-gallery .zoomImg {
        display: none !important;
    }

}







@media (max-width:768px){

.cdm-mobile-menu{
    position:fixed;
    top:0;
    left:0;
    width:280px;
    height:100vh;
    background:#fff;
    z-index:9999;
    transform:translateX(-100%);
    transition:.3s ease;
    overflow-y:auto;
}


.cdm-mobile-menu.is-open{
    transform:translateX(0);
}


.cdm-mobile-links{
    list-style:none;
    padding:20px;
    margin:0;
}


.cdm-mobile-links li{
    border-bottom:1px solid #eee;
}


.cdm-mobile-links a{
    display:block;
    padding:15px 5px;
    color:#111;
    text-decoration:none;
    font-size:16px;
}


.mobile-divider{
    height:15px;
    border:0 !important;
}


.cdm-menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:9998;
    display:none;
}


.cdm-menu-overlay.is-open{
    display:block;
}

}



@media (max-width: 768px) {

    /* Grid de productos en tienda y categorías */
     .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }


    /* Cada producto */
    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }


    /* Imagen */
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }


    /* Título */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
    }


    /* Precio */
    .woocommerce ul.products li.product .price {
        text-align: center;
        font-size: 15px;
    }


    /* Botón */
    .woocommerce ul.products li.product .button {
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 10px 5px;
    }

}



@media (max-width: 768px) {

    .cdm-banner-overlay {
        left: 5px !important;
        right: auto !important;
        width: calc(100% - 30px);
        text-align: left;
    }

    .cdm-banner-overlay h3,
    .cdm-banner-overlay p {
        text-align: left;
    }

    .cdm-banner-btn {
        margin-left: 0;
    }

}



/* Imágenes diferentes para teléfono */
@media (max-width:768px){

    body.home .cdm-banner--tintas img{
        content:url("images/tintas-mobile.png");
    }

    body.home .cdm-banner--heads img{
        content:url("images/cabezales-mobile.png");
    }

    body.home .cdm-banner--service img{
        content:url("images/servicio-mobile.png");
    }

}



#cdmMobileMenu{

    background: rgba(255,255,255,.90);

    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);

    border-left: 1px solid rgba(255,255,255,.45);

    box-shadow:
        -10px 0 28px rgba(0,0,0,.10),
        inset 0 1px rgba(255,255,255,.35);

}





#cdmMobileMenu .menu > li:nth-last-child(3){
    border-top: 2px solid rgba(91,43,216,.45) !important;
    margin-top: 14px;
    padding-top: 14px;
}



.cdm-mobile-logo{
    display:flex;
    justify-content:center;
    align-items:center;

     margin:10px 0 6px; /* arriba | abajo */
    padding:0; 
}

.cdm-mobile-links{
    margin-top:0 !important;
    padding-top:0 !important;
}

.cdm-mobile-logo img{
    width:50px;   /* ajusta a tu gusto */
    height:auto;
    display:block;
}



@media (max-width:768px){

    .woocommerce-account .dgwt-wcas-search-wrapp,
    .woocommerce-account .dgwt-wcas-search-form{
        display:none !important;
    }

}

@media (max-width:768px){

    .woocommerce-account #cdmMobileSearchbar{
        display:none !important;
    }

}


@media (max-width:768px){

    .header-account{
        margin-left:35px !important;
    }

}




/* Solo Más vendidos */
.home-best-sellers .producto-card h3{
    min-height: 52px;
}



