/* ===== TOKENS ===== */
:root {
  --color-ivory:        #FAF6EF;
  --color-charcoal:     #1A1A2E;
  --color-gold:         #B8860B;
  --color-copper:       #A0522D;
  --color-text:         #1A1A1A;
  --color-text-muted:   #8A7E6E;
  --color-card-border:  #EDE8E0;
  --color-card-bg:      #FFFFFF;
  --color-img-bg:       #FDF8F2;
  --color-whatsapp:     #25D366;

  --font-brand:      'Clash Display', sans-serif;
  --font-body:       'Archivo', sans-serif;
  --font-dev:        'Noto Sans Devanagari', 'Poppins', sans-serif;

  --radius-card:     16px;
  --radius-chip:     50px;
  --sidebar-w:       56px;
  --sidebar-w-open:  220px;

  --grad-brass:      linear-gradient(145deg, #F5DFA0, #C8960C);
  --grad-copper:     linear-gradient(145deg, #E8A882, #8B4513);
  --grad-kansa:      linear-gradient(145deg, #B8D4C8, #5F8E7E);
  --grad-aluminium:  linear-gradient(145deg, #D0DCE8, #7090A8);
  --grad-steel:      linear-gradient(145deg, #C8CCCC, #607070);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: -webkit-fill-available; }
body { height: 100%; min-height: -webkit-fill-available; overflow: hidden; font-family: var(--font-body); background: var(--color-ivory); color: var(--color-text); -webkit-font-smoothing: antialiased; }
#app { height: 100vh; height: 100dvh; min-height: -webkit-fill-available; overflow: hidden; transition: opacity 250ms ease-out; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
img { display: block; max-width: 100%; }

/* ===== UTILITIES ===== */
.brand-name { font-family: var(--font-brand); font-weight: 700; }
.dev { font-family: var(--font-dev); }
.hidden { display: none !important; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: rgba(26,26,26,0.92); color: #fff;
  padding: 10px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 500; z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity 200ms;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ===== PAGE 1: LANGUAGE SELECTOR ===== */
.lang-page {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
  background: var(--color-charcoal); padding: 0 24px;
}
.lang-brand {
  display: flex; justify-content: center; align-items: center;
  padding: max(64px, env(safe-area-inset-top) + 40px) 0 40px;
}
.lang-brand-name { font-size: 28px; color: #fff; letter-spacing: -0.5px; }
.lang-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.lang-title {
  font-family: var(--font-brand); font-size: 20px; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 6px;
}
.lang-subtitle { font-size: 14px; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 20px; }
.lang-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; height: 60px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer; transition: border-color 200ms, box-shadow 200ms;
}
.lang-card.active { box-shadow: 0 4px 20px rgba(184,134,11,0.25); }
.lang-card.active { border-color: var(--color-gold); }
.lang-card-left { display: flex; align-items: center; gap: 14px; }
.lang-flag { font-size: 22px; line-height: 1; }
.lang-label { font-size: 15px; font-weight: 500; color: #fff; }
.lang-label-sub { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.lang-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.lang-radio.checked { border-color: var(--color-gold); background: var(--color-gold); }
.lang-radio.checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.lang-footer { padding: 24px 0 max(40px, calc(env(safe-area-inset-bottom) + 24px)); }
.btn-continue {
  width: 100%; height: 54px; border: none; border-radius: var(--radius-chip);
  background: var(--color-gold); color: var(--color-text);
  font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(184,134,11,0.40);
  transition: opacity 200ms, box-shadow 200ms;
}
.btn-continue:active { opacity: 0.85; box-shadow: 0 2px 8px rgba(184,134,11,0.25); }

/* ===== PAGE 2: HOME — SIDEBAR (overlay drawer) ===== */
.home-wrap { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w-open);
  background: var(--color-ivory);
  display: flex; flex-direction: column;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  border-right: 1px solid var(--color-card-border);
}
.sidebar.open { transform: translateX(0); box-shadow: 6px 0 28px rgba(0,0,0,0.10); }

/* Sidebar header with brand name */
.sidebar-header {
  display: flex; align-items: center;
  padding: max(44px, env(safe-area-inset-top) + 12px) 20px 16px;
  border-bottom: 1px solid var(--color-card-border);
  flex-shrink: 0;
}
.sidebar-brand { font-size: 20px; color: var(--color-text); }

.sidebar-nav { flex: 1; width: 100%; display: flex; flex-direction: column; padding: 8px 12px; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-item {
  position: relative; display: flex; align-items: center; justify-content: flex-start;
  width: 100%; height: 44px; min-height: 44px; border: none; background: none;
  color: var(--color-text-muted); border-radius: 10px; padding: 0 2px 0 4px; gap: 4px;
  transition: color 150ms, background 150ms; flex-shrink: 0; cursor: pointer;
}
.sidebar-item:hover, .sidebar-item:active { color: var(--color-text); background: rgba(0,0,0,0.05); }
.sidebar-item.active { color: var(--color-gold); }
.sidebar-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px; background: var(--color-gold); border-radius: 0 2px 2px 0;
}

.si-icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.si-icon svg { width: 18px; height: 18px; }
.si-label { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; flex: 1; text-align: left; color: inherit; }
.si-chev { display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 4px; transition: transform 200ms; }
.sidebar-item.cat-open .si-chev { transform: rotate(90deg); }

/* Accordion sub-items */
.sidebar-sub-nav { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.sidebar-sub-nav.open { max-height: 200px; }
.sidebar-sub-item {
  display: flex; align-items: center; height: 34px;
  padding: 0 8px 0 48px; border: none; background: none;
  color: var(--color-text-muted); border-radius: 8px;
  font-size: 12px; font-weight: 500; width: 100%; cursor: pointer; text-align: left;
  transition: color 150ms, background 150ms; white-space: nowrap;
}
.sidebar-sub-item:hover, .sidebar-sub-item:active { color: var(--color-text); background: rgba(0,0,0,0.05); }

/* Backdrop for open sidebar */
.sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); z-index: 99;
}
.sidebar-backdrop.show { display: block; }

/* ===== PAGE 2: HOME — MAIN CONTENT ===== */
.main-content { flex: 1; overflow-y: auto; background: var(--color-ivory); -webkit-overflow-scrolling: touch; }

.home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(40px, env(safe-area-inset-top) + 12px) 20px 16px;
}
.home-brand { font-size: 30px; letter-spacing: -0.5px; color: var(--color-text); }
.home-topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-btn {
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: none; display: flex; align-items: center; justify-content: center;
  color: var(--color-text); cursor: pointer;
  transition: background 150ms;
}
.topbar-btn:active { background: rgba(0,0,0,0.07); }
.topbar-btn svg { width: 20px; height: 20px; }

.section-label {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--color-text-muted);
}
.section-label::before {
  content: ''; width: 3px; height: 14px; flex-shrink: 0;
  background: var(--color-gold); border-radius: 2px;
}

.scroll-strip {
  display: flex; gap: 12px; padding: 0 16px 20px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.scroll-strip::-webkit-scrollbar { display: none; }

/* Metal cards — large snap carousel */
.metal-strip {
  display: flex; gap: 16px; padding: 0 16px 20px 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.metal-strip::-webkit-scrollbar { display: none; }

.metal-card {
  flex-shrink: 0;
  width: calc(100vw - 68px);
  height: 420px; border-radius: 20px;
  padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer; scroll-snap-align: start;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.metal-card:active { transform: scale(0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.10); }
.metal-card--brass    { background: var(--grad-brass); }
.metal-card--copper   { background: var(--grad-copper); }
.metal-card--kansa    { background: var(--grad-kansa); }
.metal-card--aluminium{ background: var(--grad-aluminium); }
.metal-card--steel    { background: var(--grad-steel); }
.metal-card-name { font-family: var(--font-brand); font-size: 22px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.metal-card-count { font-size: 12px; font-weight: 500; color: rgba(26,26,26,0.6); margin-top: 5px; letter-spacing: 0.02em; }

/* Collection cards — vertical full-width stack */
.coll-strip { display: flex; flex-direction: column; gap: 12px; padding: 0 16px max(24px, calc(env(safe-area-inset-bottom) + 12px)); }
.coll-card {
  width: 100%; height: 180px; border-radius: 14px;
  background: linear-gradient(135deg, #F5E6C8, #D4A853);
  padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.coll-card:active { transform: scale(0.98); box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.coll-card--puja { background: linear-gradient(135deg, #E8D5C4, #C4865A); }
.coll-card-name { font-family: var(--font-brand); font-size: 15px; font-weight: 700; color: #1a1a1a; }
.coll-card-count { font-size: 12px; color: rgba(26,26,26,0.65); margin-top: 3px; }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-ivory);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.search-overlay.show { opacity: 1; pointer-events: auto; }
.search-head {
  display: flex; align-items: center; gap: 10px;
  padding: max(52px, env(safe-area-inset-top) + 14px) 16px 14px;
  background: #fff; flex-shrink: 0;
  border-bottom: 1px solid var(--color-card-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.search-field {
  flex: 1; position: relative; display: flex; align-items: center;
  background: var(--color-ivory); border-radius: 50px;
  border: 1.5px solid var(--color-card-border);
  transition: border-color 150ms, box-shadow 150ms;
}
.search-field:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.10);
}
.search-field svg { position: absolute; left: 14px; color: var(--color-text-muted); width: 16px; height: 16px; }
.search-input {
  width: 100%; height: 46px; border-radius: 50px;
  border: none; outline: none;
  background: transparent; color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  padding: 0 16px 0 42px;
}
.search-input::placeholder { color: var(--color-text-muted); opacity: 0.7; }
.search-close-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: none; border: 1.5px solid var(--color-card-border);
  color: var(--color-text-muted); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 150ms, color 150ms;
}
.search-close-btn:active { border-color: var(--color-text); color: var(--color-text); }
.search-results { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.search-empty {
  text-align: center; color: var(--color-text-muted);
  font-size: 14px; margin-top: 64px; padding: 0 32px; line-height: 1.7;
}
.search-results .product-grid { padding: 16px 14px max(28px, calc(env(safe-area-inset-bottom) + 14px)); }

/* ===== PAGE 3: PRODUCT LIST ===== */
.list-page { display: flex; flex-direction: column; height: 100vh; background: var(--color-ivory); }
.list-header { background: #fff; border-radius: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); flex-shrink: 0; }
.list-header-top { display: flex; align-items: center; gap: 12px; padding: max(40px, env(safe-area-inset-top) + 12px) 20px 16px; }
.list-section-title { font-family: var(--font-brand); font-size: 30px; font-weight: 700; color: var(--color-text); letter-spacing: -0.5px; flex: 1; line-height: 1.15; }

.list-filter-pills {
  display: flex; gap: 8px; padding: 8px 20px 20px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.list-filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0; padding: 7px 16px; border-radius: 50px;
  border: 1.5px solid var(--color-card-border); background: none;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--color-text-muted); cursor: pointer; white-space: nowrap;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.filter-pill.active { background: var(--color-gold); border-color: var(--color-gold); color: #fff; font-weight: 600; }
.filter-pill:not(.active):active { background: rgba(184,134,11,0.08); border-color: var(--color-gold); color: var(--color-gold); }

.back-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-card-border);
  background: none; display: flex; align-items: center; justify-content: center;
  color: var(--color-text); flex-shrink: 0; cursor: pointer;
}
.back-btn svg { width: 18px; height: 18px; }
.list-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 14px max(28px, calc(env(safe-area-inset-bottom) + 14px)); }

.product-card {
  background: var(--color-card-bg); border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card); overflow: hidden; cursor: pointer; position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  opacity: 0; animation: cardEnter 300ms ease-out forwards;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.product-card:active { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.13); }
.product-card-img { aspect-ratio: 4/5; background: var(--color-img-bg); overflow: hidden; border-radius: 0 0 14px 14px; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-info { padding: 10px; }
.product-card-name {
  font-size: 12px; font-weight: 700; color: var(--color-text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-mat {
  display: inline-block; margin-top: 6px;
  padding: 3px 8px; border-radius: 50px;
  background: #F0EBE3; font-size: 10px; font-weight: 500; color: var(--color-text-muted);
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE 4: PRODUCT DETAIL ===== */
.detail-page { height: 100vh; height: 100dvh; background: var(--color-ivory); position: relative; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.detail-img-wrap { width: 100%; aspect-ratio: 4/5; background: var(--color-img-bg); overflow: hidden; position: relative; }
.detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; padding-top: max(16px, env(safe-area-inset-top));
  pointer-events: none; /* let taps fall through the gap between buttons */
}
.detail-header .detail-hdr-btn { pointer-events: auto; }
.detail-hdr-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(4px);
  border: none; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.detail-hdr-btn svg { width: 18px; height: 18px; }
.detail-sheet {
  background: #fff; border-radius: 20px 20px 0 0;
  margin-top: -20px; position: relative; z-index: 5;
  padding: 24px 20px; min-height: calc(45vh + 20px);
  box-shadow: 0 -6px 30px rgba(0,0,0,0.10);
}
.detail-cat-chip {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 50px;
  border: 1.5px solid var(--color-gold);
  font-size: 11px; font-weight: 500; color: var(--color-gold);
  margin-bottom: 8px;
}
.detail-name { font-family: var(--font-brand); font-size: 20px; font-weight: 700; color: var(--color-text); line-height: 1.3; margin-bottom: 6px; }
.detail-material { font-size: 13px; color: var(--color-text-muted); margin-bottom: 24px; }
.detail-sec-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--color-text-muted); margin-bottom: 10px;
}
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.size-chip {
  padding: 6px 16px; border-radius: 50px;
  border: 1.5px solid var(--color-card-border);
  font-size: 12px; font-weight: 500; color: var(--color-text-muted);
  background: #fff; cursor: pointer; transition: border-color 200ms, color 200ms;
}
.size-chip.active { border-color: var(--color-gold); color: var(--color-gold); }
.sizes-note { font-size: 11px; color: var(--color-text-muted); margin-bottom: 24px; }
.detail-moq { font-size: 13px; color: var(--color-text); margin-bottom: 24px; }
.detail-moq span { color: var(--color-text-muted); }
.btn-whatsapp {
  width: 100%; height: 52px; border: none; border-radius: 14px;
  background: var(--color-whatsapp); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.38);
  transition: opacity 200ms, box-shadow 200ms;
}
.btn-whatsapp:active { opacity: 0.88; box-shadow: 0 2px 8px rgba(37,211,102,0.20); }

/* ===== SHORTLIST: CARD ADD BUTTON ===== */
.card-add-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1.5px solid var(--color-card-border);
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 180ms, border-color 180ms, color 180ms, transform 120ms;
}
.card-add-btn.active {
  background: var(--color-gold); border-color: var(--color-gold); color: #fff;
}
.card-add-btn:active { transform: scale(0.86); }

/* ===== SHORTLIST: DETAIL PAGE BUTTON ===== */
.btn-shortlist {
  width: 100%; height: 48px;
  border: 1.5px solid var(--color-card-border);
  border-radius: 14px; background: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px; cursor: pointer;
  transition: border-color 200ms, color 200ms, background 200ms;
}
.btn-shortlist.active {
  border-color: var(--color-gold); color: var(--color-gold);
  background: rgba(184,134,11,0.06);
}
.btn-shortlist:active { opacity: 0.8; }

/* ===== SHORTLIST: FLOATING BAR ===== */
.shortlist-bar {
  position: fixed; left: 12px; right: 12px;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 300;
  background: var(--color-charcoal);
  border-radius: 18px;
  padding: 10px 10px 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  transform: translateY(calc(100% + 40px));
  transition: transform 320ms cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.shortlist-bar.visible { transform: translateY(0); pointer-events: auto; }
.shortlist-bar-info {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  color: rgba(255,255,255,0.75); font-size: 13px;
}
.shortlist-bar-info svg { flex-shrink: 0; color: rgba(255,255,255,0.55); }
.shortlist-bar-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shortlist-bar-info strong { color: #fff; }
.shortlist-bar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.shortlist-bar-clear {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.10); border: none; color: rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 150ms;
}
.shortlist-bar-clear:active { background: rgba(255,255,255,0.20); }
.shortlist-bar-send {
  height: 38px; padding: 0 16px; border-radius: 50px;
  background: var(--color-whatsapp); border: none; color: #fff;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; white-space: nowrap;
  transition: opacity 150ms;
}
.shortlist-bar-send:active { opacity: 0.85; }

/* Collapsed state — bar slides back down while .visible remains (FAB takes over) */
.shortlist-bar.bar-collapsed { transform: translateY(calc(100% + 40px)); pointer-events: none; }

/* Shortlist FAB — small bubble shown when bar is collapsed */
.shortlist-fab {
  position: fixed;
  right: 16px;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-charcoal);
  border: 2.5px solid var(--color-gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 300; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,0.32);
  transform: scale(0);
  transition: transform 280ms cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
  padding: 0;
}
.shortlist-fab.visible { transform: scale(1); pointer-events: auto; }
.shortlist-fab-count {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 700;
  color: var(--color-gold); line-height: 1;
}

/* Bottom padding when bar is visible so content isn't hidden behind it */
.has-shortlist-bar .list-body,
.has-shortlist-bar .search-results,
.has-shortlist-bar .main-content { padding-bottom: 90px; }

/* ===== IMAGE SKELETON & FALLBACK ===== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.img-loading {
  background: linear-gradient(90deg, #f5f0e8 0%, #ede8e0 45%, #f5f0e8 100%);
  background-size: 1200px 100%;
  animation: shimmer 1.4s infinite linear;
}
.img-error { background: var(--color-img-bg) !important; }

.sidebar-item--bottom { border-top: 1px solid rgba(255,255,255,0.07); margin-top: auto; }

/* ===== SIDEBAR LANGUAGE SWITCHER ===== */
.sidebar-lang {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 20px max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-card-border);
}
.sidebar-lang-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--color-text-muted); background: none; border: none;
  padding: 6px 14px; border-radius: 8px;
  cursor: pointer; transition: color 150ms, background 150ms;
}
.sidebar-lang-btn.active { color: var(--color-gold); background: rgba(184,134,11,0.10); }
.sidebar-lang-btn:not(.active):active { background: rgba(0,0,0,0.05); }
.sidebar-lang-sep { color: var(--color-card-border); font-size: 15px; user-select: none; }

/* ===== PWA INSTALL BANNER ===== */
.install-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  background: var(--color-charcoal);
  transform: translateY(100%);
  transition: transform 320ms cubic-bezier(0.34,1.2,0.64,1);
}
.install-banner.visible { transform: translateY(0); }
.install-banner-icon { flex-shrink: 0; }
.install-banner-text { flex: 1; min-width: 0; }
.install-banner-title {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: #fff; margin-bottom: 2px;
}
.install-banner-body {
  font-family: var(--font-body); font-size: 11px; color: rgba(255,255,255,0.60);
  line-height: 1.4; white-space: normal;
}
.install-banner-btn {
  flex-shrink: 0; padding: 8px 16px; border-radius: 50px;
  background: var(--color-gold); border: none; color: #fff;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: opacity 150ms;
}
.install-banner-btn:active { opacity: 0.85; }
.install-banner-close {
  flex-shrink: 0; background: none; border: none;
  color: rgba(255,255,255,0.45); font-size: 14px;
  padding: 4px 6px; cursor: pointer; line-height: 1;
}
.install-banner-close:active { color: rgba(255,255,255,0.80); }

/* ===== RECENTLY VIEWED ===== */
.recent-section { padding: 0 0 24px; }
