@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* YGE: Fuente global Inter para toda la web (anula Tailwind ui-sans-serif / system-ui) */
:root {
    --yge-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html,
#html-body,
body,
.page-wrapper,
.page-main,
.font-sans,
[class*="font-sans"],
button,
input,
select,
textarea,
optgroup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* YGE: overflow-x: clip previene scroll horizontal sin romper position: sticky */
html,
#html-body,
body,
.page-wrapper {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* YGE: anula el margin-block del tema en .page-main; el espacio se controla por bloque. */
.page-main {
    margin-block: 0 !important;
}

#wachat {
    --wa-green: #185601;
    --wa-green-dk: #0f3d00;
    --wa-text: #ffffff;
    --wa-offset-x: 24px;
    --wa-offset-y: 24px;
    --wa-icon-size: 50px;
    --wa-hex-width: 64px;
    /* YGE: en % (no px), así el corte se mantiene proporcional a cualquier alto. */
    --wa-v-cut: 25%;
    --wa-border: #ffffff;
    --wa-border-blur: 0.5px;

    --wa-icon-url: url("/media/wysiwyg/wsp-logo.png");

    --wa-hex-clip: polygon(
        0 var(--wa-v-cut),
        calc(100% - var(--wa-hex-width)) var(--wa-v-cut),
        calc(100% - (var(--wa-hex-width) / 2)) 0,
        100% var(--wa-v-cut),
        100% calc(100% - var(--wa-v-cut)),
        calc(100% - (var(--wa-hex-width) / 2)) 100%,
        calc(100% - var(--wa-hex-width)) calc(100% - var(--wa-v-cut)),
        0 calc(100% - var(--wa-v-cut))
    );

    --wa-outline:
        drop-shadow(0 0 var(--wa-border-blur) var(--wa-border))
        drop-shadow(0 0 var(--wa-border-blur) var(--wa-border))
        drop-shadow(0 0 var(--wa-border-blur) var(--wa-border))
        drop-shadow(0 0 var(--wa-border-blur) var(--wa-border))
        drop-shadow(0 0 var(--wa-border-blur) var(--wa-border))
        drop-shadow(0 0 var(--wa-border-blur) var(--wa-border));
}

#wachat {
    position: relative !important;
    z-index: 200 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: none !important;
}
#wachat * { box-sizing: border-box; }

#wachat a img { display: none !important; }

#wachat a {
    position: fixed !important;
    right: var(--wa-offset-x) !important;
    bottom: var(--wa-offset-y) !important;
    left: auto !important;
    top: auto !important;
    z-index: 9999 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-align: left !important;
    color: transparent !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 64px !important;
    max-height: none !important;
    padding: 0 calc(var(--wa-hex-width) + 16px) 0 16px !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-decoration: none !important;
    line-height: 1 !important;

    filter: var(--wa-outline) drop-shadow(0 2px 4px rgba(0, 0, 0, .22)) !important;
    transition: transform .18s ease, filter .18s ease !important;
}
#wachat a:hover {
    transform: translateY(-2px) !important;
    filter: var(--wa-outline) drop-shadow(0 4px 7px rgba(0, 0, 0, .28)) !important;
}

#wachat a::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background:
        var(--wa-icon-url) right calc((var(--wa-hex-width) - var(--wa-icon-size)) / 2) center / var(--wa-icon-size) var(--wa-icon-size) no-repeat,
        var(--wa-green) !important;
    transition: background-color .18s ease !important;
    clip-path: var(--wa-hex-clip) !important;
}
#wachat a:hover::before { background-color: var(--wa-green-dk) !important; }

#wachat a::after {
    content: "¡Cotiza aquí!" !important;
    position: relative !important;
    z-index: 1 !important;
    color: var(--wa-text) !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

#wachat .btn-mobile { display: none !important; }
@media (max-width: 768px) {
    #wachat .btn-web { display: none !important; }
    #wachat .btn-mobile { display: inline-flex !important; }
    #wachat a {
        --wa-offset-x: 16px;
        --wa-offset-y: 16px;
        --wa-icon-size: 69px;
        --wa-hex-width: 70px;
        min-height: 79px !important;
        padding: 0 calc(var(--wa-hex-width) + 10px) 0 12px !important;
        max-width: calc(60vw - (2 * var(--wa-offset-x))) !important;
        overflow: hidden !important;
    }
    #wachat a::after {
        font-size: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #wachat a { transition: none !important; }
    #wachat a:hover { transform: none !important; }
}

/* YGE 2026-09-28: en el carrito, en tablet/mobile el hexágono de WhatsApp con el texto
   "¡Cotiza aquí!" tapaba el resumen del pedido (botón "Ver más productos" en ~768px, el
   monto del IGV en ~390px). Se reduce a solo el ícono hexagonal (sin texto) SOLO en esta
   página y solo en ese rango — el resto del sitio no cambia. Al forzar el ancho del <a> a
   exactamente --wa-hex-width, --wa-hex-clip (que resta ese mismo valor del 100%) colapsa la
   parte "rectangular" del hexágono a 0, dejando solo la punta = un hexágono independiente. */
@media (max-width: 768px) {
    body.checkout-cart-index #wachat a {
        padding: 0 !important;
        width: var(--wa-hex-width) !important;
        min-width: var(--wa-hex-width) !important;
        max-width: var(--wa-hex-width) !important;
    }
    body.checkout-cart-index #wachat a::after {
        content: "" !important;
        display: none !important;
    }
}


/* Minicart */
#cart-drawer .btn.btn-primary {
    background-color: #FF5901;
}

#cart-drawer .btn.btn-secondary {
    border-color: #FF5901;
    color: #FF5901;
}


:root {
  --yge-green: #185601;
  --yge-orange: #FF5901;
  --yge-gray: #d7d4d7;
  --yge-border-light: #e5e5e5;
}

header.page-header,
.page-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
}

#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--yge-border-light, #e5e5e5) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  width: 100% !important;
}

#header::before,
#header::after {
  display: none !important;
  content: none !important;
}

#header .container > div:has(> a[aria-label="Go to Home page"]) img,
#header .container a[aria-label="Go to Home page"] img {
  max-width: 145px !important;
  width: auto !important;
  max-height: 48px !important;
  height: auto !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  display: block !important;
}

#header .container a[aria-label="Go to Home page"],
#header .container > div:has(> a[aria-label="Go to Home page"]) > a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#header .navigation a.level-0 {
  color: var(--yge-green);
  font-weight: 600;
  font-size: 14px;
}

#header .navigation li.level-0:hover,
#header .navigation li.level-0[data-active] {
  border-color: var(--yge-orange) !important;
}

#header .navigation a.level-0:hover {
  color: var(--yge-orange);
}

#header .navigation button.group svg {
  color: var(--yge-green);
}

#header .navigation li.level-0:not(:has(button)) a.level-0 {
  color: var(--yge-green);
  font-weight: 700;
}

#header .navigation ul[id^="category-node-"] {
  border-top: 3px solid var(--yge-orange);
  border-radius: 6px;
}

#header .navigation ul[id^="category-node-"] li:not(:last-child) > a {
  border-bottom: 1px solid var(--yge-border-light);
}

#header .navigation ul[id^="category-node-"] a {
  color: var(--yge-green);
  font-weight: 700;
  font-size: 13.5px;
}

#header .navigation ul[id^="category-node-"] a:hover {
  color: var(--yge-orange);
  background-color: #f5f5f5;
}

/* Estado activo/abierto: texto e ícono en naranja, igual que en hover */
#header .navigation li.level-0[data-active] > span > a.level-0 {
  color: var(--yge-orange);
}

#header .navigation li.level-0[data-active] > span > a.level-0 .yge-nav-icon-wrap::before,
#header .navigation li.level-0[data-active] > span > a.level-0 .yge-nav-icon-wrap::after {
  background-color: var(--yge-orange);
}

#header .navigation button.group[aria-expanded="true"] svg {
  color: var(--yge-orange);
}

#header .navigation a.level-0 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#header .navigation a.level-0 .yge-nav-icon-wrap {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 30px;
  min-width: 26px;
  min-height: 30px;
  flex: 0 0 auto;
}

#header .navigation a.level-0 .yge-nav-icon-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yge-gray);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -2;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

#header .navigation a.level-0 .yge-nav-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

#header .navigation a.level-0:hover .yge-nav-icon-wrap::before,
#header .navigation a.level-0:hover .yge-nav-icon-wrap::after {
  background-color: var(--yge-orange);
}

#header .navigation a.level-0 img.yge-nav-icon,
img.yge-nav-icon {
  max-width: 15px !important;
  max-height: 15px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* YGE: 2 imágenes apiladas, togglean por opacity (antes JS cambiaba el src). */
.yge-nav-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease;
}

.yge-nav-icon--hover {
  opacity: 0;
}

a.level-0:hover .yge-nav-icon--normal,
a.level-0.yge-nav-active .yge-nav-icon--normal,
li[data-level="0"].yge-accordion-open > button .yge-nav-icon--normal {
  opacity: 0;
}

a.level-0:hover .yge-nav-icon--hover,
a.level-0.yge-nav-active .yge-nav-icon--hover,
li[data-level="0"].yge-accordion-open > button .yge-nav-icon--hover {
  opacity: 1;
}

/* #compare-link: no se renderiza (default false en header.phtml) */

#compare-link,
#customer-menu,
#menu-cart-icon {
  color: var(--yge-green);
  position: relative;
  z-index: 0;
  width: 50px !important;
  height: 52px !important;
  min-width: 58px !important;
  min-height: 52px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  -webkit-tap-highlight-color: transparent;
}

#compare-link:hover,
#customer-menu:hover,
#menu-cart-icon:hover {
  background-color: transparent !important;
  color: #ffffff;
}

#compare-link::before,
#customer-menu::before,
#menu-cart-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yge-gray);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -2;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

#compare-link::after,
#customer-menu::after,
#menu-cart-icon::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
  pointer-events: none;
  transition: background-color 0.2s ease;
}

#compare-link:hover::before,
#customer-menu:hover::before,
#menu-cart-icon:hover::before,
#compare-link:hover::after,
#customer-menu:hover::after,
#menu-cart-icon:hover::after {
  background-color: var(--yge-green) !important;
}

#header .bg-primary.text-on-primary {
  background-color: var(--yge-orange) !important;
}

/* Badges en la esquina superior derecha del hexágono (Favoritos y Carrito) */
#compare-link > span[x-text="itemCount"],
#menu-cart-icon > span[x-text="summaryCount"] {
  position: absolute !important;
  top: -2px !important;
  right: -4px !important;
  background-color: var(--yge-orange, #ff5901) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  z-index: 2 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

#compare-link > span[x-text="itemCount"].yge-badge-hidden {
  display: none !important;
}

.yge-account-label,
.yge-cart-label {
  display: none;
}

#compare-link:focus,
#customer-menu:focus,
#menu-cart-icon:focus {
  outline: none;
}

#compare-link:focus-visible::after,
#customer-menu:focus-visible::after,
#menu-cart-icon:focus-visible::after {
  outline: 2px solid var(--yge-orange);
  outline-offset: 2px;
}


@media (min-width: 1024px) {
  nav[aria-labelledby="customer-menu"] {
    display: none !important;
  }

  /* Separación clara entre el ícono de favoritos y el segmento de cuenta */
  #compare-link {
    margin-right: 18px !important;
  }

  /* Segmento unificado de usuario: ícono + bienvenida */
  .yge-customer-segment {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 18px !important;
  }

  .yge-account-label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    font-size: 12px !important;
    margin: 0 0 0 8px !important;
    white-space: nowrap !important;
  }

  .yge-account-label__greeting {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--yge-green, #185601) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
  }

  .yge-account-label__greeting-link {
    color: var(--yge-green, #185601) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: color 0.15s ease;
  }

  .yge-account-label__greeting-link:hover {
    color: var(--yge-orange, #ff5901) !important;
  }

  .yge-account-label__links {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    line-height: 1.2 !important;
  }

  .yge-account-label__divider {
    color: #9ca3af !important;
    margin: 0 2px !important;
  }

  .yge-account-label__links a {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.15s ease;
  }

  .yge-account-label__links a:hover {
    color: var(--yge-orange, #ff5901) !important;
    text-decoration: underline !important;
  }

  .yge-cart-label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    font-size: 12px !important;
    margin: 0 0 0 8px !important;
    white-space: nowrap !important;
  }

  .yge-cart-label__price {
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--yge-green, #185601) !important;
  }

  .yge-cart-label__text {
    font-weight: 500 !important;
    font-size: 11px !important;
    color: #555555 !important;
  }
}

@media (min-width: 1024px) {
  #header .container {
    flex-wrap: wrap !important;
    align-items: center;
    row-gap: 0.75rem;
  }

  #header .yge-logo-wrapper,
  #header .container > div:has(> a[aria-label="Go to Home page"]) {
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  /* Ocultar botón de búsqueda por ícono en desktop (el input ya está expandido) */
  #menu-search-icon,
  #header #menu-search-icon {
    display: none !important;
  }

  #search-content {
    order: 2 !important;
    flex: 1 1 420px;
    max-width: 760px;
    margin: 0 1rem 0 0.5rem;
    position: relative !important;
    z-index: 200 !important;
    display: block !important;
    border: 1px solid var(--yge-border-light);
    border-radius: 0;
    box-shadow: none;
  }

  #search-content .form-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
  }

  #search-content .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }

  #search-content #search_mini_form {
    display: flex;
  }

  #search-content .form-input {
    border: none;
    padding: 0.6rem 0.9rem;
    font-size: 14px;
    width: 100%;
  }

  #search-content .form-input:focus {
    outline: none;
    box-shadow: none;
  }

  #search-content kbd {
    display: none;
  }

  #search-content button[type="submit"] {
    background-color: var(--yge-green);
    border-color: var(--yge-green);
    border-radius: 0;
  }

  #search-content button[type="submit"]:hover {
    background-color: var(--yge-orange);
    border-color: var(--yge-orange);
  }

  #header .yge-header-actions,
  #header .container > .flex.items-center:has(#customer-menu),
  #header .container > .flex.items-center:has(#menu-cart-icon) {
    order: 3 !important;
    flex: 0 0 auto !important;
    z-index: 25;
  }

  #header .navigation {
    order: 4 !important;
    flex: 1 1 100%;
    width: 100%;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--yge-border-light);
    align-items: center;
    justify-content: space-between;
  }

  #header .navigation ul.flex {
    flex-wrap: nowrap;
    gap: 1.25rem;
    justify-content: flex-start;
  }

  #header .navigation a.level-0 {
    font-size: 13.5px;
    white-space: nowrap;
  }
}

/* YGE: fix — el CTA "Conoce nuestras marcas" se superponía a los últimos
   items del menú (Bujías/Aditivos) entre ~1024px y ~1290px: el nav (nowrap,
   sin overflow recortado) no entraba en una sola línea con el tamaño
   desktop normal, y su texto desbordado quedaba tapado por el CTA (pinta
   encima por ir después en el DOM, mismo stacking context). Se compactan
   nav + CTA solo en esa franja hasta que ambos entran sin solaparse. */
@media (min-width: 1024px) and (max-width: 1310px) {
  #header .navigation ul.flex {
    gap: 0.4rem;
  }

  #header .navigation a.level-0 {
    font-size: 11px;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
  }

  #header .navigation a.level-0 .yge-nav-icon-wrap {
    margin-right: 0.2rem;
  }

  .yge-cta-marcas__inner {
    padding: 0.4rem 0.7rem;
    font-size: 0 !important;
  }

  /* Texto corto en esta franja angosta — "Conoce nuestras marcas" no entra
     ni comprimiendo el resto; el texto real queda para lectores de pantalla. */
  .yge-cta-marcas__inner::after {
    content: 'Marcas';
    font-size: 11px;
    font-weight: 700;
  }
}

.yge-cta-marcas {
  --yge-cta-cut: 10px;

  position: relative;
  z-index: 0;
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.yge-cta-marcas::before {
  content: '';
  position: absolute;
  inset: -3px;
  background-color: #FF9F52;
  -webkit-clip-path: polygon(
    var(--yge-cta-cut) 0,
    calc(100% - var(--yge-cta-cut)) 0,
    100% var(--yge-cta-cut),
    100% calc(100% - var(--yge-cta-cut)),
    calc(100% - var(--yge-cta-cut)) 100%,
    var(--yge-cta-cut) 100%,
    0 calc(100% - var(--yge-cta-cut)),
    0 var(--yge-cta-cut)
  );
  clip-path: polygon(
    var(--yge-cta-cut) 0,
    calc(100% - var(--yge-cta-cut)) 0,
    100% var(--yge-cta-cut),
    100% calc(100% - var(--yge-cta-cut)),
    calc(100% - var(--yge-cta-cut)) 100%,
    var(--yge-cta-cut) 100%,
    0 calc(100% - var(--yge-cta-cut)),
    0 var(--yge-cta-cut)
  );
  filter: blur(4px);
  z-index: -1;
  pointer-events: none;
  transform-origin: center;
  animation: yge-cta-glow 1.8s ease-out infinite;
}

.yge-cta-marcas__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yge-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 0.55rem 1.6rem;
  white-space: nowrap;
  transform-origin: center;
  clip-path: polygon(
    var(--yge-cta-cut) 0,
    calc(100% - var(--yge-cta-cut)) 0,
    100% var(--yge-cta-cut),
    100% calc(100% - var(--yge-cta-cut)),
    calc(100% - var(--yge-cta-cut)) 100%,
    var(--yge-cta-cut) 100%,
    0 calc(100% - var(--yge-cta-cut)),
    0 var(--yge-cta-cut)
  );
  transition: background-color 0.2s ease;
  animation: yge-cta-breathe 1.6s ease-in-out infinite;
}

.yge-cta-marcas:hover .yge-cta-marcas__inner {
  background-color: #e04f00;
  animation-play-state: paused;
}

.yge-cta-marcas--mobile {
  display: none;
}

@keyframes yge-cta-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

@keyframes yge-cta-glow {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.3); }
}

@media (max-width: 1024px) {
  #search-content {
    max-width: 260px;
  }

  .yge-cta-marcas__inner {
    padding: 0.5rem 1.3rem;
    font-size: 12px;
  }
}

@media (max-width: 1023px) {
  .yge-cta-marcas {
    display: none;
  }

  #header .container {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
  }


  #header .yge-logo-wrapper,
  #header .container > div:has(> a[aria-label="Go to Home page"]) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    justify-content: flex-start !important;
    align-self: center !important;
    width: auto !important;
    max-width: 48% !important;
    min-width: 0 !important;
  }

  #header .yge-logo-wrapper > a,
  #header .container > div:has(> a[aria-label="Go to Home page"]) > a {
    justify-content: flex-start !important;
  }

  .yge-cta-marcas--mobile {
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    min-width: 0;
    max-width: 55%;
    overflow: hidden;
  }

  [x-data="initMobileMenu"] {
    grid-column: 1;
    grid-row: 2;
  }

  [x-data="initMobileMenu"] > button svg {
    stroke-width: 2.5;
  }

  /* Sidebar más angosto (por defecto ocupa el 100% del ancho) */
  [x-data="initMobileMenu"] dialog {
    width: 380px !important;
    max-width: 85vw !important;
  }

  /* ===== Drawer: header verde con logo + "Cerrar" ===== */
  .yge-drawer-header {
    background-color: var(--yge-green);
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
      url('/media/wysiwyg/trama.png');
    background-repeat: repeat;
    border-bottom: none !important;
  }

  .yge-drawer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 36px 24px;
  }

  .yge-drawer-logo img {
    max-width: 150px;
    height: auto;
  }

  .yge-drawer-header .flex.justify-between {
    justify-content: flex-start !important;
    padding-bottom: 52px !important;
  }

  .yge-drawer-header .flex.justify-between > div:empty {
    display: none;
  }

  .yge-drawer-close-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    order: -1;
  }

  .yge-drawer-close-btn svg {
    background-color: var(--yge-orange);
    border-radius: 999px;
    padding: 4px;
    box-sizing: content-box;
    color: #ffffff;
  }

  .yge-drawer-close-text {
    font-weight: 600;
    font-size: 14px;
  }

  /* Corte trapezoidal verde -> blanco: margin-top negativo + clip-path recorta esquinas. */
  [x-data="initMobileMenu"] dialog > div.grow {
    --yge-notch-inset: 24px;
    --yge-notch-depth: 26px;
    clip-path: polygon(
      var(--yge-notch-inset) 0,
      calc(100% - var(--yge-notch-inset)) 0,
      100% var(--yge-notch-depth),
      100% 100%,
      0 100%,
      0 var(--yge-notch-depth)
    );
    margin-top: calc(var(--yge-notch-depth) * -1);
    padding-top: var(--yge-notch-depth);
    position: relative;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
  }

  /* El listado no crece; el bloque gris ocupa el resto y llega hasta abajo. */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] {
    flex: 0 0 auto;
  }

  /* Última fila real (sin "Otros"): sin borde inferior, con aire antes del corte. */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] > ul > li:last-child,
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] > ul > li:last-child > button,
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] > ul > li:last-child > a {
    border-bottom: none !important;
  }

  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] > ul > li:last-child {
    padding-bottom: 18px;
  }

  /* Corte trapezoidal blanco -> gris: mismo truco, más pronunciado. */
  .yge-drawer-quicklinks {
    --yge-notch-inset: 24px;
    --yge-notch-depth: 18px;
    clip-path: polygon(
      var(--yge-notch-inset) 0,
      calc(100% - var(--yge-notch-inset)) 0,
      100% var(--yge-notch-depth),
      100% 100%,
      0 100%,
      0 var(--yge-notch-depth)
    );
    margin-top: calc(var(--yge-notch-depth) * -1);
    padding-top: calc(var(--yge-notch-depth) + 20px);
    position: relative;
    background-color: #ececec;
    display: flex;
    flex: 1 0 auto;
  }

  /* ===== Drawer: íconos de categoría con anillo hexagonal (mismo patrón que desktop) ===== */
  .yge-nav-icon-wrap--mobile {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 12px;
    flex: 0 0 auto;
  }

  .yge-nav-icon-wrap--mobile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--yge-gray);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -2;
    pointer-events: none;
  }

  .yge-nav-icon-wrap--mobile::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
    pointer-events: none;
  }

  .yge-nav-icon--mobile {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }

  /* ===== Drawer: quitar el recuadro del botón chevron (>) de cada categoría ===== */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"] > button > span.btn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  /* Drawer: acordeón inline (initMobileSubMenu en Alpine) en vez de overlay a pantalla completa. */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"] > ul {
    display: block !important;
    position: relative !important;
    z-index: 200 !important;
    inset: auto !important;
    z-index: auto !important;
    overflow: hidden !important;
    background-color: #f7f7f7 !important;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }

  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"].yge-accordion-open > ul {
    opacity: 1;
  }

  /* YGE: la fila "volver" ya no existe en el template. */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="1"] > a {
    padding-left: 48px;
    font-weight: 600;
    color: var(--yge-green);
  }

  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="1"] > a:hover {
    color: var(--yge-orange);
  }

  /* Chevron: apunta hacia abajo cerrado, hacia arriba abierto */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"] > button > span.btn svg {
    transition: transform 0.2s ease;
    transform: rotate(90deg);
  }

  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"].yge-accordion-open > button > span.btn svg {
    transform: rotate(-90deg);
  }

  /* Estado expandido: texto, chevron y anillo hexagonal en naranja */
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"].yge-accordion-open > button {
    color: var(--yge-orange);
  }

  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"].yge-accordion-open > button .yge-nav-icon-wrap--mobile::before,
  [x-data="initMobileMenu"] nav[aria-label="Mobile Main Menu"] li[data-level="0"].yge-accordion-open > button .yge-nav-icon-wrap--mobile::after {
    background-color: var(--yge-orange) !important;
  }

  /* ===== Drawer: sección Favoritos / Carrito / Mi Cuenta ===== */
  .yge-drawer-quicklinks {
    padding-right: 24px;
    padding-bottom: 22px;
    padding-left: 24px;
    flex-direction: column;
    gap: 18px;
  }

  .yge-drawer-quicklink {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--yge-green);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }

  .yge-drawer-quicklink__hex {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    background-color: var(--yge-green);
    color: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-color 0.2s ease;
  }

  .yge-drawer-quicklink:hover .yge-drawer-quicklink__hex {
    background-color: var(--yge-orange);
  }

  .yge-drawer-quicklink__hex svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
    stroke: currentColor;
  }

  /* YGE: Íconos SVG/IMG con dimensiones y color blanco forzado */
  .yge-quicklink-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px !important;
    height: 23px !important;
    max-width: 20px !important;
    max-height: 23px !important;
    object-fit: contain !important;
    display: block !important;
    filter: brightness(0) invert(1) !important;
    transition: opacity 0.15s ease;
  }

  .yge-quicklink-img--hover {
    opacity: 0;
  }

  .yge-drawer-quicklink:hover .yge-quicklink-img--normal {
    opacity: 0;
  }

  .yge-drawer-quicklink:hover .yge-quicklink-img--hover {
    opacity: 1;
  }

  .yge-drawer-quicklink__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: var(--yge-orange);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  /* #menu-search-icon: oculto con lg:hidden en header.phtml */

  #search-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    max-width: none;
    margin: 0;
    position: relative !important;
    z-index: 200 !important;
    display: flex !important;
    align-items: stretch;
    border: 1px solid var(--yge-border-light);
    box-shadow: none;
  }

  #search-content .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
  }

  #search-content search {
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: none;
    display: flex !important;
    align-items: stretch;
  }

  #search-content #search_mini_form {
    flex: 1 1 auto !important;
    min-width: 0;
    display: flex !important;
    max-width: none !important;
  }

  #search-content .input-group.grow {
    flex: 1 1 auto !important;
    min-width: 0;
  }

  #search-content .form-input {
    border: none;
    padding: 0.5rem 0.7rem;
    font-size: 14px;
    width: 100%;
    min-width: 0;
  }

  #search-content .form-input::placeholder {
    color: #8a8a8a;
    opacity: 1;
  }

  #search-content kbd {
    display: none;
  }

  #search-content button[type="submit"] {
    background-color: var(--yge-green);
    border-color: var(--yge-green);
    border-radius: 0;
  }

  #header .yge-header-actions,
  #header .container > .flex.items-center:not(.yge-logo-wrapper):not(:has(a[aria-label="Go to Home page"])) {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  .navigation {
    display: none !important;
  }

  #compare-link,
  [x-data="initCustomerMenu"] {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yge-cta-marcas__inner {
    transition: none;
    animation: none;
  }

  .yge-cta-marcas::before {
    animation: none;
    opacity: 0.35;
  }
}



/* ── Fondo blanco para toda la web ── */
body,
#maincontent,
.page-main,
.page-wrapper,
#html-body {
    background-color: #ffffff !important;
}

/* ── Reducir altura y centrar contenido del header ── */
#header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#header .container {
    padding-top: 8px !important;
    padding-bottom: 6px !important;
    min-height: auto !important;
    align-items: center !important;
}

/* Centrar verticalmente los bloques principales (logo, buscador, accesos rápidos) */
#header .container > div:not([x-data="initMobileMenu"]) {
    display: flex !important;
    align-items: center !important;
}

/* Ocultar menú hamburguesa móvil en pantallas desktop (>=1024px) */
@media (min-width: 1024px) {
    #header [x-data="initMobileMenu"],
    #header .lg\:hidden {
        display: none !important;
    }
}

/* Logo alineado a la izquierda con proporciones nativas */
#header .container a[aria-label="Go to Home page"] img,
#header .container > div:has(> a[aria-label="Go to Home page"]) img {
    max-width: 145px !important;
    width: auto !important;
    max-height: 48px !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    display: block !important;
}

#header .container a[aria-label="Go to Home page"],
#header .container > div:has(> a[aria-label="Go to Home page"]) > a {
    justify-content: flex-start !important;
}

#customer-menu svg,
#menu-cart-icon svg {
    color: var(--yge-green, #185601);
    transition: color 0.2s ease;
}

#customer-menu:hover svg,
#menu-cart-icon:hover svg {
    color: #ffffff !important;
}

.yge-action-icon {
    width: auto !important;
    height: auto !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Menú de categorías alineado a la izquierda con el logo */
.navigation {
    margin-top: 2px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    width: 100% !important;
    justify-content: space-between !important;
}

.navigation nav {
    width: 100% !important;
}

.navigation nav ul.flex {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    gap: 1.5rem !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

#header .navigation ul > li:first-child > span > a.level-0,
#header .navigation ul > li:first-child a.level-0 {
    padding-left: 0 !important;
}

/* Íconos rápidos de usuario/carrito centrados verticalmente */
#header .flex.items-center.gap-2,
#header .flex.items-center {
    align-items: center !important;
}

/* ── Barra de búsqueda unificada (Input + Botón verde pegados) ──
   YGE: solo desktop — sin @media pisaba el bloque mobile y forzaba scroll horizontal. */
@media (min-width: 1024px) {
    #header #search-content {
        position: relative !important;
    z-index: 200 !important;
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header #search-content > .container,
    #header #search-content .container {
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        max-width: none !important;
    }

    #header search,
    #header .minisearch {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
    }

    #header #search_mini_form {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        position: relative !important;
        width: 100% !important;
        max-width: 520px !important;
        margin: 0 !important;
    }

    #header #search_mini_form .input-group.relative.grow,
    #header #search_mini_form .input-group {
        position: relative !important;
        display: flex !important;
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    #header #search_mini_form input[type="search"],
    #header #search_mini_form input[type="text"],
    #header #search_mini_form .form-input {
        width: 100% !important;
        height: 42px !important;
        line-height: 42px !important;
        padding: 0 16px !important;
        border: 1px solid #d1d5db !important;
        border-right: none !important;
        border-radius: 4px 0 0 4px !important;
        background-color: #ffffff !important;
        font-size: 0.9rem !important;
        color: #374151 !important;
        box-sizing: border-box !important;
        outline: none !important;
    }

    #header #search_mini_form input::placeholder {
        color: #9ca3af !important;
        font-size: 0.9rem !important;
    }

    #header #search_mini_form kbd {
        display: none !important;
    }

    #header #search_mini_form button[type="submit"],
    #header #search_mini_form button.btn,
    #header #search_mini_form button {
        position: relative !important;
    z-index: 200 !important;
        width: 44px !important;
        height: 42px !important;
        min-width: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: var(--yge-green, #185601) !important;
        color: #ffffff !important;
        border: 1px solid var(--yge-green, #185601) !important;
        border-radius: 0 4px 4px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    #header #search_mini_form button svg {
        width: 20px !important;
        height: 23px !important;
        stroke: #ffffff !important;
        fill: none !important;
    }
}

/* ── Botones / Íconos del header (Favoritos, Cuenta, Carrito) ── */
/* YGE: compare.phtml ya no emite clases hidden/invisible, no hace falta pisarlas. */

#compare-link,
#customer-menu,
#menu-cart-icon {
    color: var(--yge-green, #185601);
    position: relative;
    z-index: 0;
    width: 50px !important;
    height: 52px !important;
    min-width: 58px !important;
    min-height: 52px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
}

#customer-menu,
#menu-cart-icon {
    margin: 0 !important;
}

#compare-link {
    margin: 0 14px 0 0 !important;
}

/* YGE: Proporci?n regular y tama?o id?ntico al hex?gono del logo YGE (Desktop >= 1024px) */
@media (min-width: 1024px) {
    #header #compare-link,
    #header #customer-menu,
    #header #menu-cart-icon,
    #compare-link,
    #customer-menu,
    #menu-cart-icon {
        width: 45px !important;
        min-width: 45px !important;
        max-width: 45px !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }
}

.yge-action-icon {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    object-fit: contain !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: opacity 0.15s ease;
}

/* YGE: 2 imágenes apiladas, togglean por opacity. */
.yge-action-icon--hover {
    opacity: 0;
}

#compare-link:hover .yge-action-icon--normal,
#customer-menu:hover .yge-action-icon--normal,
#menu-cart-icon:hover .yge-action-icon--normal {
    opacity: 0;
}

#compare-link:hover .yge-action-icon--hover,
#customer-menu:hover .yge-action-icon--hover,
#menu-cart-icon:hover .yge-action-icon--hover {
    opacity: 1;
}

/* ── Estilos específicos para la estructura HTML de header.html ── */
#header {
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
    background-color: transparent !important;
    border-bottom: 1px solid var(--yge-border-light, #e5e5e5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

/* ── Cortes Diagonales del Header ── */
/* YGE: ::after=verde sin recortar detrás, ::before=blanco recortado encima — donde no cubre se ve el verde. */
@media (min-width: 768px) {
    #header::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        background-color: #185601 !important;
        z-index: -2 !important;
        pointer-events: none !important;
    }

    #header::before {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        background-color: #ffffff !important;
        z-index: -1 !important;
        clip-path: polygon(
            32px 0,
            calc(100% - 32px) 0,
            100% 28px,
            100% 100%,
            0 100%,
            0 28px
        ) !important;
        pointer-events: none !important;
    }
}

/* ── Contenedores de Navegación y Desplegables en Z-Index Superior ── */
#header .container,
#header .navigation,
#header .navigation nav,
#header .navigation ul,
#header .navigation li {
    overflow: visible !important;
}

#header nav[aria-label="Main menu"] ul[id^="category-node-"],
#header .navigation ul.absolute,
#header .navigation li.level-0 > ul {
    position: absolute !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid var(--yge-border-light, #e5e5e5) !important;
    border-radius: 6px !important;
}

/* ── Categoría activa seleccionada en el Header Nav ── */
.navigation a.level-0.yge-nav-active,
.navigation a.level-0.yge-nav-active span {
    color: var(--yge-orange, #ff5901) !important;
    font-weight: 700 !important;
}

.navigation a.level-0.yge-nav-active .yge-nav-icon-wrap::before,
.navigation a.level-0.yge-nav-active .yge-nav-icon-wrap::after {
    background-color: var(--yge-orange, #ff5901) !important;
}

/* ── Migas de pan (Breadcrumbs Orange Bar) ── */
nav.breadcrumbs,
.breadcrumbs {
    position: relative !important;
    z-index: 1 !important;
    background-color: var(--yge-orange, #ff5901) !important;
    color: #ffffff !important;
    padding: 10px 0 !important;
    margin-bottom: 0px !important;
    box-shadow: 0 4px 12px rgba(255, 89, 1, 0.2) !important;
}

nav.breadcrumbs .container,
.breadcrumbs .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

nav.breadcrumbs ol.items,
.breadcrumbs ol.items {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

nav.breadcrumbs li.item,
.breadcrumbs li.item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

nav.breadcrumbs li.item a,
.breadcrumbs li.item a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: opacity 0.2s ease !important;
}

nav.breadcrumbs li.item a:hover,
.breadcrumbs li.item a:hover {
    opacity: 0.85 !important;
    text-decoration: underline !important;
}

nav.breadcrumbs li.item .separator,
.breadcrumbs li.item .separator {
    color: #ffffff !important;
    padding: 0 8px !important;
    opacity: 0.9 !important;
}

nav.breadcrumbs li.item span[aria-current="page"],
.breadcrumbs li.item span[aria-current="page"] {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Ocultar el nombre del producto en las migas de pan solo para Mobile */
@media (max-width: 767px) {
    body.catalog-product-view nav.breadcrumbs li.item.product,
    body.catalog-product-view .breadcrumbs li.item.product,
    body.catalog-product-view nav.breadcrumbs li.item:last-child:not(:first-child),
    body.catalog-product-view .breadcrumbs li.item:last-child:not(:first-child) {
        display: none !important;
    }

    /* Espaciado del título de producto en mobile respecto al header / breadcrumbs */
    body.catalog-product-view h1.page-title,
    body.catalog-product-view .page-title,
    body.catalog-product-view [data-ui-id="page-title-wrapper"],
    body.catalog-product-view .top-container > .container,
    body.catalog-product-view .breadcrumbs + .container {
        margin-top: 24px !important;
        padding-top: 8px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* Header y Breadcrumbs con 12px de margen lateral en mobile */
    #header .container,
    header .container,
    .header-top,
    .topbar .container,
    nav.breadcrumbs .container,
    .breadcrumbs .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Orden en Mobile: 1. Galería -> 2. Panel de Compra -> 3. Pestañas de Detalle */
    body.catalog-product-view section[aria-label='Product Info'],
    body.catalog-product-view .product-info-main > section {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    body.catalog-product-view .yge-product-media-col {
        display: contents !important;
    }

    body.catalog-product-view #gallery,
    body.catalog-product-view .product.media {
        order: 1 !important;
    }

    body.catalog-product-view .yge-product-info-col {
        order: 2 !important;
    }

    body.catalog-product-view .yge-product-tabs-card,
    body.catalog-product-view .product.info.detailed,
    body.catalog-product-view .product-info-details,
    body.catalog-product-view [data-tabs-container] {
        order: 3 !important;
        margin-top: 24px !important;
    }

    /* Márgenes laterales del contenido en Mobile (5px a los lados) */
    body.catalog-product-view .page-main,
    body.catalog-product-view #maincontent {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    body.catalog-product-view .columns .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    body.catalog-product-view section[aria-label='Product Info'],
    body.catalog-product-view .yge-product-info-col,
    body.catalog-product-view .yge-product-info-col .card,
    body.catalog-product-view .product-info-main .card {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Fila de SKU y Stock en una sola fila */
    body.catalog-product-view .yge-sku-stock-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }

    body.catalog-product-view #product-details,
    body.catalog-product-view #product-details .attribute-sku {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Fila de Acción: Añadir al carrito + Cantidad + Wishlist */
    body.catalog-product-view .yge-product-info-col .card > div.flex.items-center.gap-2.mt-4,
    body.catalog-product-view .product-info-main .card > div.flex.items-center.gap-2.mt-4 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        margin-top: 16px !important;
        padding: 0 !important;
    }

    /* Botón Añadir al Carrito con texto e ícono visible */
    body.catalog-product-view #product-addtocart-button {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        height: 44px !important;
        padding: 0 10px !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        gap: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #FF5900 !important;
        border: none !important;
        border-radius: 0 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }

    /* Stepper de Cantidad compacto */
    body.catalog-product-view .yge-qty-stepper {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }

    body.catalog-product-view .yge-qty-btn {
        width: 32px !important;
        height: 44px !important;
        background-color: #ffffff !important;
        border: 1.5px solid #d1d5db !important;
        border-radius: 0 !important;
        color: #374151 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    body.catalog-product-view input[name='qty'] {
        width: 36px !important;
        height: 44px !important;
        background-color: #195700 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        font-size: 15px !important;
        text-align: center !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Botón Wishlist Hexagonal visible a la derecha */
    body.catalog-product-view #add-to-wishlist,
    body.catalog-product-view [data-addto="wishlist"] {
        flex: 0 0 40px !important;
        width: 40px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Botón Cotización Mayorista */
    body.catalog-product-view .yge-wholesale-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 44px !important;
        background-color: #195700 !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        margin-top: 10px !important;
        border-radius: 0 !important;
        gap: 8px !important;
    }

    /* Pestañas de detalle (Card con borde 1px gris, tabs con 2 líneas y contenido negro) */
    body.catalog-product-view .yge-product-tabs-card {
        border: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: #ffffff !important;
        padding: 0 !important;
        margin-top: 24px !important;
        overflow: hidden !important;
    }

    body.catalog-product-view .yge-product-tabs {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        border-bottom: 1px solid #e5e7eb !important;
        background-color: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.catalog-product-view .yge-product-tab {
        flex: 1 1 0px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px 6px !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
        border: none !important;
        border-right: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        cursor: pointer !important;
        transition: background-color 0.15s ease, color 0.15s ease !important;
    }

    body.catalog-product-view .yge-product-tab:last-child {
        border-right: none !important;
    }

    body.catalog-product-view .yge-product-tab--active {
        background-color: #FF5900 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        border-color: #FF5900 !important;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%) !important;
    }

    body.catalog-product-view .yge-product-tab-panel {
        padding: 18px 14px !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    body.catalog-product-view .yge-product-tab-panel,
    body.catalog-product-view .yge-product-tab-panel * {
        color: #000000 !important;
    }

    body.catalog-product-view .yge-product-tab-panel p,
    body.catalog-product-view .yge-product-tab-panel li,
    body.catalog-product-view .yge-product-tab-panel span,
    body.catalog-product-view .yge-product-tab-panel div {
        color: #000000 !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

/* Bloque "Valoraciones y comentarios" Full Width (Mobile y Desktop) */
body.catalog-product-view .yge-reviews {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    left: 0 !important;
    right: 0 !important;
    background-color: #003900 !important;
    padding: 44px 10px 36px !important;
    margin-top: 40px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.catalog-product-view .yge-reviews__inner {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

body.catalog-product-view .yge-reviews-carousel-wrap {
    margin: 0 auto 20px !important;
    max-width: 1340px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.catalog-product-view .yge-reviews-carousel {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.catalog-product-view .yge-reviews-carousel__nav {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 999px !important;
    border: 1.5px solid #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.catalog-product-view .yge-reviews-carousel__viewport {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    padding-top: 26px !important;
    margin-top: -26px !important;
    padding-bottom: 10px !important;
    margin-bottom: -10px !important;
}

body.catalog-product-view .yge-reviews-carousel__track {
    display: flex !important;
    transition: transform 0.3s ease !important;
    width: 100% !important;
}

body.catalog-product-view .yge-review-card {
    position: relative !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    margin: 24px 0 14px 0 !important;
    background-color: transparent !important;
    padding: 26px 20px 20px !important;
    text-align: left !important;
}

body.catalog-product-view .yge-review-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-color: #ffffff !important;
    z-index: 0 !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px)) !important;
}

body.catalog-product-view .yge-review-card::after {
    display: none !important;
    content: none !important;
}

body.catalog-product-view .yge-review-card > * {
    position: relative !important;
    z-index: 1 !important;
}

@media (min-width: 640px) {
    body.catalog-product-view .yge-review-card {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 50% !important;
        margin: 24px 0 14px 0 !important;
        padding: 28px 30px 22px 30px !important;
    }

    body.catalog-product-view .yge-review-card::before {
        inset: 0 10px !important;
    }

    body.catalog-product-view .yge-review-card__avatar {
        left: 30px !important;
    }
}

@media (min-width: 1024px) {
    body.catalog-product-view .yge-review-card {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        min-width: 33.333333% !important;
        margin: 24px 0 14px 0 !important;
        padding: 30px 32px 24px 32px !important;
    }

    body.catalog-product-view .yge-review-card::before {
        inset: 0 12px !important;
    }

    body.catalog-product-view .yge-review-card__avatar {
        left: 34px !important;
    }
}

body.catalog-product-view .yge-review-card__avatar {
    position: absolute !important;
    top: -18px !important;
    left: 20px !important;
    z-index: 2 !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ff5901 !important;
    color: #ffffff !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}

body.catalog-product-view .yge-review-card__name {
    display: block !important;
    margin-top: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

body.catalog-product-view .yge-review-card__text {
    margin: 6px 0 14px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #374151 !important;
}

body.catalog-product-view .yge-review-card__stars {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    color: #FF5900 !important;
    font-size: 14px !important;
}

body.catalog-product-view .yge-reviews__cta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
}

body.catalog-product-view .yge-reviews__cta-btn {
    background: transparent !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 6px 16px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

/* Badge de descuento en la galería de producto (Mobile y Desktop) */
body.catalog-product-view .yge-pdp-discount-badge {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    background-color: #FF5900 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 8px 14px 18px 10px !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 24px calc(100% - 10px), 0 100%) !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

html, body {
    overflow-x: hidden !important;
}

#header .container {
    border-bottom: none !important;
    border-top: none !important;
}

/* YGE: acá había una regla duplicada que cancelaba el corte diagonal — se borró. */

/* Remover bordes del contenedor principal de la navegación sin afectar desplegables */
#header .navigation,
#header .navigation nav,
#header .navigation > div > nav > ul.flex,
#header .navigation > div > nav > ul.flex > li.level-0 {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#header .navigation li.level-0 {
    border-bottom: 2px solid transparent !important;
    transition: border-color 0.2s ease !important;
}

#header .navigation li.level-0:hover,
#header .navigation li.level-0[data-active] {
    border-bottom: 2px solid var(--yge-orange, #FF5901) !important;
}

/* ── Estilos robustos para submenús desplegables (Dropdowns de Categorías) ── */
#header .navigation ul[id^="category-node-"] {
    background-color: #ffffff !important;
    border-top: 3px solid var(--yge-orange, #FF5901) !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    padding: 6px 0 !important;
    min-width: 180px !important;
    z-index: 999 !important;
}

#header .navigation ul[id^="category-node-"] li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background-color: #ffffff !important;
}

#header .navigation ul[id^="category-node-"] li > a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 18px !important;
    color: var(--yge-green, #185601) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    border-top: none !important;
    border-bottom: none !important;
}

#header .navigation ul[id^="category-node-"] li:not(:last-child) > a {
    border-bottom: 1px solid #f1f5f9 !important;
}

#header .navigation ul[id^="category-node-"] li > a:hover {
    color: var(--yge-orange, #FF5901) !important;
    background-color: #f8fafc !important;
}



/* El build Tailwind actual no genera lg:block para el contenedor interno del menu. */
@media (min-width: 1024px) {
    #header .navigation {
        display: flex !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: space-between !important;
    }

    #header .navigation > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    #header .navigation > div.hidden {
        display: block !important;
    }

    #header .navigation > div.hidden > nav,
    #header .navigation > div.hidden > nav > ul {
        display: block !important;
    }

    #header .navigation > div.hidden > nav > ul {
        display: flex !important;
        justify-content: flex-start !important;
    }
}

/* ── Garantizar visibilidad de widgets y contenedor principal ── */
body #maincontent.page-main,
body .page-main,
body #maincontent,
body .widget,
body .widget.block,
body .widget.block-static-block,
body .hero-slider,
body .brand-carousel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ── Solo mostrar Buscador, Hamburguesa y Carrito en Mobile (< 1024px) ── */
@media (max-width: 1023px) {
    #header #compare-link,
    #header a#compare-link,
    #header #compare-link.invisible,
    #header #menu-search-icon,
    #header #customer-menu,
    #header [x-data="initCustomerMenu"],
    .yge-account-label,
    .yge-cart-label {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 1. Ajuste del botón "Conoce nuestras marcas" y Logo en Mobile */
    #header .container a[aria-label="Go to Home page"] img,
    #header .container > div:has(> a[aria-label="Go to Home page"]) img {
        max-width: 115px !important;
        width: auto !important;
        max-height: 38px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .yge-cta-marcas,
    .yge-cta-marcas--mobile {
        overflow: visible !important;
        margin-right: 6px !important;
    }

    /* 2. Barra de búsqueda unificada: altura de 38px y botón verde cubriendo el 100% de la altura */
    #search-content {
        grid-column: 2 !important;
        grid-row: 2 !important;
        min-width: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    z-index: 200 !important;
        display: flex !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #search-content .container,
    #search-content search,
    #search-content .minisearch,
    #search-content #search_mini_form {
        width: 100% !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: stretch !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #search-content #search_mini_form .input-group,
    #search-content #search_mini_form .input-group.relative.grow {
        display: flex !important;
        flex: 1 1 auto !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header #search-content input[type="search"],
    #header #search-content input[type="text"],
    #header #search-content .form-input {
        height: 38px !important;
        line-height: 38px !important;
        padding: 0 10px !important;
        border: 1px solid #d1d5db !important;
        border-right: none !important;
        border-radius: 4px 0 0 4px !important;
        font-size: 13px !important;
        background-color: #ffffff !important;
        box-sizing: border-box !important;
    }

    #header #search-content button[type="submit"],
    #header #search-content button.btn,
    #header #search-content button {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid var(--yge-green, #185601) !important;
        border-radius: 0 4px 4px 0 !important;
        background-color: var(--yge-green, #185601) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        align-self: stretch !important;
    }

    #header #search-content button svg {
        width: 18px !important;
        height: 18px !important;
        stroke: #ffffff !important;
    }

    /* 3. Carrito y Hamburguesa alineados perfectamente a 38px de alto */
    [x-data="initMobileMenu"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
    }

    #header .yge-header-actions,
    #header .container > .flex.items-center:not(.yge-logo-wrapper):not(:has(a[aria-label="Go to Home page"])) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 38px !important;
    }

    #menu-cart-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #menu-cart-icon .yge-action-icon {
        width: 22px !important;
        height: 22px !important;
    }
}

/* =========================================================
   YGE MINICART FLOATING DROPDOWN
   ========================================================= */

#cart-drawer {
    position: fixed !important;
    inset: 165px 0 auto auto !important;
    top: 165px !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.22));
    z-index: 9999 !important;
    max-height: calc(100vh - 180px) !important;
}

#cart-drawer::backdrop {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(1px);
}

.yge-cart-popup {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    background: #ffffff !important;
    width: 395px !important;
    max-width: calc(100vw - 20px) !important;
}

.yge-cart-items-list {
    max-height: 285px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.yge-cart-items-list::-webkit-scrollbar {
    width: 5px;
}

.yge-cart-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.yge-cart-items-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.yge-cart-items-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.yge-btn-checkout {
    background-color: #FF5900 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    margin-bottom: 10px !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.yge-btn-checkout:hover {
    background-color: #e04f00 !important;
}

.yge-btn-viewcart {
    background-color: #ffffff !important;
    color: #FF5900 !important;
    border: 2px solid #FF5900 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    height: 46px !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.yge-btn-viewcart:hover {
    background-color: #fff5f0 !important;
}

@media (min-width: 1280px) {
    #cart-drawer {
        inset: 165px 0 auto auto !important;
        top: 165px !important;
        right: 0 !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {
    #cart-drawer {
        display: none !important;
    }
}

/* ==========================================================================
   YGE - CATALOGO: ESTILOS DE TARJETAS (IGUAL A APROVECHA-OFERTAS.CSS)
   ========================================================================== */

/* Contenedor <li> del grid */
body.catalog-category-view #product-list .products.wrapper.products-grid > ul > li,
.products.wrapper.products-grid > ul > li {
    position: relative !important;
    background-color: transparent !important;
    padding: 0 !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    height: 100% !important;
    overflow: visible !important;
    z-index: 1 !important;
}

body.catalog-category-view #product-list .products.wrapper.products-grid > ul > li:hover,
.products.wrapper.products-grid > ul > li:hover {
    z-index: 40 !important;
}

/* ── Tarjeta: reserva 46px abajo (transparente) para el botón hover ── */
body.catalog-category-view #product-list .item.product.product-item,
body.catalog-category-view #product-list .products.wrapper.products-grid .item.product.product-item,
.products.wrapper.products-grid .item.product.product-item {
    position: relative !important;
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 12px 60px 12px !important;
    box-shadow: none !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Capa gris #D9D9D9 (borde visible de 2px, pasa a naranja en hover) */
body.catalog-category-view #product-list .item.product.product-item::before,
body.catalog-category-view #product-list .products.wrapper.products-grid .item.product.product-item::before,
.products.wrapper.products-grid .item.product.product-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 46px !important;
    background-color: #D9D9D9 !important;
    opacity: 1 !important;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    transition: bottom 0.3s ease-out, background-color 0.3s ease-out !important;
    z-index: -1 !important;
}

/* Capa blanca (cuerpo de la card, 2px adentro del borde) */
body.catalog-category-view #product-list .item.product.product-item::after,
body.catalog-category-view #product-list .products.wrapper.products-grid .item.product.product-item::after,
.products.wrapper.products-grid .item.product.product-item::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 48px !important;
    background-color: #ffffff !important;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important;
    transition: bottom 0.3s ease-out !important;
    z-index: -1 !important;
}

/* En hover el borde pasa a naranja #FF5901 y la capa blanca ::after se detiene sobre el botón para no dejar líneas blancas */
body.catalog-category-view #product-list .item.product.product-item:hover::before,
body.catalog-category-view #product-list .products.wrapper.products-grid > ul > li:hover .item.product.product-item::before,
.products.wrapper.products-grid .item.product.product-item:hover::before,
.products.wrapper.products-grid > ul > li:hover .item.product.product-item::before {
    bottom: 0 !important;
    background-color: #FF5901 !important;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)) !important;
}

body.catalog-category-view #product-list .item.product.product-item:hover::after,
body.catalog-category-view #product-list .products.wrapper.products-grid > ul > li:hover .item.product.product-item::after,
.products.wrapper.products-grid .item.product.product-item:hover::after,
.products.wrapper.products-grid > ul > li:hover .item.product.product-item::after {
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 44px !important;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important;
}

/* ── Imagen: alto fijo para que la línea quede nivelada ── */
body.catalog-category-view #product-list .item.product .product-item-photo,
.products.wrapper.products-grid .item.product .product-item-photo {
    height: 210px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
}

body.catalog-category-view #product-list .item.product .product-item-photo img,
.products.wrapper.products-grid .item.product .product-item-photo img {
    max-height: 200px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* ── Línea separadora encima del nombre del producto ── */
body.catalog-category-view #product-list .item.product .product-info > div:first-child,
.products.wrapper.products-grid .item.product .product-info > div:first-child {
    border-top: 1px solid #ececec !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

/* ── Nombre del producto ── */
body.catalog-category-view #product-list .item.product .product-item-link,
.products.wrapper.products-grid .item.product .product-item-link {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: calc(14px * 1.3 * 2) !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body.catalog-category-view #product-list .item.product .product-item-link:hover,
.products.wrapper.products-grid .item.product .product-item-link:hover {
    color: #014C00 !important;
}

/* ── Ocultar selector de "Presentaciones" y estrellas de valoración ── */
body.catalog-category-view #product-list .item.product [x-data="initConfigurableSwatchOptions"],
.products.wrapper.products-grid .item.product [x-data="initConfigurableSwatchOptions"] {
    display: none !important;
}

body.catalog-category-view #product-list .item.product .product-info > div:has(.rating-summary),
body.catalog-category-view #product-list .item.product .rating-summary,
.products.wrapper.products-grid .item.product .product-info > div:has(.rating-summary),
.products.wrapper.products-grid .item.product .rating-summary {
    display: none !important;
}

/* ── Precios (visibles para productos simples y configurables) ── */
body.catalog-category-view #product-list .products.wrapper.products-grid .product-info:not(:has(> [x-data^='initConfigurableSwatchOptions'])) > .pt-1,
body.catalog-category-view #product-list .products.wrapper.products-grid .product-info > .pt-1,
body.catalog-category-view #product-list .item.product .product-info > .pt-1,
body.catalog-category-view #product-list .item.product .product-info > div[x-data*="initPriceBox"],
.products.wrapper.products-grid .product-info:not(:has(> [x-data^='initConfigurableSwatchOptions'])) > .pt-1,
.products.wrapper.products-grid .product-info > .pt-1,
.products.wrapper.products-grid .item.product .product-info > .pt-1,
.products.wrapper.products-grid .item.product .product-info > div[x-data*="initPriceBox"] {
    display: block !important;
    margin-top: 8px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.catalog-category-view #product-list .item.product .price-box,
.products.wrapper.products-grid .item.product .price-box {
    text-align: center !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
}

body.catalog-category-view #product-list .item.product .price-label,
.products.wrapper.products-grid .item.product .price-label {
    display: none !important;
}

body.catalog-category-view #product-list .item.product .price,
.products.wrapper.products-grid .item.product .price {
    color: #014C00 !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}

body.catalog-category-view #product-list .item.product .old-price .price,
.products.wrapper.products-grid .item.product .old-price .price {
    color: #9ca3af !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: line-through !important;
}

body.catalog-category-view #product-list .item.product .price-box .old-price,
body.catalog-category-view #product-list .item.product .price-box .special-price,
body.catalog-category-view #product-list .item.product .price-box .normal-price,
.products.wrapper.products-grid .item.product .price-box .old-price,
.products.wrapper.products-grid .item.product .price-box .special-price,
.products.wrapper.products-grid .item.product .price-box .normal-price {
    display: block !important;
    line-height: 1.3 !important;
}

/* ── Badge de descuento al ras del borde superior con chaflán superior derecho idéntico al de la tarjeta ── */
html body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .item.product .yge-discount-badge,
html body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product .yge-discount-badge,
body.catalog-category-view #product-list .item.product .yge-discount-badge,
.products.wrapper.products-grid .item.product .yge-discount-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 3 !important;
    background-color: #FF5901 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 27px !important;
    padding: 0 12px 0 16px !important;
    box-sizing: border-box !important;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 12px 100%, 0 calc(100% - 12px)) !important;
}

/* ── Botón "Agregar al carrito" en hover ── */
body.catalog-category-view #product-list .item.product [data-addto="cart"],
body.catalog-category-view #product-list .item.product .yge-catalog-btn-cart,
.products.wrapper.products-grid .item.product [data-addto="cart"],
.products.wrapper.products-grid .item.product .yge-catalog-btn-cart {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 46px !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #FF5901 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 11px 8px !important;
    text-decoration: none !important;
    /* 2026-09-28: el clip-path va SOLO acá, no repetido en la regla :hover — verificado con
       getComputedStyle que el :hover confirmado (matches(':hover')===true) igual dejaba este
       clip-path "pegado" al valor base en vez del de la regla :hover, sin importar !important
       ni especificidad (ambas reglas con !important, la de :hover con más clases todavía
       perdía para esta propiedad puntual — no se identificó la causa exacta, pero es
       reproducible). Efecto real: el recorte de la esquina se quedaba con el tamaño chico
       (14px) mientras el botón ya había crecido a su alto de hover (46px), dejando un hueco
       geométrico en la esquina inferior izquierda por el que se asomaba el naranja más
       brillante del botón de wishlist de abajo. Fix: un solo clip-path (16px, el valor
       pensado para el estado expandido) que no depende de que el hover lo sobreescriba. */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    opacity: 0 !important;
    transform: translateY(6px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    pointer-events: none !important;
    border: none !important;
    border-radius: 0 !important;
}

body.catalog-category-view #product-list .item.product.product-item:hover [data-addto="cart"],
body.catalog-category-view #product-list .item.product.product-item:hover .yge-catalog-btn-cart,
body.catalog-category-view #product-list .products.wrapper.products-grid > ul > li:hover [data-addto="cart"],
body.catalog-category-view #product-list .products.wrapper.products-grid > ul > li:hover .yge-catalog-btn-cart,
.products.wrapper.products-grid .item.product.product-item:hover [data-addto="cart"],
.products.wrapper.products-grid .item.product.product-item:hover .yge-catalog-btn-cart,
.products.wrapper.products-grid > ul > li:hover [data-addto="cart"],
.products.wrapper.products-grid > ul > li:hover .yge-catalog-btn-cart {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* ── Wishlist: hexágono con borde de 1px #D9D9D9, fondo blanco e icono corazon.svg ── */
body.catalog-category-view #product-list .item.product button[data-addto="wishlist"],
body.catalog-category-view #product-list .item.product .btn[data-addto="wishlist"],
.products.wrapper.products-grid .item.product button[data-addto="wishlist"],
.products.wrapper.products-grid .item.product .btn[data-addto="wishlist"] {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 2 !important;
    width: 32px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #D9D9D9 !important;
    border: none !important;
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

body.catalog-category-view #product-list .item.product button[data-addto="wishlist"]::after,
body.catalog-category-view #product-list .item.product .btn[data-addto="wishlist"]::after,
.products.wrapper.products-grid .item.product button[data-addto="wishlist"]::after,
.products.wrapper.products-grid .item.product .btn[data-addto="wishlist"]::after {
    content: '' !important;
    position: absolute !important;
    inset: 1px !important;
    background-color: #ffffff !important;
    background-image: url('/media/wysiwyg/corazon.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px 13px !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    z-index: 1 !important;
}

body.catalog-category-view #product-list .item.product button[data-addto="wishlist"]:hover,
.products.wrapper.products-grid .item.product button[data-addto="wishlist"]:hover {
    background-color: #FF5901 !important;
}

body.catalog-category-view #product-list .item.product button[data-addto="wishlist"] svg,
.products.wrapper.products-grid .item.product button[data-addto="wishlist"] svg {
    display: none !important;
}

/* Ocultar botón compare */
body.catalog-category-view #product-list .item.product [data-addto="compare"],
.products.wrapper.products-grid .item.product [data-addto="compare"] {
    display: none !important;
}

/* =========================================================
   YGE SHOPPING CART PAGE (/checkout/cart/)
   ========================================================= */

.yge-cart-table-header {
    display: grid !important;
    grid-template-columns: 2.5fr 1fr 1fr !important;
    gap: 16px !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e5e5e5 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.yge-cart-table-header .yge-col-product {
    text-align: left !important;
    padding-left: 8px !important;
}

.yge-cart-table-header .yge-col-qty {
    text-align: center !important;
}

.yge-cart-table-header .yge-col-total {
    text-align: right !important;
    padding-right: 16px !important;
}

.yge-cart-item-row {
    display: grid !important;
    grid-template-columns: 2.5fr 1fr 1fr !important;
    gap: 16px !important;
    align-items: center !important;
    width: 100% !important;
}

.yge-cart-item-product {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 0 !important;
}

.yge-cart-item-qty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.yge-cart-item-total {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-right: 16px !important;
}

.yge-cart-qty-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.yge-cart-qty-btn {
    width: 36px !important;
    height: 36px !important;
    background-color: #ffffff !important;
    color: #185601 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background-color 0.15s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.yge-cart-qty-btn:hover {
    background-color: #f3f4f6 !important;
}

.yge-cart-qty-input {
    width: 46px !important;
    height: 36px !important;
    background-color: #185601 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    user-select: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.yge-cart-qty-input::-webkit-inner-spin-button,
.yge-cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.yge-cart-delete-btn {
    width: 24px !important;
    min-width: 24px !important;
    height: 27px !important;
    border-radius: 50% !important;
    border: 1px solid #185601 !important;
    color: #185601 !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.yge-cart-delete-btn svg {
    width: 11px !important;
    height: 11px !important;
}

.yge-cart-delete-btn:hover {
    background-color: #185601 !important;
    color: #ffffff !important;
}

.yge-cart-item-product .product-item-photo {
    width: 95px !important;
    min-width: 95px !important;
    height: 95px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.yge-cart-item-product .product-item-photo img {
    max-width: 95px !important;
    max-height: 95px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    mix-blend-multiply: multiply !important;
}

.yge-cart-item-li {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

.yge-cart-page-items-list {
    max-height: 540px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    padding-right: 6px !important;
}

.yge-cart-page-items-list::-webkit-scrollbar {
    width: 6px;
}

.yge-cart-page-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.yge-cart-page-items-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.yge-cart-page-items-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Espaciado inferior de la página de carrito antes del footer */
body.checkout-cart-index #maincontent,
body.checkout-cart-index .page-main,
body.checkout-cart-index .cart-container,
body.checkout-cart-index .cart-form {
    margin-bottom: 60px !important;
    padding-bottom: 20px !important;
}

/* Resumen de totales */
body.checkout-cart-index .card.lg\:sticky {
    background: #ffffff !important;
    border: 2px solid #b2c2ab !important;
    border-radius: 0 !important;
    padding: 24px 20px !important;
    box-shadow: none !important;
}

body.checkout-cart-index .cart-summary {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.checkout-cart-index .card.lg\:sticky > h2 {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #000000 !important;
    margin-bottom: 16px !important;
}

/* Línea divisoria 1: Debajo de estimar envío (de extremo a extremo) */
body.checkout-cart-index .cart-summary-actions {
    display: block !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #b2c2ab !important;
}

body.checkout-cart-index .cart-summary-actions summary {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

/* Línea divisoria 2: Debajo de los subtotales/impuestos (de extremo a extremo) */
.yge-totals-breakdown {
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #b2c2ab !important;
}

.yge-totals-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

/* Líneas divisorias de Total (de extremo a extremo arriba y abajo) */
.yge-totals-grandtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding: 16px 20px !important;
    margin-top: 10px !important;
    margin-bottom: 16px !important;
    border-top: 2px solid #b2c2ab !important;
    border-bottom: 2px solid #b2c2ab !important;
}

.yge-totals-grandtotal-label {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.yge-totals-grandtotal [class*="justify-self-end"],
.yge-totals-grandtotal div:last-child,
.yge-totals-grandtotal-amount {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #185601 !important;
    line-height: 1 !important;
}

.yge-btn-summary-checkout {
    background-color: #FF5900 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    margin-bottom: 12px !important;
    transition: background-color 0.2s ease !important;
}

.yge-btn-summary-checkout:hover {
    background-color: #e04f00 !important;
}

.yge-btn-summary-continue {
    background-color: #ffffff !important;
    border: 2px solid #FF5900 !important;
    color: #FF5900 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin-bottom: 16px !important;
    transition: background-color 0.2s ease !important;
}

.yge-btn-summary-continue:hover {
    background-color: #fff5f0 !important;
}

@media (max-width: 768px) {
    .yge-cart-table-header {
        display: none !important;
    }

    .yge-cart-page-items-list {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        border: none !important;
    }

    .yge-cart-item-li {
        padding: 0 !important;
        border: none !important;
    }

    /* Tarjeta de producto individual */
    .yge-cart-item-row {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border: 1.5px solid #d1d5db !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        overflow: hidden !important;
        padding: 16px 14px 0 14px !important;
        position: relative !important;
    }

    /* Sección Superior: Imagen + Nombre y Opciones */
    .yge-cart-item-product {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        padding: 0 !important;
        gap: 14px !important;
        position: relative !important;
        margin-bottom: 8px !important;
    }

    .yge-cart-item-product .product-item-photo {
        width: 80px !important;
        min-width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .yge-cart-item-product .product-item-photo img {
        max-width: 80px !important;
        max-height: 80px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        mix-blend-multiply: multiply !important;
    }

    .yge-cart-item-product .product-item-details {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        flex-grow: 1 !important;
        padding-right: 28px !important;
    }

    .yge-cart-item-product .product-item-name {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        margin-bottom: 6px !important;
        line-height: 1.25 !important;
    }

    /* Botón eliminar X en móvil */
    .yge-cart-delete-btn {
        position: absolute !important;
        top: -6px !important;
        right: 0 !important;
        z-index: 10 !important;
    }

    /* Selector de cantidad único posicionado debajo del título */
    .yge-cart-item-qty {
        display: flex !important;
        justify-content: flex-start !important;
        margin-left: 94px !important;
        margin-bottom: 14px !important;
        padding: 0 !important;
    }

    .yge-cart-item-qty .yge-cart-qty-wrapper {
        display: inline-flex !important;
    }

    /* Sección Inferior: Total */
    .yge-cart-item-total {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        margin-left: -14px !important;
        margin-right: -14px !important;
        border-top: 1.5px solid #d1d5db !important;
        background-color: #ffffff !important;
    }

    .yge-mobile-total-label {
        display: block !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #000000 !important;
        margin-bottom: 2px !important;
    }

    .yge-mobile-total-amount {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #185601 !important;
        line-height: 1 !important;
    }

    body.checkout-cart-index #maincontent,
    body.checkout-cart-index .page-main,
    body.checkout-cart-index .cart-container,
    body.checkout-cart-index .cart-form {
        margin-bottom: 40px !important;
        padding-bottom: 10px !important;
    }
}

/* Solo en Mobile: el cuadro de total y subtotal va DEBAJO de la lista de productos */
@media (max-width: 1023px) {
    body.checkout-cart-index .cart-form .flex.flex-col.lg\:flex-row > .lg\:flex-1,
    body.checkout-cart-index .cart-form .flex.flex-col > .lg\:flex-1,
    body.checkout-cart-index .cart-form .order-2.lg\:order-1 {
        order: 1 !important;
    }

    body.checkout-cart-index .cart-form .flex.flex-col.lg\:flex-row > .card.lg\:sticky,
    body.checkout-cart-index .cart-form .flex.flex-col > .card.lg\:sticky,
    body.checkout-cart-index .cart-form .order-1.lg\:order-2 {
        order: 2 !important;
        margin-top: 24px !important;
    }
}

/* Íconos de aplicar cupón y estimar envío en #FF5900 (Desktop y Mobile) */
body.checkout-cart-index .coupon-form summary svg,
body.checkout-cart-index .coupon-form summary svg path,
body.checkout-cart-index .coupon-form summary svg circle,
body.checkout-cart-index .estimate-shipping-form summary svg,
body.checkout-cart-index .estimate-shipping-form summary svg path,
body.checkout-cart-index .estimate-shipping-form summary svg circle,
body.checkout-cart-index .cart-summary-actions summary svg,
body.checkout-cart-index .cart-summary-actions summary svg path,
body.checkout-cart-index .cart-summary-actions summary svg circle {
    color: #FF5900 !important;
    stroke: #FF5900 !important;
}

/* Flecha desplegable a la derecha se mantiene gris */
body.checkout-cart-index .cart-summary-actions summary > svg:last-child,
body.checkout-cart-index .cart-summary-actions summary > svg:last-child path,
body.checkout-cart-index .coupon-form summary > svg:last-child,
body.checkout-cart-index .coupon-form summary > svg:last-child path,
body.checkout-cart-index .estimate-shipping-form summary > svg:last-child,
body.checkout-cart-index .estimate-shipping-form summary > svg:last-child path {
    color: #6b7280 !important;
    stroke: #6b7280 !important;
}

/* Título Mi carrito: separado del header con hexágono verde vertical #1A5600 e ícono de carrito */
body.checkout-cart-index .page-title,
body.checkout-cart-index .page-title-wrapper h1 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 35px !important;
    margin-bottom: 22px !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

body.checkout-cart-index .page-title::before,
body.checkout-cart-index .page-title-wrapper h1::before {
    content: "" !important;
    display: inline-block !important;
    width: 36px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    background-color: #1A5600 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='32' viewBox='0 0 36 32' fill='none'%3E%3Cpath d='M36.0051 3.8623L31.204 18.5958H12.3569L7.60156 3.8623H36.0051Z' fill='%23ffffff'/%3E%3Cpath d='M27.5364 31.9991C29.0234 31.9991 30.229 30.8221 30.229 29.3702C30.229 27.9182 29.0234 26.7412 27.5364 26.7412C26.0493 26.7412 24.8438 27.9182 24.8438 29.3702C24.8438 30.8221 26.0493 31.9991 27.5364 31.9991Z' fill='%23ffffff'/%3E%3Cpath d='M16.8489 31.9991C18.3359 31.9991 19.5415 30.8221 19.5415 29.3702C19.5415 27.9182 18.3359 26.7412 16.8489 26.7412C15.3618 26.7412 14.1562 27.9182 14.1562 29.3702C14.1562 30.8221 15.3618 31.9991 16.8489 31.9991Z' fill='%23ffffff'/%3E%3Cpath d='M3.78906 2.65731L12.6051 24.9386H16.1643L6.72959 0L3.78906 2.65731Z' fill='%23ffffff'/%3E%3Cpath d='M6.73876 0H0V3.0215H6.73876V0Z' fill='%23ffffff'/%3E%3Cpath d='M31.2778 21.9443H12.6094V24.9375H31.2778V21.9443Z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 19px 17px !important;
}

/* Vista de Carrito Vacío */
body.checkout-cart-index .cart-empty {
    margin-bottom: 60px !important;
    padding-bottom: 20px !important;
}

.yge-cart-empty-card {
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 48px 24px;
    text-align: center;
    max-width: 640px;
    margin: 10px auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yge-cart-empty-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #9ca3af;
}

.yge-cart-empty-title {
    font-size: 22px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 8px;
}

.yge-cart-empty-desc {
    font-size: 15px;
    color: #4b5563;
    max-width: 440px;
    margin: 0 auto 28px auto;
    line-height: 1.5;
}

.yge-cart-empty-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #FF5900 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 14px 36px !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 2px 6px rgba(255, 89, 0, 0.25) !important;
}

.yge-cart-empty-btn:hover {
    background-color: #e04e00 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* ===== Fondo de trama.png desactivado en el Catálogo ===== */
html body.catalog-category-view::before,
body.catalog-category-view::before,
body.catalog-category-view:before {
    display: none !important;
    content: none !important;
    background-image: none !important;
}



/* ===== Comparar productos (catalog-product_compare-index) ===== */
body.catalog-product_compare-index #maincontent {
    min-height: 480px !important;
    padding-top: 35px !important;
    padding-bottom: 60px !important;
}

body.catalog-product_compare-index .page-title,
body.catalog-product_compare-index h1.page-title,
body.catalog-product_compare-index [data-ui-id="page-title-wrapper"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #000000 !important;
}

body.catalog-product_compare-index .page-title::before,
body.catalog-product_compare-index h1.page-title::before,
body.catalog-product_compare-index [data-ui-id="page-title-wrapper"]::before {
    content: "" !important;
    display: inline-block !important;
    width: 36px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
    background-color: #1A5600 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M8 21H3v-5'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 17px 17px !important;
}

/* Estado vacío: el <p> suelto de Hyvä queda como tarjeta con aire generoso */
body.catalog-product_compare-index .column.main > div > p:only-child {
    background-color: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    max-width: 640px !important;
    margin: 16px auto 48px auto !important;
    padding: 80px 24px 40px 24px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #4b5563 !important;
    position: relative !important;
}

body.catalog-product_compare-index .column.main > div > p:only-child::before {
    content: "" !important;
    position: absolute !important;
    top: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 44px !important;
    height: 48px !important;
    background-color: #f3f4f6 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5901' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M8 21H3v-5'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
}

@media (max-width: 767px) {
    body.catalog-product_compare-index #maincontent {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }

    body.catalog-product_compare-index .page-title,
    body.catalog-product_compare-index h1.page-title,
    body.catalog-product_compare-index [data-ui-id="page-title-wrapper"] {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
        font-size: 22px !important;
        gap: 10px !important;
    }

    body.catalog-product_compare-index .page-title::before,
    body.catalog-product_compare-index h1.page-title::before,
    body.catalog-product_compare-index [data-ui-id="page-title-wrapper"]::before {
        width: 30px !important;
        height: 32px !important;
        background-size: 14px 14px !important;
    }

    body.catalog-product_compare-index .column.main > div > p:only-child {
        margin: 8px auto 36px auto !important;
        padding: 72px 18px 32px 18px !important;
        font-size: 15px !important;
    }

    body.catalog-product_compare-index .column.main > div > p:only-child::before {
        top: 20px !important;
    }
}

/* ── YGE: badge de descuento estándar (catálogo, búsqueda, relacionados) ──
   Misma pastilla que los carruseles del Home; especificidad alta para ganarle
   al Tailwind compilado (yge-catalog-cards). */
html body:not(.catalog-category-view):not(.catalogsearch-result-index) .products.wrapper.products-grid .item.product .yge-discount-badge,
html body .product-items .item.product .yge-discount-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 26px !important;
    padding: 0 12px 0 16px !important;
    box-sizing: border-box !important;
    background: #FF5901 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
    text-align: center !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
}

@media (max-width: 768px) {
    html body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .item.product .yge-discount-badge,
    html body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product .yge-discount-badge,
    body.catalog-category-view #product-list .item.product .yge-discount-badge {
        top: 0 !important;
        right: 0 !important;
        min-width: 48px !important;
        height: 22px !important;
        font-size: 11px !important;
        padding: 0 12px 0 16px !important;
        clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 9px 100%, 0 calc(100% - 9px)) !important;
    }

    html body:not(.catalog-category-view):not(.catalogsearch-result-index) .products.wrapper.products-grid .item.product .yge-discount-badge,
    html body .product-items .item.product .yge-discount-badge {
        min-width: 48px !important;
        height: 22px !important;
        font-size: 11px !important;
        padding: 0 12px 0 16px !important;
    }
}

/* sticky bar por encima del footer */
.yge-sticky-buy-bar {
    z-index: 9999 !important;
}

/* ── YGE: reduccion de padding vertical en carrusel de Aprovecha las Ofertas (solo Desktop) ── */
@media (min-width: 1024px) {
    #html-body .ofertas-row .widget-product-carousel .snap-track,
    #html-body .ofertas-row[data-content-type="row"] .snap-track,
    html body .ofertas-row .snap-track {
        padding-block: calc(var(--spacing)) !important;
    }
}

/* ── YGE: Ajuste de cabecera en 'LOS TOP MÁS BUSCADOS' (Responsive 861px - 1279px y Desktop >= 1280px) ──
   1. Rango 861px - 1023px: Escala adaptada para evitar choque/montado entre título y tabs.
   2. Rango 1024px - 1279px: Escala intermedia armónica, alineada y proporcionada.
   3. Rango >= 1280px: Diseño desktop completo sin alterar lo ya aprobado.
   4. Productos: 100% intactos sin modificar. */

/* Base compartida para desktop y tablet horizontal (>= 861px) */
@media (min-width: 861px) {
    html body#html-body div.top-buscados[data-content-type="row"],
    html body#html-body .top-buscados[data-content-type="row"],
    #html-body .top-buscados[data-content-type="row"] {
        padding-bottom: 0px !important;
    }

    html body#html-body .top-buscados .snap-track,
    #html-body .top-buscados .snap-track {
        padding-top: 0 !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header:first-of-type,
    #html-body .top-buscados .tabs-navigation .tab-header:first-of-type {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Texto del tab activo: siempre peso regular (sin negrita) */
    html body#html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title,
    #html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title {
        font-weight: 400 !important;
        font-family: inherit !important;
        color: #ffffff !important;
        line-height: 1.15 !important;
        letter-spacing: normal !important;
        white-space: normal !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65) !important;
    }

    /* Animación hover en los hexágonos */
    html body#html-body .top-buscados .tabs-navigation a.tab-title:hover .ygetb-hexbox {
        transform: scale(1.08) !important;
        filter: drop-shadow(0 3px 10px rgba(255, 89, 1, 0.65)) !important;
    }

    html body#html-body .top-buscados .tabs-navigation a.tab-title:hover .ygetb-hexbox::before {
        background-color: #FF5901 !important;
    }

    html body#html-body .top-buscados .tabs-navigation a.tab-title:hover .ygetb-hexbox::after {
        opacity: 1 !important;
        filter: brightness(1.2) contrast(1.15) !important;
    }
}

/* ── Franja 1: 861px a 1023px (Tablets y pantallas intermedias) ── */
@media (min-width: 861px) and (max-width: 1023px) {
    html body#html-body div.top-buscados[data-content-type="row"],
    html body#html-body .top-buscados[data-content-type="row"],
    #html-body .top-buscados[data-content-type="row"] {
        padding-top: 36px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"],
    #html-body .top-buscados > h2[data-content-type="heading"] {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"]::before,
    #html-body .top-buscados > h2[data-content-type="heading"]::before {
        font-size: 14px !important;
        margin-bottom: 2px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"]::after,
    #html-body .top-buscados > h2[data-content-type="heading"]::after {
        font-size: 28px !important;
    }

    html body#html-body .top-buscados .tabs-navigation,
    #html-body .top-buscados .tabs-navigation {
        top: -46px !important;
        right: 0 !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header,
    #html-body .top-buscados .tabs-navigation .tab-header {
        height: 38px !important;
        padding: 0 7px !important;
        border-left: 1px solid rgba(255, 255, 255, 0.6) !important;
    }

    html body#html-body .top-buscados .ygetb-hexbox,
    #html-body .top-buscados .ygetb-hexbox {
        width: 38px !important;
        height: 42px !important;
    }

    html body#html-body .top-buscados .ygetb-hexbox::after,
    #html-body .top-buscados .ygetb-hexbox::after {
        background-size: 20px 20px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox,
    #html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox {
        width: 42px !important;
        height: 46px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox::after,
    #html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox::after {
        background-size: 22px 22px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title,
    #html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title {
        font-size: 12px !important;
        max-width: 65px !important;
    }
}

/* ── Franja 2: 1024px a 1279px (Laptops estándar y pantallas medianas) ── */
@media (min-width: 1024px) and (max-width: 1279px) {
    html body#html-body div.top-buscados[data-content-type="row"],
    html body#html-body .top-buscados[data-content-type="row"],
    #html-body .top-buscados[data-content-type="row"] {
        padding-top: 44px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"],
    #html-body .top-buscados > h2[data-content-type="heading"] {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"]::before,
    #html-body .top-buscados > h2[data-content-type="heading"]::before {
        font-size: 17px !important;
        margin-bottom: 2px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"]::after,
    #html-body .top-buscados > h2[data-content-type="heading"]::after {
        font-size: 34px !important;
    }

    html body#html-body .top-buscados .tabs-navigation,
    #html-body .top-buscados .tabs-navigation {
        top: -52px !important;
        right: 0 !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header,
    #html-body .top-buscados .tabs-navigation .tab-header {
        height: 42px !important;
        padding: 0 10px !important;
        border-left: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    }

    html body#html-body .top-buscados .ygetb-hexbox,
    #html-body .top-buscados .ygetb-hexbox {
        width: 44px !important;
        height: 48px !important;
    }

    html body#html-body .top-buscados .ygetb-hexbox::after,
    #html-body .top-buscados .ygetb-hexbox::after {
        background-size: 24px 24px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox,
    #html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox {
        width: 46px !important;
        height: 50px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox::after,
    #html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox::after {
        background-size: 25px 25px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title,
    #html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title {
        font-size: 13px !important;
        max-width: 78px !important;
    }
}

/* ── Franja 3: >= 1280px (Desktop completo ya validado) ── */
@media (min-width: 1280px) {
    html body#html-body div.top-buscados[data-content-type="row"],
    html body#html-body .top-buscados[data-content-type="row"],
    #html-body .top-buscados[data-content-type="row"] {
        padding-top: 50px !important;
    }

    html body#html-body .top-buscados > h2[data-content-type="heading"],
    #html-body .top-buscados > h2[data-content-type="heading"] {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    html body#html-body .top-buscados .tabs-navigation,
    #html-body .top-buscados .tabs-navigation {
        top: -60px !important;
        right: 0 !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header,
    #html-body .top-buscados .tabs-navigation .tab-header {
        height: 48px !important;
        padding: 0 14px !important;
        border-left: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    }

    html body#html-body .top-buscados .ygetb-hexbox,
    #html-body .top-buscados .ygetb-hexbox {
        width: 50px !important;
        height: 54px !important;
    }

    html body#html-body .top-buscados .ygetb-hexbox::after,
    #html-body .top-buscados .ygetb-hexbox::after {
        background-size: 28px 28px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox,
    #html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox {
        width: 52px !important;
        height: 56px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox::after,
    #html-body .top-buscados .tabs-navigation .tab-header.active .ygetb-hexbox::after {
        background-size: 29px 29px !important;
    }

    html body#html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title,
    #html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title {
        font-size: 15px !important;
        max-width: 95px !important;
    }
}

/* ── YGE: Estabilidad de altura y animaciones de transicion en \LOS TOP MAS BUSCADOS\' ──
   1. Fijar background-position en center top para que la imagen de fondo quede anclada
      y no sufra desplazamientos por recalculo de centro.
   2. Estandarizar la altura de tarjetas (.product-item), fotos, titulos y price-box
      (reservando espacio para precio anterior cuando no hay descuento) para que todas las
      cards de todas las categorias tengan exactamente la misma altura.
   3. Bloquear min-height en .tabs-content y .snap-track para evitar colapsos al cambiar de tab.
   4. Agregar animacion de fade-in y suave deslizamiento (slide) al cambiar entre pestanas.
   5. Transicion suave en botones hexagonos y textos de pestanas. */

/* Fijar el anclaje de la imagen de fondo */
html body#html-body div.top-buscados[data-content-type=row],
html body#html-body .top-buscados[data-content-type=row],
#html-body .top-buscados[data-content-type=row] {
    background-position: center top !important;
}

/* Transiciones suaves al cambiar de tab */
@keyframes ygeTabSlideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ygeTabTextFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Panel inactivo: fade out y posicion absoluta para no ocupar espacio */
html body#html-body .top-buscados .tabs-content [data-content-type=tab-item][hidden] {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    opacity: 0 !important;
    transform: translateY(6px) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    transition: opacity 0.28s ease, transform 0.28s ease !important;
}

/* Panel activo: fade in y leve deslizamiento suave */
html body#html-body .top-buscados .tabs-content [data-content-type=tab-item]:not([hidden]) {
    position: relative !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    z-index: 1 !important;
    animation: ygeTabSlideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

/* Transicion suave en el encabezado de tabs y hexagonos */
html body#html-body .top-buscados .tabs-navigation .tab-header {
    transition: all 0.25s ease !important;
}

html body#html-body .top-buscados .tabs-navigation .tab-header .ygetb-hexbox {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease, background-color 0.25s ease !important;
}

html body#html-body .top-buscados .tabs-navigation .tab-header.active a.tab-title span.tab-title {
    animation: ygeTabTextFadeIn 0.25s ease both !important;
}

/* ── Estandarizacion de alturas en Desktop y Tablets horizontales (>= 861px) ── */
@media (min-width: 861px) {
    /* Contenedor y track bloqueados a altura estable */
    html body#html-body .top-buscados .tabs-content {
        min-height: 440px !important;
    }

    html body#html-body .top-buscados .snap-track {
        min-height: 434px !important;
    }

    /* Tarjetas con altura identica en todas las categorias */
    html body#html-body .top-buscados .item.product.product-item {
        min-height: 410px !important;
        height: 410px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Foto fija */
    html body#html-body .top-buscados .item.product .product-item-photo {
        height: 210px !important;
        min-height: 210px !important;
        max-height: 210px !important;
        margin-bottom: 4px !important;
        flex-shrink: 0 !important;
    }

    /* Contenedor de informacion con flex column */
    html body#html-body .top-buscados .item.product .product-info {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        justify-content: flex-start !important;
    }

    /* Titulo estrictamente reservado a 38px (2 lineas exactas) */
    html body#html-body .top-buscados .item.product .product-item-link {
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        line-height: 1.35 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }

    /* Caja de precio estrictamente reservada a 46px
       Si tiene descuento: old-price arriba, precio abajo.
       Si NO tiene descuento: precio abajo, espacio superior reservado identico. */
    html body#html-body .top-buscados .item.product .price-box {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
}

/* ── Estandarizacion de alturas en Mobile (<= 860px) ── */
@media (max-width: 860px) {
    html body#html-body .top-buscados .tabs-content {
        min-height: 320px !important;
    }

    html body#html-body .top-buscados .item.product.product-item {
        min-height: 270px !important;
        height: 270px !important;
        box-sizing: border-box !important;
    }

    html body#html-body .top-buscados .item.product .product-item-link {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }

    html body#html-body .top-buscados .item.product .price-box {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════
   YGE: Correccion estructural de layout, alineacion y responsive en
   'SOLICITA UNA COTIZACION'
   1. Contenedor principal alineado al max-width estandar (1240px, margin: 0 auto).
   2. Fondo full-bleed gris (#F6F7F6) extendido de borde a borde.
   3. Alineacion vertical superior entre el bloque de titulo y el formulario.
   4. Alineacion precisa del icono con el titulo 'SOLICITA UNA COTIZACION'.
   5. Reduccion de separacion entre filas del formulario (campos compactos).
   6. Proporcion optimizada Correo (70%) / Enviar (30%) y alineacion del boton.
   7. Eliminacion total del espacio muerto en mobile (apilado compacto y fluido).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fila contenedora: fondo full-bleed de borde a borde ── */
html body#html-body .yge-cotiza-row[data-content-type="row"],
#html-body .yge-cotiza-row[data-content-type="row"] {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    background-color: #F6F7F6 !important;
    box-sizing: border-box !important;
}

/* ── Contenedor interior: ancho maximo consistente con la estructura de la web (1280px / px-6) ── */
html body#html-body .yge-cotiza-row[data-content-type="row"] > .pagebuilder-column-group,
#html-body .yge-cotiza-row[data-content-type="row"] > .pagebuilder-column-group {
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* ── Linea de columnas: alineacion superior (flex-start) para que titulo y formulario inicien a la misma altura ── */
html body#html-body .yge-cotiza-row[data-content-type="row"] .pagebuilder-column-line,
#html-body .yge-cotiza-row[data-content-type="row"] .pagebuilder-column-line {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* ── Proporciones en pantallas medianas y grandes (Desktop / Tablets horizontales >= 961px) ── */
@media (min-width: 961px) {
    /* Columna izquierda (Branding / Titulo): 40% */
    html body#html-body .yge-cotiza-row[data-content-type="row"] .pagebuilder-column:nth-of-type(1) {
        width: 40% !important;
        flex: 0 0 40% !important;
        max-width: 40% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Columna derecha (Formulario): 60% */
    html body#html-body .yge-cotiza-row[data-content-type="row"] .pagebuilder-column:nth-of-type(2) {
        width: 60% !important;
        flex: 0 0 60% !important;
        max-width: 60% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Padding superior e inferior simetrico en ambas columnas para alineacion identica y separacion con la seccion previa */
    html body#html-body .yge-cotiza-row .yge-cotiza-left {
        padding: 56px 30px 36px 0 !important;
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        background-color: transparent !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 {
        padding: 56px 0 36px 0 !important;
        margin: 0 !important;
        background-color: transparent !important;
    }

    /* Anular paddings laterales internos del formulario para ocupar todo el ancho util hasta el borde */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .block.bfb,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .bfb-widget,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .bfb-form,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Fila 1: Correo (70%) + Enviar (30%) alineados de extremo a extremo */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .fdyekgw {
        flex: 0 0 70% !important;
        width: 70% !important;
        max-width: 70% !important;
        box-sizing: border-box !important;
        padding: 0 8px 0 0 !important;
        margin: 0 !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 {
        flex: 0 0 30% !important;
        width: 30% !important;
        max-width: 30% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Fila 2: Nombre (50%) + Telefono (50%) */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .tl2jx3d {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
        padding: 0 6px 0 0 !important;
        margin: 0 !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .w5l0qaf {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        box-sizing: border-box !important;
        padding: 0 0 0 6px !important;
        margin: 0 !important;
    }

    /* Fila 3: Mensaje (100%) */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .kx32ye0 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Anular padding interno en columnas del formulario */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 > .mgz-element-inner,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .w5l0qaf > .mgz-element-inner,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .kx32ye0 > .mgz-element-inner {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .fdyekgw > .mgz-element-inner,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .tl2jx3d > .mgz-element-inner,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .kx32ye0 > .mgz-element-inner {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    /* Boton ENVIAR ocupa el ancho completo de su celda (30%) */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 .mgz-button,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 .mgz-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
    }
}

/* ── Alineacion del Icono y Titulo ── */
html body#html-body .yge-cotiza-row .yge-cotiza-heading-group {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
}

html body#html-body .yge-cotiza-row .yge-cotiza-icon {
    flex-shrink: 0 !important;
    width: 64px !important;
    height: 72px !important;
    margin-top: 0 !important;
    align-self: flex-start !important;
}

html body#html-body .yge-cotiza-row .yge-cotiza-titles {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

html body#html-body .yge-cotiza-row .yge-cotiza-titles .yge-cotiza-pre {
    margin: 0 !important;
    line-height: 1.15 !important;
}

html body#html-body .yge-cotiza-row .yge-cotiza-titles .yge-cotiza-main {
    margin: 0 !important;
    line-height: 1.05 !important;
}

html body#html-body .yge-cotiza-row .yge-cotiza-sub {
    margin: 10px 0 0 0 !important;
    max-width: 320px !important;
}

/* ── Alineacion superior al ras: eliminar paddings superiores internos del formulario ── */
html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .bfb-form,
html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ── Cuadros de texto compactos: reduccion de separacion vertical ── */
html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row {
    margin-bottom: 8px !important;
}

html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row:last-child {
    margin-bottom: 0 !important;
}

html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .bfb-element-label label,
html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .bfb-element-label span {
    margin-bottom: 4px !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
}

html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-column > .mgz-element-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ── Boton ENVIAR perfectamente alineado con el campo Correo ── */
html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .wwru8g5 .inner-content {
    align-items: flex-end !important;
}

html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 .mgz-button,
html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 .mgz-btn {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Responsive Mobile y Tablets Verticales (<= 960px) ──
   Eliminacion total y definitiva del espacio muerto entre el titulo y el formulario */
@media (max-width: 960px) {
    html body#html-body .yge-cotiza-row[data-content-type="row"] > .pagebuilder-column-group {
        padding: 0 16px !important;
    }

    html body#html-body .yge-cotiza-row[data-content-type="row"] .pagebuilder-column-line {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    /* Anular cualquier min-height de PageBuilder (full-height: 300px) */
    html body#html-body .yge-cotiza-row .pagebuilder-column,
    html body#html-body .yge-cotiza-row .pagebuilder-column[data-appearance="full-height"],
    html body#html-body .yge-cotiza-row div[data-content-type="column"],
    html body#html-body .yge-cotiza-row div[data-content-type="html"],
    html body#html-body .yge-cotiza-row .yge-cotiza-wrapper,
    html body#html-body .yge-cotiza-row .yge-cotiza-left {
        width: 100% !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: auto !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body#html-body .yge-cotiza-row .yge-cotiza-left {
        padding: 20px 0 10px 0 !important;
    }

    html body#html-body .yge-cotiza-row .yge-cotiza-icon {
        width: 52px !important;
        height: 58px !important;
    }

    html body#html-body .yge-cotiza-row .yge-cotiza-icon svg {
        width: 26px !important;
        height: 30px !important;
    }

    html body#html-body .yge-cotiza-row .yge-cotiza-titles .yge-cotiza-pre {
        font-size: 1.15rem !important;
    }

    html body#html-body .yge-cotiza-row .yge-cotiza-titles .yge-cotiza-main {
        font-size: 2.2rem !important;
    }

    html body#html-body .yge-cotiza-row .yge-cotiza-sub {
        font-size: 15px !important;
        margin-top: 6px !important;
        margin-bottom: 0 !important;
        max-width: 100% !important;
    }

    /* Anular paddings anidados en el formulario de BlueFormBuilder */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .block.bfb,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .bfb-form,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-container {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 {
        padding: 4px 0 24px 0 !important;
    }

    /* En mobile: campos apilados verticalmente con separacion uniforme */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder > .mgz-container,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row > .mgz-element-inner,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row .inner-content {
        display: contents !important;
    }

    /* Anular pseudo-elementos clearfix que actuan como flex items fantasma con display:contents */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder::before,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .magezon-builder::after,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-container::before,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-container::after,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row::before,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-row::after,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-inner::before,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-inner::after,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .inner-content::before,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .inner-content::after {
        display: none !important;
        content: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-element-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Orden de campos especificado: Correo, Nombre, Telefono, Mensaje, ENVIAR */
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .fdyekgw { order: 1 !important; }
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .tl2jx3d { order: 2 !important; }
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .w5l0qaf { order: 3 !important; }
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .kx32ye0 { order: 4 !important; }
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .q4h0382 { order: 5 !important; }

    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 .mgz-btn,
    html body#html-body .yge-cotiza-row #bfb-form-containerbfb3 button[type="submit"] {
        width: 100% !important;
        margin-top: 4px !important;
    }
}

/* ── Boton Volver Arriba y linea inferior: alineados con el contenedor de 1280px ── */
html body#html-body .yge-scroll-top-container {
    max-width: 1280px !important;
    margin: 0 auto 20px auto !important;
    padding: 10px 24px !important;
}

html body#html-body .yge-scroll-top-line {
    left: 24px !important;
    right: 24px !important;
}

/* ==========================================================================
   YGE: AJUSTES PDP (PRODUCT DETAIL PAGE) DESKTOP
   - 1. Nivelacion y alineacion superior: el bloque de imagen y el nombre del
        producto quedan alineados a la misma altura (top: 0 / delta: 0px).
   - 2. Reduccion proporcional del puntaje/tamano del titulo del producto
        (font-size: 1.25rem ~20px) segun referencia visual.
   - 3. Dimensiones de fotografia y columna balanceadas (1fr 1fr, max-height 420px):
        la foto completa, presentaciones y botones se aprecian 100% en pantalla
        sin cortes ni desplazamientos innecesarios.
   - 4. Pestanas de especificaciones en una sola linea horizontal.
   ========================================================================== */
@media (min-width: 1024px) {
    /* 1. Proporcion balanceada 50% / 50% entre columna de imagen e informacion y respiro superior */
    body.catalog-product-view section[aria-label='Product Info'] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 2.5rem !important;
        align-items: start !important;
        padding-top: 36px !important;
        padding-bottom: 20px !important;
    }

    /* 2. Nivelacion superior al ras: neutralizar padding-top del .card */
    body.catalog-product-view .yge-product-info-col .card,
    body.catalog-product-view .product-info-main .card {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
    }

    /* 3. Reduccion del tamano/puntaje del titulo a 20px (1.25rem) y peso 700 */
    body.catalog-product-view .product-info-main .card .page-title,
    body.catalog-product-view .product-info-main .card [data-ui-id='page-title-wrapper'],
    body.catalog-product-view .product-info-main .card div.page-title {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
    }

    /* 4. Marco de fotografia principal proporcional y expansion a la izquierda para alojar el badge */
    body.catalog-product-view #gallery {
        margin-bottom: 16px !important;
        align-items: start !important;
    }

    body.catalog-product-view #gallery > .relative {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: 480px !important;
    }

    body.catalog-product-view #gallery-main {
        width: 100% !important;
        max-width: 480px !important;
        height: 460px !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 !important;
    }

    body.catalog-product-view .yge-pdp-discount-badge {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 10 !important;
    }

    body.catalog-product-view #gallery-main img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 16px !important;
    }

    /* Miniaturas laterales ampliadas en desktop (mas anchas y altas) */
    body.catalog-product-view #gallery .snap-marker {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0 !important;
    }

    body.catalog-product-view #gallery .snap-marker img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
    }

    /* Presentaciones / swatches compactos */
    body.catalog-product-view .product-info-main .card .swatch-option {
        width: 54px !important;
        height: 54px !important;
        padding: 3px !important;
    }

    /* Descripcion corta y precios */
    body.catalog-product-view .product-info-main .card .yge-short-desc,
    body.catalog-product-view .product-info-main .card .yge-short-desc * {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    body.catalog-product-view .product-info-main .card .yge-short-desc {
        margin: 4px 0 8px 0 !important;
    }

    body.catalog-product-view .product-info-main .card [role='group'][aria-label='Price'] {
        margin-top: 6px !important;
        margin-bottom: 4px !important;
    }

    body.catalog-product-view .product-info-main .card [role='group'][aria-label='Price'] .final-price .price,
    body.catalog-product-view .product-info-main .card .price-box .price-final_price > .price-wrapper .price,
    body.catalog-product-view .product-info-main .card [role='group'][aria-label='Price'] .yge-pdp-final-price .price {
        font-size: 38px !important;
        font-weight: 800 !important;
        color: #185601 !important;
        line-height: 1 !important;
        letter-spacing: -0.02em !important;
    }

    body.catalog-product-view .product-info-main .card [role='group'][aria-label='Price'] .old-price .price,
    body.catalog-product-view .product-info-main .card .price-box .old-price .price,
    body.catalog-product-view .product-info-main .card [role='group'][aria-label='Price'] .yge-pdp-old-price .price {
        font-size: 20px !important;
        font-weight: 600 !important;
        color: #9ca3af !important;
        text-decoration: line-through !important;
        line-height: 1 !important;
    }

    /* Boton mayorista y metodos de pago */
    body.catalog-product-view .product-info-main .card .yge-wholesale-btn {
        height: 40px !important;
        min-height: 40px !important;
        margin-top: 8px !important;
    }

    body.catalog-product-view .product-info-main .card .yge-payment-methods {
        margin-top: 8px !important;
    }

    /* Pestanas de detalle en una sola linea horizontal */
    body.catalog-product-view .yge-product-tab {
        padding: 12px 14px !important;
        font-size: 12px !important;
        letter-spacing: 0.01em !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body.catalog-product-view .yge-product-info-col .card,
    body.catalog-product-view .product-info-main .card {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.catalog-product-view .product-info-main .card .page-title,
    body.catalog-product-view .product-info-main .card [data-ui-id='page-title-wrapper'] {
        font-size: 1.25rem !important;
        margin: 0 0 6px 0 !important;
    }
}
/* ── YGE Catálogo: Borde y botón integrados en Mobile / Tablet (< 1024px) ── */
@media (max-width: 1023px) {
    body.catalog-category-view #product-list .item.product.product-item::before,
    body.catalog-category-view #product-list .products.wrapper.products-grid .item.product.product-item::before,
    .products.wrapper.products-grid .item.product.product-item::before {
        bottom: 0 !important;
        background-color: #FF5901 !important;
        clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    }

    body.catalog-category-view #product-list .item.product.product-item::after,
    body.catalog-category-view #product-list .products.wrapper.products-grid .item.product.product-item::after,
    .products.wrapper.products-grid .item.product.product-item::after {
        top: 2px !important;
        left: 2px !important;
        right: 2px !important;
        bottom: 44px !important;
        clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important;
    }

    body.catalog-category-view #product-list .item.product [data-addto="cart"],
    body.catalog-category-view #product-list .item.product .yge-catalog-btn-cart,
    .products.wrapper.products-grid .item.product [data-addto="cart"],
    .products.wrapper.products-grid .item.product .yge-catalog-btn-cart {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 46px !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    }
}

/* ── Catálogo Mobile: Siempre 2 columnas por fila ── */
@media (max-width: 767px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid > ul,
    body.catalog-category-view #product-list .products.wrapper.products-grid > ul,
    .products.wrapper.products-grid > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid > ul,
    body.catalog-category-view #product-list .products.wrapper.products-grid > ul,
    .products.wrapper.products-grid > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}


/* ==========================================================================
   YGE: CATALOGO MOBILE (< 768px) - 2 COLUMNAS, TARJETAS COMPACTAS SIN ESPACIO VACÃO
   ========================================================================== */
@media (max-width: 767px) {
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid > ul,
    body.catalog-category-view #product-list .products.wrapper.products-grid > ul,
    .products.wrapper.products-grid > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding-bottom: 20px !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .item.product.product-item,
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product.product-item,
    .products.wrapper.products-grid .item.product.product-item {
        padding: 8px 6px 42px 6px !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product.product-item::before,
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .item.product.product-item::before,
    .products.wrapper.products-grid .item.product.product-item::before {
        bottom: 0 !important;
        background-color: #FF5901 !important;
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px)) !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product.product-item::after,
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .item.product.product-item::after,
    .products.wrapper.products-grid .item.product.product-item::after {
        top: 2px !important;
        left: 2px !important;
        right: 2px !important;
        bottom: 38px !important;
        clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
    }

    /* Altura proporcional que elimina el espacio en blanco gigante en mÃ³vil */
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product .product-item-photo,
    body.catalog-category-view #product-list .item.product .product-item-photo,
    .products.wrapper.products-grid .item.product .product-item-photo {
        height: 130px !important;
        min-height: 130px !important;
        max-height: 130px !important;
        margin-bottom: 2px !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product .product-item-photo img,
    body.catalog-category-view #product-list .item.product .product-item-photo img,
    .products.wrapper.products-grid .item.product .product-item-photo img {
        max-height: 125px !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    body.catalog-category-view #product-list .item.product button[data-addto="wishlist"],
    .products.wrapper.products-grid .item.product button[data-addto="wishlist"] {
        top: 6px !important;
        left: 6px !important;
        width: 26px !important;
        height: 30px !important;
    }

    body.catalog-category-view #product-list .item.product .product-info > div:first-child,
    .products.wrapper.products-grid .item.product .product-info > div:first-child {
        border-top: 1px solid #ececec !important;
        padding-top: 4px !important;
        margin-top: 2px !important;
        margin-bottom: 0 !important;
    }

    body.catalog-category-view #product-list .item.product .product-item-link,
    .products.wrapper.products-grid .item.product .product-item-link {
        font-size: 11px !important;
        min-height: calc(11px * 1.3 * 2) !important;
        line-height: 1.3 !important;
    }

    body.catalog-category-view #product-list .item.product [x-data="initConfigurableSwatchOptions"],
    .products.wrapper.products-grid .item.product [x-data="initConfigurableSwatchOptions"] {
        margin: 3px 0 2px !important;
        gap: 3px !important;
    }

    body.catalog-category-view #product-list .item.product [x-data="initConfigurableSwatchOptions"] .swatch-option,
    .products.wrapper.products-grid .item.product [x-data="initConfigurableSwatchOptions"] .swatch-option {
        font-size: 10px !important;
        min-width: 24px !important;
        height: 22px !important;
        line-height: 23px !important;
        padding: 0 4px !important;
    }

    body.catalog-category-view #product-list .item.product .price,
    .products.wrapper.products-grid .item.product .price {
        font-size: 15px !important;
    }

    body.catalog-category-view #product-list .item.product .old-price .price,
    .products.wrapper.products-grid .item.product .old-price .price {
        font-size: 11px !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product [data-addto="cart"],
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product .yge-catalog-btn-cart,
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid [data-addto='cart'],
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .action.tocart,
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .products.wrapper.products-grid .btn-primary,
    .products.wrapper.products-grid .item.product [data-addto="cart"],
    .products.wrapper.products-grid .item.product .yge-catalog-btn-cart,
    .products.wrapper.products-grid [data-addto='cart'] {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
        gap: 4px !important;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px)) !important;
    }

    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product [data-addto="cart"] svg,
    body:is(.catalog-category-view, .catalogsearch-result-index) #product-list .item.product .yge-catalog-btn-cart svg,
    .products.wrapper.products-grid [data-addto='cart'] svg {
        width: 15px !important;
        height: 15px !important;
    }
}
/* ==========================================================================
   CUSTOMER ACCOUNT SIDEBAR - REFERENCIA YGE
   ========================================================================== */
.account-sidebar-container {
    width: 100%;
}
.account-sidebar-container .account-nav-list a {
    text-decoration: none !important;
}
.account-sidebar-container .account-nav-list a:hover {
    text-decoration: none !important;
}
.account-sidebar-container button,
.account-sidebar-container a {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   CUSTOMER ACCOUNT LAYOUT & SPACING - REFERENCIA YGE
   ========================================================================== */
body.account .page-main,
body[class*="customer-account-"] .page-main {
    margin-top: 2.25rem !important;
    margin-bottom: 4rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 2rem !important;
}

@media (max-width: 767px) {
    body.account .page-main,
    body[class*="customer-account-"] .page-main {
        margin-top: 1.25rem !important;
        margin-bottom: 2.5rem !important;
        padding-top: 0.25rem !important;
        padding-bottom: 1.5rem !important;
    }
}

.account-page-header {
    width: 100%;
}

.account-sidebar-container {
    width: 100%;
}
.account-sidebar-container .account-nav-list a {
    text-decoration: none !important;
}
.account-sidebar-container .account-nav-list a:hover {
    text-decoration: none !important;
}
.account-sidebar-container button,
.account-sidebar-container a {
    -webkit-tap-highlight-color: transparent;
}
/* ==========================================================================
   CUSTOMER ACCOUNT REFINEMENTS - CORREGIR-2
   ========================================================================== */

/* 1. Encabezado "Mi cuenta" alineado al ancho máximo del contenedor */
.account-page-header {
    width: 100%;
    margin-inline: auto;
    padding-inline: calc(var(--spacing, 0.25rem) * 6);
    box-sizing: border-box;
}
@media (min-width: 640px) { .account-page-header { max-width: 40rem; } }
@media (min-width: 768px) { .account-page-header { max-width: 48rem; } }
@media (min-width: 1024px) { .account-page-header { max-width: 64rem; } }
@media (min-width: 1280px) { .account-page-header { max-width: 80rem; } }
@media (min-width: 1536px) { .account-page-header { max-width: 96rem; } }

/* 2. Ocultar títulos redundantes a la derecha para alinear tabla/tarjetas con el sidebar */
body.customer-address-index .block-addresses-list > .block-title,
body.sales-order-history #my-orders-title,
body.rma-customer-history .column.main > div > .flex > h2,
body.rma-customer-history .column.main h2,
body.review-customer-index .column.main > .mb-6.text-2xl {
    display: none !important;
}

body.customer-address-index .block-addresses-list,
body.customer-address-index .block-addresses-list .card,
body.customer-address-index .block-addresses-list .card.my-6,
body.sales-order-history .column.main > .card,
body.sales-order-history .column.main > .overflow-x-auto.card,
body.rma-customer-history .column.main > div > .flex,
body.review-customer-index .column.main > #content,
body.review-customer-index .column.main > #content > div {
    margin-top: 0 !important;
}

/* 3. Botones del área de cliente en color naranja YGE (#FF5901) en lugar de azul */
body.account .btn-primary,
body.account .action.primary,
body.account .actions-toolbar .primary .btn,
body.account .actions-toolbar .primary button,
body.account .actions-toolbar .primary a.btn,
body.account .actions-toolbar .primary a,
body[class*="customer-"] .btn-primary,
body[class*="customer-"] .action.primary,
body[class*="customer-"] .actions-toolbar .primary .btn,
body[class*="customer-"] .actions-toolbar .primary button,
body[class*="customer-"] .actions-toolbar .primary a.btn,
body[class*="sales-"] .btn-primary,
body[class*="sales-"] .action.primary,
body[class*="sales-"] .actions-toolbar .primary .btn,
body[class*="sales-"] .actions-toolbar .primary button,
body[class*="sales-"] .actions-toolbar .primary a.btn,
body[class*="rma-"] .btn-primary,
body[class*="rma-"] .action.primary,
body.account .bg-primary,
body[class*="rma-"] .bg-primary {
    background-color: var(--yge-orange, #FF5901) !important;
    border-color: var(--yge-orange, #FF5901) !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.account .btn-primary:hover,
body.account .action.primary:hover,
body.account .actions-toolbar .primary .btn:hover,
body.account .actions-toolbar .primary button:hover,
body.account .actions-toolbar .primary a.btn:hover,
body.account .actions-toolbar .primary a:hover,
body[class*="customer-"] .btn-primary:hover,
body[class*="customer-"] .action.primary:hover,
body[class*="customer-"] .actions-toolbar .primary .btn:hover,
body[class*="customer-"] .actions-toolbar .primary button:hover,
body[class*="customer-"] .actions-toolbar .primary a.btn:hover,
body[class*="sales-"] .btn-primary:hover,
body[class*="sales-"] .action.primary:hover,
body[class*="sales-"] .actions-toolbar .primary .btn:hover,
body[class*="sales-"] .actions-toolbar .primary button:hover,
body[class*="sales-"] .actions-toolbar .primary a.btn:hover,
body[class*="rma-"] .btn-primary:hover,
body[class*="rma-"] .action.primary:hover,
body.account .bg-primary:hover,
body[class*="rma-"] .bg-primary:hover {
    background-color: #e04f00 !important;
    border-color: #e04f00 !important;
    color: #ffffff !important;
}
/* ==========================================================================
   CUSTOMER ACCOUNT REFINEMENTS - CORREGIR-3
   ========================================================================== */

/* Alineación exacta del contenido derecho al tope del sidebar en el Dashboard ("Últimos pedidos") */
body.account .column.main,
body.customer-account-index .column.main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.customer-account-index .block-dashboard-info,
body.customer-account-index .block-dashboard-info .block-title,
body.customer-account-index .block-dashboard-info > h2.block-title,
body.customer-account-index .column.main > h2.block-title:first-child,
body.customer-account-index .column.main > *:first-child,
body.account .column.main > *:first-child {
    margin-top: 0 !important;
}

/* Separación visual entre Información de cuenta y Últimos pedidos */
body.customer-account-index .block-dashboard-orders,
body.customer-account-index .block-dashboard-orders.card {
    margin-top: 2.5rem !important;
    margin-bottom: 0 !important;
}

/* Separación visual generosa de los botones "Cerrar Sesión" y "Cambiar contraseña" respecto al sidebar */
.account-sidebar-actions {
    margin-top: 3.5rem !important;
}

@media (max-width: 767px) {
    .account-sidebar-actions {
        margin-top: 2.25rem !important;
    }
}
/* Separación reducida entre el botón Cerrar Sesión y Cambiar contraseña */
.account-sidebar-actions > button,
.account-sidebar-actions > a:first-child,
.account-sidebar-actions > *:not(:last-child) {
    margin-bottom: 0.75rem !important;
}

/* Sin separación ni margen entre los items del menú del sidebar */
.account-sidebar-container .account-nav-list a {
    margin: 0 !important;
}
/* ==========================================================================
   WISHLIST (MI LISTA DE DESEOS) - 4 COLUMNAS Y TARJETAS COMPACTAS ESTILO YGE
   ========================================================================== */

/* Grilla con 4 columnas en desktop */
.products-grid.wishlist .wishlist-grid-container,
.products-grid.wishlist .product-items {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important; /* Mobile < 540px: 1 col */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (min-width: 540px) {
    .products-grid.wishlist .wishlist-grid-container,
    .products-grid.wishlist .product-items {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* Tablet pequeña: 2 cols */
        gap: 14px !important;
    }
}

@media (min-width: 820px) {
    .products-grid.wishlist .wishlist-grid-container,
    .products-grid.wishlist .product-items {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* Tablet horizontal: 3 cols */
        gap: 14px !important;
    }
}

@media (min-width: 1024px) {
    .products-grid.wishlist .wishlist-grid-container,
    .products-grid.wishlist .product-items {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* Desktop: 4 columnas obligatorias */
        gap: 14px !important;
    }
}

/* Tarjeta de producto individual con geometr?a de chafl?n YGE */
.products-grid.wishlist .product-item {
    display: flex !important;
    height: 100% !important;
}

.products-grid.wishlist .wishlist-card,
.products-grid.wishlist .product-item-info {
    position: relative !important;
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 14px 12px 12px 12px !important;
    box-shadow: none !important;
    isolation: isolate !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transition: all 0.2s ease-in-out !important;
}

/* Capa gris #D9D9D9 (borde exterior de 2px con chaflanes en esquina superior derecha y esquina inferior izquierda) */
.products-grid.wishlist .wishlist-card::before,
.products-grid.wishlist .product-item-info::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #D9D9D9 !important;
    opacity: 1 !important;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    transition: background-color 0.25s ease-out !important;
    z-index: -2 !important;
}

/* Capa blanca (cuerpo interior de la tarjeta, 2px adentro) */
.products-grid.wishlist .wishlist-card::after,
.products-grid.wishlist .product-item-info::after {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
    background-color: #ffffff !important;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important;
    z-index: -1 !important;
}

/* Hover: el borde exterior pasa a naranja #FF5901 */
.products-grid.wishlist .wishlist-card:hover::before,
.products-grid.wishlist .product-item-info:hover::before {
    background-color: #FF5901 !important;
}

/* Badge de descuento en esquina superior derecha alineado con el chafl?n */
.products-grid.wishlist .yge-discount-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 5 !important;
    background-color: #FF5901 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 27px !important;
    padding: 0 12px 0 16px !important;
    box-sizing: border-box !important;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 12px 100%, 0 calc(100% - 12px)) !important;
}

/* Foto del producto en Wishlist: 210px como en categor?a */
.products-grid.wishlist .wishlist-photo-wrapper {
    height: 210px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
    position: relative !important;
    width: 100% !important;
}

.products-grid.wishlist .product-item-photo {
    height: 210px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    text-decoration: none !important;
}

.products-grid.wishlist .product-item-photo img,
.products-grid.wishlist .wishlist-image,
.products-grid.wishlist .product-image-photo {
    max-height: 200px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Imagen secundaria con crossfade suave en hover */
.products-grid.wishlist .wishlist-image-alt {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 100% !important;
    max-height: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-in-out !important;
    z-index: 3 !important;
}

/* Hover de respaldo CSS garantizado */
.products-grid.wishlist .wishlist-card:hover .wishlist-image-alt,
.products-grid.wishlist .product-item-info:hover .wishlist-image-alt,
.products-grid.wishlist .product-item:hover .wishlist-image-alt,
.products-grid.wishlist .wishlist-photo-wrapper:hover .wishlist-image-alt,
.products-grid.wishlist .product-item-photo:hover .wishlist-image-alt {
    opacity: 1 !important;
}

.products-grid.wishlist .wishlist-card:hover .wishlist-photo-wrapper:has(.wishlist-image-alt) .wishlist-image,
.products-grid.wishlist .product-item:hover .wishlist-photo-wrapper:has(.wishlist-image-alt) .wishlist-image,
.products-grid.wishlist .wishlist-photo-wrapper:hover:has(.wishlist-image-alt) .wishlist-image,
.products-grid.wishlist .product-item-photo:hover:has(.wishlist-image-alt) .wishlist-image {
    opacity: 0 !important;
}

/* L?nea separadora tenue encima del nombre del producto y t?tulo centrado sin cortar */
.products-grid.wishlist .wishlist-product-name,
.products-grid.wishlist .product-item-name {
    border-top: 1px solid #ececec !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    min-height: 52px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.products-grid.wishlist .product-item-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
    text-transform: uppercase !important;
    height: auto !important;
    max-height: none !important;
}

.products-grid.wishlist .product-item-link:hover {
    color: #185601 !important;
}

/* Precios id?nticos a categor?a: precio especial/final verde arriba, precio anterior tachado abajo */
.products-grid.wishlist .price-box {
    margin: 4px 0 8px 0 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.products-grid.wishlist .price-box .price-label {
    display: none !important;
}

.products-grid.wishlist .price-box .price,
.products-grid.wishlist .price-box .special-price .price,
.products-grid.wishlist .price-box .normal-price .price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #014C00 !important;
    line-height: 1.2 !important;
}

.products-grid.wishlist .price-box .old-price {
    display: block !important;
    line-height: 1.2 !important;
}

.products-grid.wishlist .price-box .old-price .price {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
}

/* Contenedor inferior flex mt-auto */
.products-grid.wishlist .wishlist-inner-wrapper,
.products-grid.wishlist .product-item-inner {
    margin-top: auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Campo de comentario */
.products-grid.wishlist .wishlist-comment-field,
.products-grid.wishlist .comment-box {
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}

.products-grid.wishlist .wishlist-comment-textarea,
.products-grid.wishlist .comment-box textarea {
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 11px !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background: #f9fafb !important;
    padding: 6px 8px !important;
    line-height: 1.3 !important;
    resize: none !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.15s ease !important;
}

.products-grid.wishlist .wishlist-comment-textarea:focus,
.products-grid.wishlist .comment-box textarea:focus {
    background: #ffffff !important;
    border-color: #185601 !important;
    box-shadow: 0 0 0 1px #185601 !important;
}

/* Control de cantidad */
.products-grid.wishlist .wishlist-qty-control {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.products-grid.wishlist .wishlist-qty-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #4b5563 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.products-grid.wishlist .wishlist-qty-box {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    height: 30px !important;
}

.products-grid.wishlist .wishlist-qty-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border: none !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background 0.15s ease !important;
    padding: 0 !important;
}

.products-grid.wishlist .wishlist-qty-btn:hover {
    background: #e5e7eb !important;
    color: #000000 !important;
}

.products-grid.wishlist .wishlist-qty-btn:active {
    background: #d1d5db !important;
}

.products-grid.wishlist .wishlist-qty-input {
    width: 38px !important;
    height: 30px !important;
    border: none !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    padding: 0 !important;
    background: #ffffff !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}

.products-grid.wishlist .wishlist-qty-input::-webkit-outer-spin-button,
.products-grid.wishlist .wishlist-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Botón Agregar al carrito */
.products-grid.wishlist .wishlist-btn-tocart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: 36px !important;
    padding: 0 10px !important;
    background-color: #FF5901 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}

.products-grid.wishlist .wishlist-btn-tocart:hover {
    background-color: #e04f00 !important;
    box-shadow: 0 4px 8px rgba(255, 89, 1, 0.35) !important;
    transform: translateY(-1px) !important;
}

.products-grid.wishlist .wishlist-btn-tocart:active {
    transform: translateY(0) !important;
}

/* Acciones secundarias */
.products-grid.wishlist .wishlist-actions-wrapper,
.products-grid.wishlist .product-item-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid #f3f4f6 !important;
    padding-top: 6px !important;
    margin-top: 6px !important;
}

.products-grid.wishlist .wishlist-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 2px 4px !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

.products-grid.wishlist .wishlist-action-edit:hover {
    color: #185601 !important;
}

.products-grid.wishlist .wishlist-action-remove:hover {
    color: #dc2626 !important;
}

/* Botones de control inferiores de la página Wishlist */
.form-wishlist-items .actions-toolbar .action.update,
.form-wishlist-items .actions-toolbar .action.share {
    border: 1.5px solid #185601 !important;
    color: #185601 !important;
    background: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.form-wishlist-items .actions-toolbar .action.update:hover,
.form-wishlist-items .actions-toolbar .action.share:hover {
    background: #f0f7ee !important;
    color: #134401 !important;
}

.form-wishlist-items .actions-toolbar .action.tocart {
    background-color: #FF5901 !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.2s ease !important;
}

.form-wishlist-items .actions-toolbar .action.tocart:hover {
    background-color: #e04f00 !important;
    box-shadow: 0 4px 8px -2px rgba(255, 89, 1, 0.35) !important;
}

/* ==========================================================================
   CUSTOMER ACCOUNT ACTIONS TOOLBAR & BUTTONS FIX
   Corrige dimensiones, espaciado y apariencia de botones en formularios del cliente
   ========================================================================== */

/* Estilos de botones primarios en acciones de cuenta (Wishlist compartir, Editar perfil, etc.) */
body.account .actions-toolbar:not(.form-wishlist-items *) .primary button,
body.account .actions-toolbar:not(.form-wishlist-items *) .primary .action.primary,
body.account .actions-toolbar:not(.form-wishlist-items *) .primary .btn,
body[class*="customer-"] .actions-toolbar:not(.form-wishlist-items *) .primary button,
body[class*="customer-"] .actions-toolbar:not(.form-wishlist-items *) .primary .action.primary,
body[class*="customer-"] .actions-toolbar:not(.form-wishlist-items *) .primary .btn,
body[class*="wishlist-"] .actions-toolbar:not(.form-wishlist-items *) .primary button,
body[class*="wishlist-"] .actions-toolbar:not(.form-wishlist-items *) .primary .action.primary,
body[class*="wishlist-"] .actions-toolbar:not(.form-wishlist-items *) .primary .btn,
form.wishlist.share .actions-toolbar .primary button,
form.wishlist.share .actions-toolbar .primary .action.primary,
form.wishlist.share .actions-toolbar .primary .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    background-color: var(--yge-orange, #FF5901) !important;
    border: 1px solid var(--yge-orange, #FF5901) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.account .actions-toolbar:not(.form-wishlist-items *) .primary button:hover,
body.account .actions-toolbar:not(.form-wishlist-items *) .primary .action.primary:hover,
body.account .actions-toolbar:not(.form-wishlist-items *) .primary .btn:hover,
body[class*="customer-"] .actions-toolbar:not(.form-wishlist-items *) .primary button:hover,
body[class*="customer-"] .actions-toolbar:not(.form-wishlist-items *) .primary .action.primary:hover,
body[class*="customer-"] .actions-toolbar:not(.form-wishlist-items *) .primary .btn:hover,
body[class*="wishlist-"] .actions-toolbar:not(.form-wishlist-items *) .primary button:hover,
body[class*="wishlist-"] .actions-toolbar:not(.form-wishlist-items *) .primary .action.primary:hover,
body[class*="wishlist-"] .actions-toolbar:not(.form-wishlist-items *) .primary .btn:hover,
form.wishlist.share .actions-toolbar .primary button:hover,
form.wishlist.share .actions-toolbar .primary .action.primary:hover,
form.wishlist.share .actions-toolbar .primary .btn:hover {
    background-color: #e04f00 !important;
    border-color: #e04f00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(255, 89, 1, 0.25) !important;
}

/* Alineación y espaciado de toolbar en formularios del panel de cliente */
form.wishlist.share .actions-toolbar,
form.form-edit-account .actions-toolbar,
form.form-address-edit .actions-toolbar,
form.form-newsletter-manage .actions-toolbar,
.block-addresses-list + .actions-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    margin-top: 1.5rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #e5e7eb !important;
}

/* Enlace secundario "Volver" con tipografía y separación adecuada */
form.wishlist.share .actions-toolbar .secondary .action.back,
form.form-edit-account .actions-toolbar .secondary .action.back,
form.form-address-edit .actions-toolbar .secondary .action.back,
form.form-newsletter-manage .actions-toolbar .secondary .action.back,
.block-addresses-list + .actions-toolbar .secondary .action.back {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease !important;
}

form.wishlist.share .actions-toolbar .secondary .action.back:hover,
form.form-edit-account .actions-toolbar .secondary .action.back:hover,
form.form-address-edit .actions-toolbar .secondary .action.back:hover,
form.form-newsletter-manage .actions-toolbar .secondary .action.back:hover,
.block-addresses-list + .actions-toolbar .secondary .action.back:hover {
    color: #185601 !important;
}

/* Adaptación responsive para dispositivos móviles */
@media (max-width: 639px) {
    form.wishlist.share .actions-toolbar,
    form.form-edit-account .actions-toolbar,
    form.form-address-edit .actions-toolbar,
    form.form-newsletter-manage .actions-toolbar,
    .block-addresses-list + .actions-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    form.wishlist.share .actions-toolbar .primary,
    form.wishlist.share .actions-toolbar .primary button,
    form.form-edit-account .actions-toolbar .primary,
    form.form-edit-account .actions-toolbar .primary button,
    form.form-address-edit .actions-toolbar .primary,
    form.form-address-edit .actions-toolbar .primary button,
    form.form-newsletter-manage .actions-toolbar .primary,
    form.form-newsletter-manage .actions-toolbar .primary button,
    .block-addresses-list + .actions-toolbar .primary,
    .block-addresses-list + .actions-toolbar .primary a {
        width: 100% !important;
        justify-content: center !important;
        order: 1 !important;
    }

    form.wishlist.share .actions-toolbar .secondary,
    form.form-edit-account .actions-toolbar .secondary,
    form.form-address-edit .actions-toolbar .secondary,
    form.form-newsletter-manage .actions-toolbar .secondary,
    .block-addresses-list + .actions-toolbar .secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        order: 2 !important;
    }
}

/* ==========================================================================
   YGE ? SUCCESS PAGE STYLES (REDISE?O SEG?N success-referencia.png)
   ========================================================================== */

/* Fondo con trama hexagonal en toda la p?gina de ?xito */
body.checkout-onepage-success,
.checkout-onepage-success .page-main,
.checkout-onepage-success .columns,
.checkout-onepage-success main#maincontent {
    background-image: url('/media/wysiwyg/trama.png') !important;
    background-size: 210px !important;
    background-repeat: repeat !important;
    background-color: #fafbfc !important;
}

/* Ocultar t?tulos o botones por defecto fuera del contenedor redise?ado */
.checkout-onepage-success .page-title-wrapper,
.checkout-onepage-success h1.page-title,
.checkout-onepage-success .checkout-success-print-button {
    display: none !important;
}

/* Contenedor principal centrado */
.yge-success-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.25rem 1rem 3.5rem;
    box-sizing: border-box;
}

/* 1. Encabezado centrado */
.yge-success-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.yge-success-header__title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 0.5rem auto;
}

.yge-success-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

.yge-success-icon svg {
    width: 34px;
    height: 38px;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.yge-success-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #111827;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
}

.yge-success-subtitle {
    font-size: 0.95rem;
    color: #374151;
    margin: 0;
    line-height: 1.4;
}

.yge-success-subtitle strong {
    color: #185601;
    font-weight: 700;
}

/* 2. Barra horizontal de 4 m?tricas */
.yge-success-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 0 0.25rem;
}

.yge-success-metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yge-success-metric-item__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.yge-success-metric-item__value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}

/* 3. Secciones y tarjetas con borde */
.yge-success-section {
    margin-bottom: 1.75rem;
}

.yge-success-section__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.yge-success-card {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Tarjeta: Datos de facturaci?n */
.yge-success-card--billing {
    padding: 1.15rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.yge-success-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.yge-success-field-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: #4b5563;
}

.yge-success-field-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    word-break: break-word;
}

/* Tarjeta: Resumen */
.yge-success-card--summary {
    padding: 1.25rem 1.5rem;
}

.yge-success-items-list {
    display: flex;
    flex-direction: column;
}

.yge-success-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.yge-success-item:last-child {
    border-bottom: none;
}

.yge-success-item__qty-badge {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FF5901;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yge-success-item__image-wrap {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2px;
}

.yge-success-item__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.yge-success-item__details {
    flex: 1 1 auto;
    min-width: 0;
}

.yge-success-item__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    display: block;
}

.yge-success-item__brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
}

.yge-success-item__brand-img {
    max-height: 36px;
    max-width: 60px;
    object-fit: contain;
    display: block;
}

.yge-success-item__price {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
    text-align: right;
    white-space: nowrap;
}

/* Desglose de Totales dentro del Resumen */
.yge-success-totals {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.yge-success-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.yge-success-totals__row--grand {
    border-top: 1.5px solid #d1d5db;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

.yge-success-totals__row--grand span {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

/* Tarjeta: Enviar a */
.yge-success-card--shipping {
    padding: 1.25rem 1.5rem;
}

.yge-success-recipient-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.yge-success-shipping-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.yge-success-info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #111827;
}

.yge-success-info-label {
    font-weight: 700;
    color: #111827;
}

.yge-success-info-value {
    font-weight: 400;
    color: #374151;
}

.yge-success-info-row--notice {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e5e7eb;
}

/* 6. Bot?n de acci?n al pie */
.yge-success-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
    padding-bottom: 2rem;
}

.yge-btn-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FF5901;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.yge-btn-store:hover {
    background-color: #e04f00;
    box-shadow: 0 2px 4px rgba(224, 79, 0, 0.25);
}

/* Responsive / Mobile */
@media (max-width: 640px) {
    .yge-success-wrapper {
        padding: 1.5rem 0.75rem 2.5rem;
    }

    .yge-success-metrics-bar {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .yge-success-metric-item__value {
        font-size: 1.15rem;
    }

    .yge-success-card--billing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .yge-success-field-value {
        font-size: 1.15rem;
    }

    .yge-success-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .yge-success-item__details {
        flex: 1 1 50%;
    }

    .yge-success-item__price {
        margin-left: auto;
        font-size: 1rem;
    }

    .yge-success-info-row {
        grid-template-columns: 105px 1fr;
    }

    .yge-success-card {
        padding: 1rem 1.15rem;
    }
}

/* ── YGE: Correccion esquina superior derecha (Aprovecha las Ofertas y Top Buscados) ── */
html body#html-body div.ofertas-row[data-content-type=" row\] .item.product.product-item::before,
html body#html-body .ofertas-row .item.product.product-item::before,
#html-body .ofertas-row .item.product.product-item::before,
.ofertas-row .item.product.product-item::before,
html body#html-body div.top-buscados[data-content-type=
ow\] .item.product.product-item::before,
html body#html-body .top-buscados .item.product.product-item::before,
#html-body .top-buscados .item.product.product-item::before,
.top-buscados .item.product.product-item::before {
 clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
}

html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product.product-item::after,
html body#html-body .ofertas-row .item.product.product-item::after,
#html-body .ofertas-row .item.product.product-item::after,
.ofertas-row .item.product.product-item::after,
html body#html-body div.top-buscados[data-content-type=
ow\] .item.product.product-item::after,
html body#html-body .top-buscados .item.product.product-item::after,
#html-body .top-buscados .item.product.product-item::after,
.top-buscados .item.product.product-item::after {
 clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)) !important;
}

html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product .yge-discount-badge,
html body#html-body .ofertas-row .item.product .yge-discount-badge,
#html-body .ofertas-row .item.product .yge-discount-badge,
.ofertas-row .item.product .yge-discount-badge,
html body#html-body div.top-buscados[data-content-type=
ow\] .item.product .yge-discount-badge,
html body#html-body .top-buscados .item.product .yge-discount-badge,
#html-body .top-buscados .item.product .yge-discount-badge,
.top-buscados .item.product .yge-discount-badge {
 clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
}

html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product.product-item:hover::before,
html body#html-body .ofertas-row .item.product.product-item:hover::before,
#html-body .ofertas-row .item.product.product-item:hover::before,
.ofertas-row .item.product.product-item:hover::before,
html body#html-body div.top-buscados[data-content-type=
ow\] .item.product.product-item:hover::before,
html body#html-body .top-buscados .item.product.product-item:hover::before,
#html-body .top-buscados .item.product.product-item:hover::before,
.top-buscados .item.product.product-item:hover::before {
 clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
}

html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product.product-item:hover::after,
html body#html-body .ofertas-row .item.product.product-item:hover::after,
#html-body .ofertas-row .item.product.product-item:hover::after,
.ofertas-row .item.product.product-item:hover::after,
html body#html-body div.top-buscados[data-content-type=
ow\] .item.product.product-item:hover::after,
html body#html-body .top-buscados .item.product.product-item:hover::after,
#html-body .top-buscados .item.product.product-item:hover::after,
.top-buscados .item.product.product-item:hover::after {
 clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 13px 100%, 0 calc(100% - 13px)) !important;
}

@media (max-width: 768px) {
 html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product.product-item::before,
 html body#html-body .ofertas-row .item.product.product-item::before,
 #html-body .ofertas-row .item.product.product-item::before,
 .ofertas-row .item.product.product-item::before,
 html body#html-body div.top-buscados[data-content-type=
ow\] .item.product.product-item::before,
 html body#html-body .top-buscados .item.product.product-item::before,
 #html-body .top-buscados .item.product.product-item::before,
 .top-buscados .item.product.product-item::before {
 clip-path: polygon(0 0, calc(100% - 14.5px) 0, 100% 14.5px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
 }

 html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product.product-item::after,
 html body#html-body .ofertas-row .item.product.product-item::after,
 #html-body .ofertas-row .item.product.product-item::after,
 .ofertas-row .item.product.product-item::after,
 html body#html-body div.top-buscados[data-content-type=
ow\] .item.product.product-item::after,
 html body#html-body .top-buscados .item.product.product-item::after,
 #html-body .top-buscados .item.product.product-item::after,
 .top-buscados .item.product.product-item::after {
 clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 9px 100%, 0 calc(100% - 9px)) !important;
 }

 html body#html-body div.ofertas-row[data-content-type=
ow\] .item.product .yge-discount-badge,
 html body#html-body .ofertas-row .item.product .yge-discount-badge,
 #html-body .ofertas-row .item.product .yge-discount-badge,
 .ofertas-row .item.product .yge-discount-badge,
 html body#html-body div.top-buscados[data-content-type=
ow\] .item.product .yge-discount-badge,
 html body#html-body .top-buscados .item.product .yge-discount-badge,
 #html-body .top-buscados .item.product .yge-discount-badge,
 .top-buscados .item.product .yge-discount-badge {
 clip-path: polygon(0 0, calc(100% - 14.5px) 0, 100% 14.5px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
 }
}


/* ==========================================================================
   YGE: SECCION "TE PODRIAN INTERESAR" (VENTAS CRUZADAS EN EL CARRITO)
   Referencia visual: carrito.png
   ========================================================================== */

.yge-cart-suggest {
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    width: 100%;
}

.yge-cart-suggest .product-slider {
    margin: 0 !important;
    position: relative;
}

/* Flechas de navegacion laterales circulares (identicas a carrito.png) */
.yge-cart-suggest .product-slider > .flex.justify-between {
    position: static;
}

.yge-cart-suggest [data-prev],
.yge-cart-suggest [data-next] {
    position: absolute !important;
    top: 48% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 9999px !important;
    border: 1.5px solid #0B4E22 !important;
    background-color: #ffffff !important;
    color: #0B4E22 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
}

.yge-cart-suggest [data-prev] {
    left: -22px !important;
}

.yge-cart-suggest [data-next] {
    right: -22px !important;
}

.yge-cart-suggest [data-prev]:hover:not(:disabled),
.yge-cart-suggest [data-next]:hover:not(:disabled) {
    background-color: #0B4E22 !important;
    color: #ffffff !important;
}

.yge-cart-suggest [data-prev]:disabled,
.yge-cart-suggest [data-next]:disabled {
    opacity: 0.25 !important;
    cursor: not-allowed !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
}

@media (max-width: 768px) {
    .yge-cart-suggest [data-prev] {
        left: -6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .yge-cart-suggest [data-next] {
        right: -6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
}

/* Paginador Hexagonal inferior (naranja / blanco como carrito.png) */
.yge-cart-suggest .snap-pager {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 24px !important;
}

.yge-cart-suggest .snap-pager .snap-marker {
    width: 13px !important;
    height: 15px !important;
    inline-size: 13px !important;
    block-size: 15px !important;
    padding: 0 !important;
    border: 2px solid #EA580C !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.yge-cart-suggest .snap-pager .snap-marker[aria-current="true"] {
    background-color: #EA580C !important;
    transform: scale(1.18) !important;
}

/* Tarjetas de Producto Biseladas (Contorno gris, esquinas biseladas) */
.yge-cart-suggest .item.product.product-item {
    position: relative;
    background: transparent;
    padding: 16px 14px 18px;
    min-height: 380px;
}

/* Capa exterior ::before (borde gris de 2px con corte de 16px arriba-derecha y 16px abajo-izquierda) */
.yge-cart-suggest .item.product.product-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #D9D9D9;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    z-index: 0;
    transition: background-color 0.2s ease;
}

/* Capa interior ::after (cuerpo blanco de la tarjeta) */
.yge-cart-suggest .item.product.product-item::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    background-color: #ffffff;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)) !important;
    z-index: 1;
}

.yge-cart-suggest .item.product.product-item:hover::before {
    background-color: #EA580C;
}

/* Todo el contenido sobre las capas decorativas */
.yge-cart-suggest .item.product > * {
    position: relative;
    z-index: 2;
}

/* Badge de descuento naranja (-30%) */
.yge-cart-suggest .item.product .yge-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 25px;
    padding: 0 10px 0 14px;
    background-color: #EA580C;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
}

/* Boton de Favoritos (Hexagono en esquina superior izquierda) */
.yge-cart-suggest .item.product [data-addto="wishlist"] {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 3 !important;
    width: 28px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #D9D9D9 !important;
    border: none !important;
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    transition: background-color 0.2s ease !important;
}

.yge-cart-suggest .item.product [data-addto="wishlist"]::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #ffffff url('/media/wysiwyg/corazon.svg') no-repeat center / 13px 12px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.yge-cart-suggest .item.product [data-addto="wishlist"] svg {
    display: none !important;
}

.yge-cart-suggest .item.product [data-addto="wishlist"]:hover {
    background-color: #EA580C !important;
}

/* Cintillo AGOTADO sobre la foto (como en carrito.png) */
.yge-out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(45, 52, 54, 0.88);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 26px;
    text-transform: uppercase;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    white-space: nowrap;
}

/* Titulo del producto centrado y limpio */
.yge-cart-suggest .item.product .product-item-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    margin-top: 6px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.yge-cart-suggest .item.product .product-item-link:hover {
    color: #EA580C;
}

/* Ocultar elementos innecesarios en la tarjeta de sugerencias */
.yge-cart-suggest .item.product .rating-summary,
.yge-cart-suggest .item.product .product-info > div:has(.rating-summary),
.yge-cart-suggest .item.product [x-data="initConfigurableSwatchOptions"],
.yge-cart-suggest .item.product [data-addto="compare"],
.yge-cart-suggest .item.product .price-label {
    display: none !important;
}

/* Precios en la tarjeta */
.yge-cart-suggest .item.product .price-box {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 6px;
}

.yge-cart-suggest .item.product .price-box .price {
    color: #008A20 !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.yge-cart-suggest .item.product .price-box .old-price .price {
    color: #9CA3AF !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-decoration: line-through !important;
}

/* Ocultar boton de agregar al carrito en reposo dentro del slider */
.yge-cart-suggest .item.product .btn-primary[data-addto="cart"],
.yge-cart-suggest .item.product .yge-catalog-btn-cart {
    display: none !important;
}


/* ==========================================================================
   YGE: AJUSTES FINALES SECCION "TE PODRIAN INTERESAR" (VENTAS CRUZADAS CARRITO)
   Fondo 100% transparente/limpio, hover en agregar al carrito,
   flechas circulares, paginador hexagonal y responsive total.
   ========================================================================== */

html body#html-body .yge-cart-suggest,
.yge-cart-suggest {
    position: relative !important;
    margin: 40px 0 50px !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    clip-path: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* Encabezado */
.yge-cart-suggest__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 24px !important;
    padding-bottom: 8px !important;
    border: none !important;
}

.yge-cart-suggest__title {
    font-family: inherit !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    .yge-cart-suggest__title {
        font-size: 32px !important;
    }
}

.yge-cart-suggest__title .yge-text-green {
    color: #0b4e22 !important;
}

.yge-cart-suggest__title .yge-text-orange {
    color: #ea580c !important;
}

.yge-cart-suggest__btn-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 22px !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #0b4e22 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.yge-cart-suggest__btn-more:hover {
    border-color: #0b4e22 !important;
    background-color: #f9fafb !important;
    color: #0b4e22 !important;
}

/* Slider general */
.yge-cart-suggest .product-slider {
    position: relative !important;
    margin: 0 !important;
}

.yge-cart-suggest .product-slider > .flex.justify-between {
    position: static !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Flechas de navegacion circulares a los lados (identicas a carrito.png) */
.yge-cart-suggest [data-prev],
.yge-cart-suggest [data-next] {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 30 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 9999px !important;
    border: 1.5px solid #0B4E22 !important;
    background-color: #ffffff !important;
    color: #0B4E22 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.2s ease !important;
}

.yge-cart-suggest [data-prev] {
    left: -22px !important;
}

.yge-cart-suggest [data-next] {
    right: -22px !important;
}

.yge-cart-suggest [data-prev] svg,
.yge-cart-suggest [data-next] svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #0B4E22 !important;
    stroke-width: 2 !important;
    display: block !important;
}

.yge-cart-suggest [data-prev]:hover:not(:disabled),
.yge-cart-suggest [data-next]:hover:not(:disabled) {
    background-color: #0B4E22 !important;
    color: #ffffff !important;
}

.yge-cart-suggest [data-prev]:hover:not(:disabled) svg,
.yge-cart-suggest [data-next]:hover:not(:disabled) svg {
    stroke: #ffffff !important;
}

.yge-cart-suggest [data-prev]:disabled,
.yge-cart-suggest [data-next]:disabled {
    opacity: 0.25 !important;
    cursor: not-allowed !important;
    border-color: #d1d5db !important;
}

.yge-cart-suggest [data-prev]:disabled svg,
.yge-cart-suggest [data-next]:disabled svg {
    stroke: #9ca3af !important;
}

@media (max-width: 768px) {
    .yge-cart-suggest [data-prev] {
        left: -6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
    .yge-cart-suggest [data-next] {
        right: -6px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }
}

/* Tarjetas de Producto con biseles exactos */
.yge-cart-suggest .item.product.product-item {
    position: relative !important;
    background: transparent !important;
    padding: 16px 14px 20px !important;
    min-height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.yge-cart-suggest .item.product.product-item::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-color: #D9D9D9 !important;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)) !important;
    z-index: 0 !important;
    transition: background-color 0.2s ease !important;
}

.yge-cart-suggest .item.product.product-item::after {
    content: '' !important;
    position: absolute !important;
    inset: 1.5px !important;
    background-color: #ffffff !important;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px)) !important;
    z-index: 1 !important;
}

.yge-cart-suggest .item.product.product-item:hover::before {
    background-color: #EA580C !important;
}

.yge-cart-suggest .item.product > * {
    position: relative !important;
    z-index: 2 !important;
}

/* Badge de descuento naranja (-30%) */
.yge-cart-suggest .item.product .yge-discount-badge {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 52px !important;
    height: 25px !important;
    padding: 0 10px 0 14px !important;
    background-color: #EA580C !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
}

/* Favoritos con hexágono en esquina superior izquierda */
.yge-cart-suggest .item.product [data-addto="wishlist"] {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 3 !important;
    width: 30px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #E5E7EB !important;
    border: none !important;
    border-radius: 0 !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    transition: background-color 0.2s ease !important;
}

.yge-cart-suggest .item.product [data-addto="wishlist"]::after {
    content: '' !important;
    position: absolute !important;
    inset: 1px !important;
    background: #ffffff url('/media/wysiwyg/corazon.svg') no-repeat center / 13px 12px !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
}

.yge-cart-suggest .item.product [data-addto="wishlist"] svg {
    display: none !important;
}

.yge-cart-suggest .item.product [data-addto="wishlist"]:hover {
    background-color: #EA580C !important;
}

/* Cintillo AGOTADO sobre la imagen */
.yge-out-of-stock-badge {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(45, 52, 54, 0.88) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    padding: 6px 26px !important;
    text-transform: uppercase !important;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

/* Título de producto centrado y limpio */
.yge-cart-suggest .item.product .product-item-link {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    min-height: 2.6em !important;
    margin-top: 8px !important;
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.yge-cart-suggest .item.product .product-item-link:hover {
    color: #EA580C !important;
}

/* Ocultar elementos innecesarios */
.yge-cart-suggest .item.product .rating-summary,
.yge-cart-suggest .item.product .product-info > div:has(.rating-summary),
.yge-cart-suggest .item.product [x-data="initConfigurableSwatchOptions"],
.yge-cart-suggest .item.product [data-addto="compare"],
.yge-cart-suggest .item.product .price-label {
    display: none !important;
}

/* Precios */
.yge-cart-suggest .item.product .price-box {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
}

.yge-cart-suggest .item.product .price {
    color: #008A20 !important;
    font-weight: 800 !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
}

.yge-cart-suggest .item.product .old-price .price {
    color: #9CA3AF !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    text-decoration: line-through !important;
}

/* Boton de Agregar al Carrito: Oculto en reposo, VISIBLE SOLO EN HOVER */
.yge-cart-suggest .item.product .btn-primary[data-addto="cart"],
.yge-cart-suggest .item.product .yge-catalog-btn-cart {
    position: absolute !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 2px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #EA580C !important;
    border: none !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
    z-index: 10 !important;
}

.yge-cart-suggest .item.product:hover .btn-primary[data-addto="cart"],
.yge-cart-suggest .item.product:hover .yge-catalog-btn-cart {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.yge-cart-suggest .item.product .btn-primary[data-addto="cart"]:hover,
.yge-cart-suggest .item.product .yge-catalog-btn-cart:hover {
    background-color: #0B4E22 !important;
}

/* Paginador Hexagonal inferior */
.yge-cart-suggest .snap-pager {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 24px !important;
    padding-bottom: 8px !important;
}

.yge-cart-suggest .snap-pager .snap-marker {
    width: 14px !important;
    height: 16px !important;
    inline-size: 14px !important;
    block-size: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid #EA580C !important;
    border-radius: 0 !important;
    background-color: #ffffff !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.yge-cart-suggest .snap-pager .snap-marker[aria-current="true"] {
    background-color: #EA580C !important;
    transform: scale(1.2) !important;
}

/* Responsive estricto en tarjetas */
.yge-cart-suggest .snap-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding: 10px 4px 16px !important;
    scrollbar-width: none !important;
}

.yge-cart-suggest .snap-track::-webkit-scrollbar {
    display: none !important;
}

.yge-cart-suggest .snap-track > div {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    width: calc(100% - 24px) !important; /* Móvil: 1 tarjeta completa */
}

@media (min-width: 640px) {
    .yge-cart-suggest .snap-track > div {
        width: calc(50% - 12px) !important; /* Tablet pequeña: 2 tarjetas */
    }
}

@media (min-width: 768px) {
    .yge-cart-suggest .snap-track > div {
        width: calc(33.333% - 12px) !important; /* Tablet: 3 tarjetas */
    }
}

@media (min-width: 1024px) {
    .yge-cart-suggest .snap-track > div {
        width: calc(25% - 12px) !important; /* Desktop: 4 tarjetas */
    }
}

@media (min-width: 1280px) {
    .yge-cart-suggest .snap-track > div {
        width: calc(20% - 13px) !important; /* Desktop amplio: 5 tarjetas (como en carrito.png) */
    }
}

/* ==========================================================================
   YGE: Formulario de Contacto (Página Nuestras Marcas & BFB Forms)
   - Centrar icono de bandera en campo Teléfono al borde izquierdo con hover completo
   - Enlace dinámico a Políticas de Privacidad destacado en Naranja
   ========================================================================== */

body .yge-nm-form-card .iti,
body .bfb-form .iti,
body #yge-nm-restock-form-slot .iti {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    z-index: 20 !important;
}

body .yge-nm-form-card .iti .iti__flag-container,
body .bfb-form .iti .iti__flag-container,
body #yge-nm-restock-form-slot .iti .iti__flag-container {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    pointer-events: auto !important;
}

body .yge-nm-form-card .iti .iti__selected-flag,
body .bfb-form .iti .iti__selected-flag,
body #yge-nm-restock-form-slot .iti .iti__selected-flag {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px 0 10px !important;
    background-color: transparent;
}

body .yge-nm-form-card .iti:hover .iti__selected-flag,
body .bfb-form .iti:hover .iti__selected-flag,
body #yge-nm-restock-form-slot .iti:hover .iti__selected-flag,
body .yge-nm-form-card .iti .iti__selected-flag:hover,
body .bfb-form .iti .iti__selected-flag:hover,
body #yge-nm-restock-form-slot .iti .iti__selected-flag:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body .yge-nm-form-card .iti .iti__flag,
body .bfb-form .iti .iti__flag,
body #yge-nm-restock-form-slot .iti .iti__flag {
    transform: scale(0.78) !important;
    transform-origin: center center !important;
    margin: 0 !important;
    box-shadow: 0 0 1px rgba(0,0,0,0.25) !important;
}

body .yge-nm-form-card .iti .iti__arrow,
body .bfb-form .iti .iti__arrow,
body #yge-nm-restock-form-slot .iti .iti__arrow {
    margin-left: 4px !important;
    margin-right: 0 !important;
    transform: scale(0.75) !important;
}

body .yge-nm-form-card .iti input.bfb-control[type="tel"],
body .bfb-form .iti input.bfb-control[type="tel"],
body #yge-nm-restock-form-slot .iti input.bfb-control[type="tel"] {
    padding-left: 50px !important;
}

/* Enlace a Políticas de Privacidad destacado en Naranja */
.yge-nm-privacy-link {
    color: #FF5901 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    display: inline !important;
    cursor: pointer !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.yge-nm-privacy-link:hover {
    color: #e04a00 !important;
    text-decoration: underline !important;
    opacity: 0.85 !important;
}

/* BlueFormBuilder Validation & Feedback Styles (Hyva) */
.bfb-error.yge-error-active {
    display: block !important;
    color: #e02b27 !important;
    font-size: 11px !important;
    margin-top: 4px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

input.yge-input-invalid,
textarea.yge-input-invalid {
    border-color: #e02b27 !important;
    background-color: #fff9f9 !important;
}

.yge-form-success-card {
    background: #f0fdf4 !important;
    border: 1.5px solid #22c55e !important;
    padding: 24px 18px !important;
    text-align: center !important;
    margin: 10px 0 !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15) !important;
}

.yge-form-success-card h4 {
    color: #15803d !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 8px 0 6px !important;
    text-transform: uppercase !important;
}

.yge-form-success-card p {
    color: #166534 !important;
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.yge-form-alert {
    padding: 10px 14px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.yge-form-alert-error {
    background-color: #fef2f2 !important;
    border: 1px solid #ef4444 !important;
    color: #b91c1c !important;
}


/* ==========================================================================
   YGE: Detalle de Producto - Precio destacado (Figma)
   - Precio final grande a la izquierda (36px desktop / 30px mobile, bold 800, #185601)
   - Precio regular tachado al lado derecho (20px desktop / 18px mobile, bold 600, #9ca3af)
   - En la misma fila horizontal (items-baseline)
   ========================================================================== */

body.catalog-product-view .product-info-main [role='group'][aria-label='Price'] .price-box,
body.catalog-product-view .product-info-main [role='group'][aria-label='Price'] .price-container,
body.catalog-product-view .product-info-main .price-box,
body.catalog-product-view .product-info-main .price-box .price-container,
.yge-pdp-price-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

body.catalog-product-view .product-info-main .price-box .final-price,
.yge-pdp-final-price {
    order: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

body.catalog-product-view .product-info-main .price-box .final-price .price,
.yge-pdp-final-price .price {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #185601 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
}

body.catalog-product-view .product-info-main .price-box .old-price,
.yge-pdp-old-price {
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

body.catalog-product-view .product-info-main .price-box .old-price .price,
.yge-pdp-old-price .price {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
    line-height: 1 !important;
}

body.catalog-product-view .product-info-main .price-box .price-label {
    display: none !important;
}

@media (max-width: 640px) {
    body.catalog-product-view .product-info-main .price-box .final-price .price,
    .yge-pdp-final-price .price {
        font-size: 30px !important;
    }
    body.catalog-product-view .product-info-main .price-box .old-price .price,
    .yge-pdp-old-price .price {
        font-size: 18px !important;
    }
}
/* Carrito: ocultar texto informativo de IGV y envio */
.yge-totals-note {
    display: none !important;
}
