/* ═══════════════════════════════════════════════════════════
   ZAYTOON — Mobile App Experience CSS
   Luxury jewellery store — feels like a native iOS/Android app
═══════════════════════════════════════════════════════════ */

/* ── MOBILE APP VARS ──────────────────────────────────────── */
:root {
  --app-bar-h:        56px;
  --bottom-nav-h:     64px;
  --card-radius:      18px;
  --img-radius:       14px;
  --safe-bottom:      env(safe-area-inset-bottom, 0px);
  --safe-top:         env(safe-area-inset-top, 0px);
}

/* ── MOBILE: Tighter grid → 2 columns always ─────────────── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .65rem !important;
  }
}

/* ══════════════════════════════════════════════
   PRODUCT CARD — App-style
══════════════════════════════════════════════ */
.product-card {
  border-radius: var(--card-radius) !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.07) !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease !important;
  background: var(--surface) !important;
}
.product-card:active { transform: scale(.97) !important; }
@media (max-width: 768px) {
  .product-card:hover { transform: none !important; }
}

/* Image area — taller for mobile */
.product-img-wrap {
  aspect-ratio: 1 / 1.1 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: var(--cream-mid);
}
.product-img {
  transition: transform .45s ease !important;
}
.product-img-placeholder {
  background: linear-gradient(160deg, var(--beige), var(--cream-mid)) !important;
}

/* Info section */
.product-info {
  padding: .65rem .75rem .8rem !important;
}
.product-brand {
  font-size: .65rem !important;
  letter-spacing: .1em !important;
  margin-bottom: .18rem !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
}
.product-name {
  font-size: .82rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: .3rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-stars { margin-bottom: .3rem !important; font-size: .7rem !important; }
.product-price { font-size: .95rem !important; font-weight: 900 !important; }
.product-old-price { font-size: .74rem !important; }

/* Hide add-to-cart text on mobile — icon only */
@media (max-width: 480px) {
  .product-card .btn span.btn-label { display: none; }
  .product-card .btn { padding: .45rem .65rem !important; font-size: .8rem !important; }
}

/* ── Quick add button overlay (tap on image) ─────────────── */
.product-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.25) 0%, transparent 50%);
  pointer-events: none;
}
.product-quick-add {
  position: absolute;
  bottom: .55rem; right: .55rem;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--gold);
  border: none; cursor: pointer;
  opacity: 0; transform: scale(.7);
  transition: all .2s ease;
  z-index: 3;
}
.product-card:hover .product-quick-add,
.product-card:focus-within .product-quick-add {
  opacity: 1; transform: scale(1);
}
@media (max-width: 768px) {
  .product-quick-add { opacity: 1 !important; transform: scale(1) !important; }
}

/* Wishlist heart always visible on mobile */
@media (max-width: 768px) {
  .product-card-actions { opacity: 1 !important; transform: none !important; }
  .card-action-btn { width: 30px !important; height: 30px !important; font-size: .78rem !important; }
}

/* ══════════════════════════════════════════════
   HERO BANNER — App-style (no slider)
══════════════════════════════════════════════ */
.app-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0F0A05 0%, #1A1410 40%, #2D2419 100%);
  padding: 2.25rem 1.25rem 1.75rem;
  margin-bottom: 0;
}
.app-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(201,169,97,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(201,169,97,.08) 0%, transparent 70%);
  pointer-events: none;
}
.app-hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 1rem;
}
.app-hero-greeting {
  font-size: .8rem; font-weight: 600;
  color: rgba(201,169,97,.7);
  letter-spacing: .08em; text-transform: uppercase;
}
.app-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800; color: white; line-height: 1.2;
}
.app-hero-title span { color: var(--gold); }
.app-hero-sub {
  font-size: .85rem; color: rgba(255,255,255,.55);
  line-height: 1.6; max-width: 320px;
}
.app-hero-actions {
  display: flex; gap: .65rem; flex-wrap: wrap; align-items: center;
}
.app-hero-stats {
  display: flex; gap: 1.5rem; padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.app-hero-stat strong {
  display: block; font-size: 1.2rem; font-weight: 900; color: var(--gold);
}
.app-hero-stat span { font-size: .7rem; color: rgba(255,255,255,.45); }

/* ══════════════════════════════════════════════
   CATEGORY CHIPS — Horizontal scroll
══════════════════════════════════════════════ */
.cat-chips-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--beige-dark);
  position: relative;
  top: auto;
  z-index: 90;
  overflow: hidden;
  margin: .85rem 0 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--beige-dark);
}
.cat-chips-scroll {
  display: flex; gap: .5rem;
  overflow-x: auto; overflow-y: hidden;
  padding: .65rem 1rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.cat-chips-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .42rem .95rem;
  background: var(--beige); border: 1.5px solid transparent;
  border-radius: 50px; font-size: .8rem; font-weight: 700;
  color: var(--text-secondary); white-space: nowrap;
  text-decoration: none; transition: all .18s; flex-shrink: 0;
  scroll-snap-align: start;
}
.cat-chip:hover { border-color: var(--gold); color: var(--gold); }
.cat-chip.active {
  background: var(--gold); color: white;
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(201,169,97,.35);
}
.cat-chip-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201,169,97,.12);
  color: var(--gold);
  font-size: .82rem;
  flex: 0 0 auto;
}
.cat-chip.active .cat-chip-icon {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.cat-chip-label {
  min-width: 0;
}
.cat-chip-count {
  font-size: .66rem; font-weight: 800; opacity: .7;
  background: rgba(0,0,0,.08); padding: .1rem .35rem; border-radius: 50px;
}
.cat-chip.active .cat-chip-count { background: rgba(255,255,255,.25); }

#shopResults {
  position: relative;
}

.shop-filter-panel {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) minmax(92px, .7fr) minmax(92px, .7fr) auto auto auto;
  align-items: end;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px;
  background: color-mix(in srgb, var(--surface) 92%, var(--gold) 8%);
  border: 1px solid var(--beige-dark);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.shop-filter-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.shop-filter-field span {
  color: var(--text-secondary);
  font-size: .68rem;
  font-weight: 800;
}

.shop-filter-field select,
.shop-filter-field input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--beige-dark);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: .84rem;
  outline: none;
  padding: 0 10px;
}

.shop-filter-field select:focus,
.shop-filter-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, .13);
}

.shop-stock-toggle {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--beige-dark);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.shop-stock-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shop-stock-toggle span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--beige);
  color: transparent;
  font-size: .68rem;
}

.shop-stock-toggle:has(input:checked) {
  border-color: rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .08);
}

.shop-stock-toggle:has(input:checked) span {
  background: #22c55e;
  color: #fff;
}

.shop-filter-apply,
.shop-filter-clear {
  height: 40px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}

.shop-filter-apply {
  padding: 0 14px;
  background: var(--gold);
  color: #fff;
}

.shop-filter-clear {
  width: 40px;
  background: rgba(239, 68, 68, .1);
  color: #b91c1c;
}

#shopResults.is-loading {
  min-height: 280px;
}

#shopResults.is-loading .products-grid,
#shopResults.is-loading .empty-state,
#shopResults.is-loading .pagination {
  opacity: .35;
  pointer-events: none;
}

.shop-loading-layer {
  position: absolute;
  inset: 58px 0 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  color: var(--gold);
  font-size: 1.8rem;
  z-index: 4;
  pointer-events: none;
}

#shopResults.is-loading .shop-loading-layer {
  display: flex;
}

/* ══════════════════════════════════════════════
   SECTION HEADERS — App-style
══════════════════════════════════════════════ */
.app-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0 .75rem;
}
.app-section-title {
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; gap: .45rem;
}
.app-section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--gold);
  border-radius: 99px; display: block;
}
.app-section-link {
  font-size: .78rem; font-weight: 600;
  color: var(--gold); display: flex; align-items: center; gap: .3rem;
}

.intent-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: .15rem 0 1rem;
}

.intent-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--beige-dark);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}

.intent-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,97,.55);
}

.intent-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(201,169,97,.12);
  color: var(--gold);
}

.intent-chip b,
.intent-chip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intent-chip b {
  font-size: .86rem;
  font-weight: 900;
}

.intent-chip small {
  margin-top: .14rem;
  color: var(--text-secondary);
  font-size: .68rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   FLASH DEALS STRIP — Horizontal scroll
══════════════════════════════════════════════ */
.flash-strip {
  overflow: hidden; position: relative;
}
.flash-strip-scroll {
  display: flex; gap: .75rem; padding: .25rem 0 .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.flash-strip-scroll::-webkit-scrollbar { display: none; }
.flash-card {
  flex-shrink: 0; width: 155px;
  background: var(--surface); border-radius: 16px;
  overflow: hidden; border: 1px solid var(--beige-dark);
  scroll-snap-align: start; transition: transform .2s;
  position: relative;
}
.flash-card:active { transform: scale(.96); }
.flash-card-img {
  height: 155px; overflow: hidden;
  background: var(--cream-mid);
  position: relative;
}
.flash-card-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-card-discount {
  position: absolute; top: .45rem; right: .45rem;
  background: var(--red); color: white;
  font-size: .65rem; font-weight: 800;
  padding: .18rem .45rem; border-radius: 50px;
}
.flash-card-body { padding: .6rem .7rem; }
.flash-card-name { font-size: .78rem; font-weight: 700; margin-bottom: .25rem; line-height: 1.3; }
.flash-card-price { font-size: .88rem; font-weight: 900; color: var(--gold); }
.flash-card-old   { font-size: .7rem; color: var(--text-secondary); text-decoration: line-through; }

/* ══════════════════════════════════════════════
   PROMO BANNER CARDS
══════════════════════════════════════════════ */
.promo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
  margin-bottom: 1rem;
}
.promo-card {
  border-radius: 16px; overflow: hidden;
  position: relative; aspect-ratio: 4/3;
  display: flex; align-items: flex-end;
  text-decoration: none; color: white;
}
.promo-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.promo-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%);
}
.promo-card-content {
  position: relative; z-index: 1;
  padding: .85rem .75rem;
}
.promo-card-label {
  font-size: .68rem; font-weight: 700; color: var(--gold);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .2rem;
}
.promo-card-title { font-size: .9rem; font-weight: 800; line-height: 1.3; }

/* ══════════════════════════════════════════════
   TRUST BADGES — App-style horizontal
══════════════════════════════════════════════ */
.trust-strip {
  display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0;
  scrollbar-width: none;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .95rem; flex-shrink: 0;
  background: var(--beige); border-radius: 50px;
  font-size: .76rem; font-weight: 600; color: var(--text-secondary);
  border: 1px solid var(--beige-dark);
}
.trust-pill i { color: var(--gold); font-size: .85rem; }

/* ══════════════════════════════════════════════
   BOTTOM NAV — True app style
══════════════════════════════════════════════ */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--beige-dark);
  display: none;
  z-index: 300;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
@media (max-width: 768px) { .mobile-bottom-nav { display: flex !important; } }
@media (display-mode: standalone) { .mobile-bottom-nav { display: flex !important; } }

.mob-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .22rem; padding: .5rem .25rem;
  font-size: .6rem; font-weight: 600;
  color: var(--text-secondary); background: none; border: none;
  cursor: pointer; text-decoration: none; transition: color .15s;
  position: relative; overflow: hidden;
}
.mob-nav-item.active { color: var(--gold); }
.mob-nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2.5px;
  background: var(--gold); border-radius: 0 0 4px 4px;
}
.mob-nav-item i { font-size: 1.25rem; transition: transform .2s; }
.mob-nav-item.active i { transform: scale(1.1); }
.mob-nav-item:active i { transform: scale(.9); }
.mob-nav-badge {
  position: absolute; top: .35rem; left: calc(50% + 6px);
  background: var(--red); color: white;
  font-size: .55rem; font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: 50px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid var(--surface);
}

/* Cart button — highlighted */
.mob-nav-cart-wrap {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: white;
  box-shadow: 0 4px 14px rgba(201,169,97,.45);
  transition: transform .2s, box-shadow .2s;
}
.mob-nav-item.cart-item { flex: 1.2; }
.mob-nav-item.cart-item:active .mob-nav-cart-wrap { transform: scale(.9); }

/* Body bottom padding for nav */
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom)) !important; }
}

/* ══════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════ */
#splashScreen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0A0705 0%, #1A1410 45%, #2D2419 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.25rem;
  transition: opacity .6s ease, visibility .6s ease;
}
#splashScreen.hiding {
  opacity: 0; visibility: hidden;
}
.splash-logo-wrap {
  animation: splashFloat 2s ease-in-out infinite;
}
@keyframes splashFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.splash-diamond {
  font-size: 4.5rem; filter: drop-shadow(0 0 24px rgba(201,169,97,.5));
}
.splash-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--gold); letter-spacing: .06em;
  text-shadow: 0 2px 16px rgba(201,169,97,.35);
}
.splash-sub {
  font-size: .8rem; color: rgba(255,255,255,.4);
  letter-spacing: .15em; text-transform: uppercase;
}
.splash-bar {
  width: 48px; height: 2.5px; border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: splashShimmer 1.8s ease-in-out infinite;
}
@keyframes splashShimmer {
  0%,100% { opacity: .3; transform: scaleX(.5); }
  50%     { opacity: 1; transform: scaleX(1); }
}
.splash-img {
  max-height: 130px; max-width: 260px; object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.4));
}

/* ══════════════════════════════════════════════
   HEADER — App-style
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header {
    height: auto !important;
    padding: calc(.5rem + var(--safe-top)) 1rem .5rem !important;
    position: sticky; top: 0; z-index: 200;
  }
  .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center; gap: .75rem;
  }

  /* Logo centered on mobile */
  .site-logo {
    grid-column: 2; text-align: center; margin: 0 !important;
  }
  .site-logo .logo-name { font-size: 1.15rem !important; }

  /* Search bar full-width below */
  .header-search-bar {
    grid-column: 1 / -1;
    position: relative !important;
    top: 0 !important; width: 100% !important;
    background: var(--beige) !important;
    border-radius: 50px !important;
    padding: .45rem 1rem !important;
    margin-top: .35rem;
    display: flex !important; align-items: center; gap: .5rem;
  }
  .header-search-bar input {
    background: transparent !important; border: none !important;
    outline: none; font-size: .85rem; flex: 1;
  }
  #headerSearchBar { display: flex !important; }

  .menu-toggle { display: none !important; }
}

/* ══════════════════════════════════════════════
   ANNOUNCEMENT BAR — App-style
══════════════════════════════════════════════ */
.announcement-bar {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
  background-size: 200% 100%;
  animation: announcementShimmer 4s ease infinite;
  color: white; text-align: center;
  font-size: .78rem; font-weight: 700;
  padding: .45rem 1rem; line-height: 1.4;
  letter-spacing: .03em;
}
@keyframes announcementShimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.page-home > .announcement-bar {
  display: none;
}

#mainContent {
  position: relative;
}

.home-shipping-corner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 10px var(--app-side-gap) 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(201, 169, 97, .35);
  box-shadow: 0 12px 28px rgba(26, 20, 16, .12);
  color: var(--text-primary);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  z-index: 25;
  backdrop-filter: blur(14px);
}

.home-shipping-corner i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: white;
  font-size: .8rem;
  flex: 0 0 auto;
}

body.dark .home-shipping-corner {
  background: rgba(30, 25, 18, .9);
  border-color: rgba(201, 169, 97, .28);
}

/* ══════════════════════════════════════════════
   PULL-TO-REFRESH indicator
══════════════════════════════════════════════ */
.ptr-indicator {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: white;
  padding: .4rem .85rem; border-radius: 0 0 50px 50px;
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; gap: .4rem;
  z-index: 1000; transition: transform .3s ease;
  transform: translateX(-50%) translateY(-100%);
}
.ptr-indicator.show { transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════
   FILTER BAR — App-style
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .filter-bar {
    background: var(--surface);
    padding: .6rem 1rem;
    margin: 0 -1rem .75rem !important;
    border-bottom: 1px solid var(--beige-dark);
    position: sticky; top: calc(var(--header-h) + 42px); z-index: 85;
    gap: .5rem !important;
  }
  .sort-select {
    font-size: .78rem !important; height: 32px !important;
    padding: .2rem .5rem !important;
  }
  .filter-tag {
    padding: .22rem .65rem !important; font-size: .72rem !important;
  }
}

/* ══════════════════════════════════════════════
   TOAST — Bottom on mobile (above nav)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .toast-container {
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .75rem) !important;
    top: auto !important;
    left: 1rem !important; right: 1rem !important;
  }
  .toast { max-width: 100% !important; }
}

/* ══════════════════════════════════════════════
   CART DRAWER — Full screen on mobile
══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .cart-drawer {
    width: 100vw !important;
    border-radius: 0 !important;
  }
}

/* ══════════════════════════════════════════════
   EMPTY STATE — App style
══════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 1.5rem; text-align: center;
  min-height: 40vh;
}
.empty-state-icon {
  width: 90px; height: 90px; border-radius: 24px;
  background: var(--beige); display: flex;
  align-items: center; justify-content: center;
  font-size: 2.5rem; margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* ══════════════════════════════════════════════
   PWA INSTALL BANNER — App style
══════════════════════════════════════════════ */
.pwa-banner {
  position: fixed; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + .75rem);
  left: 1rem; right: 1rem; z-index: 250;
  background: var(--surface); border-radius: 16px;
  padding: .85rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border: 1px solid var(--beige-dark);
  display: flex; align-items: center; gap: .85rem;
  animation: slideUp .4s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:none;opacity:1} }
.pwa-banner.hidden { display: none; }
.pwa-banner-icon { font-size: 2rem; }
.pwa-banner-title { font-weight: 800; font-size: .88rem; }
.pwa-banner-desc  { font-size: .75rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════════
   SEARCH AUTOCOMPLETE — App style
══════════════════════════════════════════════ */
#searchAutocomplete {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 500; overflow: hidden; border: 1px solid var(--beige-dark);
  border-top: none; max-height: 70vh; overflow-y: auto;
}
.ac-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 1rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--beige-dark); transition: background .15s;
}
.ac-item:hover { background: var(--beige); }
.ac-item:last-child { border-bottom: none; }
.ac-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--beige); font-size: 1.2rem;
}
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-info { flex: 1; min-width: 0; }
.ac-name { font-weight: 700; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-brand { font-size: .72rem; color: var(--text-secondary); margin-top: .1rem; }
.ac-price { font-weight: 800; color: var(--gold); font-size: .88rem; white-space: nowrap; }
.ac-see-all {
  display: block; padding: .85rem; text-align: center;
  font-size: .82rem; font-weight: 700; color: var(--gold);
  background: var(--beige); border-top: 1px solid var(--beige-dark);
}

/* ══════════════════════════════════════════════
   HOME BANNERS SLIDER — Native swipe feel
══════════════════════════════════════════════ */
.banner-slider {
  overflow: hidden; border-radius: 16px;
  margin-bottom: 1rem; position: relative;
}
.banner-track {
  display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.banner-slide {
  min-width: 100%; border-radius: 16px; overflow: hidden;
  position: relative; aspect-ratio: 16/7;
}
@media (max-width: 640px) { .banner-slide { aspect-ratio: 4/3; } }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide-content {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.65) 0%, transparent 65%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.25rem;
  color: white;
}
.banner-slide-label {
  font-size: .7rem; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem;
}
.banner-slide-title {
  font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 800; margin-bottom: .65rem; line-height: 1.25;
}
.banner-dots {
  display: flex; gap: .35rem; justify-content: center; margin-top: .6rem;
}
.banner-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--beige-dark);
  transition: all .25s; cursor: pointer;
}
.banner-dot.active {
  width: 20px; border-radius: 99px; background: var(--gold);
}

/* ══════════════════════════════════════════════
   APP-LIKE PAGE TRANSITIONS
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  main { animation: none !important; transform: none !important; }
  @keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ══════════════════════════════════════════════
   DARK MODE MOBILE ENHANCEMENTS
══════════════════════════════════════════════ */
body.dark .mobile-bottom-nav {
  background: #1E1912;
  border-top-color: #2E261D;
  box-shadow: 0 -8px 24px rgba(0,0,0,.4);
}
body.dark .cat-chip {
  background: #2E261D; border-color: transparent;
}
body.dark .product-card {
  box-shadow: 0 2px 12px rgba(0,0,0,.3) !important;
}
body.dark .app-hero {
  background: linear-gradient(145deg, #060402 0%, #0F0A05 40%, #1A1410 100%);
}

/* ══════════════════════════════════════════════
   BACK-TO-TOP
══════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 1rem);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 4px 14px rgba(201,169,97,.4);
  transition: all .25s; opacity: 0; visibility: hidden;
  z-index: 200;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }

/* ── WA Float ── */


/* ── SLIDER: Mobile size fix ──────────────────────── */
@media (max-width: 768px) {
  /* Slider — max 55% viewport height on mobile */
  .slider-section, .swiper, [class*="slider"] { max-height: 55vw !important; overflow: hidden; }
  .slider-section img, .swiper img { max-height: 55vw; object-fit: cover; }
  .banner-slide { aspect-ratio: 16/9 !important; }

  /* App feel on ALL inner pages */
  body {
    overscroll-behavior-y: contain; /* prevent pull-to-refresh flash */
    -webkit-overflow-scrolling: touch;
  }

  /* Wishlist — app feel */
  .wishlist-empty { padding: 3rem 1.5rem; }
  .wishlist-empty-icon { font-size: 4rem; }

  /* Account — app feel */
  .account-layout { gap: .75rem; }
  .account-card { border-radius: 16px; }

  /* Track — app feel */
  .track-page .container { padding: 0; }

  /* Login — full screen on mobile */
  .auth-page-wrap { min-height: 100dvh; padding-top: env(safe-area-inset-top); }
  .auth-card { border-radius: 0 !important; min-height: 100dvh; border: none !important; box-shadow: none !important; }

  /* All pages — add bottom nav padding */
  .section, .section-sm, section { padding-bottom: 2rem !important; }
}

/* ── ALL PAGES: App-feel wrapper ──────────────────── */
body {
  /* Smooth scrolling */
  scroll-behavior: smooth;
}

/* Page transition animation */
main { animation: pageIn .2s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── DESKTOP: Real app look ───────────────────────── */
@media (min-width: 769px) {
  /* Wider container on large screens */
  .container { max-width: 1200px; }

  /* Product grid — 4 cols on large desktop */
  @media (min-width: 1280px) {
    .products-grid { grid-template-columns: repeat(4,1fr) !important; }
  }

  /* Sidebar-style account on desktop */
  .account-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }

  /* Header subtle hover on nav */
  .main-nav-link { letter-spacing: .01em; }
}

/* ── STICKY BOTTOM NAV on ALL pages (not just homepage) ── */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex !important; }
}

/* ==========================================================================
   ZAYTOON APP SHELL V1
   A focused app-like layer applied after the older mobile rules.
   ========================================================================== */
:root {
  --app-max-width: 430px;
  --app-side-gap: 14px;
  --app-soft-shadow: 0 14px 34px rgba(26, 20, 16, .10);
}

@media (max-width: 768px) {
  html {
    background: var(--bg);
  }

  body {
    min-height: 100dvh;
    background:
      linear-gradient(180deg, rgba(201, 169, 97, .08), transparent 220px),
      var(--bg);
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px) !important;
  }

  #mainContent {
    overflow: hidden;
    animation: none !important;
    transform: none !important;
  }

  .container {
    width: 100%;
    padding-inline: var(--app-side-gap) !important;
  }

  .site-header {
    height: auto !important;
    min-height: calc(58px + var(--safe-top));
    padding: calc(8px + var(--safe-top)) var(--app-side-gap) 8px !important;
    background: rgba(250, 247, 242, .86) !important;
    border-bottom: 1px solid rgba(228, 218, 208, .72) !important;
    box-shadow: 0 8px 24px rgba(26, 20, 16, .06);
  }

  body.dark .site-header {
    background: rgba(17, 14, 10, .88) !important;
  }

  .header-inner {
    height: auto !important;
    min-height: 42px;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    grid-column: 1;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--beige-dark);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
  }

  .menu-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text-primary);
    display: block;
  }

  .site-logo {
    grid-column: 2;
    min-width: 0;
    justify-content: center;
    gap: 8px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    box-shadow: 0 8px 18px rgba(201, 169, 97, .24);
  }

  .logo-text {
    min-width: 0;
  }

  .logo-name {
    display: block;
    font-family: var(--font-body) !important;
    font-size: .96rem !important;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-tag {
    display: block;
    font-size: .56rem;
    line-height: 1.2;
    color: var(--text-secondary);
    text-transform: uppercase;
  }

  .main-nav,
  .header-lang-btn,
  .header-actions .desktop-only,
  .header-actions a[href*="login.php"],
  .header-actions a[href*="account.php"] {
    display: none !important;
  }

  .header-actions {
    grid-column: 3;
    gap: 6px !important;
    margin: 0 !important;
  }

  .header-icon-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--beige-dark) !important;
    box-shadow: var(--shadow-sm);
  }

  .header-search-wrap {
    position: fixed;
    inset: calc(8px + var(--safe-top)) var(--app-side-gap) auto;
    z-index: 420;
    padding: 0 !important;
  }

  .header-search-wrap .container {
    padding: 0 !important;
  }

  .header-search-form {
    height: 48px;
    border-radius: 18px !important;
    background: var(--surface) !important;
    box-shadow: 0 16px 42px rgba(26, 20, 16, .18);
  }

  .announcement-bar {
    margin: 8px var(--app-side-gap) 0;
    border-radius: 16px;
    padding: 8px 12px !important;
    box-shadow: 0 10px 22px rgba(201, 169, 97, .18);
  }

  .hero-slider {
    height: 300px !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 10px var(--app-side-gap) 0;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(145deg, #0f0a05, #1a1410 55%, #2d2419) !important;
    box-shadow: var(--app-soft-shadow);
  }

  .slider-track,
  .slide {
    height: 100% !important;
    min-height: 0 !important;
  }

  .slide {
    position: relative !important;
    display: none;
    aspect-ratio: auto;
    min-height: 300px !important;
    opacity: 1 !important;
    z-index: 0 !important;
    pointer-events: none;
  }

  .slide.active {
    display: block;
    z-index: 4 !important;
    pointer-events: auto;
  }

  .slide-bg,
  .slide-bg img,
  .slide-gradient-bg,
  .slide-content {
    position: absolute !important;
    inset: 0;
    height: 100% !important;
  }

  .slide-bg {
    z-index: 0 !important;
    pointer-events: none !important;
  }

  .slide-gradient-bg {
    min-height: 100% !important;
    background: linear-gradient(145deg, #0f0a05, #1a1410 55%, #2d2419) !important;
  }

  .slide-overlay {
    background: linear-gradient(180deg, rgba(15, 10, 5, .12), rgba(15, 10, 5, .78) 78%) !important;
  }

  .slide-content {
    display: flex !important;
    align-items: center !important;
    padding-bottom: 0;
    z-index: 2 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 10, 5, .12) 38%, rgba(15, 10, 5, .80) 100%);
    pointer-events: auto !important;
  }

  .slide-content .container {
    padding: 0 !important;
  }

  .slide-inner {
    display: block !important;
    padding: 24px !important;
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
  }

  .slide-text {
    text-align: center;
    max-width: 310px;
    margin-inline: auto;
  }

  .hero-slider .reveal,
  .hero-slider .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .slide-title {
    font-family: var(--font-body) !important;
    font-size: clamp(1.65rem, 9vw, 2.3rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
  }

  .slide-desc {
    font-size: .9rem !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
    max-width: 290px;
  }

  .slide-actions {
    display: none !important;
  }

  .slide-visual,
  .slide-accent-line,
  .slider-btn,
  .slider-progress {
    display: none !important;
  }

  .slider-dots {
    bottom: 14px !important;
    inset-inline: 0;
    justify-content: center;
  }

  .slider-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 99px !important;
    background: rgba(255,255,255,.45) !important;
  }

  .slider-dot.active {
    width: 24px !important;
    background: var(--gold) !important;
  }

  .cat-chips-bar {
    top: calc(58px + var(--safe-top)) !important;
    margin-top: 0;
    background: rgba(250, 247, 242, .92) !important;
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(228, 218, 208, .6) !important;
  }

  body.dark .cat-chips-bar {
    background: rgba(17, 14, 10, .9) !important;
  }

  .cat-chips-scroll {
    padding: 10px var(--app-side-gap) !important;
  }

  .cat-chip {
    border-radius: 15px !important;
    padding: 9px 12px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm);
  }

  .cat-chip.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep)) !important;
  }

  .trust-strip,
  .flash-strip,
  .promo-grid,
  .products-grid,
  .empty-state,
  .pagination {
    margin-inline: 0 !important;
  }

  .app-section-head {
    padding: 16px 0 10px !important;
  }

  .app-section-title {
    font-size: 1.05rem !important;
  }

  .intent-strip {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px !important;
  }

  .intent-strip::-webkit-scrollbar {
    display: none;
  }

  .intent-chip {
    flex: 0 0 168px;
    border-radius: 17px !important;
    padding: 10px !important;
  }

  .intent-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .flash-card {
    width: 148px !important;
    border-radius: 20px !important;
    border: 0 !important;
    box-shadow: var(--shadow-sm);
  }

  .flash-card-img {
    height: 148px !important;
  }

  .promo-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .promo-card {
    min-height: 120px !important;
    border-radius: 22px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  form[method="get"] {
    height: 48px !important;
    border-radius: 17px !important;
    margin-bottom: 14px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm);
  }

  .shop-filter-panel {
    display: flex !important;
    align-items: end !important;
    gap: 8px !important;
    padding: 8px !important;
    margin-bottom: 14px !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-radius: 17px !important;
  }

  .shop-filter-panel::-webkit-scrollbar {
    display: none;
  }

  .shop-filter-field {
    flex: 0 0 112px;
  }

  .shop-filter-field--brand {
    flex-basis: 174px;
  }

  .shop-filter-field select,
  .shop-filter-field input,
  .shop-stock-toggle,
  .shop-filter-apply,
  .shop-filter-clear {
    height: 42px;
  }

  .shop-filter-apply {
    flex: 0 0 auto;
  }

  .sort-select {
    height: 38px !important;
    border-radius: 13px !important;
    background: var(--surface) !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .product-card {
    border-radius: 22px !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .product-img-wrap {
    aspect-ratio: 1 / 1.08 !important;
  }

  .product-info {
    padding: 9px 10px 12px !important;
  }

  .product-name {
    font-size: .84rem !important;
    min-height: 2.28em;
  }

  .product-price-wrap {
    align-items: center;
    gap: 5px !important;
  }

  .product-price {
    font-size: .94rem !important;
  }

  .mobile-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 8px;
    width: auto;
    height: calc(66px + var(--safe-bottom));
    padding: 6px 6px var(--safe-bottom);
    border-radius: 24px;
    border: 1px solid rgba(228, 218, 208, .82);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(26, 20, 16, .18);
  }

  body.dark .mobile-bottom-nav {
    background: rgba(30, 25, 18, .92);
  }

  .mob-nav-item {
    border-radius: 18px;
    font-size: .61rem;
    min-width: 0;
  }

  .mob-nav-item.active {
    background: var(--gold-dim);
  }

  .mob-nav-item.active::before {
    display: none;
  }

  .mob-nav-cart-wrap {
    width: 48px;
    height: 48px;
  }

  .site-footer {
    display: none !important;
  }

  .back-to-top {
    bottom: calc(86px + var(--safe-bottom)) !important;
  }
}

@media (min-width: 769px) {
  body {
    background:
      radial-gradient(circle at 18% 12%, rgba(201, 169, 97, .13), transparent 30%),
      radial-gradient(circle at 82% 0%, rgba(59, 130, 246, .08), transparent 28%),
      var(--bg);
  }

  .site-header,
  #mainContent,
  .site-footer {
    max-width: 1180px;
    margin-inline: auto;
  }

  .site-header {
    top: 16px;
    border-radius: 24px;
    border: 1px solid rgba(228, 218, 208, .9);
    box-shadow: 0 18px 46px rgba(26, 20, 16, .08);
    overflow: hidden;
  }

  #mainContent {
    margin-top: 18px;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
  }

  .hero-slider {
    height: min(70vh, 620px);
    min-height: 520px;
    border-radius: 30px;
    margin: 0;
    box-shadow: var(--app-soft-shadow);
  }

  .cat-chips-bar {
    border-radius: 0 0 24px 24px;
  }

  .site-footer {
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    margin-bottom: 28px;
  }
}

@media (min-width: 769px) {
  body {
    background: var(--bg);
  }

  .site-header,
  #mainContent,
  .site-footer {
    max-width: 1240px;
  }

  #mainContent {
    margin-top: 18px;
    border-radius: 0;
    overflow: visible;
  }

  .hero-slider {
    height: 440px !important;
    min-height: 440px !important;
    max-height: 440px !important;
    border-radius: 18px !important;
    margin: 0 0 22px !important;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(26, 20, 16, .12) !important;
  }

  .home-shipping-corner {
    position: absolute;
    top: 24px;
    inset-inline-end: 28px;
    margin: 0;
    padding: 10px 16px 10px 10px;
    min-height: 48px;
    max-width: 320px;
    background: rgba(255, 255, 255, .88);
  }

  [dir="ltr"] .home-shipping-corner {
    padding: 10px 10px 10px 16px;
  }

  .slide-content {
    max-width: 520px !important;
    padding-inline: 48px !important;
  }

  .slide-title {
    font-size: clamp(2.25rem, 4vw, 4rem) !important;
    line-height: 1.08 !important;
  }

  .slide-desc {
    max-width: 460px !important;
    font-size: 1rem !important;
  }

  .cat-chips-bar {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    margin: 18px 0 24px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    backdrop-filter: none !important;
  }

  body.dark .cat-chips-bar {
    background: transparent !important;
  }

  .cat-chips-scroll {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  .cat-chip {
    min-height: 54px;
    justify-content: center;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    background: var(--surface) !important;
    border: 1px solid var(--beige-dark) !important;
    box-shadow: 0 6px 18px rgba(26, 20, 16, .05) !important;
    flex-shrink: 1 !important;
    white-space: normal !important;
    text-align: center;
  }

  .cat-chip-icon {
    width: 34px;
    height: 34px;
    font-size: .95rem;
  }

  .cat-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 20, 16, .08) !important;
  }

  .cat-chip.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-deep)) !important;
    border-color: transparent !important;
    color: #fff !important;
  }

  .app-section-head {
    padding: 20px 0 14px !important;
  }

  .app-section-title {
    font-size: 1.3rem !important;
  }

  .app-section-title::before {
    height: 22px;
  }

  .flash-strip {
    overflow: visible !important;
    margin-bottom: 16px !important;
  }

  .flash-strip-scroll {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px !important;
    overflow: visible !important;
    padding: 0 0 12px !important;
    scroll-snap-type: none !important;
  }

  .flash-card {
    width: auto !important;
    min-width: 0;
    border-radius: 14px !important;
    border: 1px solid var(--beige-dark) !important;
    box-shadow: 0 8px 22px rgba(26, 20, 16, .06) !important;
    flex-shrink: 1 !important;
  }

  .flash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(26, 20, 16, .1) !important;
  }

  .flash-card-img {
    height: 210px !important;
  }

  .flash-card-body {
    padding: 12px 14px 14px !important;
  }

  .flash-card-name {
    font-size: .9rem !important;
    min-height: 2.35em;
  }

  .flash-card-price {
    font-size: 1rem !important;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-slider {
    height: 390px !important;
    min-height: 390px !important;
    max-height: 390px !important;
  }

  .flash-strip-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flash-card-img {
    height: 185px !important;
  }
}

@media (min-width: 769px) {
  #mainContent {
    max-width: none !important;
    width: 100% !important;
    margin-top: 16px;
  }

  .hero-slider {
    width: 100% !important;
    height: clamp(460px, 48vw, 560px) !important;
    min-height: 460px !important;
    max-height: 560px !important;
    margin: 0 0 28px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #0f0a05;
  }

  .slider-track,
  .slide,
  .slide-bg,
  .slide-bg img,
  .slide-gradient-bg {
    height: 100% !important;
  }

  .slide-bg img {
    object-fit: cover;
    object-position: center;
  }

  .slide-overlay {
    background:
      linear-gradient(90deg, rgba(15, 10, 5, .88) 0%, rgba(15, 10, 5, .66) 35%, rgba(15, 10, 5, .18) 72%, rgba(15, 10, 5, .08) 100%) !important;
  }

  [dir="rtl"] .slide-overlay {
    background:
      linear-gradient(270deg, rgba(15, 10, 5, .88) 0%, rgba(15, 10, 5, .66) 35%, rgba(15, 10, 5, .18) 72%, rgba(15, 10, 5, .08) 100%) !important;
  }

  .slide-content {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 0 !important;
  }

  .slide-content .container {
    max-width: 1240px !important;
    width: 100%;
    padding-inline: 2rem !important;
  }

  .slide-inner {
    grid-template-columns: minmax(0, 540px) 1fr !important;
    gap: 48px !important;
    padding: 0 !important;
  }

  .slide-text {
    max-width: 540px;
  }

  .slide-title {
    font-size: clamp(2.4rem, 4.3vw, 4.45rem) !important;
    line-height: 1.04 !important;
    margin-bottom: 16px !important;
  }

  .slide-desc {
    max-width: 500px !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    margin-bottom: 26px !important;
  }

  .slide-actions {
    display: flex !important;
  }

  .slider-btn {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, .16) !important;
  }

  .slider-prev {
    inset-inline-start: max(18px, calc((100vw - 1240px) / 2 + 12px)) !important;
  }

  .slider-next {
    inset-inline-end: max(18px, calc((100vw - 1240px) / 2 + 12px)) !important;
  }

  .slider-dots {
    bottom: 22px !important;
  }

  .home-shipping-corner {
    top: 22px;
    inset-inline-end: max(26px, calc((100vw - 1240px) / 2 + 26px));
  }

  body > .container,
  main > .container,
  #mainContent > .container {
    max-width: 1240px;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .hero-slider {
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
  }

  .slide-content .container {
    padding-inline: 4.75rem !important;
  }

  .slide-title {
    font-size: clamp(2.15rem, 4vw, 3.45rem) !important;
  }

  .slide-desc {
    font-size: .98rem !important;
    max-width: 430px !important;
  }
}

.product-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content;
  height: auto !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  line-height: 1.2 !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

@media (max-width: 768px) {
  .product-badge {
    top: 8px !important;
    inset-inline-start: 8px !important;
    padding: 2px 7px !important;
    font-size: .58rem !important;
  }
}

/* FIX: keep mobile side menu/drawer above the dark backdrop */
.mobile-nav, .cart-drawer { z-index: 410 !important; }
.site-overlay { z-index: 390 !important; }
.menu-toggle { position: relative; z-index: 20; }

/* ==========================================================================
   PERLA MOBILE APP SHELL V2
   Native-feeling search, dock navigation, and mobile interaction polish.
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --bottom-nav-h: 72px;
    --app-dock-gap: 10px;
  }

  body {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body.app-search-active {
    overflow: hidden !important;
  }

  .mobile-bottom-nav {
    left: var(--app-dock-gap) !important;
    right: var(--app-dock-gap) !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    height: 64px !important;
    padding: 0 8px !important;
    border: 1px solid rgba(201,169,97,.2) !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.9) !important;
    box-shadow: 0 18px 44px rgba(26,20,16,.18) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  body.dark .mobile-bottom-nav {
    background: rgba(26,22,16,.9) !important;
    border-color: rgba(201,169,97,.22) !important;
  }

  .mob-nav-item {
    min-width: 0;
    height: 100%;
    border-radius: 18px !important;
    gap: 4px !important;
    font-size: .58rem !important;
    font-weight: 850 !important;
  }

  .mob-nav-item i {
    font-size: 1.08rem !important;
  }

  .mob-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mob-nav-item.active {
    background: rgba(201,169,97,.1);
  }

  .mob-nav-item.active::before {
    display: none !important;
  }

  .mob-nav-cart-wrap {
    width: 48px !important;
    height: 48px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 26px rgba(201,169,97,.34) !important;
  }

  .mob-nav-badge {
    top: -4px !important;
    inset-inline-end: -5px !important;
    left: auto !important;
    min-width: 18px !important;
    height: 18px !important;
  }

  .header-search-wrap {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    padding: calc(14px + env(safe-area-inset-top,0px)) 14px calc(18px + env(safe-area-inset-bottom,0px)) !important;
    background:
      linear-gradient(180deg, rgba(201,169,97,.12), transparent 210px),
      var(--bg) !important;
    overflow-y: auto;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  }

  .header-search-wrap:not([hidden]),
  .header-search-wrap.app-search-open {
    display: block !important;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-search-wrap .container {
    padding: 0 !important;
    max-width: none !important;
  }

  .header-search-form {
    height: 54px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) 44px !important;
    align-items: center;
    gap: 4px;
    padding: 0 6px !important;
    border: 1px solid rgba(201,169,97,.22) !important;
    border-radius: 20px !important;
    background: var(--surface) !important;
    box-shadow: 0 18px 48px rgba(26,20,16,.14) !important;
  }

  .header-search-icon,
  .header-search-close {
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: rgba(201,169,97,.1) !important;
    color: var(--gold) !important;
  }

  .header-search-input {
    min-width: 0;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    font-weight: 800;
    outline: 0 !important;
  }

  .app-search-quick {
    margin-top: 18px;
    padding: 0 2px;
  }

  .app-search-quick-title {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: .8rem;
    font-weight: 900;
  }

  .app-search-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-search-quick-row button {
    min-height: 38px;
    border: 1px solid rgba(201,169,97,.22);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-primary);
    padding: 0 13px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(26,20,16,.05);
  }

  #searchAutocomplete {
    position: static !important;
    display: block;
    max-height: none !important;
    margin-top: 14px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #searchAutocomplete[hidden] {
    display: none !important;
  }

  .ac-item {
    min-height: 72px;
    margin-bottom: 9px;
    padding: 10px !important;
    border: 1px solid var(--beige-dark) !important;
    border-radius: 18px !important;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(26,20,16,.06);
  }

  .ac-thumb {
    width: 52px !important;
    height: 52px !important;
    border-radius: 15px !important;
  }

  .ac-name {
    font-size: .9rem !important;
    font-weight: 900 !important;
  }

  .ac-price {
    font-size: .9rem !important;
  }

  .ac-empty,
  .ac-see-all {
    display: block;
    margin-top: 10px;
    padding: 14px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--beige-dark);
    color: var(--text-secondary);
    text-align: center;
    font-size: .86rem;
    font-weight: 800;
  }

  .ac-see-all {
    color: #fff !important;
    background: linear-gradient(135deg,var(--gold),var(--gold-deep)) !important;
    border-color: transparent !important;
    text-decoration: none;
  }

  .bottom-sheet {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    border-radius: 28px !important;
    max-height: calc(100dvh - 18px - env(safe-area-inset-top,0px)) !important;
    box-shadow: 0 -18px 58px rgba(0,0,0,.28) !important;
  }

  .sheet-head {
    padding: .7rem 1rem .85rem !important;
  }

  .sheet-title {
    font-size: .95rem !important;
  }

  .sheet-close {
    width: 38px !important;
    height: 38px !important;
    border-radius: 15px !important;
  }

  .sheet-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom,0px)) !important;
  }

  .product-card,
  .intent-chip,
  .cat-chip,
  .flash-card,
  .btn,
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  .product-card:active,
  .intent-chip:active,
  .cat-chip:active,
  .btn:active,
  .mob-nav-item:active {
    transform: scale(.97);
  }

  body.page-product {
    padding-bottom: calc(142px + env(safe-area-inset-bottom,0px)) !important;
  }

  body.page-product .product-app-promise {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    margin: -4px 0 14px;
  }

  body.page-product .product-app-promise span {
    min-width: 0;
    min-height: 42px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 7px 5px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(201,169,97,.18);
    color: var(--text-secondary);
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 8px 20px rgba(26,20,16,.05);
  }

  body.page-product .product-app-promise i {
    color: var(--gold);
    font-size: .86rem;
  }

  body.page-product .product-mobile-jumpbar {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    margin: 0 0 14px;
  }

  body.page-product .product-mobile-jumpbar a,
  body.page-product .product-mobile-jumpbar button {
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(201,169,97,.2);
    border-radius: 15px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: .73rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(26,20,16,.05);
  }

  body.page-product .product-mobile-jumpbar i {
    color: var(--gold);
  }

  body.page-product .mobile-app-panel {
    overflow: hidden;
    border-radius: 18px !important;
    background: var(--surface) !important;
    border: 1px solid rgba(201,169,97,.18) !important;
    box-shadow: 0 10px 26px rgba(26,20,16,.06);
    margin-bottom: 10px !important;
    padding: 0 !important;
  }

  body.page-product .mobile-panel-title,
  body.page-product .mobile-app-panel > .cat-info-title,
  body.page-product .mobile-app-panel > .shipping-info-title {
    min-height: 50px;
    margin: 0 !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-primary) !important;
    font-size: .88rem !important;
    font-weight: 950 !important;
    cursor: pointer;
  }

  body.page-product .mobile-panel-title::after,
  body.page-product .mobile-app-panel > .cat-info-title::after,
  body.page-product .mobile-app-panel > .shipping-info-title::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold);
    transition: transform .2s ease;
  }

  body.page-product .mobile-app-panel.is-collapsed > .mobile-panel-title::after,
  body.page-product .mobile-app-panel.is-collapsed > .cat-info-title::after,
  body.page-product .mobile-app-panel.is-collapsed > .shipping-info-title::after {
    transform: rotate(90deg);
  }

  body.page-product .mobile-app-panel > :not(.mobile-panel-title):not(.cat-info-title):not(.shipping-info-title) {
    padding-inline: 14px !important;
  }

  body.page-product .mobile-app-panel > :last-child {
    padding-bottom: 14px !important;
  }

  body.page-product .mobile-app-panel.is-collapsed > :not(.mobile-panel-title):not(.cat-info-title):not(.shipping-info-title) {
    display: none !important;
  }

  body.page-product .product-meta-row {
    padding: 10px 0 !important;
  }

  body.page-product .shipping-info-rows {
    padding-top: 2px;
  }

  body.page-product .sticky-buy-bar {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(80px + env(safe-area-inset-bottom,0px)) !important;
    border: 1px solid rgba(201,169,97,.2) !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(26,20,16,.2) !important;
    padding: 9px !important;
    gap: 8px !important;
  }

  body.dark.page-product .sticky-buy-bar {
    background: rgba(26,22,16,.94) !important;
  }

  body.page-product .sticky-buy-bar.visible {
    transform: translateY(0) !important;
  }

  body.page-product .sticky-buy-bar .btn {
    min-width: 44px;
    white-space: nowrap;
  }

  body.page-product .sticky-buy-bar .btn-primary {
    border-radius: 16px !important;
  }

  body.page-product .sticky-ai-btn {
    width: 46px;
    flex: 0 0 46px;
  }

  #pwaBanner.pwa-banner {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(88px + env(safe-area-inset-bottom,0px)) !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(201,169,97,.24) !important;
    background: rgba(255,255,255,.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(26,20,16,.2) !important;
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }

  body.dark #pwaBanner.pwa-banner {
    background: rgba(26,22,16,.94) !important;
  }

  #pwaBanner.pwa-banner.hidden {
    display: none !important;
  }

  #pwaBanner.pwa-banner.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  #pwaBanner .pwa-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg,var(--gold),var(--gold-deep));
    font-size: 1.25rem !important;
  }

  #pwaBanner .pwa-banner-copy {
    min-width: 0;
  }

  #pwaBanner .pwa-banner-title {
    color: var(--text-primary);
    font-size: .84rem !important;
    font-weight: 950 !important;
    line-height: 1.35;
  }

  #pwaBanner .pwa-banner-desc {
    color: var(--text-secondary);
    font-size: .7rem !important;
    line-height: 1.45;
    margin-top: 1px;
  }

  #pwaBanner .pwa-banner-status {
    color: var(--gold);
    font-size: .66rem;
    font-weight: 900;
    line-height: 1.35;
    margin-top: 3px;
  }

  #pwaBanner .pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  #pwaBanner .btn-sm {
    min-height: 42px;
    border-radius: 15px !important;
    white-space: nowrap;
    padding-inline: 12px;
    font-size: .78rem;
  }

  #pwaBanner .btn-icon {
    width: 42px;
    padding: 0;
  }

  @media (max-width: 360px) {
    #pwaBanner.pwa-banner {
      grid-template-columns: 42px minmax(0,1fr);
    }

    #pwaBanner .pwa-banner-actions {
      grid-column: 1 / -1;
      justify-content: stretch;
    }

    #pwaBanner .pwa-banner-actions .btn-primary {
      flex: 1;
    }
  }
}
