/* ═══════════════════════════════════════════
   CATÁLOGO WEB EN VIVO — TODOCHUY
   Mobile-First Design System
   ═══════════════════════════════════════════ */

:root {
  --navy-deep: #081C40;
  --navy-mid: #0D2D66;
  --navy-light: #164494;
  --orange: #FF6B00;
  --orange-bright: #FF8800;
  --orange-soft: #FFF2E8;
  --wa-green: #16A34A;
  --wa-green-dark: #15803D;

  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-muted: #5B677C;
  --border: #E2E8F0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(8, 28, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(8, 28, 64, 0.10);
  --shadow-lg: 0 18px 46px rgba(8, 28, 64, 0.22);

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
  padding-bottom: 84px;
  overflow-x: clip;
  max-width: 100%;
}

img {
  display: block;
  max-width: 100%;
}

button, input, select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════
   HEADER & SEARCH
   ═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  box-shadow: 0 4px 20px rgba(8, 28, 64, 0.24);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 14px 8px;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  padding: 5px 10px;
  border-radius: 11px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}

.brand-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
  position: relative;
}

.icon-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-pill-btn:active {
  transform: scale(0.96);
}

.cart-pill-btn {
  background: var(--orange);
  border-color: var(--orange-bright);
  box-shadow: 0 3px 12px rgba(255, 107, 0, 0.35);
}

.cart-pill-btn:hover {
  background: var(--orange-bright);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.search-row {
  width: 100%;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 13px;
  padding: 0 12px;
  box-shadow: inset 0 1px 2px rgba(8, 28, 64, 0.08);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 14.5px;
  color: var(--text);
}

.search-box input::placeholder {
  color: #8895AA;
}

.clear-search-btn {
  border: none;
  background: #E2E8F0;
  color: var(--navy-deep);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   DEPARTMENT TABS (HORIZONTAL SCROLL)
   ═══════════════════════════════════════════ */
.dept-nav {
  background: rgba(5, 18, 43, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dept-tabs {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dept-tabs::-webkit-scrollbar {
  display: none;
}

.dept-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.dept-tab:hover {
  background: rgba(255, 255, 255, 0.16);
}

.dept-tab.active {
  background: #FFFFFF;
  color: var(--navy-deep);
  border-color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.dept-tab .tab-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.dept-tab.active .tab-count {
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   MAIN CONTAINER & BANNER
   ═══════════════════════════════════════════ */
.main-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 12px 24px;
}

.dept-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy-light) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dept-banner-copy {
  min-width: 0;
}

.dept-banner::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.35) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
}

.dept-banner-eyebrow {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FFB067;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dept-banner-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 3px;
}

.dept-banner-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
}

.live-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
}

/* ═══════════════════════════════════════════
   CONTROLS: SUBCATEGORIES, PROMO TOGGLE & SORT
   ═══════════════════════════════════════════ */
.controls-bar {
  margin-bottom: 14px;
}

.subcat-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subcat-chips::-webkit-scrollbar {
  display: none;
}

.subcat-chips:empty {
  display: none;
}

.subcat-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy-deep);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subcat-chip:hover {
  border-color: var(--navy-light);
}

.subcat-chip.active {
  background: var(--navy-deep);
  color: #FFFFFF;
  border-color: var(--navy-deep);
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.results-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.promo-toggle-btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px solid #FFD2B3;
  background: var(--orange-soft);
  color: #C2410C;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.promo-toggle-btn.active {
  background: var(--orange);
  color: #FFFFFF;
  border-color: var(--orange);
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

.sort-select {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   PRODUCT GRID & CARDS (2-COL MOBILE)
   ═══════════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(8, 28, 64, 0.07);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.promo-ribbon {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  background: linear-gradient(135deg, var(--orange) 0%, #E65100 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  padding: 3.5px 7px;
  border-radius: 7px;
  box-shadow: 0 3px 10px rgba(230, 81, 0, 0.34);
  max-width: calc(100% - 14px);
  line-height: 1.15;
}

.promo-ribbon.is-cuotas {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  box-shadow: 0 3px 10px rgba(8, 28, 64, 0.28);
}

.card-body {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-light);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}

.price-col {
  display: flex;
  flex-direction: column;
}

.price-unit-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 2px;
}

.price-main {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1;
}

.price-main.is-consult {
  font-size: 13px;
  color: var(--orange);
}

.card-add-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--navy-deep);
  background: #FFFFFF;
  color: var(--navy-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.card-add-btn:hover {
  background: var(--navy-deep);
  color: #FFFFFF;
}

.card-add-btn.in-list {
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: #FFFFFF;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   STATES (EMPTY & LOADING)
   ═══════════════════════════════════════════ */
.empty-state, .loading-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.primary-btn {
  background: var(--orange);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3.5px solid #E2E8F0;
  border-top-color: var(--orange);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   FLOATING WHATSAPP LIST BAR
   ═══════════════════════════════════════════ */
.floating-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 95;
  max-width: 520px;
  margin: 0 auto;
}

.floating-list-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.38);
  cursor: pointer;
}

.floating-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-count {
  background: #FFFFFF;
  color: var(--wa-green-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-right {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
}

/* ═══════════════════════════════════════════
   MODALS & BOTTOM SHEETS
   ═══════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 28, 64, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(28px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 28, 64, 0.1);
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.modal-close-btn.static-close {
  position: static;
  flex-shrink: 0;
}

.modal-img-stage {
  position: relative;
  background: #FFFFFF;
  height: 260px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.modal-img-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.modal-promo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}

.modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
}

.modal-crumbs {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy-light);
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modal-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 15px;
  margin-bottom: 16px;
}

.modal-price-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-price-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1.1;
}

.modal-promo-box {
  background: var(--orange-soft);
  border: 1px solid #FFD2B3;
  border-radius: 11px;
  padding: 7px 11px;
  text-align: right;
}

.modal-promo-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
}

.modal-promo-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #C2410C;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.wa-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--wa-green) 0%, var(--wa-green-dark) 100%);
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  border-radius: 13px;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.secondary-action-btn {
  background: #FFFFFF;
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
  border-radius: 13px;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-action-btn.in-list {
  background: #ECFDF5;
  border-color: var(--wa-green);
  color: var(--wa-green-dark);
}

.full-w {
  width: 100%;
}

.flex-1 {
  flex: 1;
}

/* DRAWERS (LIST & BRANCHES) */
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-deep);
}

.drawer-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.drawer-content {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 14px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #F8FAFC;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.list-row img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 3px;
  flex-shrink: 0;
}

.list-row-info {
  flex: 1;
  min-width: 0;
}

.list-row-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy-deep);
  line-height: 1.25;
}

.list-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.list-row-subtotal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12.5px;
}

.list-row-subtotal .old-price {
  text-decoration: line-through;
  color: #94A3B8;
  font-weight: 500;
}

.list-row-subtotal .promo-price {
  font-family: var(--font-display);
  color: var(--wa-green-dark);
  font-weight: 800;
}

.saved-tag, .total-savings-pill {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.total-savings-pill {
  margin-right: 6px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--navy-deep);
  font-weight: 800;
  cursor: pointer;
}

.qty-val {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
}

.branch-picker {
  margin-bottom: 10px;
}

.branch-picker label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.branch-picker select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  font-size: 14px;
}

.drawer-total-row strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy-deep);
}

.drawer-footer-btns {
  display: flex;
  gap: 8px;
}

.ghost-btn {
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* BRANCHES & PAYMENTS */
.payments-card {
  background: linear-gradient(135deg, #EEF4FF 0%, #FFF5EC 100%);
  border: 1px solid #DCE7FB;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.payments-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.payments-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-pill {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-deep);
}

.branches-grid {
  display: grid;
  gap: 9px;
}

.branch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: #FFFFFF;
}

.branch-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy-deep);
}

.branch-addr {
  font-size: 12.5px;
  color: var(--text-muted);
}

.map-link {
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--orange-soft);
  color: #C2410C;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 28px;
  padding: 28px 16px 34px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  height: 30px;
  margin: 0 auto 10px;
  background: #FFFFFF;
  padding: 5px 12px;
  border-radius: 10px;
}

.footer-notice {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.footer-pill.wa-pill {
  background: var(--wa-green);
  border-color: var(--wa-green);
}

.footer-social {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (TABLET & DESKTOP)
   ═══════════════════════════════════════════ */
@media (min-width: 640px) {
  .brand-logo {
    height: 28px;
  }
  .icon-pill-btn {
    padding: 7px 13px;
    font-size: 13px;
  }
  .dept-banner {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
  .modal-sheet {
    border-radius: 24px;
  }
  .modal-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .header-inner {
    padding: 12px 20px 10px;
  }
  .main-wrap {
    padding: 18px 20px 32px;
  }
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .dept-banner-title {
    font-size: 26px;
  }
  .card-title {
    font-size: 14px;
  }
  .price-main {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
