/* ═══════════════════════════════════════════════════
   CNE Delivery — Store CSS
   ══════════════════════════════════════════════════ */
:root { --brand: #e63946; --brand-dark: #c1121f; }
* { box-sizing: border-box; }
body.store-body { background: #f5f5f5; font-family: 'Segoe UI', system-ui, sans-serif; margin: 0; padding-bottom: 80px; }

/* ── TOP NAV ── */
.store-topnav { position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.store-nav-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.store-nav-initials { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.25); color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.btn-nav-ghost { color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.3); background: transparent; }
.btn-nav-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-nav-cart { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); position: relative; padding: .3rem .7rem; }
.btn-nav-cart:hover { background: rgba(255,255,255,.25); color: #fff; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #fff; color: var(--brand); font-size: .6rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ── NAV PILLS ── */
.store-nav-pills { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.store-nav-pills::-webkit-scrollbar { display: none; }
.nav-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .85rem; border-radius: 20px; font-size: .82rem; color: rgba(255,255,255,.8); text-decoration: none; white-space: nowrap; transition: all .2s; }
.nav-pill:hover, .nav-pill.active { background: rgba(255,255,255,.25); color: #fff; }

/* ── MOBILE NAV ── */
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav-link { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; text-decoration: none; color: #333; font-size: 1rem; border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.mobile-nav-link:hover { background: #f8f8f8; color: var(--brand); }
.mobile-nav-link i { font-size: 1.2rem; width: 24px; }

/* ── HERO ── */
.store-hero { box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.store-hero-logo { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; border: 3px solid rgba(255,255,255,.4); flex-shrink: 0; }
.store-hero-initials { width: 70px; height: 70px; border-radius: 14px; background: rgba(255,255,255,.2); color: #fff; font-weight: 900; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── HOME STORE CARDS ── */
.store-card { border-radius: 14px; border: none; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.store-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.store-banner { height: 90px; display: flex; align-items: center; justify-content: center; }
.store-logo { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; border: 3px solid rgba(255,255,255,.4); }
.store-initials { width: 60px; height: 60px; border-radius: 12px; background: rgba(255,255,255,.25); color: #fff; font-weight: 900; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }

/* ── CATEGORY NAV ── */
.category-nav { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-nav::-webkit-scrollbar { display: none; }
.category-pill { padding: .35rem 1.1rem; border-radius: 20px; border: 2px solid #ddd; font-size: .85rem; color: #555; text-decoration: none; white-space: nowrap; transition: all .2s; background: #fff; }
.category-pill:hover, .category-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── SECTION TITLE ── */
.section-title { font-size: 1.1rem; font-weight: 700; color: #222; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--brand); display: inline-block; }

/* ── PRODUCT CARDS ── */
.product-list { display: flex; flex-direction: column; gap: .75rem; }
.product-card { background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.07); transition: box-shadow .2s, transform .1s; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.13); transform: translateY(-1px); }
.product-card-body { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem .5rem; }
.product-info { flex: 1; min-width: 0; }
.product-name { font-weight: 700; font-size: .95rem; margin: 0 0 .25rem; color: #222; }
.product-desc { font-size: .82rem; color: #777; margin: 0 0 .4rem; line-height: 1.4; }
.product-price { font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.product-thumb { width: 80px; height: 80px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card-footer { padding: .3rem 1rem .7rem; display: flex; justify-content: flex-end; }
.btn-add-product { background: var(--brand); color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s, background .15s; }
.btn-add-product:hover { background: var(--brand-dark); transform: scale(1.1); }
.btn-add-product:disabled { background: #ccc; cursor: not-allowed; transform: none; }

/* ── CART FLOAT ── */
.cart-float { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 900; }
.cart-float-btn { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .85rem 1.5rem; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.cart-float-count { background: rgba(255,255,255,.25); border-radius: 20px; padding: .1rem .6rem; font-size: .85rem; }

/* ── ORDER STEPS ── */
.order-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.order-steps::before { content:''; position:absolute; left:16px; top:24px; bottom:24px; width:2px; background:#e0e0e0; }
.order-step { display: flex; align-items: center; gap: 1rem; padding: .65rem 0; position: relative; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1; font-size: .8rem; color: #999; }
.order-step.done .step-dot { background: #28a745; border-color: #28a745; color: #fff; }
.order-step.current .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-label { font-size: .9rem; color: #888; }
.order-step.done .step-label { color: #28a745; font-weight: 600; }
.order-step.current .step-label { color: var(--brand); font-weight: 700; font-size: 1rem; }
.step-pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

/* ── FOOTER ── */
.store-footer { background: #1a1d2e; color: #ccc; padding: 2.5rem 0 1rem; }
.footer-heading { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.store-footer a { color: #aaa; }
.store-footer a:hover { color: #fff; }
.store-footer .border-light { border-color: rgba(255,255,255,.1) !important; }
.pay-badge { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.1); border-radius: 8px; padding: .25rem .65rem; font-size: .78rem; color: #ddd; white-space: nowrap; }

/* ── INSTALL BANNER ── */
.install-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--brand); color: #fff; z-index: 950; }

/* ── RESPONSIVE ── */
@media (min-width: 768px) {
  .product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
  body.store-body { padding-bottom: 0; }
}
@media (max-width: 575px) {
  .store-hero { padding: .75rem 0; }
  .store-hero h1 { font-size: 1.2rem !important; }
}

/* ── INFO BAR (substitui hero duplicado) ── */
.store-infobar {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
