/* ShipXpress Cliente Marketplace Pro */
.client-shell{
  max-width:1440px;
  margin:0 auto;
}
.client-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.client-address-select{
  min-width:210px;
  display:grid;
  gap:4px;
  padding:9px 12px;
  border-radius:18px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--line);
}
.client-address-select span{
  color:#ffb23f;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.client-address-select select{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font-weight:1000;
}
.client-address-select option{color:#071019}
.client-cart-btn{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  border-radius:18px;
  border:1px solid rgba(255,140,0,.34);
  background:linear-gradient(135deg,#ff8c00,#ffb23f);
  color:#071019;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 14px 30px rgba(255,140,0,.22);
}
.client-cart-btn b{
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#071019;
  color:#fff;
  font-size:12px;
}
.client-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.client-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.client-tabs a{
  padding:10px 13px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  color:#d7e5f4;
  font-weight:900;
}
.client-tabs a.active,
.client-tabs a:hover{
  background:rgba(255,140,0,.16);
  color:#fff;
}
.client-search{
  min-width:min(460px,100%);
  background:#0b1118;
  color:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px 16px;
  outline:none;
}
.client-search:focus{
  border-color:rgba(255,140,0,.65);
  box-shadow:0 0 0 4px rgba(255,140,0,.1);
}
.market-header{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
}
.hero-market{
  min-height:330px;
  border-radius:34px;
  overflow:hidden;
  position:relative;
  padding:28px;
  background:
    linear-gradient(135deg,rgba(255,140,0,.88),rgba(255,178,63,.75)),
    #ff8c00;
  color:#071019;
  box-shadow:0 26px 60px rgba(255,140,0,.22);
}
.hero-market:after{
  content:"";
  position:absolute;
  width:280px;
  height:280px;
  border-radius:50%;
  right:-70px;
  bottom:-75px;
  background:rgba(255,255,255,.24);
}
.hero-market h2{
  font-size:clamp(36px,4.4vw,60px);
  letter-spacing:-2px;
  line-height:1;
  max-width:740px;
  margin-bottom:12px;
}
.hero-market p{
  font-weight:850;
  line-height:1.5;
  max-width:620px;
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.delivery-card{
  border-radius:34px;
  padding:24px;
  background:
    radial-gradient(circle at top right,rgba(57,255,20,.16),transparent 18rem),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.delivery-card h3{font-size:24px;margin-bottom:8px}
.delivery-card p{color:var(--muted);line-height:1.6}
.search-benefits{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:18px 0;
}
.search-benefits span{
  min-height:52px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:10px;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  font-size:12px;
  font-weight:1000;
}
.categories-row{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 0 12px;
  scrollbar-width:none;
}
.categories-row::-webkit-scrollbar{display:none}
.cat-pill{
  flex:0 0 auto;
  min-width:132px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:20px;
  padding:14px 16px;
  cursor:pointer;
  font-weight:1000;
  display:flex;
  align-items:center;
  gap:10px;
}
.cat-pill:hover,.cat-pill.active{
  background:rgba(255,140,0,.15);
  border-color:rgba(255,140,0,.35);
}
.cat-pill span{font-size:25px}
.categories-pro-row{gap:10px;padding-bottom:16px}
.market-category-card{
  min-width:132px;
  min-height:118px;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.055));
  box-shadow:0 14px 28px rgba(0,0,0,.18);
}
.market-category-card span{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:rgba(255,255,255,.1);
}
.market-category-card strong{font-size:15px;line-height:1.1}
.market-category-card small{font-size:12px;color:#ffb23f;font-weight:1000}
.section-title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:24px 0 14px;
}
.section-title-row h2{font-size:25px}
.section-title-row p{color:var(--muted);font-weight:800}
.market-row{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:4px 64px 14px 4px;
  scrollbar-width:none;
  scroll-behavior:smooth;
  max-width:100%;
  scroll-snap-type:x proximity;
}
.market-row::-webkit-scrollbar{display:none}
.market-scroll-shell{
  position:relative;
  max-width:100%;
}
.market-scroll-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(13,20,29,.94);
  color:#fff;
  font-size:31px;
  font-weight:900;
  cursor:pointer;
  z-index:8;
  box-shadow:0 14px 34px rgba(0,0,0,.35);
}
.market-scroll-arrow.left{left:8px}
.market-scroll-arrow.right{right:8px}
.market-scroll-arrow:hover{
  border-color:rgba(255,140,0,.45);
  background:linear-gradient(135deg,#ff8c00,#ffb23f);
  color:#071019;
}
.product-card,
.store-card{
  position:relative;
  flex:0 0 280px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
  border:1px solid var(--line);
  overflow:hidden;
  cursor:pointer;
  transition:.2s;
  scroll-snap-align:start;
}
.product-card{
  flex-basis:300px;
  min-height:346px;
  display:flex;
  flex-direction:column;
}
.store-card{
  flex-basis:355px;
  display:grid;
  grid-template-columns:128px 1fr;
  min-height:178px;
}
.product-card.is-offer{
  border-color:rgba(239,68,68,.35);
  box-shadow:0 16px 38px rgba(239,68,68,.12);
}
.product-card:hover,
.store-card:hover{transform:translateY(-3px);border-color:rgba(255,140,0,.3)}
.product-img,
.store-img{
  height:168px;
  min-height:168px;
  background:#fff;
  display:grid;
  place-items:center;
  font-size:46px;
  position:relative;
  overflow:hidden;
}
.store-card .store-img{
  height:100%;
  min-height:178px;
}
.product-img img,
.store-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
  background:#fff;
}
.store-img img{object-fit:contain;padding:10px;background:#fff}
.discount-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:12px;
  font-weight:950;
  box-shadow:0 8px 18px rgba(239,68,68,.24);
}
.product-card>.discount-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
}
.price del{color:#94a3b8;font-size:13px;margin-right:4px}
.card-kicker{
  display:block;
  color:#ffb23f;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
  margin-bottom:6px;
}
.store-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.open-dot,.closed-dot,.rating-star{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:1000;
}
.open-dot{background:rgba(34,197,94,.14);color:#7df2a2}
.closed-dot{background:rgba(239,68,68,.14);color:#ff9b9b}
.rating-star{background:rgba(255,178,63,.13);color:#ffcd6b}
.product-body,
.store-body{
  padding:16px;
  min-width:0;
}
.product-body h3,
.store-body h3{
  font-size:18px;
  line-height:1.2;
  margin-bottom:8px;
  overflow-wrap:anywhere;
}
.product-body p,
.store-body p{
  color:var(--muted);
  line-height:1.45;
  font-size:13px;
  min-height:38px;
}
.price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:13px;
  flex-wrap:wrap;
}
.price{
  color:var(--orange-2);
  font-size:20px;
  font-weight:1000;
  display:flex;
  align-items:baseline;
  gap:7px;
  flex-wrap:wrap;
}
.price b{font-size:22px}
.price del{
  color:#94a3b8;
  font-size:14px;
  text-decoration-thickness:2px;
}
.product-options-view{margin:13px 0;padding:12px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid var(--line)}
.product-options-view h3{font-size:16px;margin-bottom:9px;color:#fff}
.product-option-group{display:grid;gap:7px;margin-top:9px}
.product-option-group strong{display:flex;justify-content:space-between;gap:8px;color:#fff}
.product-option-group small{color:#ffb23f;font-size:11px}
.product-option-group span{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.055);color:#d7e5f4;font-weight:800}
.product-detail-layout{
  grid-template-columns:minmax(280px,1fr) minmax(320px,.9fr);
  align-items:stretch;
}
.product-detail-card{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}
.product-detail-section{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
}
.product-detail-section small,
.product-meta-grid small,
.product-price-box small{
  display:block;
  margin-bottom:6px;
  color:#ffb23f;
  font-size:11px;
  font-weight:1000;
  text-transform:uppercase;
}
.product-detail-section h2{
  font-size:26px;
  line-height:1.08;
  color:#fff;
}
.product-description-scroll{
  max-height:150px;
  overflow:auto;
  padding-right:6px;
  color:#c9d7e6;
  font-weight:800;
  line-height:1.5;
}
.product-meta-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.product-meta-grid div{
  padding:14px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,140,0,.12),rgba(57,255,20,.08));
  border:1px solid var(--line);
}
.product-meta-grid strong{
  color:#fff;
  line-height:1.25;
}
.product-price-box{
  padding:14px;
  border-radius:18px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.24);
}
.price-green b{
  color:#22c55e;
  font-size:28px;
}
.option-choice{
  display:grid !important;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.08);
}
.option-choice:hover{
  border-color:rgba(255,140,0,.24);
  background:rgba(255,140,0,.09);
}
.option-choice input{
  width:18px;
  height:18px;
  accent-color:#ff8c00;
}
.option-choice span{
  padding:0;
  background:transparent;
  border-radius:0;
}
.option-choice strong{
  color:#22c55e;
  white-space:nowrap;
}
.cart-custom{
  display:block;
  margin-top:8px;
  padding:9px 10px;
  border-radius:12px;
  background:rgba(255,140,0,.08);
  color:#d8e3ee;
  border:1px solid rgba(255,140,0,.16);
  line-height:1.35;
}
.market-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.store-detail-grid{
  grid-template-columns:repeat(auto-fit,minmax(232px,1fr));
  align-items:stretch;
}
.store-detail-grid .product-card{
  flex:initial;
  min-width:0;
  min-height:374px;
}
.store-detail-grid .product-img{
  height:180px;
  min-height:180px;
}
.store-detail-grid .product-card .price-row{
  gap:10px;
  flex-wrap:wrap;
}
.store-detail-grid .product-card .btn-mini{
  flex:0 0 auto;
  white-space:nowrap;
}
.product-detail-img{
  min-height:360px;
  border-radius:24px;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.product-detail-img img{
  width:100%;
  height:100%;
  max-height:430px;
  object-fit:contain;
  background:#fff;
  padding:12px;
}
.product-detail-img span{
  color:#071019;
  font-size:58px;
}
.client-form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.client-form-grid .full{grid-column:1/-1}
.client-form-grid input,
.client-form-grid select,
.client-form-grid textarea{
  width:100%;
  background:#0b1118;
  color:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:13px 14px;
  outline:none;
}
.client-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.btn-mini{
  border:0;
  cursor:pointer;
  border-radius:12px;
  padding:8px 10px;
  font-weight:1000;
  font-size:12px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
}
.btn-mini.ok{background:rgba(57,255,20,.13);color:#d4ffcf;border-color:rgba(57,255,20,.25)}
.btn-mini.warn{background:rgba(255,140,0,.13);color:#ffd7a7;border-color:rgba(255,140,0,.25)}
.btn-mini.bad{background:rgba(255,77,77,.13);color:#ffd0d0;border-color:rgba(255,77,77,.25)}
.cart-drawer{
  position:fixed;
  right:18px;
  top:92px;
  bottom:18px;
  width:min(430px,calc(100vw - 36px));
  z-index:260;
  transform:translateX(calc(100% + 28px));
  transition:.25s ease;
  border-radius:28px;
  background:#0d141d;
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.cart-drawer.open{transform:translateX(0)}
.cart-head{
  padding:18px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.cart-items{
  padding:14px;
  overflow:auto;
  flex:1;
  display:grid;
  align-content:start;
  gap:12px;
}
.cart-item{
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  padding:13px;
  display:grid;
  gap:9px;
}
.cart-item-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.qty-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.qty-row button{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}
.cart-footer{
  padding:16px;
  border-top:1px solid var(--line);
}
.order-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:16px;
}
.order-step{
  padding:10px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  text-align:center;
  font-size:12px;
  font-weight:1000;
}
.order-step.active{background:rgba(255,140,0,.14);border-color:rgba(255,140,0,.28)}
.client-profile{
  display:grid;
  grid-template-columns:210px 1fr;
  gap:22px;
  align-items:start;
}
.client-photo-box{
  border-radius:26px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  min-height:210px;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.client-photo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.client-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.62);
  z-index:300;
}
.client-modal.open{display:flex}
.client-modal-card{
  width:min(1040px,calc(100vw - 28px));
  max-height:88vh;
  overflow:auto;
  border-radius:28px;
  background:#0d141d;
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  padding:24px;
}
.client-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:15px;
}
.chat-box{
  display:grid;
  gap:10px;
  max-height:360px;
  overflow:auto;
  padding:12px;
  background:#0b1118;
  border:1px solid var(--line);
  border-radius:18px;
}
.chat-msg{
  padding:11px 13px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
}
.chat-msg b{color:#ffb23f}
.client-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  max-width:420px;
  z-index:350;
  padding:14px 16px;
  border-radius:18px;
  background:#111b25;
  color:#fff;
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(0,0,0,.35);
  display:none;
}
.client-toast.show{display:block}
.client-toast.ok{border-color:rgba(57,255,20,.25)}
.client-toast.bad{border-color:rgba(255,77,77,.25)}
.link-file{color:#ffb23f;font-weight:900;text-decoration:underline}
@media(max-width:1180px){
  .market-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .client-header-actions{
    width:100%;
    justify-content:flex-start;
  }
  .client-address-select{
    flex:1 1 230px;
  }
  .market-header,
  .client-profile,
  .client-form-grid{grid-template-columns:1fr}
  .market-grid{grid-template-columns:repeat(2,1fr)}
  .order-steps{grid-template-columns:repeat(2,1fr)}
  .product-detail-layout{grid-template-columns:1fr}
}
@media(max-width:620px){
  .content.client-shell{
    padding-left:10px;
    padding-right:10px;
  }
  .market-main{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .market-header,
  .hero-market,
  .delivery-card,
  .market-section{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  .client-shell .sx-notif{
    position:relative;
    right:auto;
    top:auto;
    margin-left:0;
  }
  .client-header-actions{
    gap:8px;
  }
  .client-address-select{
    order:2;
    flex:1 0 100%;
    min-width:0;
  }
  .client-cart-btn{
    min-height:44px;
    padding:0 14px;
  }
  .search-benefits{
    grid-template-columns:1fr;
  }
  .hero-market{
    border-radius:26px;
    padding:24px 18px;
    min-height:258px;
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-actions .client-search,
  .hero-actions .btn{
    width:100%;
    min-width:0;
  }
  .delivery-card{
    padding:18px;
    border-radius:24px;
  }
  .hero-market h2{
    font-size:34px;
    letter-spacing:0;
  }
  .market-row{
    gap:12px;
    max-width:100%;
    overflow-x:auto;
    padding:4px 42px 14px 2px;
    scroll-padding-inline:2px;
  }
  .market-scroll-arrow{
    width:38px;
    height:38px;
    font-size:25px;
  }
  .market-scroll-arrow.left{left:4px}
  .market-scroll-arrow.right{right:4px}
  .market-category-card{
    min-width:118px;
    min-height:108px;
    padding:12px 10px;
  }
  .market-grid{grid-template-columns:1fr}
  .product-card{
    flex:0 0 min(calc(100vw - 48px),340px);
    min-height:auto;
    border-radius:23px;
  }
  .store-card{
    flex:0 0 min(calc(100vw - 48px),370px);
    grid-template-columns:112px minmax(0,1fr);
    min-height:168px;
    border-radius:23px;
  }
  .product-img{
    height:184px;
    min-height:184px;
  }
  .product-img img,
  .store-img img,
  .product-detail-img img{
    object-fit:contain;
    padding:10px;
  }
  .store-card .store-img{
    height:100%;
    min-height:168px;
  }
  .product-body,
  .store-body{
    padding:14px;
  }
  .product-body h3,
  .store-body h3{
    font-size:17px;
    line-height:1.18;
  }
  .product-body p,
  .store-body p{
    min-height:0;
    font-size:12px;
  }
  .price b{
    font-size:21px;
  }
  .btn-mini{
    min-height:38px;
    padding:0 13px;
  }
  .client-modal{
    align-items:center;
    overflow:hidden;
    padding:10px;
  }
  .client-modal-card{
    width:min(100%, calc(100vw - 20px));
    max-height:calc(100dvh - 20px);
    min-height:0;
    overflow:auto;
    padding:14px;
    border-radius:22px;
  }
  .client-modal-head{
    position:sticky;
    top:0;
    z-index:2;
    padding-bottom:10px;
    background:#0d141d;
  }
  .product-detail-img{
    min-height:260px;
    max-height:330px;
  }
  .product-meta-grid{grid-template-columns:1fr}
  .product-description-scroll{max-height:160px}
  .price-green b{font-size:24px}
  .store-detail-grid{
    grid-template-columns:1fr;
  }
  .store-detail-grid .product-card{
    width:100%;
    min-height:auto;
  }
  .store-detail-grid .product-img{
    height:210px;
    min-height:210px;
  }
}

/* ShipXpress realtime / preparación */
.sx-prep-card{display:flex;flex-direction:column;gap:4px;min-width:150px;padding:12px 14px;border-radius:16px;border:1px solid #f59e0b;background:#fef3c7;color:#92400e;font-weight:800;line-height:1.2;white-space:normal;box-sizing:border-box}
.sx-prep-card strong{font-size:15px;line-height:1.2;display:block;white-space:normal}
.sx-prep-card span{font-size:12px;opacity:.9;white-space:normal}
.sx-prep-card.sx-ready,.sx-prep-card.sx-ok{background:#dcfce7;border-color:#22c55e;color:#166534}
.sx-prep-card.sx-late{background:#fee2e2;border-color:#ef4444;color:#991b1b}
.sx-prep-card.sx-warn{background:#fef3c7;border-color:#f59e0b;color:#92400e}
.sx-team-card{margin-top:10px;padding:12px 14px;border-radius:16px;background:#eff6ff;border:1px solid #bfdbfe;color:#111827;font-size:13px;line-height:1.45}

/* ==========================================================
   ShipXpress Cliente - Vista móvil tipo app
   Colocar al final de /assets/css/cliente-pro.css
   Corrige teléfonos que renderizan el sitio con viewport ancho
   y evita que el usuario tenga que alejar la pantalla.
   ========================================================== */
@media (max-width: 980px), (hover: none) and (pointer: coarse) {
  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  body.dashboard-body{
    background:#071019;
  }

  .dashboard-body .layout{
    display:block;
    width:100%;
    max-width:100vw;
    min-height:100dvh;
    overflow-x:hidden;
  }

  .dashboard-body .sidebar{
    position:fixed;
    z-index:1000;
    inset:0 auto 0 0;
    width:min(82vw,310px);
    max-width:310px;
    height:100dvh;
    overflow-y:auto;
    transform:translateX(-105%);
    transition:transform .25s ease;
    box-shadow:28px 0 70px rgba(0,0,0,.42);
  }

  .dashboard-body .sidebar.open{
    transform:translateX(0);
  }

  .dashboard-body .mobile-top{
    position:sticky;
    top:0;
    z-index:60;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 -10px 12px;
    padding:10px;
    background:rgba(7,16,25,.92);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(16px);
  }

  .dashboard-body .mobile-top .btn{
    min-height:42px;
    padding:0 13px;
    border-radius:14px;
    font-size:13px;
  }

  .content.client-shell{
    width:100%;
    max-width:100vw;
    margin:0;
    padding:0 10px 22px;
    overflow-x:hidden;
  }

  .topbar{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
    margin-bottom:12px;
  }

  .topbar h1{
    font-size:clamp(24px,7vw,32px);
    line-height:1.05;
    letter-spacing:-.7px;
  }

  .topbar p{
    font-size:13px !important;
    line-height:1.35;
  }

  .client-header-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:8px;
    justify-content:stretch;
  }

  .client-header-actions .user-chip{
    grid-column:1 / -1;
    width:100%;
    min-height:48px;
    padding:8px 10px;
    border-radius:16px;
  }

  .client-address-select{
    min-width:0;
    width:100%;
    padding:8px 10px;
    border-radius:16px;
  }

  .client-cart-btn{
    min-height:46px;
    padding:0 14px;
    white-space:nowrap;
    border-radius:16px;
  }

  .client-toolbar{
    position:relative;
    width:100%;
    margin:0 0 14px;
    overflow:hidden;
  }

  .client-tabs{
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 2px 10px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .client-tabs::-webkit-scrollbar{
    display:none;
  }

  .client-tabs a{
    flex:0 0 auto;
    min-height:36px;
    padding:9px 11px;
    border-radius:13px;
    font-size:12px;
    scroll-snap-align:start;
  }

  .market-header,
  .client-profile,
  .client-form-grid,
  .quick-grid,
  .product-detail-layout{
    grid-template-columns:1fr !important;
  }

  .market-header,
  .hero-market,
  .delivery-card,
  .market-scroll-shell,
  .market-section,
  .card,
  .table-card{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }

  .market-header{
    display:grid;
    gap:12px;
    margin-bottom:14px;
  }

  .hero-market{
    min-height:auto;
    border-radius:24px;
    padding:20px 16px 22px;
    box-shadow:0 18px 38px rgba(255,140,0,.18);
  }

  .hero-market:after{
    width:185px;
    height:185px;
    right:-70px;
    bottom:-68px;
  }

  .hero-market .badge{
    margin-bottom:12px;
    padding:7px 10px !important;
    font-size:11px;
  }

  .hero-market h2{
    font-size:clamp(26px,8vw,36px);
    line-height:1.06;
    letter-spacing:-.6px;
    margin-bottom:9px;
  }

  .hero-market p{
    font-size:13px;
    line-height:1.45;
  }

  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin-top:15px;
  }

  .hero-actions .client-search,
  .hero-actions .btn,
  .client-search{
    width:100%;
    min-width:0;
  }

  .client-search{
    min-height:44px;
    padding:12px 13px;
    border-radius:14px;
    font-size:13px;
  }

  .delivery-card{
    border-radius:22px;
    padding:16px;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
  }

  .delivery-card h3{
    font-size:19px;
  }

  .delivery-card p{
    font-size:13px;
  }

  .search-benefits{
    grid-template-columns:1fr;
    gap:8px;
    margin:12px 0;
  }

  .search-benefits span{
    min-height:42px;
    border-radius:14px;
    font-size:12px;
  }

  .section-title-row{
    margin:18px 0 10px;
    gap:8px;
  }

  .section-title-row h2{
    font-size:clamp(19px,5.4vw,24px);
    line-height:1.08;
  }

  .section-title-row p{
    font-size:12px;
    line-height:1.25;
  }

  .section-title-row .btn{
    min-height:36px;
    padding:0 12px;
    border-radius:14px;
    font-size:12px;
    flex:0 0 auto;
  }

  .categories-row,
  .market-row{
    margin-left:-2px;
    margin-right:-10px;
    padding-left:2px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .categories-row::-webkit-scrollbar,
  .market-row::-webkit-scrollbar{
    display:none;
  }

  .categories-row{
    gap:9px;
    padding-bottom:12px;
    scroll-snap-type:x proximity;
  }

  .market-category-card,
  .cat-pill{
    min-width:112px;
    min-height:104px;
    padding:11px 10px;
    border-radius:18px;
    scroll-snap-align:start;
  }

  .market-category-card span{
    width:44px;
    height:44px;
    border-radius:16px;
    font-size:23px;
  }

  .market-category-card strong{
    font-size:13px;
  }

  .market-category-card small{
    font-size:10px;
  }

  .market-scroll-shell{
    overflow:visible;
  }

  .market-scroll-arrow{
    display:none !important;
  }

  .market-row{
    gap:12px;
    overflow-x:auto;
    max-width:100%;
    padding:2px 16px 14px 2px;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:2px;
  }

  .product-card,
  .store-card{
    scroll-snap-align:start;
    border-radius:22px;
    box-shadow:0 13px 32px rgba(0,0,0,.20);
  }

  .market-row .product-card{
    flex:0 0 84vw;
    width:84vw;
    max-width:none;
    min-height:auto;
  }

  .market-row .store-card{
    flex:0 0 88vw;
    width:88vw;
    max-width:none;
    grid-template-columns:112px minmax(0,1fr);
    min-height:164px;
  }

  .market-grid{
    grid-template-columns:1fr !important;
    gap:12px;
  }

  .market-grid .product-card,
  .store-detail-grid .product-card{
    width:100%;
    flex:initial;
    min-height:auto;
  }

  .market-grid .store-card{
    width:100%;
    flex:initial;
    grid-template-columns:112px minmax(0,1fr);
    min-height:162px;
  }

  .product-img{
    height:178px;
    min-height:178px;
  }

  .store-card .store-img{
    height:100%;
    min-height:162px;
  }

  .product-img img,
  .store-img img,
  .product-detail-img img{
    object-fit:contain;
    padding:9px;
  }

  .product-body,
  .store-body{
    padding:13px;
  }

  .product-body h3,
  .store-body h3{
    font-size:16px;
    line-height:1.15;
    margin-bottom:6px;
  }

  .product-body p,
  .store-body p{
    min-height:0;
    font-size:12px;
    line-height:1.35;
  }

  .card-kicker{
    font-size:10px;
    margin-bottom:5px;
  }

  .store-topline{
    margin-bottom:6px;
  }

  .open-dot,
  .closed-dot,
  .rating-star{
    padding:4px 7px;
    font-size:10px;
  }

  .price-row{
    align-items:center;
    gap:8px;
    margin-top:10px;
  }

  .price{
    font-size:17px;
    gap:5px;
  }

  .price b{
    font-size:19px;
  }

  .btn-mini{
    min-height:34px;
    padding:0 11px;
    border-radius:11px;
    font-size:11px;
  }

  .card{
    padding:16px;
    border-radius:20px;
  }

  .client-form-grid{
    gap:10px;
  }

  .client-form-grid input,
  .client-form-grid select,
  .client-form-grid textarea{
    min-height:44px;
    padding:12px 13px;
    border-radius:13px;
    font-size:13px;
  }

  .client-modal{
    align-items:flex-end;
    overflow:hidden;
    padding:0;
  }

  .client-modal-card{
    width:100%;
    max-height:92dvh;
    min-height:0;
    overflow:auto;
    padding:14px;
    border-radius:24px 24px 0 0;
  }

  .client-modal-head{
    position:sticky;
    top:0;
    z-index:2;
    padding-bottom:10px;
    background:#0d141d;
  }

  .cart-drawer{
    inset:auto 0 0 0;
    width:100%;
    height:min(88dvh,720px);
    max-height:88dvh;
    border-radius:26px 26px 0 0;
    transform:translateY(calc(100% + 24px));
  }

  .cart-drawer.open{
    transform:translateY(0);
  }

  .client-toast{
    left:10px;
    right:10px;
    bottom:14px;
    width:auto;
    border-radius:16px;
  }

  .table-wrap{
    margin:0 -4px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  table{
    min-width:720px;
  }
}

@media (max-width: 420px), (hover: none) and (pointer: coarse) and (max-device-width: 480px) {
  .content.client-shell{
    padding-left:8px;
    padding-right:8px;
  }

  .client-header-actions{
    grid-template-columns:1fr auto;
  }

  .client-header-actions .user-chip{
    display:none;
  }

  .hero-market{
    padding:18px 14px 20px;
    border-radius:22px;
  }

  .hero-market h2{
    font-size:28px;
  }

  .market-row .product-card{
    flex-basis:86vw;
    width:86vw;
  }

  .market-row .store-card{
    flex-basis:90vw;
    width:90vw;
    grid-template-columns:100px minmax(0,1fr);
  }

  .market-grid .store-card{
    grid-template-columns:100px minmax(0,1fr);
  }

  .product-img{
    height:170px;
    min-height:170px;
  }

  .store-card .store-img{
    min-height:154px;
  }

  .section-title-row h2{
    font-size:19px;
  }

  .market-category-card,
  .cat-pill{
    min-width:102px;
    min-height:98px;
  }
}

/* ==========================================================
   ShipXpress Cliente - Card lateral PRO tipo app
   Escritorio + teléfono. Dejar al final de cliente-pro.css
   ========================================================== */
.delivery-card.home-app-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
  min-height:330px;
  padding:26px;
  border-radius:34px;
  background:
    radial-gradient(circle at 88% 0,rgba(57,255,20,.20),transparent 260px),
    radial-gradient(circle at 0 100%,rgba(255,140,0,.12),transparent 240px),
    linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow);
}
.delivery-card.home-app-card:before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  right:-82px;
  bottom:-86px;
  border-radius:50%;
  border:34px solid rgba(255,140,0,.09);
  pointer-events:none;
}
.delivery-card.home-app-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.06),transparent 45%);
  pointer-events:none;
}
.home-app-top,
.home-app-location,
.home-app-stats,
.home-app-actions,
.home-app-secondary{
  position:relative;
  z-index:1;
}
.home-app-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.home-app-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:8px;
  color:#ffb23f;
  font-size:12px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.45px;
}
.home-app-card h3{
  max-width:320px;
  margin:0;
  font-size:31px;
  line-height:1.02;
  letter-spacing:-.9px;
  color:#fff;
}
.home-app-icon{
  flex:0 0 auto;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(135deg,#ff8c00,#ffb23f);
  color:#071019;
  font-size:28px;
  box-shadow:0 16px 32px rgba(255,140,0,.25);
}
.home-app-location{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:13px 14px;
  border-radius:20px;
  background:rgba(7,16,25,.46);
  border:1px solid rgba(255,255,255,.10);
}
.home-app-location span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,140,0,.14);
}
.home-app-location p{
  margin:0;
  color:#d7e5f4;
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}
.home-app-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.home-app-stat{
  width:100%;
  min-height:86px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.065);
  color:#fff;
  border-radius:22px;
  text-align:left;
  cursor:pointer;
  transition:.2s ease;
}
.home-app-stat:hover{
  transform:translateY(-2px);
  border-color:rgba(255,140,0,.34);
  background:rgba(255,140,0,.11);
}
.home-app-stat-ico{
  flex:0 0 auto;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(255,255,255,.095);
  font-size:21px;
}
.home-app-stat strong{
  display:block;
  color:#ffb23f;
  font-size:27px;
  line-height:1;
  font-weight:1000;
}
.home-app-stat small{
  display:block;
  margin-top:5px;
  color:#b9c8d8;
  font-size:12px;
  font-weight:900;
  line-height:1.15;
}
.home-app-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.home-app-action{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.07);
  color:#fff;
  font-weight:1000;
  text-align:center;
  cursor:pointer;
  transition:.2s ease;
}
.home-app-action:hover{
  transform:translateY(-2px);
  border-color:rgba(255,140,0,.35);
}
.home-app-action.primary{
  background:linear-gradient(135deg,#ff8c00,#ffb23f);
  color:#071019;
  border-color:rgba(255,140,0,.45);
  box-shadow:0 14px 26px rgba(255,140,0,.22);
}
.home-app-secondary{
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:17px;
  color:#ffcf8a;
  background:rgba(255,140,0,.075);
  border:1px dashed rgba(255,140,0,.28);
  font-size:13px;
  font-weight:1000;
  text-align:center;
}

@media(max-width:1180px){
  .delivery-card.home-app-card{
    min-height:310px;
    padding:22px;
  }
  .home-app-card h3{
    font-size:27px;
  }
}

@media(max-width:900px){
  .delivery-card.home-app-card{
    min-height:auto;
  }
}

@media(max-width:620px), (hover:none) and (pointer:coarse) and (max-width:980px){
  .delivery-card.home-app-card{
    gap:13px;
    padding:16px;
    border-radius:22px;
    min-height:auto;
  }
  .delivery-card.home-app-card:before{
    width:145px;
    height:145px;
    right:-76px;
    bottom:-76px;
    border-width:26px;
  }
  .home-app-kicker{
    font-size:10px;
    margin-bottom:6px;
  }
  .home-app-card h3{
    font-size:23px;
    letter-spacing:-.5px;
  }
  .home-app-icon{
    width:46px;
    height:46px;
    border-radius:18px;
    font-size:22px;
  }
  .home-app-location{
    padding:11px 12px;
    border-radius:17px;
  }
  .home-app-location p{
    font-size:12px;
  }
  .home-app-stats{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }
  .home-app-stat{
    min-height:72px;
    gap:9px;
    padding:11px;
    border-radius:18px;
  }
  .home-app-stat-ico{
    width:34px;
    height:34px;
    border-radius:13px;
    font-size:18px;
  }
  .home-app-stat strong{
    font-size:22px;
  }
  .home-app-stat small{
    font-size:11px;
  }
  .home-app-actions{
    gap:9px;
  }
  .home-app-action{
    min-height:44px;
    border-radius:16px;
    font-size:12px;
    padding:0 10px;
  }
  .home-app-secondary{
    min-height:42px;
    border-radius:15px;
    font-size:12px;
  }
}

@media(max-width:380px){
  .home-app-stats,
  .home-app-actions{
    grid-template-columns:1fr;
  }
}

/* El formulario se desplaza; el total y la compra quedan siempre a la vista. */
.option-choice.is-disabled{opacity:.5;cursor:not-allowed}
.option-choice.is-disabled:hover{border-color:var(--line)}
.product-modal .client-modal-card{display:flex;flex-direction:column;height:min(760px,88dvh);max-height:88dvh;overflow:hidden;min-height:0}
.product-modal .client-modal-head{position:static;flex:none}
.product-modal #clientModalBody{flex:1;min-height:0;overflow:hidden}
.product-modal .product-detail-layout{height:100%;min-height:0;overflow:hidden}
.product-modal .product-detail-panel{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
.product-modal .product-detail-card{flex:1;min-height:0;height:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:18px}
.product-modal .product-detail-card>section,.product-modal .product-detail-card>.product-options-view{flex-shrink:0}
.product-purchase-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:none;padding:16px 0 max(4px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#0d141d}
.product-purchase-total{min-width:0}
.product-purchase-total small{display:block;color:#9caec1;font-size:12px;margin-bottom:4px}
.product-purchase-total p{margin:0;line-height:1.15}
.product-purchase-bar>.btn{min-height:48px;white-space:normal;text-align:center}
@media(max-width:700px){
 .product-modal .product-detail-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(80px,20dvh) minmax(0,1fr);gap:12px}
 .product-modal .product-detail-img{height:100%;min-height:0;overflow:hidden}
 .product-modal .product-detail-img img{max-height:100%;object-fit:contain}
 .product-purchase-bar{gap:10px;padding-top:12px}
 .product-purchase-bar>.btn{flex:1;max-width:240px;padding:12px;font-size:13px}
 .product-purchase-total .price-green b{font-size:25px}
}

.product-modal .product-detail-img{position:relative;width:100%;padding:0;border:0;cursor:zoom-in}
.product-modal .product-detail-img img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;padding:0}
.product-modal .product-detail-img .product-photo-hint{position:absolute;right:12px;bottom:12px;padding:8px 12px;border-radius:20px;background:rgba(0,0,0,.62);color:#fff;font-size:12px;pointer-events:none}
.product-photo-zoom{width:min(1100px,calc(100vw - 24px));max-width:none;max-height:94dvh;margin:auto;padding:14px;border:0;border-radius:20px;background:#fff;color:#172c3d;box-shadow:0 20px 80px #0008}
.product-photo-zoom::backdrop{background:rgba(0,0,0,.8)}
.product-photo-zoom header{display:flex;align-items:center;gap:10px;padding-bottom:12px}
.product-photo-zoom header strong{flex:1;min-width:0;overflow-wrap:anywhere}
.product-photo-zoom .btn{background:#f1f5f9;color:#172c3d;border:1px solid #dce4eb;white-space:nowrap;padding:10px 14px}
.product-photo-stage{overflow:auto;max-height:calc(90dvh - 80px);overscroll-behavior:contain;background:#f4f6f8;border-radius:12px}
.product-photo-stage img{display:block;width:auto;max-width:100%;max-height:calc(90dvh - 80px);height:auto;margin:auto}
.product-photo-zoom.is-enlarged .product-photo-stage img{width:200%;max-width:none;max-height:none;margin:0}
@media(max-width:700px){.product-modal .product-detail-layout{grid-template-rows:minmax(100px,30dvh) minmax(0,1fr)}}
