/* ═══════════════════════════════════════════════════════════════
   DULCE ATELIER — MEJORAS PREMIUM 2026
   Performance + Micro-animations + Visual Polish
═══════════════════════════════════════════════════════════════ */

/* ── Header: badge pulsante dorado ──────────────────────── */
.badge-count {
  animation: badgePulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  50%       { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

/* ── Icon buttons: hover premium dorado ──────────────────── */
.icon-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.icon-btn:hover {
  background: var(--primary-light) !important;
  border-color: rgba(201,168,76,0.3) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(201,168,76,0.2) !important;
}

/* ── Status dot: glow más visible ────────────────────────── */
#store-status-dot {
  animation: statusGlow 2s ease-in-out infinite !important;
  box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5);
}

@keyframes statusGlow {
  0%  { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(42, 157, 143, 0); }
  100%{ box-shadow: 0 0 0 0 rgba(42, 157, 143, 0); }
}

/* ── Product cards: hover elevado con borde dorado ───────── */
.product-card {
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease !important;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1.5px rgba(201, 168, 76, 0.25) !important;
}

.product-card:active {
  transform: translateY(-2px) scale(0.99) !important;
  transition-duration: 0.1s !important;
}

/* ── Imagen de producto: zoom suave ──────────────────────── */
.product-img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  will-change: transform;
}

.product-card:hover .product-img {
  transform: scale(1.06) !important;
}

/* ── Botón WhatsApp cart: efecto ripple ──────────────────── */
.btn-whatsapp,
[class*="btn"][class*="primary"] {
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::after,
[class*="btn"][class*="primary"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.45s ease, height 0.45s ease, opacity 0.5s ease;
  opacity: 1;
  pointer-events: none;
}

.btn-whatsapp:active::after,
[class*="btn"][class*="primary"]:active::after {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* ── Category tabs: indicador animado ────────────────────── */
.category-tab {
  position: relative;
  transition: color 0.25s ease, background 0.25s ease !important;
}

.category-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  animation: tabSlide 0.25s ease forwards;
}

@keyframes tabSlide {
  from { width: 0; opacity: 0; }
  to   { width: 28px; opacity: 1; }
}

/* ── Cart drawer: entrada más fluida ─────────────────────── */
.modal-overlay {
  animation: overlayFadeIn 0.25s ease forwards !important;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Toast: animación más suave ──────────────────────────── */
.toast {
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── Sección hero: degradado background mejorado ─────────── */
.app-header {
  background: rgba(5, 22, 16, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

/* ── Delivery switcher: transición premium ───────────────── */
.delivery-tab {
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.delivery-tab.active {
  background: var(--primary-gradient) !important;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3) !important;
  color: #051610 !important;
  font-weight: 700 !important;
}

/* ── Section titles: shimmer rosado ──────────────────────── */
.section-title {
  position: relative;
}

/* ── Scrollbar personalizada ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface-secondary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent-gold));
  border-radius: 5px;
}

/* ── Lazy images: placeholder animado ────────────────────── */
img {
  background: linear-gradient(90deg, var(--bg-surface-secondary) 25%, var(--bg-surface) 50%, var(--bg-surface-secondary) 75%);
  background-size: 200% 100%;
}

/* ── Performance: contención CSS ─────────────────────────── */
.product-card,
.modal-overlay,
.toast {
  contain: layout style;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DULCE MARKET - MARKETPLACE DE 7 NEGOCIOS UI STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Sección de las 7 Pastelerías ────────────────────────── */
.businesses-section {
  margin: 0 16px 16px;
}

.businesses-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.btn-publish-pill {
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid rgba(217, 83, 111, 0.35);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-publish-pill:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 83, 111, 0.25);
}

.businesses-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.businesses-slider::-webkit-scrollbar {
  display: none;
}

.business-chip {
  flex: 0 0 auto;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.business-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 83, 111, 0.4);
}

.business-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 14px rgba(217, 83, 111, 0.2);
}

.business-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.business-chip-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.business-chip-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  line-height: 1.2;
}

.business-chip.active .business-chip-name {
  color: var(--primary);
}

.business-chip-zone {
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.business-chip-rating {
  font-size: 0.68rem;
  font-weight: 800;
  color: #E76F51;
  margin-left: 4px;
  white-space: nowrap;
}

/* ── Store Spotlight Card (cuando se selecciona una pastelería) ── */
.store-spotlight-card {
  background: linear-gradient(135deg, #FFF9F9 0%, #FFF0F3 100%);
  border: 1.5px solid rgba(217, 83, 111, 0.28);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(217, 83, 111, 0.08);
}

.store-spotlight-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.store-spotlight-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0A2219;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.store-spotlight-info {
  flex: 1;
  min-width: 0;
}

.store-spotlight-title {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.2;
}

.store-spotlight-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
}

.store-spotlight-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.store-spotlight-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.store-spotlight-close {
  background: #fff;
  border: 1px solid rgba(217, 83, 111, 0.25);
  color: var(--primary);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.store-spotlight-close:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Encabezado de Sección de Negocio en Menú Completo ──── */
.store-section-block {
  margin-bottom: 28px;
}

.store-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.store-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.store-mini-badge {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: 6px;
}

.btn-view-store {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(217, 83, 111, 0.22);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-view-store:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Product Card Marketplace Elements ──────────────────── */
.product-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 7px;
  border-radius: 6px;
  margin-bottom: 5px;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-badge-avatar {
  font-size: 0.85rem;
}

.store-badge-zone {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.product-portion-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.modal-store-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  border: 1px solid rgba(217, 83, 111, 0.25);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item-store-tag {
  font-size: 0.68rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.preset-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.preset-img-chip {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 6px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preset-img-chip:hover {
  border-color: rgba(217, 83, 111, 0.4);
}

.preset-img-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   PEDIDOSYA STYLE MARKETPLACE UPGRADES (MOBILE-FIRST)
   ═══════════════════════════════════════════════════════════════ */

/* ── Top Address & Location Selector Bar (PedidosYa Header) ── */
.top-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-surface-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-location-bar:active {
  transform: scale(0.99);
  background: var(--primary-light);
}

.location-info-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.location-pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.location-text-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.location-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.location-current-address {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-chevron {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ── Vendor Logistics Guarantee Banner ─────────────────────── */
.vendor-logistics-banner {
  background: linear-gradient(135deg, #FFF5F7 0%, #FFF9F0 100%);
  border: 1px solid rgba(217, 83, 111, 0.22);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 0 16px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(217, 83, 111, 0.05);
}

.vendor-logistics-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.vendor-logistics-text strong {
  color: var(--primary);
}

/* ── PedidosYa Stories / Category Circles ──────────────────── */
.stories-section {
  margin: 0 16px 16px;
}

.stories-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stories-slider::-webkit-scrollbar {
  display: none;
}

.story-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  width: 68px;
  text-align: center;
  user-select: none;
  transition: transform 0.2s ease;
}

.story-bubble:active {
  transform: scale(0.93);
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 0;
  background: #0A2219;
  border: 1.5px solid rgba(212, 175, 55, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-bubble.active .story-ring,
.story-bubble:hover .story-ring {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), 0 6px 18px rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.story-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: none;
  overflow: hidden;
  color: #D4AF37;
}

.story-avatar-inner svg {
  width: 24px;
  height: 24px;
  stroke: #D4AF37;
  stroke-width: 1.6;
}

.story-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #CBD8D1;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
}

.story-bubble.active .story-label {
  color: #D4AF37;
  font-weight: 700;
}

/* ── PedidosYa Quick Filter Chips ──────────────────────────── */
.filter-chips-section {
  margin: 0 16px 14px;
}

.filter-chips-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  scrollbar-width: none;
}

.filter-chips-slider::-webkit-scrollbar {
  display: none;
}

.filter-chip-py {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  user-select: none;
}

.filter-chip-py:hover {
  border-color: rgba(217, 83, 111, 0.4);
  color: var(--text-main);
}

.filter-chip-py.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(217, 83, 111, 0.28);
}

/* ── PedidosYa Store Cards (Pastelerías con Envío Propio) ── */
.stores-py-section {
  margin: 0 16px 22px;
}

.stores-py-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stores-py-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .stores-py-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.store-card-py {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.store-card-py:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 83, 111, 0.3);
}

.store-card-cover-wrap {
  position: relative;
  width: 100%;
  height: 125px;
  overflow: hidden;
  background: var(--bg-surface-secondary);
}

.store-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.store-card-py:hover .store-card-cover-img {
  transform: scale(1.05);
}

.store-card-badge-open {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(42, 157, 143, 0.95);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.store-card-badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(217, 83, 111, 0.35);
}

.store-card-avatar-floating {
  position: absolute;
  bottom: -16px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0A2219;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 2;
}

.store-card-body {
  padding: 22px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.store-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.store-card-verified {
  color: #009EE3;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
}

.store-card-rating {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E76F51;
  background: #FEF3EE;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.store-card-tagline {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tag específico: Envío por el vendedor */
.store-vendor-shipping-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #F0F9F5;
  border: 1px solid rgba(42, 157, 143, 0.3);
  color: #1E6B61;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
  margin-top: 2px;
}

.store-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Perfil Detallado de Pastelería (Store Spotlight PedidosYa) ── */
.store-profile-hero {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.store-profile-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  position: relative;
}

.store-profile-content {
  padding: 14px 16px;
  position: relative;
}

.store-profile-avatar-wrap {
  position: absolute;
  top: -30px;
  left: 16px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #0A2219;
  border: 2px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.store-profile-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 6px;
}

.btn-chat-seller {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--whatsapp-green);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-chat-seller:hover {
  transform: translateY(-1px);
  background: var(--whatsapp-hover);
}

.btn-close-store-view {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.store-profile-policy-box {
  background: #F0F9F5;
  border: 1px dashed #2A9D8F;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: #1E6B61;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ── Modern Bottom Navigation Bar (App Bar) ───────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 64px;
  background: rgba(5, 22, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 4px 6px max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.55);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: #7D978C;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  flex: 1;
  position: relative;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-item.active {
  color: #D4AF37;
  font-weight: 700;
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

/* ── Sticky Floating Cart Bar (Above Bottom Nav) ───────────── */
.floating-cart-bar {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA822A 100%);
  color: #051610;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 999;
  cursor: pointer;
  animation: cartFloatBounce 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartFloatBounce {
  0% { transform: translate(-50%, 20px) scale(0.95); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.floating-cart-bar:active {
  transform: translateX(-50%) scale(0.98);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-badge-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
}

.cart-bar-info span:first-child {
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 600;
}

.cart-bar-total {
  font-size: 1.05rem;
  font-weight: 800;
}

.cart-bar-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

/* ── Address Selector Bottom Sheet Modal ──────────────────── */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.neighborhood-btn {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.neighborhood-btn:hover,
.neighborhood-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}


