/* =========================================================
   Tazeresan App v2 — mobile-first grocery marketplace UI
   Loaded after app.css. Frontend pages only.
   ========================================================= */

:root {
  --app-ink: #2f3337;
  --app-muted: #8b8b8b;
  --app-line: #ececec;
  --app-soft: #f6f7f7;
  --app-green: #02a0a4;
  --app-green-dark: #017a7d;
  --app-star: #f3a11c;
  --app-radius: 20px;
  --app-shadow: 0 18px 40px -32px rgba(0, 0, 0, .45);
}

body.app-home,
body.app-store-page {
  background: #f5f6f6;
}

.app-page {
  padding: 12px 0 10px;
}

.app-container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.app-head-section { padding-top: 4px; }

/* ---------- App store header ---------- */
.app-store-head {
  position: relative;
  overflow: visible;
  padding: 18px;
  border: 1px solid #e4eeee;
  border-radius: 24px;
  background:
    radial-gradient(130% 120% at 8% 0%, rgba(2, 160, 164, .10), transparent 48%),
    linear-gradient(160deg, #ffffff 0%, #fbfefe 58%, #f2fafa 100%);
  box-shadow: 0 26px 54px -44px rgba(0, 0, 0, .55), inset 0 1px 0 #fff;
  z-index: 4;
}

.app-store-head::before {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  top: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 160, 164, .12), transparent 66%);
  pointer-events: none;
}

.app-store-head > * { position: relative; z-index: 1; }

.app-store-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-store-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-store-logo {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, #e9f9f9);
  border: 1px solid #dcefef;
  box-shadow: 0 12px 22px -16px rgba(1, 122, 125, .6), inset 0 1px 0 #fff;
  overflow: hidden;
}

.app-store-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.app-store-logo-store {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  font-size: .92rem;
  font-weight: 800;
  color: var(--app-green-dark);
}

.app-store-logo-store img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-store-id { min-width: 0; }

.app-store-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.app-store-name-row h1 {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  color: #25292b;
  letter-spacing: -.2px;
}

.app-store-branch {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f2f6f6;
  color: #758080;
  font-size: .62rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-store-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin-top: 2px;
  color: #858585;
  font-size: .68rem;
}

.app-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--app-star);
  font-weight: 800;
  font-size: .72rem;
  line-height: 1.4;
}

.app-rating svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.app-rating b { color: #353a3c; }
.app-rating span { color: #8f9696; font-weight: 500; }
.app-rating-sm { font-size: .68rem; }
.app-rating-sm svg { width: 11px; height: 11px; }

.app-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c9cdcd;
}

.app-head-cart {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid #e4eded;
  border-radius: 12px;
  background: #fff;
  color: var(--app-green-dark);
  font-size: .7rem;
  font-weight: 700;
  box-shadow: 0 8px 18px -16px rgba(0, 0, 0, .4);
}

.app-head-cart .nav-ico { width: 17px; height: 17px; }
.app-head-cart:hover { background: #f3fbfb; }

.app-store-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-icon-action {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #e6eeee;
  background: #fff;
  color: #6f7c7c;
}

.app-icon-action:hover { color: var(--app-green-dark); border-color: #bfe5e5; }

.app-store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.app-delivery-badge,
.app-order-min {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.7;
}

.app-delivery-badge {
  background: linear-gradient(135deg, #e8f9ef, #dff7ea);
  border: 1px solid #c8efdb;
  color: #087f4b;
}

.app-order-min {
  background: #f4f5f5;
  border: 1px solid #ececec;
  color: #757d7d;
}

.app-delivery-badge .nav-ico { width: 14px; height: 14px; }

.app-features {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.app-features::-webkit-scrollbar { display: none; }

.app-features > span {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f7f9f9;
  color: #727a7a;
  font-size: .62rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-features .nav-ico {
  width: 12px;
  height: 12px;
  color: var(--app-green);
}

.app-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 46px;
  padding: 4px 10px;
  border: 1px solid #e7e9e9;
  border-radius: 14px;
  background: #f6f7f7;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.app-search:focus-within {
  background: #fff;
  border-color: #b9e4e4;
  box-shadow: 0 0 0 3px rgba(2, 160, 164, .10);
}

.app-search .search-ico {
  width: 18px;
  height: 18px;
  flex: none;
  color: #9a9f9f;
}

.app-search > input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--app-ink);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
}

.app-search > input[type="search"]::placeholder { color: #a2a8a8; }

.app-search > button[type="submit"] {
  flex: none;
  min-width: 72px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: #2f3337;
  color: #fff;
  font-family: inherit;
  font-size: .65rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .15s;
}

.app-search > button[type="submit"]:hover { background: #151819; color: #fff; }
.app-search > button[type="submit"]:active { transform: scale(.97); }
.app-search > button[type="submit"] .nav-ico { width: 13px; height: 13px; }

.app-search .search-suggest { inset-inline: 0; top: calc(100% + 8px); z-index: 120; }

.app-search { position: relative; z-index: 6; }

/* keep the mobile search sheet aligned with the app surface */
.search-overlay-panel {
  border-radius: 22px;
  padding: 16px;
  border: 1px solid #e7ecec;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .55);
}

.search-overlay-head h3 { font-size: 1rem; }

.search-overlay-form .input {
  min-height: 48px;
  border-radius: 12px;
  border-color: #e7e9e9;
  background: #f6f7f7;
}

.search-overlay-form .input:focus { background: #fff; border-color: #b9e4e4; box-shadow: 0 0 0 3px rgba(2, 160, 164, .10); }

.search-overlay-form .search-submit {
  border-radius: 9px;
  background: #2f3337;
  color: #fff;
}

.search-overlay-form .search-submit:hover { background: #151819; color: #fff; }

.search-popular .chip {
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid #e6eeee;
  border-radius: 999px;
  background: #f5f9f9;
  color: #526060;
  font-size: .74rem;
  font-weight: 700;
}

.search-popular .chip:hover { background: var(--primary-soft); color: var(--app-green-dark); }

/* ---------- Promo banner rail ---------- */
.app-banners { padding-top: 13px; }

/* ---------- Opening 3D hero banner ---------- */
.app-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 196px;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(59, 220, 181, .5), transparent 58%),
    radial-gradient(90% 110% at 0% 0%, rgba(255, 255, 255, .16), transparent 50%),
    linear-gradient(135deg, #016d72 0%, #02a0a4 58%, #05b3a8 100%);
  box-shadow: 0 30px 54px -38px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.app-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-start: -70px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.app-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 48%, rgba(255, 255, 255, .12) 55%, transparent 63%);
  transform: translateX(-130%);
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .app-hero:hover::after { animation: appPromoShine .95s ease; }
  .app-hero:hover { box-shadow: 0 36px 64px -34px rgba(0, 0, 0, .7); }
}

.app-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.app-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .61rem;
  font-weight: 800;
  opacity: .9;
}

.app-hero-kicker .nav-ico { width: 12px; height: 12px; }

.app-hero h2 {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.25px;
}

.app-hero p {
  max-width: 24ch;
  font-size: .67rem;
  line-height: 1.75;
  opacity: .88;
}

.app-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.app-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  opacity: .92;
}

.app-hero-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.app-hero-link .nav-ico { width: 12px; height: 12px; }

.app-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .59rem;
  font-weight: 600;
  opacity: .82;
}

.app-hero-note .nav-ico { width: 13px; height: 13px; }

.app-hero-art {
  position: absolute;
  z-index: 1;
  inset-inline-end: -16px;
  bottom: -18px;
  width: 47%;
  max-width: 210px;
  pointer-events: none;
}

.app-hero-art picture { display: block; }
.app-hero-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .26));
  animation: appFruitFloat 7.5s ease-in-out infinite;
}

.promo-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.promo-rail::-webkit-scrollbar { display: none; }

.promo-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 min(86%, 350px);
  min-height: 188px;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 26px 42px -34px rgba(0, 0, 0, .65);
}

.promo-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-start: -40px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}

.promo-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 46%, rgba(255, 255, 255, .13) 54%, transparent 62%);
  transform: translateX(-130%);
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .promo-card:hover::after { animation: appPromoShine .9s ease; }
  .promo-card:hover { box-shadow: 0 32px 54px -32px rgba(0, 0, 0, .7); }
}

.promo-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: 65%;
}

.promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1px;
  opacity: .9;
}

.promo-kicker .nav-ico { width: 12px; height: 12px; }

.promo-card h2 {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.47;
  letter-spacing: -.2px;
}

.promo-card p {
  font-size: .68rem;
  line-height: 1.75;
  opacity: .88;
  max-width: 24ch;
}

.promo-card p b { font-weight: 800; }

.promo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}

.btn-light {
  background: #fff;
  color: var(--app-green-dark);
  border-color: #fff;
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .5);
}

.btn-light:hover { background: #f3fbfb; border-color: #f3fbfb; color: var(--app-green-dark); }

.btn-dark {
  background: #283638;
  color: #fff;
  border-color: #283638;
}

.btn-dark:hover { background: #162122; border-color: #162122; }

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  font-size: .68rem;
  font-weight: 700;
  opacity: .9;
}

.promo-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.promo-art {
  position: absolute;
  z-index: 2;
  inset-inline-end: -10px;
  bottom: -12px;
  width: 46%;
  max-width: 180px;
  pointer-events: none;
}

.promo-art picture { display: block; }
.promo-art img { width: 100%; height: auto; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .24)); }

.promo-art-fruit img { animation: appFruitFloat 7s ease-in-out infinite; }

.promo-art-pair {
  inset-inline-end: -18px;
  bottom: -14px;
  width: 54%;
  height: 100%;
  max-width: 220px;
}

.promo-art-pair picture { position: absolute; }
.promo-art-pair picture:first-child { inset-inline-end: 4px; top: 8%; width: 68%; transform: rotate(-9deg); }
.promo-art-pair picture:last-child { inset-inline-end: 42%; bottom: 4%; width: 62%; transform: rotate(7deg); }
.promo-art-pair img { filter: drop-shadow(0 16px 16px rgba(89, 55, 0, .22)); }

.promo-art-box { width: 44%; max-width: 170px; }
.promo-art-tomato { width: 41%; max-width: 150px; }
.promo-art-tomato img { animation: appFruitFloat 8s ease-in-out infinite; }

.promo-hero {
  background:
    radial-gradient(100% 100% at 0% 100%, rgba(34, 209, 167, .55), transparent 58%),
    linear-gradient(135deg, #016d72 0%, #02a0a4 58%, #06b6ab 100%);
}

.promo-category {
  color: #4a2c04;
  background:
    radial-gradient(90% 90% at 0% 100%, rgba(255, 255, 255, .5), transparent 56%),
    linear-gradient(135deg, #ffe7b8 0%, #ffc970 54%, #ffb347 100%);
}

.promo-category::before { background: rgba(255, 255, 255, .32); }
.promo-category .promo-kicker { color: #7a4d0a; }
.promo-category p { color: #74511e; }

.promo-free {
  background:
    radial-gradient(90% 100% at 0% 100%, rgba(255, 186, 184, .38), transparent 60%),
    linear-gradient(135deg, #ff5967 0%, #f01436 55%, #be0d2d 100%);
}

.promo-season {
  background:
    radial-gradient(90% 100% at 0% 100%, rgba(182, 239, 156, .38), transparent 58%),
    linear-gradient(135deg, #2b7d3c 0%, #13633d 58%, #0a4f35 100%);
}

.rail-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 10px;
  margin-top: 1px;
}

.rail-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d3d6d6;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.rail-dot.active {
  width: 17px;
  background: var(--app-green);
}

/* ---------- Fruit of the day strip ---------- */
.app-spotlight-section { padding-top: 13px; }

.fruit-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 13px;
  border: 1px solid #e7eeee;
  border-radius: 20px;
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(255, 229, 170, .5), transparent 55%),
    linear-gradient(145deg, #ffffff, #f8fdfb);
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.fruit-spotlight::before {
  content: '';
  position: absolute;
  inset-inline-end: 38px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 77, .22), transparent 68%);
  pointer-events: none;
}

.fruit-spotlight > * { position: relative; z-index: 1; }

.fruit-spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.app-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--app-green-dark);
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.6;
}

.app-kicker .nav-ico { width: 13px; height: 13px; }

.app-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, .14);
  animation: appLivePulse 2.4s ease-in-out infinite;
}

.fruit-spotlight-copy > strong {
  font-size: 1.02rem;
  line-height: 1.5;
  font-weight: 800;
  color: #2b3033;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fruit-spotlight-meta {
  color: #8a9191;
  font-size: .64rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fruit-spotlight-price {
  color: var(--danger);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.6;
}

.fruit-spotlight-price small { color: #929999; font-size: .58rem; font-weight: 500; }

.fruit-spotlight-art {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f2f9f4 72%);
  border: 1px solid #e5efea;
  overflow: hidden;
}

.fruit-spotlight-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.fruit-spotlight:hover .fruit-spotlight-art img { transform: scale(1.08) rotate(-3deg); }

.fruit-spotlight-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
}

.fruit-spotlight-actions .btn { min-height: 36px; padding: 6px 12px; font-size: .74rem; }

.fruit-spotlight.fruit-swap .fruit-spotlight-art img { animation: appFruitSwap .55s ease; }

/* ---------- Section heads / rails ---------- */
.app-cats-section,
.app-products-section,
.app-vendors-section,
.store-map-section {
  padding-top: 16px;
}

.app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.app-section-head > div:first-child { min-width: 0; }

.app-section-head h2 {
  margin: 0;
  color: #292e30;
  font-size: 1.01rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.15px;
}

.rail-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.rail-btn {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e5e7e7;
  border-radius: 50%;
  background: #fff;
  color: #858d8d;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.rail-btn .nav-ico { width: 15px; height: 15px; }
.rail-btn:hover { background: var(--primary-soft); border-color: #bfe6e6; color: var(--app-green-dark); }
.rail-btn:active { transform: scale(.94); }
.rail-btn:disabled { opacity: .32; cursor: default; background: #fff; border-color: #ededed; color: #999; }

.rail-reset {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--app-green-dark);
  font-size: .68rem;
  font-weight: 800;
}

.rail-reset:hover { background: #d6f2f3; }

.rail-count {
  color: #949b9b;
  font-size: .66rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Shaped category line ---------- */
.cat-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 16px; }

.cat-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 56px;
  padding: 7px 11px 7px 7px;
  border: 1px solid #e8ecec;
  border-radius: 16px;
  background: #fff;
  scroll-snap-align: start;
  box-shadow: 0 7px 16px -16px rgba(0, 0, 0, .5);
  transition: border-color .22s, background .22s, box-shadow .22s, transform .22s;
}

.cat-chip:hover {
  border-color: #bfe5e5;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -17px rgba(0, 0, 0, .55);
}

.cat-chip.active {
  border-color: var(--app-green);
  background: linear-gradient(140deg, #ffffff 0%, #edfafa 100%);
  box-shadow: 0 11px 20px -15px rgba(2, 160, 164, .65);
}

.cat-chip-art {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--cat-bg, #eef3f2);
  color: var(--cat-ink, #335c58);
  font-size: 1rem;
  line-height: 1;
  overflow: hidden;
}

.cat-chip-art img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .08));
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.cat-chip:hover .cat-chip-art img { transform: scale(1.09) rotate(-3deg); }

.cat-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  text-align: right;
}

.cat-chip-copy strong {
  color: #363b3d;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.cat-chip-copy small {
  color: #9aa0a0;
  font-size: .56rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

.cat-chip.active .cat-chip-copy strong { color: var(--app-green-dark); }
.cat-chip.active .cat-chip-art { box-shadow: inset 0 0 0 1px rgba(2, 160, 164, .18); }

.cat-chip-art-all {
  background: linear-gradient(145deg, #e9fbfb, #d4f4f2) !important;
  color: var(--app-green-dark) !important;
}

.cat-chip-art-all .nav-ico { width: 18px; height: 18px; }

.app-shelf { padding-top: 15px; }
.app-shelf + .app-shelf { padding-top: 11px; }
.app-shelf-count {
  margin-inline-start: 4px;
  color: #9aa0a0;
  font-size: .61rem;
  font-weight: 600;
}

/* ---------- Category pills ---------- */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 12px;
  border: 1px solid #e7e9e9;
  border-radius: 999px;
  background: #fff;
  color: #6f7676;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.5;
  transition: background .2s, border-color .2s, color .2s;
}

.filter-pill:hover { border-color: #bfe5e5; color: var(--app-green-dark); }
.filter-pill.active { background: var(--app-green); border-color: var(--app-green); color: #fff; }

/* ---------- Product rail + compact cards ---------- */
.product-rail {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.product-rail::-webkit-scrollbar { display: none; }
.product-rail:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 16px; }

.product-rail > .product-card {
  flex: 0 0 clamp(112px, 30.5vw, 146px);
  scroll-snap-align: start;
}

.app-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px -20px rgba(0, 0, 0, .4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.app-product-card:hover {
  border-color: #dedfdf;
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .45);
  transform: translateY(-2px);
}

.app-product-card .product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 15px 15px 0 0;
  background: #fff;
  overflow: hidden;
}

.app-product-card .product-thumb::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #f5f7f7 0%, #fff 72%);
  opacity: .9;
  pointer-events: none;
}

.app-product-card .product-thumb-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.app-product-card .product-thumb-link img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity .32s ease, transform .85s cubic-bezier(.22, .61, .36, 1), filter .45s ease;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .07));
}

.app-product-card:hover .product-thumb-link img { transform: scale(1.07); }

.app-product-card .product-thumb.is-loading::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(100deg, #f4f5f5 25%, #fbfbfb 37%, #f4f5f5 63%);
  background-size: 400% 100%;
  animation: appShimmer 1.4s ease infinite;
}

.app-product-card .product-thumb.is-loading .product-thumb-link img { opacity: 0; }

.app-product-card .product-badge-discount {
  top: 7px;
  inset-inline-end: 7px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .59rem;
  font-weight: 800;
  line-height: 1.8;
  z-index: 3;
}

.app-product-card .product-badge-discount.badge-green { background: #e8f8ef; color: #0a7a4a; }

.app-product-card .product-multiplier {
  top: 7px;
  inset-inline-start: 7px;
  min-width: 22px;
  padding: 1px 5px;
  font-size: .57rem;
  z-index: 3;
}

.product-weight {
  position: absolute;
  z-index: 3;
  bottom: 7px;
  inset-inline-start: 7px;
  padding: 1px 7px;
  border: 1px solid rgba(230, 235, 235, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #666d6d;
  font-size: .57rem;
  font-weight: 700;
  line-height: 1.8;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 9px -8px rgba(0, 0, 0, .5);
}

.app-product-card .product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px 8px;
  text-align: right;
}

.app-product-card .product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.45em;
  padding: 0;
  border: 0;
  background: none;
  color: #34393b;
  font-family: inherit;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
  overflow: hidden;
  cursor: pointer;
}

.app-product-card .product-name:hover { color: var(--app-green-dark); }

.app-product-card .product-vendor {
  color: #9a9f9f;
  font-size: .58rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-product-card .product-desc { display: none; }

.app-product-card .product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 5px;
}

.app-product-card .product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.app-product-card .old-price {
  color: #a8adad;
  font-size: .59rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: line-through;
}

.app-product-card .price {
  color: var(--danger);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  letter-spacing: -.1px;
}

.app-product-card .price small { color: #8f9696; font-size: .56rem; font-weight: 500; }

.app-product-card .card-qty {
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1.5px solid var(--app-green);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}

.app-product-card .card-qty-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--app-green);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, color .16s;
}

.app-product-card .card-qty-btn:hover:not(:disabled) { background: var(--app-green); color: #fff; }
.app-product-card .card-qty-btn:disabled { opacity: .28; cursor: default; }
.app-product-card .card-qty-value { min-width: 16px; color: #3b4141; font-size: .63rem; font-weight: 800; text-align: center; }

.app-product-card .card-qty[data-qty="0"] {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.app-product-card .card-qty[data-qty="0"] .card-qty-value,
.app-product-card .card-qty[data-qty="0"] [data-qty-action="minus"] { display: none; }

.app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--app-green);
  color: #fff;
  box-shadow: 0 8px 15px -9px rgba(2, 160, 164, .95);
}

.app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"]:hover { background: var(--app-green-dark); }
.app-product-card .product-out { align-self: flex-start; margin-top: 3px; padding: 1px 6px; font-size: .57rem; }
.app-product-card:target { border-color: var(--app-green); box-shadow: 0 0 0 3px var(--primary-soft), 0 18px 30px -24px rgba(0, 0, 0, .45); }

/* ---------- Vendor rail ---------- */
.vendor-rail {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.vendor-rail::-webkit-scrollbar { display: none; }

.vendor-mini {
  flex: 0 0 236px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--app-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 20px -20px rgba(0, 0, 0, .4);
  scroll-snap-align: start;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.vendor-mini:hover { border-color: #dce3e3; box-shadow: 0 16px 26px -22px rgba(0, 0, 0, .5); transform: translateY(-1px); }

.vendor-mini-avatar {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #e9fbfb, #cff1ef);
  color: var(--app-green-dark);
  font-size: .84rem;
  font-weight: 800;
}

.vendor-mini-body { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }

.vendor-mini-body > strong {
  color: #353a3c;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor-mini-meta { display: flex; align-items: center; gap: 5px; color: #939a9a; font-size: .61rem; }
.vendor-mini .distance-pill { align-self: flex-start; margin-top: 1px; padding: 0 6px; font-size: .58rem; line-height: 1.8; }
.vendor-mini-go { flex: none; color: #c1c6c6; font-size: .9rem; }

/* ---------- CTA strip ---------- */
.app-cta-section { padding-top: 15px; }

.app-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid #d9efec;
  border-radius: 21px;
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(2, 160, 164, .12), transparent 56%),
    linear-gradient(135deg, #ffffff 0%, #effbf8 100%);
  overflow: hidden;
}

.app-cta-art {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #fff;
  border: 1px solid #edf3f1;
  overflow: hidden;
}

.app-cta-art img { width: 100%; height: auto; object-fit: contain; }
.app-cta-copy { flex: 1; min-width: 0; }
.app-cta-copy h2 { color: #2e3436; font-size: .93rem; font-weight: 800; line-height: 1.5; }
.app-cta-copy p { margin-top: 1px; color: #808787; font-size: .65rem; line-height: 1.7; }
.app-cta > .btn { flex: none; min-height: 37px; padding: 6px 11px; font-size: .72rem; }

/* ---------- Store page extras ---------- */
.store-breadcrumb { margin-bottom: 9px; }
.store-app-head { padding-top: 15px; }
.store-app-search { margin-top: 11px; }

.store-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.store-head-actions .btn-geo {
  min-height: 32px;
  padding: 4px 9px;
  font-size: .68rem;
}

.store-head-actions .btn { min-height: 32px; padding: 4px 10px; font-size: .68rem; }

.store-map-section { padding-bottom: 10px; }
.store-map-shell { margin-top: 0; border-radius: 20px; overflow: hidden; }
.store-map-shell .map-canvas.is-compact { height: 265px; }

.empty.app-empty {
  padding: 28px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--app-line);
  text-align: center;
}

/* ---------- Header polish (frontend) ---------- */
.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: #ececec;
}

.header-inner { min-height: 62px; gap: 16px; }

.brand img { width: 33px; height: 33px; border-radius: 10px; }
.brand { font-size: 1.16rem; }
.brand small { font-size: .63rem; }

.nav-links a { padding: 6px 8px; }
.cart-link { padding: 7px 10px; }

/* ---------- Bottom dock: 4 items + floating cart ---------- */
.mobile-dock { display: none; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: nowrap; min-height: 56px; gap: 8px; padding-block: 6px; }
  .nav-links { display: none; }
  .header-search { display: none; }
  .header-actions { margin-inline-start: auto; gap: 5px; }
  .brand { flex: none; }
}

@media (max-width: 640px) {
  .app-container { width: calc(100% - 20px); }

  body.has-dock { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  .site-header { position: sticky; }
  .header-inner { min-height: 54px; }
  .brand { font-size: 1.02rem; gap: 7px; }
  .brand img { width: 30px; height: 30px; border-radius: 9px; }
  .brand small { display: none; }
  .header-actions .btn-primary { min-height: 34px; padding: 5px 9px; font-size: .72rem; }
  .cart-link { min-height: 34px; padding: 5px 8px; font-size: .72rem; }
  .cart-link .nav-ico { width: 17px; height: 17px; }
  .icon-btn, .search-toggle { width: 34px; height: 34px; }
  .header-user .avatar { width: 28px; height: 28px; }

  .app-page { padding-top: 8px; }
  .app-store-head { padding: 14px; border-radius: 20px; }
  .app-store-name-row h1 { font-size: 1rem; }
  .app-store-branch { font-size: .58rem; }
  .app-store-meta { font-size: .64rem; }
  .app-store-logo { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
  .app-store-logo img { width: 30px; height: 30px; }
  .app-store-logo-store { flex-basis: 46px; width: 46px; height: 46px; }
  .app-head-cart { padding: 6px 8px; font-size: .64rem; border-radius: 10px; }
  .app-head-cart span { display: none; }
  .app-head-cart .nav-ico { width: 18px; height: 18px; }
  .app-delivery-badge, .app-order-min { font-size: .6rem; padding: 3px 8px; }
  .app-features > span { font-size: .59rem; }
  .app-search { min-height: 43px; padding: 3px 8px; border-radius: 12px; }
  .app-search > input[type="search"] { font-size: .76rem; }
  .app-search > button[type="submit"] { min-width: 58px; height: 31px; padding: 0 8px; font-size: .59rem; border-radius: 8px; }
  .app-search > button[type="submit"] .nav-ico { display: none; }


  .app-banners { padding-top: 11px; }
  .app-hero { min-height: 186px; padding: 16px; border-radius: 20px; }
  .app-hero h2 { font-size: 1.06rem; }
  .app-hero p { font-size: .63rem; }
  .app-hero-kicker { font-size: .58rem; }
  .app-hero-copy { max-width: 71%; }
  .app-hero-actions { gap: 6px; margin-top: 7px; }
  .app-hero-actions .btn { min-height: 34px; padding: 5px 10px; font-size: .7rem; }
  .app-hero-link { font-size: .61rem; }
  .app-hero-note { font-size: .56rem; margin-top: 7px; }
  .app-hero-art { width: 46%; max-width: 178px; inset-inline-end: -13px; bottom: -16px; }
  .promo-card { flex-basis: 87%; min-height: 180px; padding: 16px; border-radius: 20px; }
  .promo-card h2 { font-size: 1.04rem; }
  .promo-card p { font-size: .64rem; }
  .promo-kicker { font-size: .58rem; }
  .promo-actions { gap: 6px; }
  .promo-actions .btn { min-height: 34px; padding: 5px 10px; font-size: .7rem; }
  .promo-link { font-size: .63rem; }
  .promo-copy { max-width: 66%; }

  .fruit-spotlight { padding: 11px; border-radius: 18px; gap: 6px 9px; }
  .fruit-spotlight-copy > strong { font-size: .93rem; }
  .fruit-spotlight-meta { font-size: .6rem; }
  .fruit-spotlight-price { font-size: .82rem; }
  .fruit-spotlight-art { width: 68px; height: 68px; }
  .fruit-spotlight-actions .btn { min-height: 34px; padding: 5px 10px; font-size: .7rem; }

  .app-cats-section, .app-products-section, .app-vendors-section, .store-map-section { padding-top: 13px; }
  .app-section-head h2 { font-size: .95rem; }
  .app-kicker { font-size: .6rem; }
  .rail-btn { width: 29px; height: 29px; }
  .rail-btn .nav-ico { width: 14px; height: 14px; }

  .round-cats { gap: 7px; }
  .round-cat { flex-basis: 64px; }
  .round-ico { width: 52px; height: 52px; font-size: 1.25rem; }
  .round-cat > span:last-child { max-width: 68px; font-size: .61rem; }

  .cat-strip { gap: 7px; }
  .cat-chip { min-height: 52px; gap: 6px; padding: 6px 9px 6px 6px; border-radius: 14px; }
  .cat-chip-art { flex-basis: 31px; width: 31px; height: 31px; border-radius: 10px; }
  .cat-chip-copy strong { font-size: .65rem; }
  .cat-chip-copy small { font-size: .52rem; }

  .filter-pill { min-height: 29px; padding: 3px 10px; font-size: .65rem; }

  .product-rail { gap: 8px; }
  .app-shelf { padding-top: 12px; }
  .app-shelf + .app-shelf { padding-top: 9px; }
  .app-shelf-count { font-size: .56rem; }
  .app-product-card .product-name { font-size: .71rem; }
  .app-product-card .product-vendor { font-size: .55rem; }
  .app-product-card .price { font-size: .74rem; }
  .app-product-card .product-thumb-link { padding: 12%; }
  .app-product-card .card-qty-btn { width: 23px; height: 23px; font-size: .86rem; }
  .app-product-card .card-qty-value { min-width: 14px; font-size: .6rem; }
  .app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] { width: 28px; height: 28px; }
  .product-weight { font-size: .52rem; padding: 0 5px; }
  .app-product-card .product-badge-discount { font-size: .53rem; padding: 1px 5px; }
  .app-product-card .product-multiplier { font-size: .52rem; }

  .vendor-mini { flex-basis: 218px; padding: 10px; }
  .vendor-mini-body > strong { font-size: .73rem; }
  .vendor-mini-meta { font-size: .58rem; }

  .app-cta { padding: 12px; gap: 9px; border-radius: 18px; }
  .app-cta-art { flex-basis: 54px; width: 54px; height: 54px; border-radius: 14px; }
  .app-cta-copy h2 { font-size: .83rem; }
  .app-cta-copy p { font-size: .6rem; }
  .app-cta > .btn { min-height: 33px; padding: 5px 8px; font-size: .64rem; }

  .store-head-actions .btn-geo { flex: 1 1 auto; justify-content: center; }
  .store-map-shell .map-canvas.is-compact { height: 225px; }

  .site-footer { margin-top: 24px; }
  .site-footer .footer-grid { padding: 26px 0 18px; }
  .footer-tip { display: none; }

  /* Bottom dock */
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 120;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 0;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 -18px 42px -30px rgba(0, 0, 0, .55), 0 1px 0 #fff inset;
  }

  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-height: 47px;
    padding: 3px 2px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #8b9292;
    font-family: inherit;
    font-size: .62rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
  }

  .mobile-dock a.active { color: var(--app-green-dark); }
  .mobile-dock .nav-ico { width: 21px; height: 21px; }
  .mobile-dock a:active, .mobile-dock button:active { background: var(--primary-soft); color: var(--app-green-dark); }

  .mobile-dock .dock-cart { justify-content: flex-end; color: var(--app-green-dark); }
  .mobile-dock .dock-cart .dock-orb {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-top: -25px;
    border-radius: 50%;
    background: linear-gradient(145deg, #03b7b9 0%, #019395 58%, #017a7d 100%);
    color: #fff;
    box-shadow: 0 13px 23px -9px rgba(2, 160, 164, .85), 0 0 0 5px #fff;
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .mobile-dock .dock-cart:active .dock-orb {
    transform: scale(.94);
    box-shadow: 0 9px 18px -10px rgba(2, 160, 164, .8), 0 0 0 5px #fff;
  }

  .mobile-dock .dock-cart .dock-orb .nav-ico { width: 23px; height: 23px; }
  .mobile-dock .dock-cart .dock-label { margin-top: 1px; font-weight: 800; }
  .mobile-dock .dock-cart .dock-badge {
    position: absolute;
    top: -31px;
    inset-inline-end: calc(50% - 29px);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: .57rem;
    font-weight: 800;
  }

  .cart-bar { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .promo-toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .tz-toast { bottom: calc(142px + env(safe-area-inset-bottom)); }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .app-container { width: calc(100% - 16px); }
  .app-hero { min-height: 178px; padding: 14px; }
  .app-hero h2 { font-size: 1rem; }
  .app-hero p { font-size: .6rem; }
  .app-hero-copy { max-width: 73%; }
  .app-hero-art { width: 45%; max-width: 158px; inset-inline-end: -12px; }
  .promo-card { flex-basis: 90%; padding: 14px; }
  .promo-card h2 { font-size: .98rem; }
  .promo-copy { max-width: 68%; }
  .promo-card p { font-size: .61rem; }
  .app-head-cart { display: none; }
  .cat-chip { min-height: 49px; padding: 5px 8px 5px 5px; }
  .cat-chip-art { flex-basis: 29px; width: 29px; height: 29px; }
  .cat-chip-copy strong { font-size: .62rem; }
  .cat-chip-copy small { font-size: .49rem; }
  .app-product-card .product-name { font-size: .69rem; }
  .app-product-card .price { font-size: .72rem; }
  .vendor-mini { flex-basis: 204px; }
  .app-cta > .btn { display: none; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 641px) {
  .app-head-section { padding-top: 10px; }
  .app-store-head { padding: 24px; }
  .app-store-name-row h1 { font-size: 1.38rem; }
  .app-store-logo { flex-basis: 58px; width: 58px; height: 58px; border-radius: 18px; }
  .app-store-logo img { width: 42px; height: 42px; }
  .app-store-logo-store { flex-basis: 66px; width: 66px; height: 66px; }
  .app-store-meta { font-size: .8rem; }
  .app-rating { font-size: .84rem; }
  .app-rating svg { width: 15px; height: 15px; }
  .app-store-branch { font-size: .7rem; }
  .app-delivery-badge, .app-order-min { font-size: .72rem; padding: 5px 11px; }
  .app-features > span { font-size: .7rem; padding: 5px 10px; }
  .app-search { min-height: 52px; max-width: 680px; border-radius: 16px; }
  .app-search > input[type="search"] { font-size: .9rem; }
  .app-search > button[type="submit"] { min-width: 84px; height: 38px; font-size: .72rem; }

  .app-hero { min-height: 246px; padding: 28px; border-radius: 26px; }
  .app-hero h2 { font-size: 1.62rem; }
  .app-hero p { font-size: .82rem; max-width: 30ch; }
  .app-hero-kicker { font-size: .68rem; }
  .app-hero-copy { max-width: 55%; }
  .app-hero-actions { gap: 11px; margin-top: 13px; }
  .app-hero-actions .btn { min-height: 40px; padding: 8px 16px; font-size: .8rem; }
  .app-hero-link { font-size: .74rem; }
  .app-hero-note { font-size: .68rem; margin-top: 12px; }
  .app-hero-art { width: 42%; max-width: 330px; inset-inline-end: 2%; bottom: -22px; }

  .promo-rail { gap: 14px; }
  .promo-card { flex-basis: 360px; min-height: 210px; padding: 22px; }
  .promo-card h2 { font-size: 1.24rem; }
  .promo-card p { font-size: .76rem; max-width: 27ch; }
  .promo-kicker { font-size: .66rem; }
  .promo-actions .btn { min-height: 38px; padding: 7px 13px; font-size: .76rem; }
  .promo-link { font-size: .72rem; }

  .fruit-spotlight { grid-template-columns: minmax(0, 1fr) auto auto; padding: 15px 18px; gap: 14px; }
  .fruit-spotlight-copy > strong { font-size: 1.12rem; }
  .fruit-spotlight-art { width: 86px; height: 86px; }
  .fruit-spotlight-actions { grid-column: auto; flex-direction: row; }
  .fruit-spotlight-actions .btn { min-height: 38px; font-size: .76rem; }

  .app-section-head h2 { font-size: 1.14rem; }
  .app-kicker { font-size: .71rem; }
  .rail-btn { width: 34px; height: 34px; }
  .rail-btn .nav-ico { width: 16px; height: 16px; }

  .cat-strip { gap: 10px; padding-bottom: 12px; }
  .cat-chip { min-height: 62px; gap: 9px; padding: 8px 14px 8px 9px; border-radius: 18px; }
  .cat-chip-art { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; }
  .cat-chip-copy strong { font-size: .78rem; }
  .cat-chip-copy small { font-size: .6rem; }

  .filter-pill { min-height: 34px; padding: 5px 15px; font-size: .76rem; }

  .product-rail { gap: 12px; }
  .product-rail > .product-card { flex-basis: 168px; }
  .app-product-card .product-name { font-size: .8rem; }
  .app-product-card .product-vendor { font-size: .62rem; }
  .app-product-card .price { font-size: .84rem; }
  .app-product-card .product-body { padding: 9px 11px 11px; }
  .app-product-card .card-qty-btn { width: 28px; height: 28px; }
  .app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] { width: 33px; height: 33px; }
  .product-weight { font-size: .62rem; }

  .vendor-mini { flex-basis: 260px; padding: 13px; }

  .app-cta { padding: 18px; }
  .app-cta-art { flex-basis: 84px; width: 84px; height: 84px; }
  .app-cta-copy h2 { font-size: 1.1rem; }
  .app-cta-copy p { font-size: .74rem; }
  .app-cta > .btn { min-height: 42px; padding: 8px 16px; font-size: .84rem; }
}

@media (min-width: 1100px) {
  .promo-card { flex-basis: calc((100% - 28px) / 3); min-height: 222px; }
  .product-rail > .product-card { flex-basis: 178px; }
}

/* ---------- Motion ---------- */
@keyframes appFruitFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}

@keyframes appFruitSwap {
  0% { transform: scale(.82) rotate(-8deg); opacity: .25; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes appPromoShine {
  0% { opacity: 0; transform: translateX(-130%); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateX(130%); }
}

@keyframes appShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes appLivePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(18, 183, 106, .14); }
  50% { box-shadow: 0 0 0 6px rgba(18, 183, 106, .05); }
}

/* Page transition progress */
.app-progress {
  position: fixed;
  z-index: 2000;
  inset-inline-start: 0;
  top: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--app-green), #25c8a6, var(--app-star));
  opacity: 0;
  transition: width .35s ease, opacity .2s ease;
  pointer-events: none;
}

.app-progress.is-active { opacity: 1; }

/* Press feedback */
.cat-chip.is-pressed,
.promo-card.is-pressed,
.vendor-mini.is-pressed,
.app-cta.is-pressed,
.fruit-spotlight.is-pressed {
  transform: scale(.985);
  transition-duration: .12s;
}

@media (prefers-reduced-motion: reduce) {
  .promo-art img,
  .app-live-dot,
  .fruit-spotlight.fruit-swap .fruit-spotlight-art img {
    animation: none !important;
  }
  .app-product-card .product-thumb.is-loading::after { animation: none !important; }
}

/* =========================================================
   V3 — canvas banner carousel, prominent search, red cubes
   ========================================================= */

/* ---------- Prominent entry search ---------- */
.app-search,
.app-search-hero {
  position: relative;
  gap: 9px;
  min-height: 58px;
  margin-top: 15px;
  padding: 5px 6px;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #02a0a4 0%, #7ce7d6 48%, #02a0a4 100%) border-box;
  box-shadow: 0 20px 38px -24px rgba(2, 160, 164, .95), inset 0 1px 0 #fff;
  z-index: 6;
}

.app-search:focus-within {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #017a7d 0%, #47d8c4 52%, #017a7d 100%) border-box;
  box-shadow: 0 0 0 4px rgba(2, 160, 164, .14), 0 22px 40px -22px rgba(2, 160, 164, 1);
}

.app-search .search-ico { display: none; }

.app-search-ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #e9fcfb 0%, #cdf2ee 100%);
  color: #018488;
  box-shadow: inset 0 0 0 1px rgba(2, 160, 164, .14);
}

.app-search-ico .nav-ico { width: 20px; height: 20px; stroke-width: 2; }

.app-search > input[type="search"] {
  height: 46px;
  color: #26302f;
  font-size: .88rem;
  font-weight: 600;
}

.app-search > input[type="search"]::placeholder {
  color: #8b9695;
  font-weight: 600;
  opacity: 1;
}

.app-search > button[type="submit"] {
  flex: none;
  min-width: 92px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 14px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(150deg, #2d3b3c 0%, #162123 100%);
  color: #fff;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .75);
  transition: background .18s, transform .15s, box-shadow .18s;
}

.app-search > button[type="submit"]:hover {
  background: linear-gradient(150deg, #162123 0%, #0b1213 100%);
  color: #fff;
  box-shadow: 0 14px 24px -13px rgba(0, 0, 0, .8);
}

.app-search > button[type="submit"]:active { transform: scale(.97); }
.app-search > button[type="submit"] .nav-ico { width: 14px; height: 14px; }

/* ---------- Banner carousel ---------- */
.app-banner-carousel {
  position: relative;
  padding-bottom: 34px;
}

.app-banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
}

.app-banner-track::-webkit-scrollbar { display: none; }
.app-banner-track:focus-visible { outline: 2px solid var(--app-green); outline-offset: 4px; border-radius: 26px; }

.app-banner-slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  min-height: 222px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  background: #013f43;
  box-shadow: 0 32px 54px -38px rgba(0, 0, 0, .8);
}

.app-banner-picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.app-banner-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 6s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .app-banner-slide:hover .app-banner-picture img { transform: scale(1.055); }
}

.app-banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(4, 16, 16, .42) 0%, rgba(4, 16, 16, .2) 40%, rgba(4, 16, 16, 0) 70%),
    linear-gradient(to top, rgba(4, 16, 16, .3) 0%, rgba(4, 16, 16, 0) 46%);
  pointer-events: none;
}

.app-banner-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 64%;
  max-width: 520px;
  padding: 18px 18px 16px;
  text-align: right;
}

.app-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .62rem;
  font-weight: 800;
  opacity: .92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.app-banner-kicker .nav-ico { width: 12px; height: 12px; }

.app-banner-copy h2 {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.48;
  letter-spacing: -.25px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .22);
}

.app-banner-copy p {
  max-width: 30ch;
  font-size: .68rem;
  line-height: 1.75;
  opacity: .9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .2);
}

.app-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}

.app-banner-actions .btn {
  min-height: 35px;
  padding: 5px 13px;
  font-size: .72rem;
  border-radius: 10px;
}

.app-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  opacity: .92;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.app-banner-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.app-banner-link .nav-ico { width: 12px; height: 12px; }

.app-banner-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: .58rem;
  font-weight: 600;
  opacity: .84;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .28);
}

.app-banner-note .nav-ico { width: 13px; height: 13px; }

.app-banner-ui {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.app-banner-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #e1ecec;
  border-radius: 50%;
  background: #fff;
  color: #4c5a59;
  cursor: pointer;
  box-shadow: 0 7px 16px -11px rgba(0, 0, 0, .55);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.app-banner-arrow:hover { background: var(--app-green); border-color: var(--app-green); color: #fff; transform: translateY(-1px); }
.app-banner-arrow:active { transform: scale(.94); }
.app-banner-arrow .nav-ico { width: 16px; height: 16px; }

.app-banner-dots { min-height: 12px; margin: 0; gap: 5px; }

.app-banner-dots .rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #cbd8d7;
  transition: width .3s ease, background .3s ease;
}

.app-banner-dots .rail-dot.active {
  width: 22px;
  background: linear-gradient(90deg, #02a0a4 0%, #46d4c2 100%);
}

/* ---------- Mini banners ---------- */
.app-mini-section { padding-top: 8px; }

.app-mini-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.app-mini-head .app-kicker { font-size: .6rem; }
.app-mini-head h2 { color: #33393a; font-size: .95rem; font-weight: 800; line-height: 1.5; }
.app-mini-head .rail-nav { flex: none; }

.mini-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.mini-rail::-webkit-scrollbar { display: none; }
.mini-rail:focus-visible { outline: 2px solid var(--app-green); outline-offset: 4px; border-radius: 18px; }

.mini-banner {
  position: relative;
  isolation: isolate;
  flex: 0 0 clamp(168px, 46vw, 228px);
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  box-shadow: 0 16px 28px -22px rgba(0, 0, 0, .7);
  transition: transform .18s ease;
}

.mini-banner.is-pressed { transform: scale(.98); }

.mini-banner picture { position: absolute; inset: 0; z-index: 0; display: block; }

.mini-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.mini-banner:hover img { transform: scale(1.08); }

.mini-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(4, 14, 14, .52) 0%, rgba(4, 14, 14, .24) 52%, rgba(4, 14, 14, 0) 80%);
  pointer-events: none;
}

.mini-banner-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 74%;
  padding: 11px 12px;
  text-align: right;
}

.mini-banner-copy small {
  color: rgba(255, 255, 255, .82);
  font-size: .55rem;
  font-weight: 700;
  line-height: 1.5;
}

.mini-banner-copy strong {
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.mini-banner-go {
  position: absolute;
  z-index: 2;
  inset-inline-end: 9px;
  bottom: 9px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(4px);
}

.mini-banner-go .nav-ico { width: 12px; height: 12px; }

/* ---------- Red cube quantity steppers ---------- */
.app-product-card .card-qty {
  gap: 3px;
  padding: 3px;
  border: 0;
  border-radius: 11px;
  background: #fff3f5;
  box-shadow: inset 0 0 0 1px #ffd9e0;
  overflow: visible;
}

.app-product-card .card-qty-btn {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(150deg, #fb3b57 0%, #e00e31 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 10px -5px rgba(224, 14, 49, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background .16s, transform .14s, box-shadow .16s;
}

.app-product-card .card-qty-btn:hover:not(:disabled) {
  background: linear-gradient(150deg, #e00e31 0%, #b40725 100%);
  color: #fff;
  transform: translateY(-1px);
}

.app-product-card .card-qty-btn:active:not(:disabled) { transform: scale(.93); }

.app-product-card .card-qty-btn:disabled {
  opacity: .34;
  color: #fff;
  background: #f0b8c2;
  box-shadow: none;
  cursor: default;
}

.app-product-card .card-qty-value {
  min-width: 20px;
  color: #c8102e;
  font-size: .68rem;
  font-weight: 900;
}

.app-product-card .card-qty[data-qty="0"] {
  width: fit-content;
  margin-inline-start: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}

.qty-stepper {
  gap: 4px;
  padding: 3px;
  border: 0;
  border-radius: 12px;
  background: #fff3f5;
  box-shadow: inset 0 0 0 1px #ffd9e0;
  overflow: visible;
}

.qty-stepper button {
  width: 40px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(150deg, #fb3b57 0%, #e00e31 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 6px 12px -6px rgba(224, 14, 49, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background .16s, transform .14s;
}

.qty-stepper button:hover {
  background: linear-gradient(150deg, #e00e31 0%, #b40725 100%);
  color: #fff;
  transform: translateY(-1px);
}

.qty-stepper button:active { transform: scale(.94); }
.qty-stepper span { min-width: 40px; color: #c8102e; font-weight: 900; }

/* ---------- V3 responsive ---------- */
@media (max-width: 640px) {
  .app-search,
  .app-search-hero {
    min-height: 54px;
    padding: 4px 5px;
    gap: 7px;
    border-radius: 16px;
    margin-top: 13px;
  }

  .app-search-ico { width: 36px; height: 36px; border-radius: 11px; }
  .app-search-ico .nav-ico { width: 18px; height: 18px; }
  .app-search > input[type="search"] { height: 42px; font-size: .8rem; }
  .app-search > button[type="submit"] {
    min-width: 70px;
    height: 42px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: .67rem;
  }
  .app-search > button[type="submit"] .nav-ico { display: none; }


  .app-banner-track { border-radius: 21px; }
  .app-banner-slide { min-height: 214px; border-radius: 21px; }
  .app-banner-copy { width: 66%; padding: 15px 15px 13px; gap: 3px; }
  .app-banner-copy h2 { font-size: 1.06rem; }
  .app-banner-copy p { font-size: .62rem; line-height: 1.7; }
  .app-banner-kicker { font-size: .58rem; }
  .app-banner-actions { gap: 6px; margin-top: 6px; }
  .app-banner-actions .btn { min-height: 32px; padding: 4px 10px; font-size: .68rem; }
  .app-banner-link { font-size: .61rem; }
  .app-banner-note { font-size: .55rem; margin-top: 5px; }
  .app-banner-carousel { padding-bottom: 31px; }
  .app-banner-arrow { width: 28px; height: 28px; }

  .app-mini-head h2 { font-size: .87rem; }
  .mini-banner { height: 82px; border-radius: 15px; }
  .mini-banner-copy { padding: 9px 10px; }
  .mini-banner-copy small { font-size: .52rem; }
  .mini-banner-copy strong { font-size: .72rem; }

  .app-product-card .card-qty-btn { width: 26px; height: 26px; font-size: .95rem; }
  .app-product-card .card-qty-value { min-width: 18px; font-size: .64rem; }
  .app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] { width: 30px; height: 30px; }
  .qty-stepper button { width: 38px; height: 36px; }
}

@media (max-width: 380px) {
  .app-search,
  .app-search-hero { min-height: 51px; border-radius: 15px; }
  .app-search-ico { width: 33px; height: 33px; }
  .app-search > input[type="search"] { font-size: .77rem; }
  .app-search > button[type="submit"] { min-width: 62px; font-size: .64rem; }

  .app-banner-slide { min-height: 208px; }
  .app-banner-copy { width: 69%; padding: 13px 13px 12px; }
  .app-banner-copy h2 { font-size: 1rem; }
  .app-banner-copy p { font-size: .59rem; }
  .app-banner-note { display: none; }
  .app-banner-actions .btn { min-height: 30px; font-size: .65rem; }
  .app-banner-link { font-size: .58rem; }
  .mini-banner { flex-basis: 162px; height: 78px; }
}

@media (min-width: 641px) {
  .app-search,
  .app-search-hero { min-height: 62px; border-radius: 20px; padding: 6px 7px; max-width: 720px; }
  .app-search-ico { width: 44px; height: 44px; border-radius: 13px; }
  .app-search-ico .nav-ico { width: 22px; height: 22px; }
  .app-search > input[type="search"] { height: 50px; font-size: .94rem; }
  .app-search > button[type="submit"] { min-width: 108px; height: 50px; font-size: .8rem; border-radius: 14px; }

  .app-banner-slide { min-height: 268px; }
  .app-banner-copy { width: 52%; padding: 26px 26px 22px; gap: 6px; }
  .app-banner-copy h2 { font-size: 1.62rem; }
  .app-banner-copy p { font-size: .8rem; line-height: 1.8; }
  .app-banner-kicker { font-size: .68rem; }
  .app-banner-actions { gap: 11px; margin-top: 11px; }
  .app-banner-actions .btn { min-height: 40px; padding: 7px 16px; font-size: .8rem; }
  .app-banner-link { font-size: .73rem; }
  .app-banner-note { font-size: .67rem; margin-top: 10px; }
  .app-banner-carousel { padding-bottom: 38px; }
  .app-banner-track { gap: 14px; border-radius: 26px; }
  .app-banner-slide { border-radius: 26px; }

  .mini-banner { flex-basis: 236px; height: 100px; border-radius: 18px; }
  .mini-banner-copy strong { font-size: .86rem; }
  .mini-banner-copy small { font-size: .6rem; }
  .app-mini-head h2 { font-size: 1.05rem; }
}

@media (min-width: 1100px) {
  .app-banner-slide { min-height: 300px; }
  .app-banner-copy { width: 46%; padding: 30px 30px 24px; }
  .app-banner-copy h2 { font-size: 1.78rem; }
  .app-banner-copy p { font-size: .86rem; }
  .mini-banner { flex-basis: 248px; }
}

/* =========================================================
   V4 — section anchors + monochrome professional dock
   ========================================================= */
.app-anchor { display: block; height: 0; scroll-margin-top: 84px; }
.app-shelf, .app-products-section, .fruit-spotlight { scroll-margin-top: 84px; }

@media (max-width: 640px) {
  .mobile-dock {
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    backdrop-filter: none;
    box-shadow: 0 -1px 0 #eceeee, 0 -22px 42px -34px rgba(0, 0, 0, .42);
  }

  .mobile-dock a,
  .mobile-dock button {
    justify-content: center;
    gap: 3px;
    min-height: 51px;
    padding: 2px;
    color: #9aa1a3;
    font-size: .6rem;
    font-weight: 600;
  }

  .mobile-dock a.active,
  .mobile-dock button.active { color: #333d40; }

  .mobile-dock .nav-ico {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 11px;
    background: #f5f7f7;
    color: #9aa1a3;
    box-sizing: border-box;
    transition: background .2s ease, color .2s ease;
  }

  .mobile-dock a.active .nav-ico,
  .mobile-dock button.active .nav-ico {
    background: #ecefef;
    color: #333d40;
    stroke-width: 2;
  }

  .mobile-dock a:active,
  .mobile-dock button:active {
    background: #f4f6f6;
    color: #2f393b;
  }

  .mobile-dock a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3c4649;
  }

  .mobile-dock .dock-cart {
    justify-content: center;
    color: #9aa1a3;
  }

  .mobile-dock .dock-cart.active { color: #333d40; }

  .mobile-dock .dock-cart .dock-orb {
    width: 34px;
    height: 34px;
    margin-top: 0;
    border-radius: 11px;
    background: none;
    color: inherit;
    box-shadow: none;
    transition: transform .16s ease;
  }

  .mobile-dock .dock-cart .dock-orb .nav-ico { width: 34px; height: 34px; }
  .mobile-dock .dock-cart .dock-label { margin-top: 0; font-weight: 600; }
  .mobile-dock .dock-cart.active .dock-label { font-weight: 700; }

  .mobile-dock .dock-cart:active .dock-orb {
    transform: scale(.92);
    background: none;
    box-shadow: none;
  }

  .mobile-dock .dock-cart .dock-badge {
    top: 0;
    inset-inline-end: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #fff;
    font-size: .53rem;
  }
}

/* =========================================================
   V5 — viewport lock, iPhone safe areas, smooth motion
   Keeps the page perfectly fixed sideways on phones and adds
   a soft, app-like motion layer.
   ========================================================= */

/* 1) Hard viewport lock — the page can never pan sideways */
html {
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

@supports not (overflow-x: clip) {
  html,
  body { overflow-x: hidden; }
}

/* Decorative glow was escaping the header card and widening the page */
.app-store-head::before {
  inset-inline-end: 4px;
  top: -70px;
}

/* Fixed chrome and media may never exceed the viewport */
.site-header,
.mobile-dock,
.cart-bar,
.promo-toast,
.tz-toast,
.product-modal,
.search-overlay { max-width: 100%; }

img,
svg,
video,
canvas { max-width: 100%; }

/* 2) iPhone notch / home-indicator safe areas */
@supports (padding: env(safe-area-inset-left)) {
  .app-container,
  .container,
  .container-narrow {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .mobile-dock {
    padding-left: calc(9px + env(safe-area-inset-left));
    padding-right: calc(9px + env(safe-area-inset-right));
  }
}

/* 3) iOS Safari zooms any field below 16px — keep 16px on touch devices */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  input,
  select,
  textarea,
  .input,
  .header-search input,
  .search-overlay-form .input,
  .app-search > input[type="search"] {
    font-size: 16px;
  }
}

/* 4) Horizontal rails: contained momentum, no page chaining */
[data-app-rail],
[data-banner-rail],
.promo-rail,
.mini-rail,
.cat-strip,
.cat-bar,
.product-rail,
.vendor-rail,
.app-features,
.nav-links {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

[data-app-rail],
[data-banner-rail] { cursor: grab; }

[data-app-rail].is-dragging,
[data-banner-rail].is-dragging,
[data-app-rail].is-grabbing,
[data-banner-rail].is-grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* 5) Page-level entrance + desktop hover polish */
@keyframes appPageRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.app-page {
  animation: appPageRise .5s cubic-bezier(.22, .61, .36, 1) both;
}

@media (hover: hover) and (pointer: fine) {
  .app-product-card {
    transition: transform .3s cubic-bezier(.22, .61, .36, 1),
                box-shadow .3s ease,
                border-color .3s ease;
  }

  .app-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 42px -30px rgba(0, 0, 0, .5);
  }

  .app-product-card:hover .product-thumb-link img { transform: scale(1.05); }

  .mini-banner,
  .vendor-mini,
  .cat-chip,
  .app-cta {
    transition: transform .25s cubic-bezier(.22, .61, .36, 1),
                box-shadow .25s ease;
  }

  .mini-banner:hover,
  .vendor-mini:hover,
  .cat-chip:hover,
  .app-cta:hover { transform: translateY(-2px); }

  .btn { transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.985); }
}

/* 6) Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-page { animation: none; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   V6 — ultra-compact flat cards (phone-first density)
   Flattens product/vendor cards: no shadows, no blur, no
   hover lift, no shimmer. Shrinks everything so many items
   fit on one phone screen.
   ========================================================= */

/* 1) Delivery + minimum order: plain colored text only */
.app-store-badges {
  gap: 2px 12px;
  margin-top: 7px;
}

.app-delivery-badge,
.app-order-min {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.6;
}

.app-delivery-badge { color: #07814d; }
.app-order-min { color: #757d7d; }
.app-delivery-badge .nav-ico { width: 13px; height: 13px; }

/* 2) Product rails + cards: flat, small, dense */
.product-rail {
  gap: 7px;
  padding: 0 0 5px;
  scroll-padding-inline: 0;
}

.product-rail > .product-card {
  flex: 0 0 clamp(104px, 30vw, 132px);
}

.app-product-card {
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transition: none;
}

.app-product-card:hover,
.app-product-card:target {
  border-color: #ededed;
  box-shadow: none;
  transform: none;
}

.app-product-card .product-thumb {
  border-radius: 11px 11px 0 0;
  background: #fff;
}

.app-product-card .product-thumb::before { content: none; }

.app-product-card .product-thumb-link { padding: 8%; }

.app-product-card .product-thumb-link img {
  filter: none;
  transform: none;
  transition: none;
  opacity: 1;
}

.app-product-card:hover .product-thumb-link img { transform: none; }

.app-product-card .product-thumb.is-loading::after {
  animation: none;
  background: #f4f5f5;
}

.app-product-card .product-body {
  gap: 0;
  padding: 3px 5px 5px;
}

.app-product-card .product-name {
  display: block;
  -webkit-line-clamp: unset;
  min-height: 0;
  font-size: .67rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-product-card .product-name:hover { color: #34393b; }

.app-product-card .product-vendor { display: none; }

.app-product-card .product-foot {
  gap: 3px;
  margin-top: 0;
  padding-top: 2px;
  flex-wrap: nowrap;
}

.app-product-card .product-price { min-width: 0; }
.app-product-card .price { font-size: .72rem; line-height: 1.35; }
.app-product-card .price small { font-size: .5rem; }
.app-product-card .old-price { font-size: .52rem; line-height: 1.3; }

.app-product-card .product-badge-discount {
  top: 4px;
  inset-inline-end: 4px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: .51rem;
  line-height: 1.7;
}

.app-product-card .product-multiplier {
  top: 4px;
  inset-inline-start: 4px;
  min-width: 18px;
  padding: 0 4px;
  font-size: .5rem;
}

.product-weight {
  bottom: 4px;
  inset-inline-start: 4px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: none;
  box-shadow: none;
  font-size: .5rem;
  line-height: 1.7;
}

.app-product-card .card-qty-btn { width: 21px; height: 21px; font-size: .8rem; }
.app-product-card .card-qty-value { min-width: 12px; font-size: .56rem; }
.app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] {
  width: 24px;
  height: 24px;
  box-shadow: none;
}

/* 3) Vendor cards: small, flat */
.vendor-rail {
  gap: 6px;
  padding: 0 0 4px;
}

.vendor-mini {
  flex: 0 0 164px;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 12px;
  box-shadow: none;
  transition: none;
}

.vendor-mini:hover {
  border-color: var(--app-line);
  box-shadow: none;
  transform: none;
}

.vendor-mini-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: .68rem;
}

.vendor-mini-body { gap: 0; }
.vendor-mini-body > strong { font-size: .69rem; line-height: 1.4; }
.vendor-mini-meta { gap: 4px; font-size: .54rem; }
.vendor-mini .distance-pill { margin-top: 0; padding: 0 4px; font-size: .5rem; line-height: 1.6; }
.vendor-mini-go { display: none; }

/* 4) Phone density: 4 cards fully visible per rail */
@media (max-width: 640px) {
  .product-rail { gap: 6px; }
  .product-rail > .product-card { flex: 0 0 clamp(76px, 22vw, 104px); }

  .app-cats-section,
  .app-products-section,
  .app-vendors-section,
  .store-map-section { padding-top: 9px; }

  .app-section-head { margin-bottom: 6px; gap: 6px; }
  .app-section-head h2 { font-size: .88rem; }
  .app-kicker { font-size: .55rem; }

  .app-shelf { padding-top: 9px; }
  .app-shelf + .app-shelf { padding-top: 7px; }
  .app-shelf-count { font-size: .52rem; }

  .app-product-card .product-name { font-size: .63rem; }
  .app-product-card .price { font-size: .66rem; }
  .app-product-card .price small { display: none; }
  .app-product-card .product-thumb-link { padding: 9%; }
  .app-product-card .card-qty-btn { width: 22px; height: 22px; font-size: .78rem; }
  .app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] { width: 22px; height: 22px; }

  .vendor-mini { flex-basis: 144px; padding: 5px 6px; }
  .vendor-mini-avatar { flex-basis: 28px; width: 28px; height: 28px; font-size: .62rem; }
  .vendor-mini-body > strong { font-size: .65rem; }
  .vendor-mini-meta { font-size: .52rem; }

  .app-delivery-badge,
  .app-order-min { font-size: .62rem; padding: 0; }
}

@media (max-width: 380px) {
  .product-rail > .product-card { flex: 0 0 clamp(74px, 22.5vw, 92px); }
  .app-product-card .product-name { font-size: .6rem; }
  .app-product-card .price { font-size: .64rem; }
  .vendor-mini { flex-basis: 136px; }
}

/* 5) Kill decorative motion on cards at every breakpoint */
.app-product-card .card-qty,
.app-product-card .card-qty-btn { transition: none; }

.vendor-mini.is-pressed,
.vendor-mini.is-pressed:hover {
  transform: none;
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .app-product-card,
  .app-product-card:hover,
  .vendor-mini,
  .vendor-mini:hover {
    transition: none;
    box-shadow: none;
    transform: none;
  }
}

/* =========================================================
   V8 — Okala-style product card
   Mirrors okala.com card structure: 142px slim card, 5px
   padding, a 118px image over a 32px title and 24px price row, 40×20 red
   pill discount badge, 2-line 32px title, centered price
   row, and a white circular red-ring add button that
   overlaps the image bottom-right and expands to a red
   stepper. No lift, no shimmer, no extra clutter.
   ========================================================= */

.product-rail {
  gap: 12px;
  padding: 6px 6px 14px;
  scroll-padding-inline: 6px;
}

.product-rail > .product-card {
  flex: 0 0 142px;
  scroll-snap-align: start;
}

.app-product-card {
  border: 0;
  border-radius: 16px 16px 2px 2px;
  background: #fff;
  padding: 5px;
  overflow: hidden;
  box-shadow: 0 0 1px rgba(22, 22, 22, .05), 0 1px 2px rgba(22, 22, 22, .04);
  transition: none;
}

.app-product-card:hover,
.app-product-card:target {
  border: 0;
  box-shadow: 0 0 1px rgba(22, 22, 22, .05), 0 1px 2px rgba(22, 22, 22, .04);
  transform: none;
}

/* Image area — tall white block, image sits at the top */
.app-product-card .product-thumb {
  position: relative;
  aspect-ratio: auto;
  height: 123px;
  padding: 0;
  border-radius: 11px 11px 0 0;
  background: #fff;
  overflow: hidden;
}

.app-product-card .product-thumb::before { content: none; }

.app-product-card .product-thumb-link {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.app-product-card .product-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  transform: none;
  transition: none;
  opacity: 1;
}

.app-product-card:hover .product-thumb-link img { transform: none; }

.app-product-card .product-thumb.is-loading::after {
  animation: none;
  background: #f6f6f6;
}

/* Discount badge — 40×20 red pill with white border, top-left */
.app-product-card .product-badge-discount {
  top: 5px;
  left: 5px;
  right: auto;
  width: 40px;
  height: 20px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 100px;
  background: #ff3151;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
  z-index: 3;
}

/* Hide the featured pill so the card stays minimal */
.app-product-card .product-badge-discount.badge-green { display: none; }

/* Bundle multiplier — small grey tag at the image top-right */
.app-product-card .product-multiplier {
  top: 5px;
  right: 5px;
  left: auto;
  min-width: 0;
  padding: 0 8px 0 6px;
  border: 0;
  border-radius: 0 0 0 6px;
  background: #f6f6f6;
  color: #888;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  z-index: 3;
}

/* Weight pill is not part of this clean card layout */
.app-product-card .product-weight { display: none; }

/* Text body */
.app-product-card .product-body {
  gap: 0;
  padding: 0 0 16px;
  text-align: right;
}

.app-product-card .product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 32px;
  min-height: 32px;
  margin: 4px 0;
  padding: 0 6px 0 4px;
  border: 0;
  background: none;
  color: #454545;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 500;
  line-height: 16px;
  text-align: right;
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  cursor: pointer;
}

.app-product-card .product-name:hover { color: #454545; }

.app-product-card .product-vendor { display: none; }

.app-product-card .product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  min-height: 24px;
  margin-top: 4px;
  padding-top: 0;
}

/* Soft red percent pill shown next to the price on discounted cards */
.product-off-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  flex: none;
  height: 20px;
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid #fff;
  border-radius: 100px;
  background: #faecee;
  color: #ff3151;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.app-product-card .product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  min-width: 0;
}

.app-product-card .old-price {
  color: #888;
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  text-decoration: line-through;
}

.app-product-card .price {
  color: #3d3d3d;
  font-size: .75rem;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
  letter-spacing: -.2px;
}

.app-product-card .price small {
  display: inline;
  margin-right: 4px;
  color: #3d3d3d;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* Add control — Okala puts it over the image bottom-right */
.app-product-card .card-qty {
  position: absolute;
  right: 0;
  bottom: 2px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 34px;
  height: 32px;
  padding: 0 2px 0 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  transition: none;
}

/* Quantity 0: solid red rounded-square plus button */
.app-product-card .card-qty[data-qty="0"] {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.app-product-card .card-qty[data-qty="0"] .card-qty-value,
.app-product-card .card-qty[data-qty="0"] [data-qty-action="minus"] { display: none; }

.app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"] {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f01436;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  box-shadow: 0 2px 6px rgba(240, 20, 54, .22);
}

.app-product-card .card-qty[data-qty="0"] [data-qty-action="plus"]:hover {
  background: #d91130;
  color: #fff;
}

/* Quantity > 0: red rounded-square stepper */
.app-product-card .card-qty:not([data-qty="0"]) {
  width: 76px;
  height: 32px;
  justify-content: space-between;
  padding: 0 2px 0 0;
  border: 0;
  border-radius: 9px;
  background: #f01436;
}

.app-product-card .card-qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #faecee;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: none;
}

.app-product-card .card-qty-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.app-product-card .card-qty-btn:disabled { opacity: .45; cursor: default; }

.app-product-card .card-qty-value {
  min-width: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.app-product-card .product-out {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 2px 2px;
  background: #f6f6f6;
  color: #888;
  font-size: 10px;
  font-weight: 500;
}

/* Phone sizing — two full cards plus a peek, like Okala */
@media (max-width: 640px) {
  .product-rail { gap: 12px; padding: 5px 5px 12px; }
  .product-rail > .product-card { flex: 0 0 142px; }
}

@media (max-width: 380px) {
  .product-rail > .product-card { flex: 0 0 136px; }
  .app-product-card .product-thumb { height: 117px; }
  .app-product-card .product-thumb-link { height: 112px; }
  .app-product-card .card-qty { bottom: 2px; }
  .app-product-card .product-name { font-size: .72rem; }
  .app-product-card .price,
  .app-product-card .price small { font-size: .72rem; }
}

@media (hover: hover) and (pointer: fine) {
  .app-product-card,
  .app-product-card:hover {
    transition: none;
    transform: none;
  }
}

/* =========================================================
   Digikala-style category mega menu
   ========================================================= */
.mega-wrap { position: static; }

.mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #e8eeee;
  border-radius: 12px;
  background: #fff;
  color: #33393a;
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mega-toggle:hover { background: #f4f9f9; border-color: #cfe6e6; color: var(--app-green-dark); }
.mega-toggle:active { background: #eef6f6; }
.mega-toggle:focus-visible { outline: 3px solid rgba(2, 160, 164, .3); outline-offset: 3px; }
.mega-toggle[aria-expanded="true"] { background: #eef7f7; border-color: #bfe5e5; color: var(--app-green-dark); box-shadow: none; }

.mega-bars { display: inline-grid; gap: 3px; width: 16px; }
.mega-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.mega-bars i:nth-child(2) { width: 70%; }

.mega-caret { width: 16px; height: 16px; flex: none; opacity: .85; transition: transform .18s ease; }
.mega-toggle[aria-expanded="true"] .mega-caret { transform: rotate(90deg); }

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 12px;
  right: 12px;
  width: min(1120px, calc(100% - 24px));
  margin-inline: auto;
  z-index: 90;
  direction: rtl;
  text-align: right;
  background: #fff;
  border: 1px solid #e7ecec;
  border-radius: 20px;
  box-shadow: 0 34px 70px -36px rgba(17, 40, 38, .5), 0 2px 8px rgba(17, 40, 38, .06);
  overflow: hidden;
  animation: mega-pop .18s ease both;
}
.mega-menu[hidden] { display: none; }

@keyframes mega-pop {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-inner {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  max-height: min(560px, calc(100vh - 110px));
  cursor: default;
}

.mega-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  background: #f6f8f8;
  border-inline-end: 1px solid #e9eeee;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.mega-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 7px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4a5050;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  text-align: right;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.mega-side-item:hover { background: rgba(2, 160, 164, .08); color: var(--app-green-dark); }
.mega-side-item.active {
  background: #fff;
  color: var(--app-green-dark);
  font-weight: 800;
  box-shadow: inset -3px 0 0 var(--app-green), 0 5px 14px -12px rgba(0, 0, 0, .5);
}
.mega-side-item .mega-arrow { width: 15px; height: 15px; margin-inline-start: auto; opacity: .35; }
.mega-side-item.active .mega-arrow { opacity: .9; }

.mega-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px -3px rgba(0, 0, 0, .16);
  font-size: 1.02rem;
  line-height: 1;
}
.mega-side-item.active .mega-ico { background: rgba(2, 160, 164, .1); }

.mega-side-empty { padding: 18px 10px; color: var(--app-muted); font-size: .8rem; text-align: center; }

.mega-main {
  position: relative;
  padding: 16px 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.mega-panel { display: none; }
.mega-panel.active { display: block; animation: mega-fade .2s ease both; }
@keyframes mega-fade { from { opacity: 0; } to { opacity: 1; } }

.mega-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e4eaea;
}
.mega-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #26302f;
  font-size: .98rem;
  font-weight: 800;
}
.mega-panel-title:hover { color: var(--app-green-dark); }
.mega-title-arrow { width: 16px; height: 16px; color: var(--app-green); }
.mega-panel-title:hover .mega-title-arrow { transform: translateX(-3px); }
.mega-panel-count {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--app-soft);
  color: var(--app-muted);
  font-size: .68rem;
  font-weight: 600;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 20px 26px;
  align-items: start;
}

.mega-col-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--app-green-dark);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.5;
}
.mega-col-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-green);
  opacity: .65;
  flex: none;
}
.mega-col-title:hover { color: #016366; }

.mega-col-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 13px 0 0;
  list-style: none;
}
.mega-col-list a {
  display: block;
  padding: 3px 0;
  color: #6a7272;
  font-size: .8rem;
  line-height: 1.6;
  transition: color .12s ease, transform .12s ease;
}
.mega-col-list a:hover { color: var(--app-green-dark); transform: translateX(-3px); }

.mega-empty {
  margin: 18px 0 6px;
  color: var(--app-muted);
  font-size: .82rem;
}

@media (hover: hover) and (pointer: fine) {
  .mega-side { scrollbar-width: thin; }
}

@media (max-width: 1100px) {
  .mega-inner { grid-template-columns: 236px minmax(0, 1fr); }
  .mega-main { padding-inline: 18px; }
}

@media (max-width: 860px) {
  .mega-wrap { flex: none; }
  .mega-toggle { min-height: 36px; padding: 7px 10px; font-size: .76rem; border-radius: 10px; gap: 6px; }
  .mega-menu {
    left: 8px;
    right: 8px;
    width: auto;
    margin: 0;
    border-radius: 16px;
    max-height: calc(100vh - 80px);
  }
  .mega-inner {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 96px);
  }
  .mega-side {
    flex-direction: row;
    flex: none;
    gap: 6px;
    padding: 8px;
    border-inline-end: 0;
    border-bottom: 1px solid #e9eeee;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .mega-side-item {
    width: auto;
    min-height: 38px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .76rem;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e7ecec;
  }
  .mega-side-item.active { box-shadow: inset 0 0 0 1.5px var(--app-green); }
  .mega-side-item .mega-arrow { display: none; }
  .mega-ico { width: 25px; height: 25px; border-radius: 8px; font-size: .85rem; box-shadow: none; }
  .mega-main { padding: 14px 14px 18px; }
  .mega-cols { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 18px; }
  .mega-panel-head { margin-bottom: 11px; padding-bottom: 9px; }
  .mega-panel-title { font-size: .9rem; }
}

@media (max-width: 640px) {
  .mega-toggle { font-size: .68rem; min-height: 34px; padding: 6px 8px; gap: 5px; }
  .mega-toggle .mega-bars { width: 14px; gap: 2px; }
  .mega-caret { display: none; }
  .mega-menu { top: calc(100% + 6px); }
  .mega-col-list a { font-size: .76rem; }
  .mega-panel-count { display: none; }
}

@media (max-width: 380px) {
  .mega-toggle { padding-inline: 7px; font-size: .64rem; }
  .mega-bars { display: none; }
}

/* =========================================================
   Category line icons
   ========================================================= */
.cat-ico { width: 22px; height: 22px; flex: none; }

.mega-side-item .cat-ico { width: 20px; height: 20px; color: #5b6665; }
.mega-side-item.active .cat-ico { color: var(--app-green-dark); }
.mega-panel-title .cat-ico { width: 19px; height: 19px; color: var(--app-green-dark); }
.cat-chip-art .cat-ico { width: 27px; height: 27px; color: var(--cat-ink, var(--app-green-dark)); }
.cat-tree-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f7f7;
  color: var(--app-green-dark);
}
.cat-tree-ico .cat-ico { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .mega-side-item .cat-ico { width: 17px; height: 17px; }
}

/* =========================================================
   Header: one row, every label fully visible
   ========================================================= */
.site-header { overflow: visible; }
.header-actions .btn .nav-ico { width: 16px; height: 16px; }
.label-short { display: none; }

.header-inner {
  gap: clamp(8px, .7vw, 10px);
  flex-wrap: nowrap;
  padding-block: 8px;
  min-width: 0;
  min-height: 62px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.header-inner::-webkit-scrollbar { display: none; }
.header-inner > .brand,
.header-inner > .mega-wrap,
.header-inner > .nav-links,
.header-inner > .header-search,
.header-inner > .header-actions {
  flex: 0 0 auto;
  min-width: 0;
}
.header-inner > .brand > span { display: inline; }
.header-inner > .brand { font-size: 1.12rem; }
.header-inner > .nav-links {
  display: flex;
  order: 0;
  flex-basis: auto;
  overflow: visible;
  flex-wrap: nowrap;
  width: auto;
}
.header-inner > .nav-links a { padding: 5px 6px; gap: 4px; font-size: .78rem; }
.header-inner > .nav-links .nav-ico { display: none; }
.header-inner > .header-search {
  display: flex;
  flex-basis: 180px;
  width: 180px;
  min-width: 150px;
}
.header-inner > .header-actions {
  display: flex;
  margin-inline-start: auto;
}
.header-actions .label-full { display: inline; }
.header-btn-label { display: inline; }
.header-user > span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-toggle { display: none !important; }
.header-search .search-suggest {
  position: fixed;
  top: calc(var(--header-h, 64px) + 8px);
  left: 0;
  right: 0;
  width: min(560px, calc(100vw - 24px));
  margin-inline: auto;
  z-index: 120;
}
.mega-toggle {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}
.mega-bars { display: inline-grid; }
.mega-caret { display: block; }

@media (max-width: 1279px) {
  .mega-toggle { padding-inline: 11px; }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 56px;
    padding-block: 7px;
  }
  .brand { font-size: 1.02rem; gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .mega-toggle { font-size: .78rem; padding-inline: 9px; min-height: 36px; }
  .header-actions { gap: 5px; }
  .header-actions .btn-primary { min-height: 34px; padding: 5px 9px; font-size: .76rem; }
  .cart-link { min-height: 34px; padding: 5px 8px; font-size: .76rem; }
  .cart-link .nav-ico { width: 17px; height: 17px; }
  .icon-btn { width: 34px; height: 34px; }
  .header-user .avatar { width: 28px; height: 28px; }
  .header-user > span { max-width: 90px; }
}

@media (max-width: 640px) {
  .mega-toggle { font-size: .72rem; padding-inline: 8px; }
  .header-inner > .header-search { flex-basis: 170px; width: 170px; min-width: 150px; }
  .header-panel-btn,
  .header-logout { padding: 6px 8px; }
}

/* Compact page rhythm now that the oversized hero is gone */
.app-page { padding-top: 10px; }
.app-mini-section { padding-top: 2px; }

/* =========================================================
   Category artwork (shelves and mega menu)
   ========================================================= */
.app-shelf-thumb {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-inline-end: 7px;
  overflow: hidden;
  vertical-align: -9px;
  border-radius: 11px;
  color: var(--cat-ink, #335c58);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, .92), transparent 62%),
    var(--cat-bg, #eef2f1);
}
.app-shelf-thumb img { width: 78%; height: 78%; object-fit: contain; }
.app-shelf-thumb picture { display: contents; }

/* Mega menu artwork */
.mega-ico {
  overflow: hidden;
  background: var(--cat-bg, #fff);
  color: var(--cat-ink, #335c58);
}
.mega-ico.has-art img { width: 84%; height: 84%; object-fit: contain; }
.mega-ico picture { display: contents; }
.mega-side-item.active .mega-ico {
  background: var(--cat-bg, #fff);
  box-shadow: inset 0 0 0 1.5px rgba(2, 160, 164, .35);
}

.mega-panel-head { gap: 14px; }
.mega-panel-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mega-panel-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 68px;
  height: 48px;
  overflow: hidden;
  border-radius: 13px;
  color: var(--cat-ink, #335c58);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, .92), transparent 62%),
    var(--cat-bg, #eef2f1);
}
.mega-panel-art img { width: 84%; height: 84%; object-fit: contain; }
.mega-panel-art picture { display: contents; }
.mega-panel-art-icon .cat-ico { width: 24px; height: 24px; }

.mega-cols {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 12px;
}
.mega-col {
  padding: 9px 10px 10px;
  border: 1px solid #eef2f1;
  border-radius: 14px;
  background: #fbfcfc;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.mega-col:hover {
  border-color: #d9ecec;
  background: #fff;
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, .5);
}
.mega-col-head { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 5px; }
.mega-col-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 10px;
  color: var(--cat-ink, #335c58);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, .92), transparent 62%),
    var(--cat-bg, #eef2f1);
}
.mega-col-thumb img { width: 82%; height: 82%; object-fit: contain; }
.mega-col-thumb picture { display: contents; }
.mega-col-thumb .cat-ico { width: 17px; height: 17px; }
.mega-col-title { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.mega-col-head .mega-col-title::before { display: none; }
.mega-col-list { padding-inline: 3px 0; }
.mega-col-list a { padding: 3.5px 0; }

@media (max-width: 640px) {
  .app-shelf-thumb { width: 29px; height: 29px; vertical-align: -8px; }
  .mega-panel-art { width: 54px; height: 40px; border-radius: 11px; }
  .mega-cols { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 9px; }
  .mega-col { padding: 8px 8px 9px; }
}
