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

body {
  background: #e8eaff; /* 60% Dominant Color */
  font-family: 'Nunito', sans-serif;
  padding: 12px;
  padding-bottom: 100px; /* Clearance for Floating Nav */
  color: #111111;
  -webkit-tap-highlight-color: transparent;
}

/* Material Symbols Standard Utility */
.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;

  /* 60-30-10 brand system: #e8eaff body bg is the 60% dominant tone,
     the soft blush below is the 30% secondary tone (already used on the
     floating nav), and the wine accent is the 10% highlight/CTA tone. */
  --color-secondary: #1e2fc9;
  --color-primary: #152296;
  --color-whatsapp: #0a8a0a;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(232, 234, 255, 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; 
}

.title { 
  color: #000000; 
  font-family: 'Montserrat', sans-serif;
  font-size: 8px; 
  line-height: 1.2;
  
  /* UX Principle: Allow natural wrapping only if it exceeds screen limits */
  white-space: normal; 
  word-wrap: break-word; 
  
  /* Scroll Animation strictly restricted to scaling size */
  transform: scale(var(--title-scale));
  transform-origin: left center;
  will-change: transform;
  margin-left: 8px;
}

.title-main {
  font-weight: 800; /* Bold primary text */
  text-transform: uppercase;
}

.title-store {
  font-weight: 300; /* Thin secondary text */
  opacity: 0.85;
  text-transform: lowercase;
  font-size: 2px; 

}

/* 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: 20px; 
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  height: 64px;
  background: rgba(30, 47, 201, 0.95); /* Floating Dark Glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; 
  justify-content: space-around; 
  align-items: center;
  border-radius: 32px;
  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: rgba(255, 255, 255, 0.1);
}

.nav-btn.active .nav-icon {
  color: #152296; /* Accent Highlight */
  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: #152296; 
  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: #152296; 
  color: white; 
  border-color: #152296;
  box-shadow: 0 4px 10px rgba(255, 0, 4, 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: #152296; 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: #152296; 
  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: #152296; 
  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; }

.cart-overlay { align-items: flex-end; padding: 0; }

.cart-slide-box {
  background: #FFFFFF; width: 100%; max-width: 600px; margin: 0 auto;
  border-radius: 28px 28px 0 0; padding: 24px; max-height: 85vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .cart-slide-box { transform: translateY(0); }

.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: #152296; }
.validation-msg { font-size: 11px; color: #152296; display: none; margin-top: 2px; }

/* ═══════════════════════════════════════
   PRODUCT PAGE (full-screen, slides in from the right)
═══════════════════════════════════════ */
.product-page {
  position: fixed; inset: 0; z-index: 1500;
  background: #e8eaff;
  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; }
.pp-hero-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pp-back-btn {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  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);
}

/* Horizontally slidable thumbnail strip — rounded-square cards.
   Main row is already variants[0] from groupProducts(), so it's naturally first & active. */
.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: #152296; transform: scale(1.03); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Tags scaled down to fit inside a 62px thumbnail */
.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; }

/* Options: OPT_Name -> bold mini-header, OPT1-OPT10 -> chip buttons */
.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: #152296; border-color: #152296; color: #FFFFFF; }

/* Pinned Add To Cart / quantity stepper */
.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);
}
/* ═══════════════════════════════════════
   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: #e8eaff; 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: #e8eaff; 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;
}

/* Rounded-square logo, left side */
.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; }

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

/* Contact Business CTA, spans full width beneath logo/name/about */
.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: #152296; 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 #152296; border-radius: 50%; width: 44px; height: 44px; animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/* ═══════════════════════════════════════
   REUSABLE SUB-PAGE HEADER (Banner Page & any future full-page view)
═══════════════════════════════════════ */
.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; }

/* Banner Page reuses .product-page's slide-in mechanics, just sits below it in the stack
   (bottom-nav: 1000 < bannerPage: 1400 < productPage: 1500) so opening a product from
   within the banner page still layers correctly on top. */
#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; }

/* Business profile skeleton: real content + skeleton coexist in the DOM,
   toggled by the .loading class (removed once renderBusinessProfile() runs). */
.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; }
}

/* ═══════════════════════════════════════
   PWA INSTALL BUTTON
═══════════════════════════════════════ */
.pwa-install-btn {
  position: fixed;
  top: 16px;
  right: 14px;
  z-index: 950; /* above .sticky-header (900), below full-screen pages/modals */
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 20px;
  background: #152296;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.pwa-install-btn:active { transform: scale(0.95); }
.pwa-install-btn .material-symbols-outlined { font-size: 20px; }
.pwa-install-text {
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}