/* ── RESET & VARIABLES ─────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg:       #0A0A0A;
  --card-bg:  #111111;
  --layer:    #181818;
  --border:   #2A2A2A;
  --gold:     #D4AF37;
  --gold-dim: #A8891E;
  --gold-glow:rgba(212,175,55,.18);
  --muted:    #888888;
  --white:    #111111;   /* kept for legacy refs that mean card-bg */
  --charcoal: #000000;
  --light:    #1A1A1A;
  --cream:    #0A0A0A;
  --text:     #F5ECD0;   /* warm white for all body text */
  --text-dim: #B0A070;
  --success:  #2D6A4F;
  --danger:   #C0392B;
  --nav-h:    56px;
  --bottom-h: 60px;
}

/* ── GOLD SHIMMER ANIMATION ─────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes goldPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(212,175,55,.3)); }
  50%       { filter: drop-shadow(0 0 12px rgba(212,175,55,.7)); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── SHINY TEXT UTILITY ─────────────────────────── */
.shiny {
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 30%, #FFF8DC 50%, #FFD700 70%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--bottom-h);
}

/* ── TOAST ─────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 340px;
}

.toast {
  background: #1A1A1A;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  pointer-events: auto;
  transform: translateY(-80px) scale(.9);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  box-shadow: 0 6px 24px rgba(0,0,0,.6);
  border-left: 3px solid var(--gold);
}
.toast.show    { transform: translateY(0) scale(1); opacity: 1; }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--gold); }

/* ── HEADER ────────────────────────────────────── */
header {
  background: #0D0D0D;
  border-bottom: 1px solid rgba(212,175,55,.15);
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
}

.header-inner {
  padding: 0 14px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 10px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  letter-spacing: -.3px;
  cursor: pointer;
  white-space: nowrap;
  /* shiny gold */
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 30%, #FFF8DC 50%, #FFD700 70%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite, goldPulse 3s ease-in-out infinite;
}
.logo span { font-style: italic; }

nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.search-wrap { position: relative; flex: 1; }
.search-wrap input {
  background: #1A1A1A;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 20px;
  padding: 8px 12px 8px 34px;
  font-size: 13px; width: 100%;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: border-color .2s;
}
.search-wrap input::placeholder { color: #555; }
.search-wrap input:focus { border-color: var(--gold); }
.search-wrap svg {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: var(--gold); opacity: .6;
}

.icon-btn {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(212,175,55,.3);
  border-radius: 50%; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--text);
  flex-shrink: 0; transition: all .2s;
}
.icon-btn:active { background: var(--gold-glow); border-color: var(--gold); }

.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--gold); color: #000;
  border-radius: 50%; width: 17px; height: 17px;
  font-size: 9px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  border: 2px solid #0D0D0D;
}
.cart-count.show { display: flex; }

.admin-link {
  font-size: 10px; color: #666;
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; padding: 5px 10px;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 16px; transition: all .2s;
  background: none; font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.admin-link:active { background: var(--gold-glow); color: var(--gold); border-color: var(--gold); }

/* ── BOTTOM NAV ─────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: #0D0D0D;
  border-top: 1px solid rgba(212,175,55,.15);
  display: flex; z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}

.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; cursor: pointer;
  border: none; background: none;
  font-family: 'DM Sans', sans-serif;
  color: #555; font-size: 10px; font-weight: 500;
  letter-spacing: .3px; padding: 6px 0;
  transition: color .2s;
  position: relative;
}
.bnav-item svg { transition: transform .2s; }
.bnav-item.active { color: var(--gold); }
.bnav-item.active svg { transform: scale(1.1); }
.bnav-item:active { background: var(--gold-glow); }

/* ── HERO ──────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #080800 0%, #1C1600 60%, #0A0A00 100%);
  color: #FFFFFF;
  padding: 28px 18px 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -40%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(ellipse at 65% 35%, rgba(212,175,55,.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,175,55,.18);
  border: 1px solid rgba(212,175,55,.7);
  color: var(--gold);
  font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px; border-radius: 16px;
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(212,175,55,.6);
  box-shadow: 0 0 16px rgba(212,175,55,.15);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700; line-height: 1.1;
  margin-bottom: 8px;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0,0,0,.9), 0 0 40px rgba(212,175,55,.15);
  letter-spacing: -.5px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 30%, #FFF8DC 50%, #FFD700 70%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero p {
  font-size: 14px; color: rgba(255,255,255,.85);
  margin: 0 auto 18px; line-height: 1.6;
  max-width: 300px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.hero-btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: #000;
  border: none; padding: 11px 24px;
  border-radius: 28px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(212,175,55,.35);
}
.btn-primary:active { background: var(--gold-dim); transform: scale(.97); }

.btn-outline {
  background: transparent; color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,.25);
  padding: 11px 24px; border-radius: 28px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.btn-outline:active { border-color: var(--gold); color: var(--gold); }

.hero-stats {
  display: flex; gap: 0;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat { flex: 1; }
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 40%, #FFF8DC 55%, #FFD700 70%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.stat .label {
  font-size: 9px; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* ── FILTERS BAR ───────────────────────────────── */
.filters-bar {
  background: #0D0D0D;
  border-bottom: 1px solid rgba(212,175,55,.1);
  position: sticky; top: var(--nav-h); z-index: 90;
}
.filters-inner {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; height: 48px;
  padding: 0 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filters-inner::-webkit-scrollbar { display: none; }

.filter-pill {
  border: 1px solid rgba(212,175,55,.2); background: none;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  white-space: nowrap; transition: all .2s;
  font-family: 'DM Sans', sans-serif; color: #888;
  flex-shrink: 0;
}
.filter-pill:active { opacity: .7; }
.filter-pill.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

.sort-select {
  margin-left: auto; flex-shrink: 0;
  border: 1px solid rgba(212,175,55,.2); background: #0D0D0D;
  padding: 5px 10px; border-radius: 20px;
  font-size: 12px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: #888; outline: none;
}

/* ── PRODUCT GRID ──────────────────────────────── */
.main { padding: 14px 10px 20px; }

.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 12px;
  padding: 0 4px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.product-count { font-size: 12px; color: #999; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── PRODUCT CARD ──────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: 14px; overflow: hidden;
  cursor: pointer; position: relative;
  animation: fadeInUp .35s ease both;
  border: 1px solid rgba(212,175,55,.18);
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.card:active { transform: scale(.98); }
.card:nth-child(1) { animation-delay: .04s; }
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4) { animation-delay: .16s; }
.card:nth-child(5) { animation-delay: .20s; }
.card:nth-child(6) { animation-delay: .24s; }

.card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: #1A1A1A; overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  opacity: 0; transition: opacity .4s;
}
.card-img-wrap img.loaded { opacity: 1; }

.img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: #1A1A1A;
}
.img-placeholder .emoji { font-size: 36px; }
.img-placeholder span {
  font-size: 9px; color: #555;
  text-transform: uppercase; letter-spacing: 1px;
}

.card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 16px;
  letter-spacing: .5px; text-transform: uppercase;
}
.card-badge.new  { background: var(--gold); color: #000; }
.card-badge.sale { background: var(--danger); color: #fff; }
.card-badge.hot  { background: var(--gold); color: #000; }

.wish-btn {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.6); border: 1px solid rgba(212,175,55,.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all .2s;
}
.wish-btn.active { background: var(--gold); border-color: var(--gold); }

.card-body { padding: 10px 10px 12px; }
.card-cat  {
  font-size: 9px; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(212,175,55,.6); margin-bottom: 3px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600;
  line-height: 1.3; margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #FFFFFF;
}

.card-row  {
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 8px;
}
.card-price {
  font-size: 14px; font-weight: 700;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.card-price .old {
  font-size: 10px; color: #555;
  text-decoration: line-through;
  display: block; font-weight: 400;
  -webkit-text-fill-color: #555;
  background: none;
  animation: none;
}

/* ── ADD TO CART BUTTON (card) ──────────────────── */
.add-btn {
  background: var(--gold); color: #000;
  border: none; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212,175,55,.4);
}
.add-btn:active { background: var(--gold-dim); transform: scale(.9); }

/* ── CARD IMAGE FLICKER ── */
.flick-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; }
.flick-img.flick-active { opacity: 1; }
.glass-break-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
.flick-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 6;
}
.flick-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s, transform 0.3s;
}
.flick-dot.fd-active { background: var(--gold); transform: scale(1.35); }

/* ── QUICK VIEW MODAL ───────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  background: var(--card-bg);
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - var(--bottom-h) - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  transform: scale(.92) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
  position: relative;
  border: 1px solid rgba(212,175,55,.15);
  box-shadow: 0 24px 60px rgba(0,0,0,.9), 0 0 40px rgba(212,175,55,.05);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal::before { display: none; }

/* ── MODAL IMAGE ────────────────────────────────── */
.modal-img {
  background: #1A1A1A;
  width: 100%; aspect-ratio: 3/4;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; position: relative;
}
.modal-img > img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center; display: block;
}
.modal-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  background: #1A1A1A;
}
.modal-media img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center; display: block;
}

/* Carousel arrows — gold, compact */
.modal-img-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(212,175,55,.4);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  font-size: 18px; font-weight: 400; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  color: var(--gold);
  transition: all .15s;
}
.modal-img-arrow:active { background: var(--gold); color: #000; transform: translateY(-50%) scale(.93); }
.modal-img-arrow.left  { left:  10px; }
.modal-img-arrow.right { right: 10px; }

.modal-img-counter {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.6); color: var(--gold);
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  pointer-events: none; z-index: 5;
  letter-spacing: .5px;
  border: 1px solid rgba(212,175,55,.3);
}

/* Close button */
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: rgba(0,0,0,.7); border: 1px solid rgba(212,175,55,.35);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  color: var(--gold);
}
.modal-close:active { background: var(--gold); color: #000; }

/* ── MODAL CONTENT ──────────────────────────────── */
.modal-content {
  padding: 16px 20px 32px;
  display: flex; flex-direction: column; gap: 12px;
  flex-shrink: 0; min-height: 0;
}

.modal-cat {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  color: var(--gold);
}

.modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; line-height: 1.2;
  color: #FFFFFF;
}

.modal-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-price-now {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.modal-price-old { font-size: 13px; color: #555; text-decoration: line-through; }
.modal-save-badge {
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px; letter-spacing: .5px;
}

.modal-desc { font-size: 13px; color: #999; line-height: 1.65; }

.size-label {
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 8px; color: var(--gold);
}
.size-grid  { display: flex; flex-wrap: wrap; gap: 7px; }
.size-btn {
  border: 1px solid rgba(212,175,55,.35);
  background: rgba(212,175,55,.06);
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; cursor: pointer;
  transition: all .15s; font-family: 'DM Sans', sans-serif;
  min-width: 44px; text-align: center;
  color: var(--text);
}
.size-btn:hover { border-color: var(--gold); color: var(--gold); }
.size-btn.active { border-color: var(--gold); background: var(--gold); color: #000; font-weight: 700; }

/* ── ADD TO CART (modal) ────────────────────────── */
.modal-add {
  background: var(--gold); color: #000;
  border: none; padding: 15px;
  border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all .2s; width: 100%;
  box-shadow: 0 4px 20px rgba(212,175,55,.35);
  letter-spacing: .3px;
}
.modal-add:active { background: var(--gold-dim); transform: scale(.98); }

/* ── SHARE ROW ──────────────────────────────────── */
.share-row {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(212,175,55,.15);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.share-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  width: 100%; margin-bottom: 2px;
}

/* Share buttons */
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  white-space: nowrap; flex: 1;
  justify-content: center; min-width: 0;
  border: 1.5px solid transparent;
}
.share-btn:active { transform: scale(.96); }

.share-btn.whatsapp,
.share-wa { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn.whatsapp:active,
.share-wa:active { background: #1da552; }

.share-btn.facebook,
.share-fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.facebook:active,
.share-fb:active { background: #0d65d9; }

.share-btn.copy,
.share-copy {
  background: rgba(212,175,55,.1);
  color: var(--gold);
  border-color: rgba(212,175,55,.35);
}
.share-btn.copy:active,
.share-copy:active { background: rgba(212,175,55,.2); }

/* legacy modal share bar */
#modal-share-bar { border-top: 1px solid rgba(212,175,55,.15); padding-top: 14px; }
.modal-share-label { font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.modal-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── CART DRAWER ────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 400;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 92vh; height: auto;
  background: var(--card-bg);
  z-index: 401;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(212,175,55,.15);
  box-shadow: 0 -8px 40px rgba(0,0,0,.8);
}
.cart-drawer.show { transform: translateY(0); }
.cart-drawer::before {
  content: '';
  display: block; width: 36px; height: 3px;
  background: rgba(212,175,55,.3); border-radius: 2px;
  margin: 10px auto 0; flex-shrink: 0;
}

.cart-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(212,175,55,.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.cart-items {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0; -webkit-overflow-scrolling: touch;
  max-height: 45vh;
}

.empty-cart {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 36px 24px; text-align: center;
}
.empty-cart .icon { font-size: 48px; margin-bottom: 12px; }
.empty-cart p { color: #555; font-size: 14px; line-height: 1.6; }

.cart-item {
  background: #1A1A1A;
  border: 1px solid rgba(212,175,55,.08);
  border-radius: 12px;
  padding: 12px; display: flex; gap: 10px;
  position: relative; overflow: hidden;
  max-height: 200px;
  transition: opacity .25s, transform .25s, max-height .3s, padding .3s, margin .3s;
}
.cart-item.removing { opacity: 0; transform: translateX(30px); max-height: 0; padding: 0; margin: 0; }

.item-img {
  width: 58px; height: 58px; border-radius: 8px;
  background: #222;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.item-img img { width: 100%; height: 100%; object-fit: cover; }

.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; color: var(--text); }
.item-sub  { font-size: 11px; color: #666; margin-bottom: 8px; }

.item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.3);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all .15s; color: var(--gold);
}
.qty-btn:active { background: var(--gold); color: #000; border-color: var(--gold); }
.qty-num { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; color: var(--text); }
.item-line-total { font-size: 11px; color: var(--gold); margin-left: auto; }

.item-remove {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #555; transition: all .15s;
}
.item-remove:active { background: var(--danger); color: #fff; }

.cart-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(212,175,55,.1);
  background: var(--card-bg); flex-shrink: 0;
}
.subtotal-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 5px; font-size: 13px; color: #AAAAAA;
}
.subtotal-row.total {
  font-size: 17px; font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(212,175,55,.2);
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.checkout-btn {
  width: 100%; background: #25D366;
  color: #FFFFFF; border: none; padding: 15px;
  border-radius: 14px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
}
.checkout-btn:active:not(:disabled) { background: #1da552; transform: scale(.98); }
.checkout-btn:disabled { opacity: .4; cursor: not-allowed; background: #333; }
.whatsapp-note { font-size: 10px; color: #555; text-align: center; margin-top: 8px; }

/* ── ADMIN PANEL ───────────────────────────────── */
.admin-overlay {
  position: fixed; inset: 0;
  background: #080808; z-index: 600;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.admin-overlay.show { transform: translateX(0); }

.admin-bar {
  background: rgba(212,175,55,.06);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(212,175,55,.15);
  flex-shrink: 0;
}
.admin-bar h2 {
  font-family: 'Playfair Display', serif; font-size: 18px;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.admin-close {
  background: none; border: 1px solid rgba(212,175,55,.3);
  color: var(--gold); width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  transition: all .2s;
}
.admin-close:active { background: var(--gold); color: #000; }

.admin-body {
  display: flex; flex-direction: column;
  height: calc(100vh - 58px); overflow-y: auto;
}

.admin-form { padding: 20px 18px; border-bottom: 1px solid rgba(212,175,55,.1); }
.admin-form h3 { color: var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 10px; color: rgba(212,175,55,.5);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 10px; padding: 11px 13px;
  font-size: 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: #111; }
.form-group textarea { resize: none; height: 72px; }

.upload-zone {
  border: 2px dashed rgba(212,175,55,.2);
  border-radius: 12px; padding: 24px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.upload-zone:active { border-color: var(--gold); background: rgba(212,175,55,.05); }
.upload-zone p { color: #555; font-size: 12px; margin-top: 6px; }
.upload-preview { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-top: 10px; display: none; }

.save-btn {
  width: 100%; background: var(--gold); color: #000;
  border: none; padding: 13px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif; margin-top: 6px; transition: all .2s;
  box-shadow: 0 4px 16px rgba(212,175,55,.3);
}
.save-btn:active { background: var(--gold-dim); }

.admin-list { padding: 20px 18px; }
.admin-list h3 { color: var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }

.admin-product-row {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.08);
  border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
  cursor: pointer; transition: background .2s;
}
.admin-product-row:hover { background: rgba(212,175,55,.06); }

.admin-product-img {
  width: 46px; height: 46px; border-radius: 8px;
  background: #222;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; overflow: hidden; flex-shrink: 0;
}
.admin-product-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-info { flex: 1; min-width: 0; }
.admin-product-info .name { color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-product-info .meta { color: #555; font-size: 11px; margin-top: 2px; }

.admin-delete {
  background: rgba(192,57,43,.15); border: 1px solid rgba(192,57,43,.25);
  color: #e74c3c; width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 13px; transition: all .2s; flex-shrink: 0;
}
.admin-delete:active { background: var(--danger); color: #fff; }

.admin-edit {
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.2);
  color: var(--gold);
  width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 13px; transition: all .2s;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.admin-edit:active { background: var(--gold); color: #000; border-color: var(--gold); }

.admin-list-hint { font-size: 10px; color: #444; margin-bottom: 14px; letter-spacing: .3px; }

/* ── MULTI-IMAGE UPLOAD SLOTS ───────────────────── */
.img-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px; margin-bottom: 10px;
}
.img-slot {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.15);
  transition: border-color .2s;
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot.is-cover { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

.slot-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.75); border: none;
  color: #fff; width: 20px; height: 20px;
  border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.slot-remove:active { background: var(--danger); }

.slot-cover-btn {
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.65); border: none;
  color: rgba(255,255,255,.55); font-size: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
}
.slot-cover-btn.active { color: var(--gold); background: rgba(0,0,0,.8); }
.slot-cover-btn:active  { transform: translateX(-50%) scale(.9); }

.add-img-btn {
  width: 100%;
  background: rgba(212,175,55,.04);
  border: 2px dashed rgba(212,175,55,.2);
  color: #555;
  padding: 13px; border-radius: 10px;
  font-size: 13px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s; margin-bottom: 6px;
}
.add-img-btn:hover  { border-color: var(--gold); color: var(--gold); }
.add-img-btn:active { background: rgba(212,175,55,.08); }
.add-img-btn:disabled { opacity: .5; cursor: not-allowed; }

.img-hint { font-size: 10px; color: #444; margin-top: 4px; line-height: 1.5; }

/* ── EDIT MODE BANNER ───────────────────────────── */
.edit-banner {
  background: rgba(212,175,55,.08);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; font-size: 12px; color: var(--gold); gap: 8px;
}
.edit-banner strong {
  font-weight: 600; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; vertical-align: middle;
}
.cancel-edit-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #888;
  padding: 5px 12px; border-radius: 8px;
  font-size: 11px; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0; transition: all .2s; white-space: nowrap;
}
.cancel-edit-btn:active { background: rgba(255,255,255,.14); color: var(--text); }

/* ── LOGIN MODAL ───────────────────────────────── */
.login-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75); z-index: 700;
  display: flex; align-items: flex-end;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.login-modal.show { opacity: 1; visibility: visible; }

.login-box {
  background: var(--card-bg);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(212,175,55,.2);
  padding: 32px 28px 36px;
  width: 100%; text-align: center;
}
.login-box::before {
  content: '';
  display: block; width: 36px; height: 3px;
  background: rgba(212,175,55,.3); border-radius: 2px;
  margin: -16px auto 20px;
}
.login-box h3 {
  font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 6px;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
.login-box p  { color: #666; font-size: 13px; margin-bottom: 22px; }
.login-box input {
  width: 100%; border: 1px solid rgba(212,175,55,.25);
  border-radius: 10px; padding: 12px 16px;
  font-size: 16px; background: rgba(255,255,255,.05); color: var(--text);
  font-family: 'DM Sans', sans-serif; outline: none;
  text-align: center; letter-spacing: 4px; margin-bottom: 14px;
  transition: border-color .2s;
}
.login-box input:focus { border-color: var(--gold); }
.login-btn {
  width: 100%; background: var(--gold); color: #000;
  border: none; padding: 14px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .2s; margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(212,175,55,.3);
}
.login-btn:active { background: var(--gold-dim); }
.login-cancel { background: none; border: none; color: #555; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; }

/* ── NO RESULTS ────────────────────────────────── */
.no-results { text-align: center; padding: 60px 24px; display: none; }
.no-results.show { display: block; }
.no-results .icon { font-size: 52px; margin-bottom: 12px; }
.no-results h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 6px;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 3s linear infinite;
}
.no-results p  { color: #666; font-size: 13px; }

/* ── WISHLIST PAGE ─────────────────────────────── */
.wishlist-page { display: none; padding: 16px 10px 24px; }
.page-title {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  margin-bottom: 16px; padding: 0 4px;
  background: linear-gradient(90deg, #B8860B 0%, #FFD700 35%, #FFF8DC 50%, #FFD700 65%, #B8860B 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 3s linear infinite;
}

/* ── FOOTER ────────────────────────────────────── */
footer {
  background: #050505;
  border-top: 1px solid rgba(212,175,55,.15);
  color: #555; padding: 32px 20px; text-align: center; margin-top: 40px;
}
footer .logo {
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
  margin-bottom: 12px; display: block;
}
footer p { font-size: 12px; line-height: 1.9; }
footer a { color: var(--gold); text-decoration: none; }

/* ── HERO TYPED CURSOR ──────────────────────────── */
#hero-typed::after {
  content: '|';
  display: inline-block; margin-left: 2px;
  color: var(--gold);
  animation: blink 0.75s step-end infinite;
}

/* ── SAFE AREA ──────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
}

/* ── SMALL SCREEN ───────────────────────────────── */
@media (max-width: 360px) {
  .modal-share-btns, .share-row { flex-direction: column; }
  .share-btn { flex: none; width: 100%; }
}

/* ── DESKTOP ─────────────────────────────────────── */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .main { padding: 24px 20px; }
  .hero { padding: 56px 32px 48px; }
  .hero h1 { font-size: 48px; }
}

@media (min-width: 900px) {
  nav { display: flex; align-items: center; gap: 24px; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .header-inner { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 24px; }
  .logo { font-size: 22px; }
  :root { --nav-h: 68px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

  .modal {
    border-radius: 24px; flex-direction: row;
    max-width: 760px; max-height: 88vh; overflow: hidden;
  }
  .modal-img {
    width: 45%; height: auto; min-height: 460px;
    max-height: none; aspect-ratio: unset;
    flex-shrink: 0; align-self: stretch;
  }
  .modal-content { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }

  .login-modal { align-items: center; }
  .login-box { border-radius: 20px; max-width: 380px; padding: 44px 36px; }
  .login-box::before { display: none; }

  .cart-drawer { right: 0; top: 0; bottom: auto; left: auto; height: 100%; max-height: 100%; width: 400px; border-radius: 0; transform: translateX(100%); border-top: none; border-left: 1px solid rgba(212,175,55,.15); }
  .cart-drawer.show { transform: translateX(0); }
  .cart-drawer::before { display: none; }
  .cart-items { max-height: none; }

  .admin-body { flex-direction: row; }
  .admin-form { width: 360px; border-right: 1px solid rgba(212,175,55,.1); border-bottom: none; overflow-y: auto; flex-shrink: 0; }
  .admin-list { flex: 1; overflow-y: auto; }

  nav a {
    font-size: 12px; font-weight: 500; color: #555;
    text-decoration: none; letter-spacing: .5px;
    text-transform: uppercase; cursor: pointer; transition: color .2s;
  }
  nav a:hover, nav a.active { color: var(--gold); }

  .search-wrap input { width: 200px; }
  .filters-bar { top: 68px; }
}