/* Base Design Stylesheet matching Vivah Abhushan */
:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --cream: #f6efe5;
  --cream-2: #efe4d4;
  --text: #2f251f;
  --muted: #7f7268;
  --gold: #b58a48;
  --gold-deep: #8a632d;
  --gold-soft: #ead7b5;
  --rose: #f5e8e5;
  --line: #eadfce;
  --green: #25d366;
  --shadow: 0 18px 55px rgba(86,61,35,.10);
  --shadow-soft: 0 10px 30px rgba(86,61,35,.07);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(234,215,181,.46), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(245,232,229,.72), transparent 27%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 55%, #f8f2e9 100%);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

body, .hero, .product, .cat, .section-head, .trust-row, .connect-panel, .bottom-bar {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Splash Screen */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: linear-gradient(180deg, #fffdfa 0%, #f9efe6 55%, #f4e5d7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.app-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
}
.splash-ring, .splash-ring:before, .splash-ring:after {
  position: absolute;
  content: "";
  border-radius: 50%;
}
.splash-ring {
  width: 150px;
  height: 150px;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(181,138,72,.18);
  animation: splashPulse 1.8s ease-in-out infinite;
}
.splash-ring:before {
  inset: -14px;
  border: 1px solid rgba(181,138,72,.12);
  animation: splashPulse 1.8s ease-in-out infinite .18s;
}
.splash-ring:after {
  inset: 14px;
  border: 1px solid rgba(181,138,72,.18);
  animation: splashPulse 1.8s ease-in-out infinite .08s;
}
.splash-badge {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(145deg, #fff, #f8ecdf);
  box-shadow: 0 18px 40px rgba(86,61,35,.14), inset 0 1px 0 rgba(255,255,255,.85);
  display: grid;
  place-items: center;
  animation: splashFloat 1.5s ease-in-out infinite;
}
.splash-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.splash-title {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.05;
  color: #3a2b22;
}
.splash-sub {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .2px;
}
@keyframes splashPulse {
  0%, 100% { transform: translateX(-50%) scale(.96); opacity: .78; }
  50% { transform: translateX(-50%) scale(1.03); opacity: 1; }
}
@keyframes splashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Layout Container */
.wrap {
  width: min(1120px, calc(100% - 28px));
  margin: auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,253,250,.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(181,138,72,.13);
}
.topbar-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}
.mini-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 15px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.mini-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: .2px;
  color: #3b2d24;
}
.mini-brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn, .pill-btn, .admin-pill-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
  box-shadow: 0 5px 18px rgba(86,61,35,.05);
  font-weight: 700;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.pill-btn {
  padding: 10px 16px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  border-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-pill-btn {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--gold-deep);
  border-color: rgba(181,138,72,.35);
  background: linear-gradient(145deg, #fff, #fdf7ee);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.admin-pill-btn:hover {
  background: #faefe1;
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 22px 0 14px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(181,138,72,.24);
  border-radius: 32px;
  padding: 30px 22px 25px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(145deg, #fffdf9 0%, #f8efe3 58%, #f4e7d7 100%);
  box-shadow: var(--shadow);
}
.hero-card:before, .hero-card:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-card:before {
  width: 310px;
  height: 310px;
  right: -190px;
  top: -170px;
  border: 1px solid rgba(181,138,72,.20);
  box-shadow: 0 0 90px rgba(181,138,72,.08);
}
.hero-card:after {
  width: 120px;
  height: 120px;
  left: -62px;
  bottom: -70px;
  background: rgba(245,232,229,.55);
}
.logo-panel {
  position: relative;
  z-index: 2;
  width: min(220px, 100%);
  margin: 0 auto 22px;
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(248,239,227,.88));
  border: 1px solid rgba(181,138,72,.18);
  box-shadow: 0 18px 40px rgba(86,61,35,.10), inset 0 1px 0 rgba(255,255,255,.95);
}
.logo-panel:before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 46px;
  border: 1px solid rgba(181,138,72,.10);
  pointer-events: none;
}
.brand-logo {
  width: 100%;
  aspect-ratio: 1/1;
  max-height: none;
  object-fit: cover;
  margin: auto;
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(86,61,35,.08);
}
.eyebrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.eyebrow:before, .eyebrow:after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow:after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero h1 {
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  font-size: clamp(30px, 7vw, 50px);
  line-height: 1.05;
  margin: 14px auto 10px;
  max-width: 760px;
  font-weight: 500;
  color: #36281f;
}
.hero p {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 650px;
  margin: auto;
}
.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.primary, .secondary {
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
  font-size: 13px;
}
.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  box-shadow: 0 10px 25px rgba(138,99,45,.20);
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}
.primary:hover, .secondary:hover, .icon-btn:hover, .pill-btn:hover {
  transform: translateY(-1px);
}
.install-banner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(610px, 100%);
  margin: 18px auto 0;
  padding: 11px 12px;
  border: 1px solid rgba(181,138,72,.25);
  border-radius: 19px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 28px rgba(86,61,35,.08);
  backdrop-filter: blur(10px);
}
.install-banner[hidden] { display: none; }
.install-banner-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cream), var(--cream-2));
  color: var(--gold-deep);
  font-size: 21px;
  font-weight: 900;
}
.install-banner-copy {
  min-width: 0;
  flex: 1;
}
.install-banner-copy b {
  display: block;
  color: #3b2d24;
  font-size: 13px;
}
.install-banner-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.install-banner button {
  border: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #3c2d23;
  color: #fff;
  cursor: pointer;
}

.trust-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(181,138,72,.15);
}
.trust {
  text-align: center;
  padding: 8px 4px;
}
.trust b {
  display: block;
  color: var(--gold-deep);
  font-size: 13px;
  margin-bottom: 2px;
}
.trust span {
  font-size: 11px;
  color: var(--muted);
}

/* Category Section */
#categorySection {
  padding: 24px 0 10px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  margin: 0;
  font-weight: 500;
  color: #3a2b22;
}
.section-head p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}
.categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.categories::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  border-radius: 20px;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: .2s;
  box-shadow: var(--shadow-soft);
}
.cat:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.cat.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff, var(--cream));
  box-shadow: 0 8px 24px rgba(181,138,72,.18);
}
.cat-media {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-icon {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  color: var(--gold-deep);
}
.cat-copy b {
  display: block;
  font-size: 13px;
  color: #3b2d24;
  white-space: nowrap;
}

/* Collection Section */
#collection {
  padding: 24px 0 40px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin: 14px 0 12px;
}
.search {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 12px 18px 12px 42px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  outline: none;
  transition: .2s;
}
.search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,138,72,.15);
}
.search span {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* Price Filters */
.price-filters {
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(181,138,72,.18);
  border-radius: 20px;
  padding: 12px 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}
.price-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
}
.price-filter-head b {
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 4px;
}
.price-filter-head span {
  color: var(--muted);
  font-size: 11px;
}
.price-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.price-pills::-webkit-scrollbar { display: none; }
.price-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: .2s;
  color: var(--muted);
}
.price-pill.active {
  background: #3b2d24;
  color: #fff;
  border-color: #3b2d24;
  font-weight: 700;
}
.price-custom {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.price-custom.show { display: flex; }
.price-custom label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.price-custom input {
  width: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  background: #fff;
}
.price-apply {
  border: 0;
  background: var(--gold-deep);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Products Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.photo {
  position: relative;
  aspect-ratio: 1/1;
  background: #fbf7f1;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product:hover .photo img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(181,138,72,.2);
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 9px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.photo-fullscreen-hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(20,17,15,.65);
  color: #fff;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: .2s;
  pointer-events: none;
}
.product:hover .photo-fullscreen-hint {
  opacity: 1;
}
.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  transition: .2s;
}
.heart.on {
  background: #3b2d24;
  color: #fff;
  border-color: #3b2d24;
}
.product-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
  color: #3a2b22;
  line-height: 1.25;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 4px;
  font-size: 11px;
  color: var(--muted);
}
.meta .code {
  font-weight: 700;
  color: var(--gold-deep);
  background: #faf4ea;
  padding: 2px 6px;
  border-radius: 6px;
}
.card-price {
  font-size: 13px;
  font-weight: 800;
  color: #3b2d24;
  margin-bottom: 10px;
}
.product-actions {
  margin-top: auto;
  display: flex;
  gap: 6px;
}
.enquire {
  flex: 1;
  border: 0;
  background: linear-gradient(135deg, #2bd266, #20b854);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: .2s;
}
.quick {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--text);
}
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Connect Section */
#connect {
  padding: 10px 0 30px;
}
.connect-panel {
  border: 1px solid rgba(181,138,72,.2);
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(145deg, #fffdf9 0%, #f9efe5 100%);
  box-shadow: var(--shadow-soft);
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.link-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  transition: .2s;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.link-card span {
  font-size: 20px;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.link-card b {
  font-size: 13px;
  color: #3b2d24;
}
.link-card small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Bottom Bar & Shortlist Bar */
.bottom-space { height: 96px; }
.bottom-bar {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(540px, calc(100% - 24px));
  border: 1px solid rgba(181,138,72,.20);
  background: rgba(255,253,250,.93);
  backdrop-filter: blur(18px);
  border-radius: 23px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 18px 45px rgba(86,61,35,.16);
}
.nav-btn {
  border: 0;
  background: transparent;
  padding: 7px 3px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav-btn span {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
  color: var(--gold-deep);
}
.nav-btn.wa {
  background: linear-gradient(135deg, #2bd266, #20b854);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(37,211,102,.20);
}
.nav-btn.wa span { color: #fff; }

.shortlist-bar {
  display: none;
  position: fixed;
  z-index: 55;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 28px));
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5e7ca, #ead3a6);
  color: #392b20;
  box-shadow: 0 16px 42px rgba(86,61,35,.18);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(181,138,72,.25);
}
.shortlist-bar.show { display: flex; }
.shortlist-bar b { font-size: 13px; }
.shortlist-bar button {
  border: 0;
  background: #3f3025;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}

/* Modal and Gallery Lightbox */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(40,29,23,.58);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal.show { display: flex; }
.sheet {
  width: min(720px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(181,138,72,.25);
  border-radius: 29px;
  background: #fffdf9;
  box-shadow: 0 30px 80px rgba(54,40,31,.30);
  animation: up .20s ease;
  overscroll-behavior: contain;
}
.gallery-stage {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: min(56dvh, 620px);
  min-height: 320px;
  overflow: hidden;
  background: #171411;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
}
.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.gallery-stage.zoomed img { cursor: grabbing; }
.gallery-stage:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.34));
  pointer-events: none;
}
.gallery-counter, .gallery-hint {
  position: absolute;
  z-index: 5;
  color: #fff;
  background: rgba(20,17,15,.58);
  backdrop-filter: blur(9px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  font-size: 11px;
}
.gallery-counter { left: 13px; top: 13px; padding: 8px 11px; font-weight: 800; }
.gallery-hint { left: 50%; bottom: 12px; transform: translateX(-50%); padding: 7px 11px; white-space: nowrap; pointer-events: none; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 12px 14px 10px;
  background: #fffdf9;
  border-top: 1px solid rgba(181,138,72,.15);
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs[hidden] { display: none; }
.gallery-thumb {
  position: relative;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(181,138,72,.22);
  background: #f8f1e6;
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  color: #6d5231;
  font-size: 10px;
  font-weight: 800;
}
.gallery-thumb.active {
  border-color: rgba(181,138,72,.78);
  box-shadow: 0 0 0 2px rgba(181,138,72,.18);
}
.gallery-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.88);
  color: #473629;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 21px;
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-arrow[hidden] { display: none; }
.gallery-close {
  position: absolute;
  z-index: 7;
  right: 13px;
  top: 13px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.91);
  color: #4d3b2e;
  cursor: pointer;
  font-size: 21px;
}
.gallery-zoom-controls {
  position: absolute;
  z-index: 7;
  right: 13px;
  bottom: 13px;
  display: none;
  gap: 7px;
}
.gallery-zoom-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.91);
  color: #4d3b2e;
  font-size: 21px;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.sheet-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.sheet-body { padding: 18px; }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; }
.sheet h3 { font-family: Georgia, "Times New Roman", serif; margin: 0; font-size: 25px; font-weight: 500; color: #3b2d24; }
.sheet p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.detail { background: #faf5ed; border: 1px solid var(--line); border-radius: 14px; padding: 11px; }
.detail small { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.detail b { font-size: 13px; margin-top: 4px; display: block; color: #3b2d24; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sheet-actions button { border-radius: 15px; padding: 14px; font-weight: 800; cursor: pointer; }
.close { background: #fff; border: 1px solid var(--line); color: var(--text); }
.sheet-wa { border: 0; background: linear-gradient(135deg, #2bd266, #20b854); color: #fff; }
.x { width: 37px; height: 37px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #5f5047; cursor: pointer; }

@media(max-width: 560px) {
  .modal { padding: 0; align-items: flex-end; }
  .sheet { width: 100%; max-height: 96dvh; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .gallery-stage { height: 50dvh; min-height: 300px; }
  .sheet-body { padding: 14px 16px 22px; }
}
.modal.image-fullscreen { padding: 0; align-items: stretch; justify-content: stretch; background: #171411; backdrop-filter: none; }
.modal.image-fullscreen .sheet { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; background: #171411; }
.modal.image-fullscreen .gallery-stage { height: 100dvh; min-height: 100dvh; flex: 1 1 auto; }
.modal.image-fullscreen .gallery-thumbs,
.modal.image-fullscreen .sheet-scroll { display: none; }
.modal.image-fullscreen .gallery-zoom-controls { display: flex; }

/* Install Modal */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(40,29,23,.58);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.install-modal.show { display: flex; }
.install-sheet {
  width: min(520px, 100%);
  background: #fffdf9;
  border: 1px solid rgba(181,138,72,.25);
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);
  animation: up .25s ease;
}
.install-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.install-brand { display: flex; align-items: center; gap: 10px; }
.install-brand img { width: 44px; height: 44px; border-radius: 12px; }
.install-brand h3 { margin: 0; font-family: Georgia, serif; font-size: 17px; }
.install-brand p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.install-close { border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.install-platforms { display: flex; gap: 8px; margin: 12px 0; }
.install-platform { flex: 1; padding: 10px; background: #faf4ea; border-radius: 12px; font-size: 11px; }
.install-platform b { display: block; color: var(--gold-deep); margin-bottom: 2px; }
.install-platform small { color: var(--muted); }
.install-steps { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.install-step { display: flex; gap: 10px; align-items: flex-start; }
.install-step span { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-deep); color: #fff; font-size: 11px; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; }
.install-step b { display: block; font-size: 12px; color: #3b2d24; }
.install-step small { display: block; color: var(--muted); font-size: 11px; }
.install-action { width: 100%; border: 0; border-radius: 14px; padding: 13px; color: #fff; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); font-weight: 800; cursor: pointer; margin-top: 10px; }
.install-note { text-align: center; color: var(--muted); font-size: 10px; margin: 8px 0 0; }

/* Toast */
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  top: 84px;
  transform: translate(-50%, -20px);
  opacity: 0;
  pointer-events: none;
  background: #3b2d24;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: .2s;
  box-shadow: 0 10px 30px rgba(54,40,31,.18);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes up {
  from { transform: translateY(30px); opacity: .4; }
  to { transform: none; opacity: 1; }
}

@media(min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-card { padding: 38px 36px 30px; }
  .logo-panel { width: 230px; padding: 15px; }
  .install-modal { align-items: center; }
}
@media(min-width: 1020px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
