/* ============================================================
   Bebé Crece — arreglo móvil final
   Corrige header, carrito, checkout, cupón y modales en celular.
   ============================================================ */
html,body{width:100%;max-width:100%;overflow-x:hidden!important;-webkit-text-size-adjust:100%}
body{overscroll-behavior-x:none}
img,video,iframe{max-width:100%}
button,input,select,textarea{font-size:16px!important}
input,select,textarea{max-width:100%!important}

@media(max-width:860px){
  .topline{height:4px!important}
  .header{z-index:9990!important}
  .nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;padding:10px 12px!important;width:100%!important;max-width:100%!important}
  .brand{min-width:0!important;display:inline-flex!important;align-items:center!important}
  .brand img{height:44px!important;max-width:118px!important;width:auto!important}
  .hamb{display:inline-flex!important;align-items:center!important;justify-content:center!important;justify-self:end!important;min-height:42px!important;padding:10px 14px!important;border-radius:16px!important;white-space:nowrap!important}
  .menu{grid-column:1/-1!important;width:100%!important;max-height:calc(100dvh - 180px)!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:20px!important;padding:10px!important;gap:8px!important}
  .menu>a,.nav-drop-trigger{min-height:44px!important;font-size:14px!important;line-height:1.2!important;padding:12px 14px!important;white-space:normal!important}
  .dropdown-menu{position:static!important;width:100%!important;max-height:56dvh!important;overflow:auto!important;transform:none!important;margin-top:8px!important;border-radius:16px!important;padding:8px!important}
  .dropdown-menu a{min-height:42px!important;padding:11px 12px!important;font-size:14px!important}
  .nav-actions{grid-column:1/-1!important;width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important}
  .nav-actions>*{min-width:0!important;max-width:100%!important}
  .nav-actions .bc-btn-cuenta,.nav-actions .nav-cart{width:100%!important;min-width:0!important;min-height:46px!important;border-radius:16px!important;justify-content:center!important;font-size:13px!important;padding:10px 12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .nav-cart span{min-width:24px!important;height:24px!important;flex:0 0 24px!important}
  #bcUserCouponHeaderWidget,.bc-gift-corner{grid-column:1/-1!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:50px!important;border-radius:16px!important;justify-content:center!important;padding:10px 12px!important}
  #bcUserCouponHeaderWidget strong,.bc-gift-corner-copy strong{font-size:17px!important;line-height:1.1!important}
  .wrap{width:100%!important;padding-left:14px!important;padding-right:14px!important}
  .section{padding:38px 0!important}
  .section-head{gap:12px!important;margin-bottom:18px!important}
  .h1{font-size:36px!important;letter-spacing:-1px!important;line-height:1.05!important}
  .h2{font-size:28px!important;letter-spacing:-.6px!important;line-height:1.1!important}
  .lead,.muted{font-size:14px!important;line-height:1.6!important}
  .index-main-banner-section,.category-banner-hero,.ninos-hero-banner{padding:12px 0!important}
  .index-main-banner-wrap,.category-banner-wrap,.ninos-banner-wrap,.father-day-banner-wrap{width:calc(100% - 16px)!important;border-radius:20px!important;margin-left:auto!important;margin-right:auto!important;overflow:hidden!important}
  .index-main-banner-wrap img,.category-banner-wrap img,.ninos-banner-wrap img,.father-day-banner img{width:100%!important;height:auto!important;object-fit:contain!important}
  .trust-grid{grid-template-columns:1fr!important;gap:10px!important}
  .trust-card{padding:14px!important;border-radius:18px!important;align-items:center!important}
  .trust-icon{width:42px!important;height:42px!important;border-radius:14px!important;flex:0 0 42px!important}
  .store-strip{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:14px!important;border-radius:20px!important}
  .search-input{width:100%!important;min-width:0!important}
  .product-grid,.ninos-product-grid,.grid-4,.grid-3{grid-template-columns:1fr!important;gap:16px!important}
  .product-card{border-radius:22px!important;min-width:0!important}
  .product-card .product-img,.product-img{height:250px!important;min-height:250px!important;padding:12px!important;background:#fff!important}
  .product-card .product-img img,.product-img img{object-fit:contain!important;max-height:230px!important;width:100%!important;height:100%!important;background:#fff!important}
  .product-body{padding:16px!important}
  .product-body h3{font-size:17px!important;line-height:1.25!important;min-height:0!important}
  .product-body p{font-size:13px!important;line-height:1.45!important;min-height:0!important}
  .product-options,.product-card .product-options{grid-template-columns:1fr!important;gap:9px!important;min-height:0!important}
  .add-btn,.view-btn,.btn{min-height:48px!important;white-space:normal!important;text-align:center!important}
}

@media(max-width:640px){
  .modal-overlay{align-items:flex-start!important;justify-content:center!important;padding:0!important;overflow:hidden!important;z-index:99999!important}
  .modal-overlay.show{display:flex!important}
  .checkout-modal,.product-detail-modal{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:16px 14px calc(22px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;border-left:0!important;border-right:0!important}
  @supports not (height:100dvh){.checkout-modal,.product-detail-modal{height:calc(var(--bc-vh,1vh) * 100)!important;max-height:calc(var(--bc-vh,1vh) * 100)!important}}
  .modal-close{position:fixed!important;top:max(10px,env(safe-area-inset-top))!important;right:10px!important;width:42px!important;height:42px!important;z-index:100010!important;box-shadow:0 8px 20px rgba(16,42,99,.16)!important}
  .checkout-head{padding:8px 48px 12px 0!important}
  .checkout-head h2{font-size:30px!important;line-height:1.05!important;letter-spacing:-.7px!important;margin:8px 0!important}
  .checkout-head p{font-size:14px!important;line-height:1.55!important}
  .checkout-form{gap:14px!important}
  .checkout-grid-fields{grid-template-columns:1fr!important;gap:12px!important}
  .checkout-form label{min-width:0!important}
  .checkout-form label span,.payment-options>span{font-size:11px!important;margin-bottom:6px!important}
  .checkout-form input,.checkout-form select,.checkout-form textarea{width:100%!important;min-height:50px!important;border-radius:15px!important;padding:12px 13px!important}
  .checkout-form textarea{min-height:92px!important}
  .location-box,.payment-options,.bank-info,.checkout-summary,.gift-credit-checkout{border-radius:18px!important;padding:14px!important;min-width:0!important}
  .payment-options{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .map-box{height:180px!important;border-radius:16px!important}
  .map-box iframe{height:180px!important;border-radius:16px!important}
  .checkout-summary h3{font-size:20px!important;line-height:1.2!important;margin-bottom:10px!important}
  .summary-row,.summary-total,.bc-master-discount-row,.checkout-summary .bc-discount-summary-row{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;align-items:start!important;justify-items:stretch!important;padding:10px 0!important}
  .summary-row span,.summary-total span,.bc-master-discount-row span{min-width:0!important;overflow-wrap:anywhere!important}
  .summary-row b,.summary-total b,.bc-master-discount-row b{justify-self:start!important;font-size:18px!important;line-height:1.2!important}
  .summary-total,.summary-total.bc-master-total-applied,.checkout-summary .summary-total.bc-total-after-coupon{padding:14px!important;border-radius:16px!important}
  .summary-total b,.summary-total.bc-master-total-applied b,.checkout-summary .summary-total.bc-total-after-coupon b{font-size:26px!important}
  .gift-credit-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important}
  #bcGiftCreditCode{width:100%!important;min-width:0!important}
  #bcApplyGiftCredit,.bc-remove-coupon-inline,.bc-remove-coupon-btn{width:100%!important;min-height:48px!important;margin-left:0!important;margin-top:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
  #bcApplyGiftCredit.bc-coupon-is-applied{display:flex!important}
  .bc-coupon-status-card{gap:6px!important}
  .bc-coupon-status-card span{display:block!important}
  .bc-coupon-status-card strong{display:block!important;margin-top:2px!important}
  .checkout-submit{position:sticky!important;bottom:0!important;z-index:30!important;min-height:58px!important;border-radius:18px!important;margin-top:6px!important;box-shadow:0 -8px 24px rgba(16,42,99,.12),0 16px 32px rgba(32,72,160,.22)!important}
  .cart-drawer{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:16px 14px calc(18px + env(safe-area-inset-bottom))!important;z-index:99998!important}
  @supports not (height:100dvh){.cart-drawer{height:calc(var(--bc-vh,1vh) * 100)!important;max-height:calc(var(--bc-vh,1vh) * 100)!important}}
  .drawer-head h2{font-size:24px!important}
  .cart-items{max-height:calc(100dvh - 235px)!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:14px 0!important}
  .cart-line,.cart-line-fixed,.cart-item-rich{grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;padding:10px!important;border-radius:16px!important;min-width:0!important}
  .cart-line img,.cart-line-fixed img,.cart-item-rich img{width:64px!important;height:64px!important;border-radius:14px!important}
  .cart-line h4,.cart-line-info h4,.cart-item-rich h4{font-size:14px!important;line-height:1.2!important;overflow-wrap:anywhere!important}
  .cart-line-actions,.cart-line-controls{grid-column:1/-1!important;display:grid!important;grid-template-columns:42px 1fr 42px!important;gap:8px!important;width:100%!important}
  .cart-line-actions input,.cart-line-controls input{width:100%!important;min-width:0!important}
  .cart-remove,.cart-remove-fixed,.remove-cart-line{grid-column:1/-1!important;width:100%!important;margin-left:0!important;min-height:42px!important}
  .cart-total{font-size:22px!important}
  .continue-shopping-btn,.checkout-btn{min-height:52px!important;border-radius:16px!important}
  .product-detail-grid{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;padding:0!important}
  .detail-image,.detail-image.detail-image-enhanced{min-height:260px!important;border-radius:20px!important;padding:16px!important}
  .detail-image img{max-height:250px!important;height:auto!important;width:100%!important;object-fit:contain!important}
  .detail-info{padding:0!important}
  .detail-info h2{font-size:30px!important;letter-spacing:-.8px!important;line-height:1.08!important}
  .detail-info p{font-size:14px!important;line-height:1.55!important}
  .detail-price{font-size:32px!important;margin:14px 0!important}
  .detail-options{grid-template-columns:1fr!important;gap:10px!important}
  .detail-add{min-height:54px!important;border-radius:16px!important}
  .bc-gift-banner-card,.bc-credit-popup-card,._bc-box{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;border-radius:22px!important;padding:20px 16px!important;margin:70px auto 0!important;max-height:calc(100dvh - 88px)!important;overflow:auto!important}
  .bc-gift-banner-actions,.bc-credit-popup-actions,._bc-tabs{grid-template-columns:1fr!important}
}

@media(max-width:380px){
  .brand img{height:40px!important;max-width:104px!important}
  .hamb{padding:9px 11px!important;font-size:13px!important}
  .nav-actions{grid-template-columns:1fr!important}
  .nav-actions .bc-btn-cuenta,.nav-actions .nav-cart,#bcUserCouponHeaderWidget,.bc-gift-corner{grid-column:1/-1!important}
  .checkout-head h2{font-size:27px!important}
  .product-card .product-img,.product-img{height:220px!important;min-height:220px!important}
}
