
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f5f5f5;color:#1e1e1e}
.cover-wrap{width:100%;background:#ddd;overflow:hidden}
.cover{width:100%;height:clamp(180px,22vw,340px);object-fit:cover;display:block}
.brand-bar{width:100%}
.hero-inner{max-width:1100px;margin:auto;padding:28px 20px;display:flex;gap:18px;align-items:center}
.logo{width:90px;height:90px;object-fit:cover;border-radius:22px;background:#fff;flex:0 0 auto}
.brand-copy h1{margin:0 0 8px;font-size:clamp(1.8rem,3vw,2.5rem)}
.brand-copy p{margin:0 0 10px;opacity:.95}
.status-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.status-badge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:.82rem;font-weight:800;color:#fff}
.status-badge.open{background:#16883a}.status-badge.closed{background:#c62828}.status-next{font-size:.9rem;opacity:.95}
.container{max-width:1100px;margin:auto;padding:20px}
.card{background:#fff;border-radius:18px;box-shadow:0 6px 22px rgba(0,0,0,.07)}
.business-info{padding:16px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.business-info>div{white-space:nowrap}.hours-btn{margin-left:auto;background:#ececec;color:#111}
.hours-box{padding:16px;margin-top:12px}.hour-row{display:flex;justify-content:space-between;gap:20px;padding:9px 0;border-bottom:1px solid #eee}.hour-row:last-child{border-bottom:0}
.hidden{display:none!important}
.category-nav{display:flex;gap:9px;overflow-x:auto;padding:17px 0 8px;scrollbar-width:none;position:sticky;top:0;z-index:15;background:#f5f5f5}
.category-nav::-webkit-scrollbar{display:none}
.category-nav a{white-space:nowrap;padding:10px 15px;background:#fff;border-radius:999px;text-decoration:none;color:#111;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.category-section{padding-top:12px}.category-section h2{margin-bottom:6px}.category-desc{color:#666;margin-top:0}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.product{overflow:hidden;display:flex;flex-direction:column;min-height:100%}
.product img{width:100%;height:210px;object-fit:cover;display:block}
.product-body{padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;flex:1}
.product-body h3{margin:6px 0 7px;font-size:1.15rem}.product-body p{margin:0;color:#666;line-height:1.42}
.product-tag{font-size:.75rem;background:#fff3cd;padding:4px 7px;border-radius:8px}
.row{display:flex;justify-content:space-between;gap:12px;align-items:center}
.product-footer strong{font-size:1.1rem}
button{border:0;border-radius:11px;padding:11px 14px;font-weight:700;cursor:pointer}
.cart-fab{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));background:var(--cart-bg,#111);color:var(--cart-text,#fff);box-shadow:0 10px 30px rgba(0,0,0,.3);z-index:30;display:flex;align-items:center;gap:7px;transition:transform .2s ease,background .25s ease,color .25s ease}
.cart-fab.has-items{background:#16883a;color:#fff}
.cart-fab.bump{animation:cartBump .48s ease}
@keyframes cartBump{0%{transform:scale(1)}35%{transform:scale(1.22) rotate(-4deg)}70%{transform:scale(.96)}100%{transform:scale(1)}}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:16px;z-index:99}
.modal-card{background:#fff;width:min(680px,100%);max-height:90dvh;overflow:auto;border-radius:20px;padding:20px;position:relative}
.close{position:absolute;right:12px;top:10px;background:#eee;color:#111}
.option-group{padding:14px 0;border-top:1px solid #eee}.option-item{display:flex;gap:10px;align-items:center;padding:7px 0}
.cart-line{padding:14px 0;border-bottom:1px solid #eee}.qty{display:flex;gap:8px;align-items:center}.muted{color:#666;font-size:.92rem}
.field{display:grid;gap:6px;margin:12px 0}.field input,.field textarea,.field select{padding:12px;border:1px solid #ccc;border-radius:10px;width:100%;font:inherit}
.totalbox{padding:14px;background:#f5f5f5;border-radius:12px;margin-top:14px}.primary{width:100%;margin-top:12px}
@media(max-width:700px){
 .cover{height:190px}
 .hero-inner{padding:20px 14px;align-items:center}
 .logo{width:74px;height:74px;border-radius:18px}
 .brand-copy h1{font-size:1.55rem}
 .container{padding:14px}
 .business-info{align-items:flex-start}.hours-btn{margin-left:0;width:100%}
 .hour-row{font-size:.93rem}
 .product-grid{grid-template-columns:1fr 1fr;gap:10px}
 .product img{height:150px}.product-body{padding:12px}.product-body h3{font-size:1rem}.product-body p{font-size:.88rem}
 .product-footer{align-items:flex-end}.product-footer button{padding:10px}
 .cart-fab{left:14px;right:14px;justify-content:center}
}
@media(max-width:430px){
 .hero-inner{align-items:flex-start}
 .logo{width:66px;height:66px}
 .brand-copy h1{font-size:1.35rem}
 .product-grid{grid-template-columns:1fr}
 .product img{height:210px}
}

.closed-order-notice{margin-top:12px;padding:15px 17px;border:1px solid #f0b8b8;background:#fff1f1;color:#8f1717}
.closed-order-notice>div:first-child{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:5px}
.disabled-order{background:#c8c8c8!important;color:#666!important;cursor:not-allowed!important;opacity:.9}
@media(max-width:700px){
 .closed-order-notice{font-size:.92rem}
}

.closed-order-notice{background:#c62828!important;color:#fff!important;border:0!important}.closed-order-notice *{color:#fff!important}

.category-filter{white-space:nowrap;padding:10px 15px;background:#fff;color:#111;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.category-filter.active{background:var(--brand)!important;color:var(--brand-text)!important}
.closed-order-notice{background:#c62828!important;color:#fff!important;border:0!important}
.closed-order-notice *{color:#fff!important}

.global-market-inner{padding:9px 14px;font-size:.9rem}}

/* v0.8.1 - branding global */
.global-market-header{width:100%}
.global-market-inner{max-width:1180px;margin:auto;padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:18px}
.global-market-brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}
.global-market-brand img{width:48px;height:48px;object-fit:contain;border-radius:12px;flex:0 0 auto}
.global-market-brand strong{display:block;font-size:1.05rem}
.global-market-brand small{display:block;margin-top:3px;opacity:.88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:650px}
.global-market-back{text-decoration:none;font-weight:700;white-space:nowrap}

.global-market-footer{width:100%}
.global-market-footer-inner{max-width:1180px;margin:auto;padding:30px 20px;display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:28px;align-items:start}
.global-footer-brand{min-width:0}
.global-footer-logo{display:block;max-width:150px;max-height:75px;width:auto;height:auto;object-fit:contain;margin-bottom:12px}
.global-footer-brand p{margin:0 0 10px;line-height:1.5}
.global-footer-mainlink{font-weight:800;text-decoration:none}
.global-footer-menu,.global-footer-socials{display:flex;flex-direction:column;gap:9px}
.global-footer-menu a,.global-footer-socials a{text-decoration:none;line-height:1.4}

.business-own-footer{margin-top:40px;width:100%}
.business-own-footer-inner{max-width:1100px;margin:auto;padding:28px 20px;text-align:center}
.business-own-footer p{margin:0 auto 14px;max-width:800px;line-height:1.5}
.business-socials{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin:12px 0}
.business-socials a{text-decoration:none;font-weight:700}
.powered{margin:22px auto 0;padding:10px 14px;border-radius:999px;display:table;font-size:.92rem;font-weight:700}
.powered a{text-decoration:underline}

@media(max-width:800px){
  .global-market-footer-inner{grid-template-columns:1fr 1fr}
  .global-footer-brand{grid-column:1/-1}
}
@media(max-width:600px){
  .global-market-inner{padding:10px 14px;align-items:flex-start}
  .global-market-brand img{width:42px;height:42px}
  .global-market-brand small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .global-market-back{font-size:.86rem}
  .global-market-footer-inner{grid-template-columns:1fr;padding:25px 16px;text-align:center}
  .global-footer-logo{margin:0 auto 12px}
  .global-footer-menu,.global-footer-socials{align-items:center}
}

.cart-fab-large{min-height:58px!important;padding:15px 20px!important;font-size:1.02rem!important;border-radius:16px!important}
.cart-fab-large #cartCount{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.18);font-size:.95rem}
@media(max-width:700px){
 .cart-fab-large{min-height:62px!important;padding:16px 20px!important;font-size:1.05rem!important;left:12px!important;right:12px!important;bottom:12px!important}
}

html,body{min-height:100%;overflow-x:hidden}
body{padding-bottom:0!important}
.business-own-footer,.dm-global-footer{margin-bottom:0!important}
.cart-fab-large{min-height:66px!important;padding:18px 24px!important;font-size:1.1rem!important;border-radius:18px!important}
@media(max-width:700px){.cart-fab-large{min-height:68px!important;font-size:1.12rem!important;left:10px!important;right:10px!important;bottom:10px!important}}

@media(max-width:700px){
  .cart-fab,.cart-fab-large{
    min-height:74px!important;
    font-size:1.2rem!important;
    padding:20px 24px!important;
    border-radius:20px!important;
    font-weight:900!important;
  }
  .cart-fab #cartCount,.cart-fab-large #cartCount{
    min-width:30px!important;height:30px!important;font-size:1rem!important;
  }
}


/* v1.4.5: carrito móvil verdaderamente fijo */
#cartFab.cart-fab{
  position:fixed!important;
  top:auto!important;
  right:max(18px,env(safe-area-inset-right))!important;
  bottom:max(18px,env(safe-area-inset-bottom))!important;
  left:auto!important;
  z-index:2147483000!important;
}
@media(max-width:700px){
  body{padding-bottom:104px!important}
  #cartFab.cart-fab,#cartFab.cart-fab-large{
    position:fixed!important;
    top:auto!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    min-height:68px!important;
    margin:0!important;
    transform:none!important;
    z-index:2147483000!important;
  }
}


/* =========================================================
   v1.6.4 - UI refinada / bloques / scrollbar / brand colors
   ========================================================= */
button,.primary,.category-filter,.business-map-link{
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,background .16s ease,color .16s ease;
}
button:hover,.primary:hover{filter:brightness(.96);transform:translateY(-1px)}
button:active,.primary:active{transform:translateY(0) scale(.99)}
.primary{
  background:var(--brand)!important;
  color:var(--brand-text)!important;
  border-radius:13px!important;
  min-height:46px;
  box-shadow:0 5px 14px color-mix(in srgb,var(--brand) 24%,transparent);
}
.modal-card{
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.22) transparent;
}
.modal-card::-webkit-scrollbar{width:7px}
.modal-card::-webkit-scrollbar-track{background:transparent}
.modal-card::-webkit-scrollbar-thumb{background:rgba(0,0,0,.20);border-radius:99px}
.modal-card::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.34)}
.cart-line{
  margin:8px 0;
  padding:12px!important;
  border:1px solid #ececec!important;
  border-radius:13px;
  background:#fff;
}
.cart-item-note-display{
  display:block;
  margin-top:7px!important;
  padding:7px 9px;
  background:#f5f5f5;
  border-radius:8px;
  color:#555;
}
.cart-checkout-sticky{
  position:sticky;
  bottom:-20px;
  background:linear-gradient(to top,#fff 78%,rgba(255,255,255,0));
  padding:22px 0 4px;
  z-index:4;
}
.payment-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:8px;
}
.payment-choice{position:relative;cursor:pointer}
.payment-choice input{position:absolute;opacity:0;pointer-events:none}
.payment-choice span{
  display:flex;align-items:center;justify-content:center;gap:7px;
  min-height:48px;padding:10px 12px;border:2px solid #ddd;border-radius:12px;
  background:#fff;color:#222;font-weight:900;
}
.payment-choice input:checked + span{
  background:var(--brand)!important;
  border-color:var(--brand)!important;
  color:var(--brand-text)!important;
  box-shadow:0 5px 14px color-mix(in srgb,var(--brand) 22%,transparent);
}
.transfer-proof-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:50px!important;
  padding:12px 16px!important;
  border-radius:13px!important;
  background:var(--brand)!important;
  color:var(--brand-text)!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 6px 18px color-mix(in srgb,var(--brand) 25%,transparent);
}
.transfer-proof-btn:hover{filter:brightness(.96);transform:translateY(-1px)}
.business-info .business-map-link{
  background:var(--brand)!important;
  color:var(--brand-text)!important;
  border:0!important;
  text-decoration:none!important;
}
.business-info .business-map-link:hover{color:var(--brand-text)!important;text-decoration:none!important}

/* Las áreas del menú vuelven a sentirse como módulos independientes. */
.business-social-strip,
.category-nav,
.category-section,
.featured-products-section{
  background:#fff!important;
  border:1px solid rgba(0,0,0,.06)!important;
  box-shadow:0 5px 18px rgba(0,0,0,.055)!important;
  border-radius:18px!important;
}
.business-social-strip{padding:12px!important;margin:14px 0!important}
.category-nav{
  position:sticky!important;
  top:8px!important;
  padding:12px!important;
  margin:12px 0!important;
  z-index:15!important;
}
.category-section{
  padding:16px!important;
  margin:14px 0!important;
}
.category-section h2{margin-top:0!important}
.featured-products-section{margin:14px 0!important}

@media(max-width:600px){
  .payment-options{grid-template-columns:1fr 1fr}
  .category-section{padding:12px!important}
  .category-nav{border-radius:14px!important;padding:9px!important}
}
