/* CSE móvil — touch 44px, sin overflow, menú opaco, CTA sticky */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:16px;line-height:1.55;overflow-x:hidden}
img{max-width:100%;height:auto}
input,select,textarea,.select2-selection,.select2-selection__rendered,.select2-search__field{
  font-size:16px!important; /* evita zoom iOS */
}
.site-search input[type=search],.widget_product_search input[type=search]{min-height:48px;font-size:16px!important}
.widget_product_search button,.search-submit{min-height:48px;min-width:48px}

/* Chips de talla */
.cse-sizes{display:flex;flex-wrap:wrap;gap:.5rem;margin:.35rem 0 .9rem}
.cse-sizes button{
  min-width:56px;min-height:48px;padding:0 .9rem!important;border-radius:12px!important;
  background:#fff!important;color:#1a1a1a!important;border:2px solid #d9d4cc!important;
  font-weight:800!important;font-size:1rem!important;line-height:1!important
}
.cse-sizes button.on{background:#1a1a1a!important;color:#fff!important;border-color:#1a1a1a!important}
.cse-sizes button:disabled{opacity:.35;text-decoration:line-through}
.variations select.cse-hidden{position:absolute!important;opacity:0!important;pointer-events:none!important;height:1px!important;width:1px!important;left:-9999px}
.variations th.label{display:block;padding:0 0 .35rem;font-weight:800}
.variations td{display:block;padding:0}
.variations tr{display:block;margin:0 0 .6rem}
.reset_variations{display:none!important}
.single_add_to_cart_button{min-height:54px!important;width:100%!important;font-size:1.08rem!important;border-radius:999px!important}
form.cart .quantity{display:none}
.woocommerce-variation-add-to-cart{display:flex;flex-direction:column;gap:.6rem}

/* Sticky CTA ficha */
.cse-sticky{display:none}
.cse-sticky.show{
  display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1200;
  background:#fff;box-shadow:0 -8px 24px rgba(0,0,0,.18);
  padding:.65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
  align-items:center;gap:.75rem
}
.cse-sticky .p{font-weight:800;color:var(--rojo,#c60b1e);font-size:1.1rem;white-space:nowrap}
.cse-sticky button{flex:1;min-height:52px!important;margin:0!important}

@media(max-width:767px){
  .col-full{padding-left:1rem!important;padding-right:1rem!important;max-width:100%!important}
  .cse-topbar{font-size:.78rem;padding:.4rem .7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cse-topbar .cse-long{display:none}

  /* Cabecera sólida + cart icon + menú sin solape */
  .site-header{
    background:linear-gradient(135deg,#c60b1e,#8f0614)!important;
    position:relative;z-index:1100;overflow:visible!important;
    padding-top:.55rem!important;padding-bottom:.55rem!important;margin-bottom:1rem!important
  }
  .site-header .col-full{position:relative;display:block!important;padding-top:.15rem!important;padding-bottom:.15rem!important}
  .site-header .site-branding{
    width:100%!important;margin:0!important;padding:.45rem 7.2rem .45rem 0!important;float:none!important
  }
  .site-title a{
    font-size:1.02rem!important;line-height:1.25!important;display:block!important;
    min-height:44px;color:#fff!important;white-space:normal
  }
  .site-header .site-search,.site-header .widget_product_search{display:none!important}
  .site-header-cart{
    display:block!important;position:absolute!important;right:1rem;top:50%;transform:translateY(-50%);
    width:auto!important;margin:0!important;float:none!important;z-index:1110
  }
  .site-header-cart .cart-contents{
    min-height:46px;min-width:46px;display:flex!important;align-items:center;justify-content:center;
    padding:0!important;background:rgba(0,0,0,.22);border-radius:999px;font-size:0!important;line-height:0!important;
    color:transparent!important;position:relative
  }
  .site-header-cart .cart-contents *{font-size:0!important;color:transparent!important}
  .site-header-cart .cart-contents:after{
    font-size:1.2rem!important;position:static!important;margin:0!important;color:#fff!important;
    line-height:1!important;speak:normal
  }
  .site-header-cart .cart-contents .count,
  .site-header-cart .cart-contents .amount,
  .site-header-cart .cart-contents .cart-contents-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .site-header-cart .cart-contents .count{
    clip:auto;width:auto;height:auto;top:-5px;right:-5px;min-width:20px;height:20px;
    font-size:.7rem!important;line-height:20px!important;color:#1a1a1a!important;
    background:#f1bf00!important;border-radius:999px;display:flex!important;align-items:center;justify-content:center;
    padding:0 5px;opacity:1;z-index:2
  }
  .site-header-cart .widget_shopping_cart,.site-header-cart .widget_shopping_cart_content{display:none!important}

  .storefront-primary-navigation{
    position:absolute!important;right:4.5rem;top:50%;transform:translateY(-50%);
    width:auto!important;margin:0!important;padding:0!important;background:transparent!important;
    float:none!important;clear:none!important;z-index:1110
  }
  .storefront-primary-navigation .col-full{padding:0!important}
  .main-navigation{width:auto!important;float:none!important;margin:0!important;padding:0!important}
  .menu-toggle{
    position:relative!important;top:auto!important;right:auto!important;margin:0!important;transform:none!important;
    min-height:46px!important;min-width:46px;padding:.55rem 1rem .55rem 2.35rem!important;
    background:#f1bf00!important;color:#1a1a1a!important;border:0!important;border-radius:999px!important;
    font-size:.85rem!important;font-weight:800!important;z-index:1112
  }

  /* MENÚ OPACO — no deja ver el contenido de debajo */
  .main-navigation.toggled .handheld-navigation,
  .main-navigation .handheld-navigation{
    position:absolute!important;right:0;top:calc(100% + 8px);width:min(86vw,320px);
    background:#8f0614!important;background-color:#8f0614!important;
    opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    border-radius:14px;padding:.45rem!important;z-index:1300!important;
    box-shadow:0 16px 40px rgba(0,0,0,.45);overflow:hidden;isolation:isolate
  }
  .main-navigation.toggled .handheld-navigation:before{
    content:"";position:absolute;inset:0;background:#8f0614;z-index:0;border-radius:14px
  }
  .main-navigation.toggled .handheld-navigation ul,
  .main-navigation.toggled .handheld-navigation .menu,
  .main-navigation.toggled .handheld-navigation li{
    background:#8f0614!important;background-color:#8f0614!important;opacity:1!important;position:relative;z-index:1
  }
  .main-navigation.toggled .handheld-navigation a{
    color:#fff!important;display:flex!important;align-items:center;min-height:48px!important;
    padding:.75rem 1rem!important;font-weight:800!important;font-size:1.05rem!important;
    background:#8f0614!important;border-radius:10px;position:relative;z-index:1
  }
  .main-navigation.toggled .handheld-navigation a:hover,
  .main-navigation.toggled .handheld-navigation a:focus{background:#6e0410!important;color:#f1bf00!important}
  /* backdrop oscuro bajo el menú para bloquear lo de detrás */
  body.menu-open:after{
    content:"";position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1090;pointer-events:auto
  }
  body.menu-open{overflow:hidden}

  .storefront-handheld-footer-bar{display:none!important}
  body{padding-bottom:0!important}

  .storefront-breadcrumb{padding:.55rem 0;font-size:.9rem;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .woocommerce-breadcrumb a{display:inline-flex;align-items:center;min-height:44px;padding:.35rem .25rem}

  .cse-hero{padding:1.6rem 1.15rem;border-radius:0;margin:0 -1rem 1.4rem}
  .cse-hero h1{font-size:1.75rem;line-height:1.1}
  .cse-hero p:last-child{display:flex;flex-direction:column;gap:.55rem}
  .cse-btn{min-height:50px;display:flex!important;align-items:center;justify-content:center;margin:0;width:100%}
  .cse-cats{grid-template-columns:1fr 1fr!important;gap:.7rem}
  .cse-cats li a{min-height:110px;font-size:1rem}

  .entry-content ul.products,
  ul.products{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:.7rem!important;margin:0!important
  }
  .entry-content ul.products li.product,
  ul.products li.product{
    width:auto!important;margin:0!important;float:none!important;padding:.55rem!important
  }
  ul.products li.product .woocommerce-loop-product__link{display:block;min-height:44px}
  ul.products li.product .button{
    display:flex!important;align-items:center;justify-content:center;min-height:44px;width:100%;
    font-size:.82rem!important;padding:.45rem!important;margin-top:.4rem
  }
  ul.products li.product .woocommerce-loop-product__title{font-size:.88rem!important;line-height:1.3}
  ul.products li.product img{width:100%;aspect-ratio:1/1;object-fit:cover}

  .single-product div.product .product_title{font-size:1.45rem;line-height:1.2}
  .single-product div.product .price{font-size:1.45rem}
  .woocommerce-product-gallery{overflow:hidden!important;max-width:100%}
  .woocommerce-product-gallery__wrapper,
  .woocommerce-product-gallery__image{overflow:hidden!important;max-width:100%}
  .woocommerce-product-gallery .zoomImg{display:none!important} /* evita overflow del zoom */
  .woocommerce-product-gallery__trigger{min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important}
  .woocommerce-product-gallery .flex-control-thumbs{display:flex;gap:.4rem;margin-top:.5rem}
  .woocommerce-product-gallery .flex-control-thumbs li{width:22%!important;margin:0!important;float:none!important}
  .single-product .site-footer,.single-product #content{padding-bottom:96px}

  .product_meta{font-size:.85rem}
  .cse-trust{grid-template-columns:1fr 1fr;gap:.6rem}
  .cse-trust div{padding:.8rem;font-size:.9rem}
  .site-footer{font-size:.95rem}
  .site-footer a{display:inline-block;min-height:44px;padding:.55rem 0}

  /* Carrito / checkout */
  .woocommerce-cart-form,.woocommerce-checkout{font-size:1rem}
  .woocommerce-cart table.cart td,.woocommerce-checkout .form-row{font-size:1rem}
  .woocommerce-cart .button,.woocommerce-checkout .button,
  .wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,
  a.checkout-button{
    min-height:54px!important;display:flex!important;align-items:center;justify-content:center;width:100%
  }
  .woocommerce-checkout .form-row input,
  .woocommerce-checkout .form-row select,
  .woocommerce-checkout .form-row textarea,
  .wc-block-components-text-input input,
  .wc-block-components-combobox input,
  .wc-block-components-textarea textarea{
    font-size:16px!important;min-height:52px!important
  }
  .wp-block-button__link.add_to_cart_button,
  .wc-block-grid__product-add-to-cart .wp-block-button__link{
    min-height:48px!important;display:inline-flex!important;align-items:center;justify-content:center;padding:.7rem 1rem!important
  }
  .wc-block-cart-items,.wp-block-woocommerce-cart{overflow-x:hidden}
  .return-to-shop .button{min-height:48px!important;display:inline-flex;align-items:center;justify-content:center;padding:.7rem 1.2rem!important}
}
