/* ═══════════════════════════════════════
   RESET & GLOBAL DESIGN SYSTEM
═══════════════════════════════════════ */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  background: var(--color-bg);
  font-family: 'Nunito', sans-serif;
  padding: 12px;
  padding-bottom: 100px;
  color: #111111;
  -webkit-tap-highlight-color: transparent;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   SCROLL-LINKED HEADER & TITLE ANIMATION
═══════════════════════════════════════ */
:root {
  --header-bg-opacity: 0;
  --header-shadow-opacity: 0;
  --header-pad-top: 36px;
  --header-pad-bottom: 16px;
  --title-scale: 1.77; 
  --scroll-progress: 0;

  --color-bg: #FAF8FC;
  --color-nav: rgba(250, 248, 252, 0.95);
  --color-secondary: #A855F7;
  --color-primary: #6D28D9;
  --color-nav-active: #6D28D9;
  --color-bus-name: #000000;
  --color-bus-desc: #000000;
  --color-whatsapp: #0a8a0a;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 253, 247, var(--header-bg-opacity)); 
  padding: var(--header-pad-top) 14px var(--header-pad-bottom) 14px;
  border-radius: 0 0 24px 24px;
  margin: -12px -12px 16px -12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, var(--header-shadow-opacity));
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 900;
}

.title-wrapper { display: flex; align-items: center; justify-content: space-between; }

/* Single collapsing "large title" — big on load, shrinks smoothly as the
   scroll engine in script.js drives --title-scale from 1.77 down to 1 over
   the first 80px of scroll (see SCROLL-LINKED ANIMATION ENGINE in script.js). */
.title { 
  color: #000000; 
  font-family: 'Nunito', sans-serif;
  font-size: 20px; 
  font-weight: 1000;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: normal; 
  word-wrap: break-word; 
  transform: scale(var(--title-scale));
  transform-origin: left center;
  will-change: transform;
  margin-left: 8px;
}

/* SEARCH BAR */
.header-actions { display: flex; align-items: center; width: 100%; }
.search-bar-container {
  display: flex; 
  align-items: center; 
  flex: 1; 
  background: #FFFFFF; 
  border-radius: 14px; 
  padding: 6px 14px; 
  height: 44px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
}
.search-icon { font-size: 20px; color: #777777; margin-right: 8px; }
.search-bar-inner { 
  flex: 1; 
  border: none; 
  background: transparent; 
  outline: none; 
  font-size: 14px; 
  font-family: 'Nunito', sans-serif; 
  font-weight: 600; 
  color: #111;
}

/* ═══════════════════════════════════════
   FLOATING BOTTOM NAVIGATION BAR
═══════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 15px; 
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  height: 64px;
  background: var(--color-nav); /* Floating Dark Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; 
  justify-content: space-around; 
  align-items: center;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  z-index: 1000;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-btn {
  background: transparent; 
  border: none; 
  outline: none;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 3px;
  color: #888888; 
  cursor: pointer; 
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 16px;
  border-radius: 100px;
}

.nav-btn.active { 
  color: #FFFFFF; 
  background: var(--color-nav-active);
}

.nav-btn.active .nav-icon {
  color: #FFFFFF;
  transform: scale(1.1);
}

.nav-icon { 
  font-size: 22px; 
  transition: transform 0.2s ease;
}

.nav-text { 
  font-size: 10px; 
  font-weight: 800; 
  letter-spacing: 0.3px;
}

.nav-cart-wrapper { position: relative; display: flex; align-items: center; }

.cart-count {
  position: absolute; 
  top: -6px; 
  right: -10px;
  background: var(--color-primary); 
  color: white; 
  min-width: 18px; 
  height: 18px; 
  border-radius: 9px;
  font-size: 10px; 
  font-weight: 900;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border: 2px solid #111111;
  padding: 0 4px;
}

/* ═══════════════════════════════════════
   CATEGORY CHIPS
═══════════════════════════════════════ */
.category-chips-section { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.chips-scroll-container { display: flex; align-items: center; gap: 6px; overflow-x: auto; scroll-behavior: smooth; }
.chips-scroll-container::-webkit-scrollbar { display: none; }
.chips-wrapper { display: flex; gap: 6px; flex-wrap: nowrap; }
.category-chip {
  padding: 6px 14px; 
  background: #FFFFFF; 
  border: 1px solid rgba(0,0,0,0.06); 
  border-radius: 18px;
  cursor: pointer; 
  font-size: 12px; 
  font-weight: 800; 
  white-space: nowrap; 
  color: #444; 
  height: 34px;
  display: flex; 
  align-items: center; 
  transition: all 0.2s ease;
}
.category-chip.active { 
  background: var(--color-primary); 
  color: white; 
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(136, 136, 136, 0.25); 
}
.chips-expand-btn { 
  min-width: 34px; 
  height: 34px; 
  border-radius: 17px; 
  background: #FFFFFF; 
  border: 1px solid rgba(0,0,0,0.06); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  color: #333;
}
.chips-expand-btn.expanded #expandArrow { transform: rotate(180deg); }
#expandArrow { transition: transform 0.2s ease; }

.category-expanded-menu { 
  display: none; 
  background: #FFFFFF; 
  border-radius: 14px; 
  padding: 10px; 
  flex-wrap: wrap; 
  gap: 6px; 
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.category-expanded-menu.open { display: flex; }
.category-menu-item { 
  flex: 0 1 calc(50% - 3px); 
  padding: 10px; 
  background: #F8F8F8; 
  border-radius: 10px; 
  font-size: 12px; 
  font-weight: 800; 
  border: none; 
  cursor: pointer; 
  color: #333;
}
.category-menu-item.active { background: var(--color-primary); color: white; }

/* ═══════════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════════ */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .products { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.card {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden; 
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}
.card:active { transform: scale(0.98); }

.card-image-wrapper { position: relative; width: 100%; overflow: hidden; background: #f0f0f0; }
.card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.card-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-name { font-size: 14px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; color: #111; }
.description { font-size: 11px; color: #666; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-container { margin-top: auto; display: flex; align-items: baseline; gap: 4px; }
.price { color: #0a8a0a; font-size: 16px; font-weight: 900; }
.initial-price { text-decoration: line-through; color: #aaa; font-size: 11px; }

/* TAGS */
.product-tags { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 10; align-items: flex-end; }
.tag-badge { background: #111111; color: #FFFFFF; padding: 4px 8px; border-radius: 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; }

/* ACTION BUTTONS */
.add-btn, .checkout-btn, .done-btn {
  background: var(--color-primary); 
  color: #FFFFFF; 
  border: none; 
  border-radius: 12px;
  font-weight: 900; 
  font-family: 'Nunito', sans-serif; 
  cursor: pointer; 
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.1s;
}
.add-btn:active, .checkout-btn:active, .done-btn:active { opacity: 0.88; transform: scale(0.98); }
.add-btn { width: 100%; padding: 11px; font-size: 13px; margin-top: 10px; }
.checkout-btn { padding: 14px; font-size: 15px; }
.dispatch-btn { background: #0a8a0a; }

.quantity-box { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.qty-btn { 
  width: 32px; 
  height: 32px; 
  border: none; 
  border-radius: 8px; 
  background: var(--color-primary); 
  color: #fff; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

/* ═══════════════════════════════════════
   MODAL & DRAWERS DESIGN
═══════════════════════════════════════ */
.modal-overlay { 
  position: fixed; inset: 0; 
  background: rgba(0,0,0,0.55); 
  display: flex; z-index: 9999; 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.register-box {
  background: #FFFFFF; width: 100%; max-width: 480px; 
  border-radius: 24px; padding: 24px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: scale(0.92); transition: transform 0.25s ease;
}
.modal-overlay.open .register-box { transform: scale(1); }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-title { font-size: 18px; font-weight: 900; color: #111; display: flex; align-items: center; gap: 8px; }
.modal-icon { font-size: 22px; color: #111; }
.modal-subtitle { font-size: 13px; color: #666; margin-bottom: 18px; line-height: 1.4; }
.close-modal { 
  width: 32px; 
  height: 32px; 
  border: none; 
  border-radius: 50%; 
  background: #F0F0F0; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #333;
}

/* ═══════════════════════════════════════
   FORM LAYOUTS
═══════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form-group label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.form-group input { padding: 12px 14px; border: 1.5px solid #E2E2E2; border-radius: 12px; font-family: 'Nunito', sans-serif; font-weight: 700; outline: none; transition: border-color 0.2s; }
.form-group input:focus { border-color: #000000; }
.required { color: var(--color-primary); }
.validation-msg { font-size: 11px; color: var(--color-primary); display: none; margin-top: 2px; }

/* ═══════════════════════════════════════
   PRODUCT PAGE & HERO GESTURES
═══════════════════════════════════════ */
.product-page {
  position: fixed; inset: 0; z-index: 1500;
  background: #FFFDF7;
  display: none; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-page.open { transform: translateX(0); }

.pp-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }

.pp-hero-wrapper { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 1 / 1; 
  background: #f0f0f0; 
  overflow: hidden; 
  flex-shrink: 0; 
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* Crucial: Allows vertical page scrolling while handling horizontal swipes */
  transition: transform 0.2s ease;
}

.pp-hero-wrapper.holding {
  transform: scale(0.985);
}

.pp-hero-track { 
  display: flex; 
  width: 100%; 
  height: 100%; 
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
}
.pp-hero-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.pp-hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.pp-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 4;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  pointer-events: none;
}
.pp-hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.55); box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: width 0.25s ease, background 0.25s ease;
}
.pp-hero-dot.active { width: 16px; border-radius: 3px; background: #FFFFFF; }

.pp-hero-pause-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pp-hero-pause-indicator .material-symbols-outlined { font-size: 15px; }

.pp-hero-wrapper.holding .pp-hero-pause-indicator {
  opacity: 1;
  transform: translateY(0);
}

.pp-back-btn {
  position: absolute; top: 16px; left: 16px; z-index: 6;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  color: #111; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pp-thumbs {
  display: flex; gap: 10px; padding: 14px 14px 4px 14px;
  overflow-x: auto; scroll-behavior: smooth;
}
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb {
  position: relative;
  width: 62px; height: 62px; flex-shrink: 0;
  border-radius: 16px; overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer; background: #f0f0f0;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.pp-thumb.active { border-color: var(--color-primary); transform: scale(1.03); }
.pp-thumb-track { display: flex; width: 100%; height: 100%; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pp-thumb-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.pp-thumb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb-dots {
  position: absolute; left: 0; right: 0; bottom: 4px; z-index: 4;
  display: flex; justify-content: center; align-items: center; gap: 3px;
}
.pp-thumb-dot { width: 3.5px; height: 3.5px; border-radius: 50%; background: rgba(255,255,255,0.6); transition: width 0.2s ease, background 0.2s ease; }
.pp-thumb-dot.active { width: 8px; border-radius: 2px; background: #FFFFFF; }
.pp-thumb .product-tags { top: 3px; right: 3px; gap: 2px; }
.pp-thumb .tag-badge {
  padding: 2px 4px; font-size: 6px; border-radius: 4px; letter-spacing: 0.2px;
  max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pp-info { padding: 16px 18px 0 18px; }
.pp-info .product-name { font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.pp-info .description {
  font-size: 13.5px; line-height: 1.5; color: #555; margin-bottom: 12px;
  display: block; -webkit-line-clamp: initial; overflow: visible; white-space: pre-wrap;
}
.pp-info .price-container { margin-bottom: 4px; }
.pp-info .price { font-size: 20px; }

.pp-opt-group { margin: 14px 18px 0 18px; }
.pp-opt-label { font-size: 13px; font-weight: 900; color: #111; margin-bottom: 8px; }
.pp-opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-opt-chip {
  padding: 8px 16px; border-radius: 14px; border: 1.5px solid #E2E2E2;
  background: #FFFFFF; font-size: 12.5px; font-weight: 800; color: #444;
  cursor: pointer; transition: all 0.2s ease;
}
.pp-opt-chip.active { background: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }

.pp-footer {
  flex-shrink: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: #FFFFFF; border-top: 1px solid rgba(0,0,0,0.06);
}
.pp-footer-row { display: flex; align-items: stretch; gap: 10px; }
.pp-footer-main { flex: 1; min-width: 0; }
.pp-footer-main .add-btn,
.pp-footer-main .quantity-box { width: 100%; }
.pp-view-cart-btn {
  position: relative; flex-shrink: 0;
  width: 52px; border-radius: 14px; border: 1.5px solid #E2E2E2;
  background: #FFFFFF; color: var(--color-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pp-view-cart-btn:active { transform: scale(0.94); background: #F5F6FF; }
.pp-view-cart-btn .material-symbols-outlined { font-size: 24px; }
.pp-cart-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #E63946; color: #FFFFFF; font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

#cartPage { z-index: 1600; background: #FFFFFF; }
.cart-page-body { padding: 16px 18px 0 18px; }

/* ═══════════════════════════════════════
   CART DETAILS
═══════════════════════════════════════ */
.cart-item-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; border-bottom: 1px solid #EEEEEE; padding-bottom: 16px; }
.cart-item-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 12px; background: #f0f0f0; }
.cart-item-info { flex: 1; }
.summary-box { margin-top: 16px; background: #FFFDF7; padding: 16px; border-radius: 14px; font-size: 16px; font-weight: 800; border: 1px solid rgba(0,0,0,0.06); }

.empty-state { text-align: center; padding: 40px 20px; font-weight: 800; color: #666; }
.empty-state .material-symbols-outlined { font-size: 48px; color: #AAA; display: block; margin: 0 auto 10px; }

.verified-card { background: #FFFDF7; border: 1px solid #111111; padding: 16px; }
.verified-badge { font-size: 11px; font-weight: 900; color: #0a8a0a; margin-bottom: 12px; text-transform: uppercase; display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════
   BUSINESS PROFILE SECTION
═══════════════════════════════════════ */
.business-profile-section {
  background: var(--color-secondary);
  border-radius: 22px;
  padding: 20px;
  margin: 8px 8px 20px 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.business-profile-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.business-logo-wrapper {
  position: relative; width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 18px; overflow: hidden; background: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.business-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.business-logo-fallback {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: #FFFFFF; color: var(--color-primary);
}
.business-logo-fallback .material-symbols-outlined { font-size: 30px; }

.business-info { flex: 1; min-width: 0; padding-top: 2px; }
.business-name {
  font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 800;
  color: var(--color-bus-name); line-height: 1.25; margin-bottom: 4px; word-wrap: break-word; text-transform: uppercase;
}
.business-desc {
  font-size: 12.5px; font-weight: 600; color: var(--color-bus-desc); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.contact-business-btn {
  width: 100%; background: var(--color-whatsapp); color: #FFFFFF; border: none;
  border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 900;
  font-family: 'Nunito', sans-serif; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s, transform 0.1s;
}
.contact-business-btn:active { opacity: 0.88; transform: scale(0.98); }
.contact-btn-icon { font-variation-settings: 'FILL' 1; font-size: 19px; }

/* ═══════════════════════════════════════
   DETAILS VIEW
═══════════════════════════════════════ */
.details-container { padding: 8px; }
.details-container h2 { font-size: 24px; font-weight: 900; color: #111; margin-bottom: 16px; }
.details-card { background: #FFFFFF; border-radius: 20px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid #EEEEEE; }
.info-row { display: flex; flex-direction: column; margin-bottom: 16px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .label { font-size: 11px; color: #777; font-weight: 800; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.info-row .value { font-size: 16px; font-weight: 900; color: #111; }

/* BANNERS */
#bannerCarousel { width: 100%; overflow: hidden; margin-bottom: 16px; border-radius: 16px; background: #fff; }
.banner-track-outer { position: relative; }
.banner-track { display: flex; transition: transform 0.4s ease-out; }
.banner-slide { flex: 0 0 100%; width: 100%; cursor: default; }
.banner-slide.clickable { cursor: pointer; }
.banner-img { width: 100%; height: auto; border-radius: 16px; display: block; }

.banner-dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.banner-dot { width: 8px; height: 8px; background: #ddd; border-radius: 50%; cursor: pointer; }
.banner-dot.active { background: var(--color-primary); width: 18px; border-radius: 4px; }

/* LOADER & UTILITIES */
#loadingOverlay { position: fixed; z-index: 999999; inset: 0; background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; }
.loader { border: 5px solid #F3F3F3; border-top: 5px solid var(--color-primary); border-radius: 50%; width: 44px; height: 44px; animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

.subpage-header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px 16px; flex-shrink: 0; }
.subpage-back-btn {
  width: 38px; height: 38px; border-radius: 50%; background: #F0F0F0; border: none;
  display: flex; align-items: center; justify-content: center; color: #111; cursor: pointer; flex-shrink: 0;
}
.subpage-title { font-size: 16px; font-weight: 900; color: #111; }

#bannerPage { z-index: 1400; }

/* SKELETON LOADING */
@keyframes skeleton-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, #ECECEC 25%, #F7F7F7 37%, #ECECEC 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-circle { border-radius: 50%; flex-shrink: 0; }
.skeleton-banner { width: 100%; aspect-ratio: 16 / 7; border-radius: 16px; margin-bottom: 16px; }
.skeleton-card-img { width: 100%; height: 100%; border-radius: 0; position: absolute; inset: 0; }

.biz-skeleton { display: none; align-items: center; gap: 14px; }
.biz-skeleton-btn { display: none; height: 44px; border-radius: 12px; margin-top: 14px; width: 100%; }
.business-profile-section.loading .biz-skeleton { display: flex; }
.business-profile-section.loading .biz-skeleton-btn { display: block; }
.business-profile-section.loading .business-profile-top,
.business-profile-section.loading .contact-business-btn { display: none; }

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
