/* =========================================================
   THE BABOO TEAM · RETAIL V9
   Fachada pública profesional
   ========================================================= */

/* HEADER */

.retail-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px;
}

.retail-header-left{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}

.retail-menu-toggle{
  width:44px;
  height:44px;
  padding:10px;
  border:0;
  background:transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  cursor:pointer;
}

.retail-menu-toggle span{
  display:block;
  width:24px;
  height:2px;
  background:#111;
  transition:.2s ease;
}

.retail-menu-toggle:hover span:nth-child(2){
  width:17px;
}

.retail-header .header-actions{
  margin-left:auto;
}

/* MENU GENERAL DESDE LA IZQUIERDA */

.retail-menu-backdrop{
  position:fixed;
  inset:0;
  z-index:199;
  background:rgba(0,0,0,.42);
  opacity:0;
  visibility:hidden;
  transition:.25s ease;
}

.retail-menu-backdrop.open{
  opacity:1;
  visibility:visible;
}

.retail-menu-drawer{
  position:fixed;
  z-index:200;
  left:0;
  top:0;
  bottom:0;
  width:min(390px,88vw);
  background:#fff;
  transform:translateX(-102%);
  transition:transform .28s ease;
  padding:28px 30px 32px;
  display:flex;
  flex-direction:column;
  box-shadow:22px 0 60px rgba(0,0,0,.16);
}

.retail-menu-drawer.open{
  transform:translateX(0);
}

.retail-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-bottom:25px;
  border-bottom:1px solid #e5e5e1;
}

.retail-menu-head strong{
  font-size:18px;
  letter-spacing:.02em;
}

.retail-menu-head button{
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  font-size:30px;
  cursor:pointer;
}

.retail-menu-nav{
  display:flex;
  flex-direction:column;
  margin-top:22px;
}

.retail-menu-nav a{
  padding:16px 2px;
  border-bottom:1px solid #ededE9;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  transition:.18s ease;
}

.retail-menu-nav a:hover{
  padding-left:9px;
}

.retail-menu-foot{
  margin-top:auto;
  padding-top:24px;
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:10px;
  letter-spacing:.16em;
}

.retail-menu-foot strong{
  font-size:12px;
}

body.retail-menu-open,
body.retail-filter-open{
  overflow:hidden;
}

/* CATALOGO / TIENDA */

.retail-catalog{
  background:#fff!important;
  max-width:1680px!important;
  padding:
    clamp(55px,6vw,90px)
    clamp(22px,4vw,64px)
    100px!important;
}

.retail-shop-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:38px;
  padding-bottom:24px;
  border-bottom:1px solid #dddeda;
}

.retail-shop-head h2{
  margin:0;
  font-size:clamp(38px,4vw,62px);
  line-height:1;
  letter-spacing:-.05em;
}

.retail-shop-head p:last-child{
  margin:12px 0 0;
  color:#6d6d69;
  font-size:13px;
}

.retail-shop-layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:40px;
  align-items:start;
}

/* FILTROS IZQUIERDA */

.retail-filter-sidebar{
  position:sticky;
  top:100px;
  min-width:0;
}

.retail-filter-mobile-head{
  display:none;
}

.retail-filter-section{
  padding:0 0 25px;
  margin-bottom:25px;
  border-bottom:1px solid #e4e4df;
}

.retail-filter-section h3{
  margin:0 0 14px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}

.retail-filter-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.retail-filter-btn{
  position:relative;
  width:100%;
  border:0;
  background:transparent;
  padding:8px 0;
  color:#5c5c58;
  text-align:left;
  font-size:12px;
  cursor:pointer;
  transition:.16s ease;
}

.retail-filter-btn:hover{
  color:#111;
  padding-left:7px;
}

.retail-filter-btn.active{
  color:#111;
  font-weight:800;
  padding-left:14px;
}

.retail-filter-btn.active:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:7px;
  height:2px;
  background:#111;
}

.retail-clear-filters{
  width:100%;
  min-height:42px;
  border:1px solid #111;
  background:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.09em;
  cursor:pointer;
}

.retail-clear-filters:hover{
  background:#111;
  color:#fff;
}

.retail-filter-toggle{
  display:none;
}

.retail-filter-backdrop{
  display:none;
}

/* PRODUCTOS */

.retail-products{
  min-width:0;
}

.retail-products .catalog-selection{
  margin:0 0 20px!important;
}

.retail-product-list{
  margin-top:0!important;
}

.retail-product-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.retail-product-heading .eyebrow{
  margin-bottom:8px;
}

.retail-product-heading h3{
  margin:0;
  font-size:clamp(26px,2.6vw,42px);
  line-height:1;
  letter-spacing:-.045em;
}

.retail-product-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:24px 16px!important;
  width:100%!important;
  margin:0!important;
}

.retail-product-grid .product-card{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  margin:0!important;
}

.retail-product-grid .product-image{
  width:100%;
}

.retail-product-grid .product-info{
  padding:13px 5px 8px!important;
}

.retail-product-grid .product-info h3{
  font-size:14px!important;
  line-height:1.25;
}

.retail-product-grid .product-meta{
  font-size:8px!important;
  gap:5px;
}

.retail-product-grid .product-variant{
  font-size:10px!important;
}

.retail-product-grid .price{
  font-size:15px!important;
}

.retail-load-more-wrap{
  padding:42px 0 8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

.retail-load-more{
  min-width:210px;
  min-height:48px;
  padding:0 25px;
  border:1px solid #111;
  background:#111;
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  cursor:pointer;
  transition:.18s ease;
}

.retail-load-more:hover{
  background:#fff;
  color:#111;
}

.retail-load-more-wrap small{
  color:#777;
  font-size:9px;
}

.retail-load-more-wrap.is-complete{
  padding-top:28px;
}

.retail-legacy-controls{
  display:none!important;
}

/* TABLET */

@media(max-width:1450px){
  .retail-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:1150px){
  .retail-shop-layout{
    grid-template-columns:205px minmax(0,1fr);
    gap:28px;
  }

  .retail-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* MOVIL */

@media(max-width:800px){

  .retail-header{
    padding-left:14px!important;
    padding-right:14px!important;
  }

  .retail-header-left{
    gap:7px;
  }

  .retail-menu-toggle{
    width:38px;
    height:38px;
    padding:8px;
  }

  .retail-menu-toggle span{
    width:22px;
  }

  .retail-header .brand-logo{
    width:auto!important;
  }

  .retail-header .brand-logo img{
    width:130px!important;
  }

  .retail-catalog{
    padding:
      45px
      12px
      75px!important;
  }

  .retail-shop-head{
    align-items:center;
    margin-bottom:18px;
  }

  .retail-shop-head h2{
    font-size:36px;
  }

  .retail-shop-head p:last-child{
    display:none;
  }

  .retail-filter-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    border:1px solid #111;
    background:#fff;
    padding:0 14px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    cursor:pointer;
  }

  .retail-shop-layout{
    display:block;
  }

  .retail-filter-sidebar{
    position:fixed;
    z-index:230;
    top:0;
    left:0;
    bottom:0;
    width:min(340px,88vw);
    overflow:auto;
    background:#fff;
    padding:22px 22px 35px;
    transform:translateX(-103%);
    transition:transform .25s ease;
    box-shadow:20px 0 50px rgba(0,0,0,.15);
  }

  .retail-filter-sidebar.open{
    transform:translateX(0);
  }

  .retail-filter-mobile-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding-bottom:20px;
    margin-bottom:22px;
    border-bottom:1px solid #ddd;
  }

  .retail-filter-mobile-head strong{
    font-size:12px;
    letter-spacing:.08em;
  }

  .retail-filter-mobile-head button{
    border:0;
    background:transparent;
    font-size:28px;
    cursor:pointer;
  }

  .retail-filter-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:220;
    background:rgba(0,0,0,.4);
    opacity:0;
    visibility:hidden;
    transition:.22s ease;
  }

  .retail-filter-backdrop.open{
    opacity:1;
    visibility:visible;
  }

  .retail-product-heading{
    align-items:flex-start;
  }

  .retail-product-heading h3{
    font-size:27px;
  }

  .retail-product-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
    gap:18px 8px!important;
  }

  .retail-product-grid .product-card{
    border-radius:8px!important;
    padding:5px!important;
  }

  .retail-product-grid .product-info{
    padding:9px 3px 5px!important;
  }

  .retail-product-grid .product-meta{
    display:block;
  }

  .retail-product-grid .stock-label{
    display:none;
  }

  .retail-product-grid .product-info h3{
    font-size:12px!important;
    margin-top:6px!important;
  }

  .retail-product-grid .product-variant{
    font-size:9px!important;
  }

  .retail-product-grid .product-link{
    font-size:8px!important;
  }

  .retail-load-more{
    width:100%;
  }
}

@media(max-width:420px){

  .retail-header .brand-logo img{
    width:112px!important;
  }

  .retail-header .header-actions{
    gap:3px!important;
  }

  .retail-header .header-actions button{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  .retail-product-grid{
    gap:15px 6px!important;
  }
}


/* =========================================================
   RETAIL V9 · MENU PRINCIPAL PROFESIONAL
   ========================================================= */

.retail-menu-nav{
  display:flex!important;
  flex-direction:column!important;
  margin-top:22px!important;
}

.retail-menu-main-link,
.retail-menu-group-toggle{
  width:100%;
  min-height:49px;

  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:0 2px;

  border:0;
  border-bottom:1px solid #e7e7e2;

  background:transparent;

  color:#161616;

  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;

  text-align:left;
  cursor:pointer;
}

.retail-menu-main-link{
  text-decoration:none;
}

.retail-menu-main-link:hover,
.retail-menu-group-toggle:hover{
  padding-left:8px;
}

.retail-menu-chevron{
  font-size:18px;
  font-weight:400;
  line-height:1;

  transition:
   transform .2s ease;
}

.retail-menu-group-toggle[
 aria-expanded="true"
] .retail-menu-chevron{
  transform:rotate(180deg);
}

.retail-menu-submenu{
  padding:7px 0 10px 15px;

  background:
   linear-gradient(
    90deg,
    #f8f8f6,
    #fff
   );

  border-bottom:1px solid #e7e7e2;

  max-height:245px;
  overflow-y:auto;

  scrollbar-width:thin;
}

.retail-menu-subitem{
  width:100%;

  position:relative;

  display:block;

  border:0;
  background:transparent;

  padding:9px 12px;

  color:#666661;

  text-align:left;

  font-size:11px;
  font-weight:500;
  letter-spacing:.02em;

  cursor:pointer;

  transition:.16s ease;
}

.retail-menu-subitem:hover{
  color:#111;
  padding-left:17px;
}

.retail-menu-subitem.active{
  color:#111;
  font-weight:800;

  padding-left:19px;
}

.retail-menu-subitem.active:before{
  content:"";

  position:absolute;

  left:5px;
  top:50%;

  width:7px;
  height:2px;

  background:#111;
}

.retail-menu-group{
  width:100%;
}

@media(max-width:600px){

  .retail-menu-drawer{
    width:min(
      360px,
      90vw
    );
    padding:
      22px
      22px
      28px;
  }

  .retail-menu-main-link,
  .retail-menu-group-toggle{
    min-height:48px;
    font-size:11px;
  }

  .retail-menu-submenu{
    max-height:220px;
  }
}



/* =========================================================
   RETAIL V9 · SUBMENUS CORREGIDOS
   ========================================================= */

.retail-menu-chevron{
  width:8px!important;
  height:8px!important;

  border-right:1.5px solid #222!important;
  border-bottom:1.5px solid #222!important;

  transform:rotate(45deg)!important;

  margin-right:4px!important;
  margin-top:-4px!important;

  transition:transform .18s ease!important;
}

.retail-menu-group-toggle[aria-expanded="true"]
.retail-menu-chevron{
  transform:rotate(225deg)!important;
  margin-top:4px!important;
}

.retail-menu-submenu{
  background:#fafaf8!important;
  padding:8px 0 10px 14px!important;
}

.retail-menu-submenu[hidden]{
  display:none!important;
}

.retail-menu-subitem{
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
}

.retail-menu-subitem + .retail-menu-subitem{
  border-top:1px solid rgba(0,0,0,.035);
}


/* =========================================================
   RETAIL V9 · HEADER MOVIL DEFINITIVO
   ========================================================= */

@media(max-width:800px){

  .home-header.retail-header{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;

    width:100%!important;
    min-height:64px!important;
    height:64px!important;

    padding:0 12px!important;

    background:#fff!important;
  }

  .retail-header-left{
    display:flex!important;
    align-items:center!important;

    flex:1 1 auto!important;
    min-width:0!important;

    gap:8px!important;
  }

  .retail-menu-toggle{
    order:-1!important;

    display:flex!important;
    visibility:visible!important;
    opacity:1!important;

    flex:0 0 40px!important;

    width:40px!important;
    min-width:40px!important;
    height:40px!important;

    padding:8px!important;
    margin:0!important;

    position:relative!important;
  }

  .retail-menu-toggle span{
    display:block!important;

    width:24px!important;
    min-width:24px!important;
    height:2px!important;
    min-height:2px!important;

    background:#111!important;

    opacity:1!important;
    visibility:visible!important;
  }

  .retail-header .brand-logo{
    display:flex!important;
    align-items:center!important;

    width:auto!important;
    max-width:none!important;

    flex:0 1 auto!important;
  }

  .retail-header .brand-logo img{
    display:block!important;

    width:145px!important;
    max-width:145px!important;
    height:auto!important;

    object-fit:contain!important;
  }

  .retail-header .header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;

    flex:0 0 auto!important;

    gap:5px!important;

    margin:0!important;
  }

  .retail-header .header-actions button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    min-width:38px!important;
    width:auto!important;
    height:38px!important;

    padding:0 8px!important;

    border:1px solid #deded9!important;
    border-radius:8px!important;

    background:#fff!important;

    font-size:13px!important;
  }

  /* En móvil el buscador se elimina del header.
     Los productos siguen accesibles desde el menú. */

  .retail-header .home-search-jump{
    display:none!important;
  }

  .retail-header #account-button span{
    display:none!important;
  }

  .retail-header #account-button{
    min-width:38px!important;
    width:38px!important;
    padding:0!important;
  }

  .retail-header #cart-button{
    min-width:44px!important;
    padding:0 7px!important;
  }

  .retail-header #cart-count{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

@media(max-width:420px){

  .home-header.retail-header{
    padding:0 8px!important;
  }

  .retail-header-left{
    gap:3px!important;
  }

  .retail-header .brand-logo img{
    width:128px!important;
    max-width:128px!important;
  }

  .retail-menu-toggle{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;

    padding:6px!important;
  }

  .retail-menu-toggle span{
    width:22px!important;
    min-width:22px!important;
  }

  .retail-header .header-actions{
    gap:3px!important;
  }

  .retail-header #account-button{
    width:35px!important;
    min-width:35px!important;
    height:35px!important;
  }

  .retail-header #cart-button{
    height:35px!important;
    min-width:40px!important;
  }
}


/* =========================================================
   RETAIL V9 · HEADER MÓVIL
   LOGO → HAMBURGUESA → ACCIONES
   ========================================================= */

@media(max-width:800px){

  .home-header.retail-header{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;

    width:100%!important;
    height:64px!important;
    min-height:64px!important;

    padding:0 10px 0 14px!important;

    overflow:visible!important;
  }

  .retail-header-left{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;

    flex:0 1 auto!important;
    min-width:0!important;

    gap:5px!important;
  }

  /* LOGO PRIMERO */

  .retail-header .brand-logo{
    order:1!important;

    display:flex!important;
    align-items:center!important;

    flex:0 0 auto!important;

    width:auto!important;
    height:auto!important;

    margin:0!important;
  }

  .retail-header .brand-logo img{
    display:block!important;

    width:138px!important;
    max-width:138px!important;

    height:auto!important;

    margin:0!important;
  }

  /* HAMBURGUESA JUSTO DESPUÉS DEL LOGO */

  .retail-menu-toggle{
    order:2!important;

    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;

    position:static!important;

    flex:0 0 38px!important;

    width:38px!important;
    min-width:38px!important;
    height:38px!important;

    margin:0!important;
    padding:7px!important;

    transform:none!important;

    visibility:visible!important;
    opacity:1!important;
  }

  .retail-menu-toggle span{
    display:block!important;

    position:static!important;

    width:23px!important;
    min-width:23px!important;

    height:2px!important;
    min-height:2px!important;

    margin:0!important;

    background:#111!important;

    transform:none!important;

    opacity:1!important;
    visibility:visible!important;
  }

  /* CUENTA + CARRITO AL EXTREMO DERECHO */

  .retail-header .header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;

    flex:0 0 auto!important;

    gap:4px!important;

    margin-left:auto!important;

    visibility:visible!important;
    opacity:1!important;
  }

  .retail-header .home-search-jump{
    display:none!important;
  }

  .retail-header #account-button,
  .retail-header #cart-button{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    height:36px!important;

    border:1px solid #ddd!important;
    border-radius:8px!important;

    background:#fff!important;

    visibility:visible!important;
    opacity:1!important;
  }

  .retail-header #account-button{
    width:36px!important;
    min-width:36px!important;

    padding:0!important;
  }

  .retail-header #account-button span{
    display:none!important;
  }

  .retail-header #cart-button{
    min-width:42px!important;

    padding:0 6px!important;
  }

  .retail-header #cart-count{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

@media(max-width:390px){

  .home-header.retail-header{
    padding-left:8px!important;
    padding-right:7px!important;
  }

  .retail-header .brand-logo img{
    width:122px!important;
    max-width:122px!important;
  }

  .retail-header-left{
    gap:2px!important;
  }

  .retail-menu-toggle{
    width:34px!important;
    min-width:34px!important;
    height:36px!important;

    padding:6px!important;
  }

  .retail-menu-toggle span{
    width:21px!important;
    min-width:21px!important;
  }

  .retail-header #account-button{
    width:34px!important;
    min-width:34px!important;
  }

  .retail-header #cart-button{
    min-width:39px!important;
  }
}


/* =========================================================
   RETAIL V9 · SEPARACIÓN DEFINITIVA LOGO / HAMBURGUESA
   ========================================================= */

.retail-header .brand-logo{
  position:relative!important;
  flex-shrink:0!important;
  transform:none!important;
}

.retail-menu-toggle{
  position:static!important;

  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;

  transform:none!important;

  margin-left:14px!important;
  margin-right:0!important;
}

@media(max-width:800px){

  .retail-header-left{
    gap:0!important;
  }

  .retail-header .brand-logo{
    position:relative!important;
    flex:0 0 auto!important;
  }

  .retail-menu-toggle{
    position:static!important;

    margin-left:14px!important;
    margin-right:0!important;

    transform:none!important;
  }
}

@media(max-width:420px){

  .retail-menu-toggle{
    margin-left:10px!important;
  }
}


/* =========================================================
   RETAIL V9 · HAMBURGUESA DEFINITIVA
   Botón independiente del gráfico del logo
   ========================================================= */

/*
 * Logo y botón ocupan columnas físicas diferentes.
 * Así ninguna dimensión histórica del logo puede montar
 * el botón encima de la imagen.
 */
.retail-header .retail-header-left{
  display:grid!important;
  grid-template-columns:auto 44px!important;
  align-items:center!important;
  justify-content:start!important;

  column-gap:18px!important;

  width:max-content!important;
  max-width:none!important;

  flex:0 0 auto!important;

  position:relative!important;
  overflow:visible!important;
}

.retail-header .retail-header-left > .brand-logo{
  grid-column:1!important;

  position:relative!important;

  margin:0!important;
  padding:0!important;

  transform:none!important;
}

.retail-header #retail-menu-toggle{
  grid-column:2!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  position:relative!important;

  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;

  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;

  height:44px!important;
  min-height:44px!important;

  margin:0!important;
  padding:0!important;

  border:0!important;
  background:transparent!important;

  transform:none!important;

  visibility:visible!important;
  opacity:1!important;

  cursor:pointer!important;
}

/*
 * Desactivamos las tres líneas anteriores.
 * El nuevo símbolo se dibuja completamente aislado.
 */
.retail-header #retail-menu-toggle > span{
  display:none!important;
}

/* línea central + líneas superior/inferior */
.retail-header #retail-menu-toggle::before{
  content:""!important;

  display:block!important;

  width:25px!important;
  height:2px!important;

  background:#111!important;
  border-radius:2px!important;

  box-shadow:
    0 -7px 0 #111,
    0  7px 0 #111!important;

  position:static!important;

  margin:0!important;
  padding:0!important;

  transform:none!important;
}

.retail-header #retail-menu-toggle:hover::before{
  opacity:.65;
}


/* ===========================
   TABLET / CELULAR
   =========================== */

@media(max-width:800px){

  .retail-header .retail-header-left{
    grid-template-columns:auto 38px!important;

    column-gap:10px!important;

    width:max-content!important;
  }

  .retail-header #retail-menu-toggle{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;

    height:38px!important;
    min-height:38px!important;
  }

  .retail-header #retail-menu-toggle::before{
    width:23px!important;

    box-shadow:
      0 -6px 0 #111,
      0  6px 0 #111!important;
  }
}


@media(max-width:420px){

  .retail-header .retail-header-left{
    grid-template-columns:auto 34px!important;

    column-gap:7px!important;
  }

  .retail-header #retail-menu-toggle{
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;

    height:36px!important;
    min-height:36px!important;
  }

  .retail-header #retail-menu-toggle::before{
    width:21px!important;
  }
}


/* =========================================================
   RETAIL V9 · HAMBURGUESA REAL INDEPENDIENTE DEL LOGO
   ========================================================= */

.retail-header .retail-header-left{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;

  width:auto!important;
  max-width:none!important;

  gap:0!important;

  flex:0 0 auto!important;

  overflow:visible!important;
}

.retail-header .retail-header-left > .brand-logo{
  display:flex!important;
  align-items:center!important;

  position:static!important;

  flex:0 0 auto!important;

  margin:0!important;
  padding:0!important;

  transform:none!important;
}

.retail-header #retail-menu-toggle{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  position:static!important;

  flex:0 0 44px!important;

  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;

  height:44px!important;
  min-height:44px!important;

  /* separación REAL respecto al logo */
  margin-left:24px!important;
  margin-right:0!important;

  padding:0!important;

  border:0!important;
  background:transparent!important;

  color:#111!important;

  transform:none!important;

  opacity:1!important;
  visibility:visible!important;

  cursor:pointer!important;
}

/* anulamos los intentos anteriores de dibujar hamburguesa */
.retail-header #retail-menu-toggle::before,
.retail-header #retail-menu-toggle::after{
  content:none!important;
  display:none!important;
}

.retail-header #retail-menu-toggle > span{
  display:none!important;
}

/* el SVG es ahora el único icono del menú */
.retail-header #retail-menu-toggle .retail-menu-icon{
  display:block!important;

  width:28px!important;
  height:22px!important;

  overflow:visible!important;

  color:#111!important;

  flex:none!important;
}

.retail-header #retail-menu-toggle:hover
.retail-menu-icon{
  opacity:.65;
}


/* TABLET / MÓVIL */

@media(max-width:800px){

  .retail-header #retail-menu-toggle{
    flex-basis:38px!important;

    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;

    height:38px!important;
    min-height:38px!important;

    margin-left:12px!important;
  }

  .retail-header #retail-menu-toggle
  .retail-menu-icon{
    width:24px!important;
    height:19px!important;
  }
}


@media(max-width:420px){

  .retail-header #retail-menu-toggle{
    margin-left:9px!important;

    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
  }

  .retail-header #retail-menu-toggle
  .retail-menu-icon{
    width:22px!important;
    height:18px!important;
  }
}


/* =========================================================
   RETAIL V9
   POSICIÓN HAMBURGUESA SEGÚN NUEVO LOGO THE BABOO TEAM
   ========================================================= */

/*
 * Quitamos al contenedor intermedio como referencia.
 * La posición absoluta pasa a tomar como referencia
 * directamente el header.
 */
.retail-header .retail-header-left{
  position:static!important;
}

/*
 * Definimos la caja REAL del nuevo logo.
 */
.retail-header .brand-logo{
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;

  height:58px!important;

  display:flex!important;
  align-items:center!important;

  margin:0!important;
  padding:0!important;
}

.retail-header .brand-logo img{
  width:100%!important;
  height:100%!important;

  object-fit:contain!important;
  object-position:left center!important;
}

/*
 * Hamburguesa totalmente independiente.
 * Queda después de:
 * padding izquierdo + 220px del nuevo logo + 22px de separación.
 */
.retail-header #retail-menu-toggle{
  position:absolute!important;

  left:calc(clamp(18px,4vw,62px) + 242px)!important;
  top:50%!important;

  transform:translateY(-50%)!important;

  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;

  height:44px!important;
  min-height:44px!important;

  margin:0!important;
  padding:0!important;

  display:flex!important;
  align-items:center!important;
  justify-content:center!important;

  border:0!important;
  background:transparent!important;

  color:#111!important;

  visibility:visible!important;
  opacity:1!important;

  z-index:100!important;
}

.retail-header #retail-menu-toggle .retail-menu-icon{
  display:block!important;

  width:28px!important;
  height:22px!important;

  color:#111!important;
}


/* =============================
   TABLET / CELULAR
   ============================= */

@media(max-width:800px){

  .retail-header .brand-logo{
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;

    height:52px!important;
  }

  .retail-header #retail-menu-toggle{
    /*
     * 14px del borde
     * + 150px nuevo logo
     * + 12px separación
     */
    left:176px!important;

    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;

    height:38px!important;
    min-height:38px!important;
  }

  .retail-header #retail-menu-toggle .retail-menu-icon{
    width:24px!important;
    height:19px!important;
  }
}


@media(max-width:420px){

  .retail-header .brand-logo{
    width:132px!important;
    min-width:132px!important;
    max-width:132px!important;

    height:48px!important;
  }

  .retail-header #retail-menu-toggle{
    /*
     * 8px borde + 132px logo + 10px espacio
     */
    left:150px!important;

    width:35px!important;
    min-width:35px!important;
    max-width:35px!important;

    height:36px!important;
    min-height:36px!important;
  }

  .retail-header #retail-menu-toggle .retail-menu-icon{
    width:22px!important;
    height:18px!important;
  }
}



/* =========================================================
   THE BABOO TEAM · BUSCADOR GENERAL HEADER
   ========================================================= */

.retail-header .retail-global-search{
  display:flex;
  align-items:center;
  flex:0 1 430px;
  width:min(430px,32vw);
  height:42px;
  margin-left:auto;
  overflow:hidden;
  border:1px solid #d9d9d4;
  border-radius:999px;
  background:#fff;
}

.retail-header .retail-global-search input{
  flex:1 1 auto;
  min-width:0;
  height:100%;
  padding:0 8px 0 17px;
  border:0;
  outline:0;
  background:transparent;
  color:#111;
  font:inherit;
  font-size:13px;
}

.retail-header .retail-global-search input::placeholder{
  color:#858585;
  opacity:1;
}

.retail-header .retail-global-search button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#111!important;
  cursor:pointer;
}

.retail-header .retail-global-search button:hover{
  background:#f3f3f1!important;
}

.retail-header .header-actions{
  margin-left:0!important;
}

@media (max-width:800px){

  .home-header.retail-header{
    flex-wrap:wrap!important;
    height:auto!important;
    min-height:0!important;
    row-gap:8px!important;
    padding-bottom:9px!important;
  }

  .retail-header .retail-header-left{
    order:1;
  }

  .retail-header .header-actions{
    order:2;
  }

  .retail-header .retail-global-search{
    display:flex!important;
    order:3;
    flex:1 0 100%!important;
    width:100%!important;
    max-width:none!important;
    height:40px!important;
    margin:0!important;
  }

  .retail-header .retail-global-search input{
    height:40px!important;
    padding-left:14px!important;
    font-size:13px!important;
  }

  .retail-header .retail-global-search button{
    display:flex!important;
    flex:0 0 40px!important;
    min-width:40px!important;
    width:40px!important;
    height:40px!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
  }
}

/* =========================================================
   THE BABOO TEAM · AJUSTE HEADER MÓVIL + BUSCADOR
   Mantener primera fila alineada y buscador debajo
   ========================================================= */

@media (max-width:800px){

  .home-header.retail-header{
    display:grid!important;

    grid-template-columns:
      minmax(0,1fr)
      auto!important;

    grid-template-rows:
      auto
      auto!important;

    align-items:center!important;

    column-gap:8px!important;
    row-gap:8px!important;

    width:100%!important;
    height:auto!important;
    min-height:0!important;

    padding-top:8px!important;
    padding-bottom:8px!important;
  }

  /* LOGO + HAMBURGUESA */
  .retail-header .retail-header-left{
    grid-column:1!important;
    grid-row:1!important;

    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;

    width:auto!important;
    max-width:none!important;
    min-width:0!important;

    margin:0!important;
    padding:0!important;

    gap:10px!important;
  }

  .retail-header .brand-logo{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;

    margin:0!important;
    padding:0!important;
  }

  .retail-header #retail-menu-toggle{
    position:static!important;

    display:flex!important;
    flex:0 0 36px!important;

    width:36px!important;
    min-width:36px!important;
    height:36px!important;

    margin:0!important;
    padding:7px!important;

    transform:none!important;
    inset:auto!important;
  }

  /* CUENTA + CARRITO */
  .retail-header .header-actions{
    grid-column:2!important;
    grid-row:1!important;

    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;

    width:auto!important;
    min-width:max-content!important;

    margin:0!important;
    padding:0!important;

    gap:4px!important;
  }

  /* BUSCADOR: SEGUNDA FILA COMPLETA */
  .retail-header .retail-global-search{
    grid-column:1 / -1!important;
    grid-row:2!important;

    display:flex!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    height:40px!important;

    margin:0!important;

    align-self:stretch!important;
  }

  .retail-header .retail-global-search input{
    width:100%!important;
    min-width:0!important;
  }

}


/* =========================================================
   THE BABOO TEAM · PROMOCIONES DESTACADAS
   ========================================================= */

#retail-menu-drawer [data-retail-promotions]{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;

  margin:12px 0 !important;
  padding:15px 18px !important;

  background:#8b1f3d !important;
  color:#fff !important;

  border:1px solid #8b1f3d !important;
  border-radius:10px !important;

  font-weight:800 !important;
  letter-spacing:.06em !important;

  box-shadow:0 8px 20px rgba(0,0,0,.10) !important;

  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease !important;
}

#retail-menu-drawer [data-retail-promotions]::after{
  content:"OFERTAS";
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:4px 7px;

  background:#fff;
  color:#8b1f3d;

  border-radius:999px;

  font-size:8px;
  font-weight:900;
  letter-spacing:.10em;
  line-height:1;
}

#retail-menu-drawer [data-retail-promotions]:hover{
  background:#741830 !important;
  border-color:#741830 !important;

  transform:translateY(-1px);

  box-shadow:0 11px 24px rgba(0,0,0,.14) !important;
}



/* =========================================================
   THE BABOO TEAM · CARRITO COMPACTO
   ========================================================= */

#cart-drawer.cart-drawer{
  width:min(410px,88vw) !important;

  z-index:90 !important;

  height:100vh !important;
  height:100dvh !important;

  background:#fff !important;

  box-shadow:
    -18px 0 48px rgba(0,0,0,.18) !important;
}

#cart-backdrop.cart-backdrop{
  z-index:89 !important;
}

#cart-drawer .cart-drawer-head{
  padding:22px 22px 17px !important;
}

#cart-drawer .cart-drawer-head h2{
  font-size:32px !important;
}

#cart-drawer .cart-items{
  padding-left:22px !important;
  padding-right:22px !important;
}

#cart-drawer .cart-empty{
  padding-left:22px !important;
  padding-right:22px !important;
}

#cart-drawer .cart-summary{
  padding:17px 22px !important;
}

@media(max-width:560px){

  #cart-drawer.cart-drawer{
    width:min(370px,94vw) !important;
  }

}



/* =========================================================
   THE BABOO TEAM · OFERTAS HEADER
   ========================================================= */

.retail-header .retail-header-offers{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  height:38px !important;
  min-height:38px !important;

  padding:0 15px !important;

  border:1px solid #8b1f3d !important;
  border-radius:8px !important;

  background:#8b1f3d !important;
  color:#fff !important;

  font-size:10px !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;

  white-space:nowrap !important;
  cursor:pointer !important;

  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease !important;
}

.retail-header .retail-header-offers:hover{
  background:#741830 !important;
  border-color:#741830 !important;
  transform:translateY(-1px);
}

/* Móvil: dejamos libre el encabezado.
   PROMOCIONES sigue disponible en el menú. */

@media(max-width:800px){
  .retail-header .retail-header-offers{
    display:none !important;
  }
}



/* =========================================================
   THE BABOO TEAM · OFERTAS MOVIL COLOR FIJO
   Evita que las reglas genéricas del header lo dejen blanco.
   ========================================================= */

@media(max-width:800px){

  .retail-header .header-actions .retail-header-offers{
    display:inline-flex !important;

    width:auto !important;
    min-width:auto !important;

    height:38px !important;
    min-height:38px !important;

    padding:0 12px !important;

    background:#8b1f3d !important;
    color:#fff !important;

    border:1px solid #8b1f3d !important;
    border-radius:8px !important;

    font-size:10px !important;
    font-weight:900 !important;
    letter-spacing:.06em !important;

    opacity:1 !important;
    visibility:visible !important;

    transform:none !important;
  }

  .retail-header .header-actions .retail-header-offers:hover,
  .retail-header .header-actions .retail-header-offers:focus,
  .retail-header .header-actions .retail-header-offers:active{
    background:#741830 !important;
    color:#fff !important;
    border-color:#741830 !important;
    transform:none !important;
  }

}

