/* Cabecera compacta compartida de Búsqueda, Categorías y Producto.
   Home V2 y la cabecera de Tienda conservan sus estilos propios. */
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-home-v2-header {
            position:relative;z-index:30;color:#fff;
            background:radial-gradient(circle at 16% 0%,rgba(128,208,48,.38),transparent 30%),linear-gradient(135deg,#183d14 0%,#306020 52%,#70c030 140%);
            border:0;border-radius:0;box-shadow:0 3px 16px rgba(0,45,18,.13);
        }
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-home-v2-header::before {content:"";position:absolute;inset:0 0 0 auto;width:38%;pointer-events:none;z-index:0;opacity:.10;background-image:radial-gradient(circle,#e5ffcd 1px,transparent 1.6px);background-size:17px 17px;-webkit-mask-image:linear-gradient(to left,#000,transparent 95%);mask-image:linear-gradient(to left,#000,transparent 95%)}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-home-v2-header::after {content:"";position:absolute;inset:0 0 0 auto;width:min(35%,490px);pointer-events:none;z-index:0;opacity:.14;background-repeat:no-repeat;background-position:right center;background-size:contain;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490 100' fill='none' stroke='%23e5ffcd' stroke-width='1.4'%3E%3Cpath d='M490 12H355l-30 30h-90M490 38h-98l-28 28h-90M490 79h-142l-18-18h-60M490 96h-82l-22-22h-45'/%3E%3Ccircle cx='235' cy='42' r='4'/%3E%3Ccircle cx='274' cy='66' r='4'/%3E%3Ccircle cx='270' cy='61' r='3'/%3E%3Ccircle cx='347' cy='74' r='4'/%3E%3C/svg%3E");-webkit-mask-image:linear-gradient(to left,#000 35%,transparent 100%);mask-image:linear-gradient(to left,#000 35%,transparent 100%)}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-home-v2-header-inner {position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:70px;padding:9px 0;width:min(1180px,calc(100% - 40px));margin-inline:auto}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .brand-logo-link {display:flex;align-items:center;flex:0 0 auto;min-width:0}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .brand-logo-img {display:block;width:auto;max-width:180px;max-height:52px;object-fit:contain}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .header-actions {display:flex;align-items:center;justify-content:flex-end;gap:clamp(9px,1.1vw,18px);margin-left:auto}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-header-favorites,:is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-cart-trigger,:is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-search-back {position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0;border-radius:50%;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);color:#fff;cursor:pointer}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-header-favorites svg {display:block;width:22px;height:22px}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-search-back svg {display:block;width:20px;height:20px}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-cart-icon-mobile {display:block;width:23px;height:23px;color:#fff}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-cart-icon {display:none}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-cart-count {position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#ef3340;color:#fff;border:2px solid #fff;font-size:10px;font-weight:800;line-height:15px;text-align:center}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-favorites-badge {position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#ef3340;color:#fff;border:2px solid #fff;font-size:10px;font-weight:800;line-height:15px;text-align:center}
        :is(body.cr-search-page, body.cr-category-page, body.cr-product-page) .cr-favorites-badge[hidden] {display:none}
        
        


/* Normalización del botón del carrito frente a las reglas generales
   de pedir-theme.css. No afecta al drawer. */
:is(body.cr-category-page, body.cr-search-page, body.cr-product-page) .cr-home-v2-header .header-actions .cr-cart-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    margin-left: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
}
:is(body.cr-category-page, body.cr-search-page, body.cr-product-page) .cr-home-v2-header .header-actions .cr-cart-icon {
    display: none;
}
:is(body.cr-category-page, body.cr-search-page, body.cr-product-page) .cr-home-v2-header .header-actions .cr-cart-icon-mobile {
    display: block;
    width: 23px;
    height: 23px;
    color: #fff;
    filter: none;
}
:is(body.cr-category-page, body.cr-search-page, body.cr-product-page) .cr-home-v2-header .header-actions .cr-cart-count {
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef3340;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
    box-shadow: none;
}




/* Ajustes móviles finales para Búsqueda, Categorías y Producto.
   Se aplican después de pedir-theme.css. */
@media (max-width: 760px) {
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .cr-home-v2-header-inner.topbar-inner {
    box-sizing: border-box;
    width: calc(100% - 28px) !important;
    max-width: none;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    margin-inline: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
  }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .brand-logo-link {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
  }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .brand-logo-img {
    width: auto;
    max-width: 145px;
    max-height: 42px;
    object-fit: contain;
  }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto;
    gap: 8px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
  }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions :is(.cr-search-back,.cr-header-favorites,.cr-cart-trigger) {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions .cr-cart-icon { display: none !important; }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions .cr-cart-icon-mobile {
    display: block !important;
    width: 23px;
    height: 23px;
    filter: none;
  }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions .cr-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    margin: 0;
  }
}
@media (max-width: 380px) {
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .brand-logo-img { max-width: 116px; }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions { gap: 5px !important; }
  :is(body.cr-category-page, body.cr-search-page, body.cr-product-page) header.cr-home-v2-header .header-actions :is(.cr-search-back,.cr-header-favorites,.cr-cart-trigger) {
    flex-basis: 35px !important;
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    height: 35px !important;
    min-height: 35px !important;
  }
}
