/* Rima Design - dark green & gold, taken from the logo */
:root {
  --green: #0f2b22;
  --green-2: #16392d;
  --green-3: #1f4a3b;
  --gold: #c9a35a;
  --gold-2: #e3c88d;
  --cream: #f7f2e8;
  --ink: #1d1d1b;
  --muted: #6f6a60;
  --line: #e4dccb;
  --radius: 14px;
}
html, body { background: var(--cream); color: var(--ink); }
body { font-family: 'Montserrat', system-ui, sans-serif; font-size: 15px; }
footer.site { padding-bottom: 72px; }
@media (min-width: 992px) { footer.site { padding-bottom: 0; } }
h1, h2, h3, h4, .serif { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: .3px; }
a { color: var(--green-3); }
.text-gold { color: var(--gold) !important; }
.bg-green { background: var(--green) !important; }

/* top bar */
.topbar { background: var(--green); border-bottom: 1px solid rgba(201,163,90,.35); position: sticky; top: 0; z-index: 1030; }
.topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--gold-2); text-decoration: none; }
.topbar .brand img { width: 42px; height: 42px; border-radius: 8px; }
.topbar .brand b { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; letter-spacing: 4px; font-weight: 600; line-height: 1; }
.topbar .brand small { display: block; font-size: .62rem; letter-spacing: 5px; color: var(--gold); }
.topbar .nav-link { color: #e9e2d0; font-size: .85rem; letter-spacing: .5px; }
.topbar .nav-link:hover, .topbar .nav-link.active { color: var(--gold-2); }
.cart-badge { background: var(--gold); color: var(--green); font-size: .65rem; font-weight: 700; border-radius: 10px; padding: 1px 6px; vertical-align: top; }

/* bottom tab bar (phones) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: var(--green); border-top: 1px solid rgba(201,163,90,.4);
  display: flex; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { color: #d9d0bb; text-decoration: none; font-size: .68rem; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 56px; position: relative; }
.tabbar a i { font-size: 1.25rem; }
.tabbar a.active { color: var(--gold-2); }
.tabbar .cart-badge { position: absolute; top: -3px; right: 8px; }

/* hero */
/* home banner: the logo frame of the intro, always fully visible and never taller than the screen */
.hero { background: radial-gradient(ellipse 60% 70% at 50% 38%, #10241a 0%, #08110b 60%, #050a06 100%); text-align: center; overflow: hidden;
  padding-bottom: 22px; }
.hero-logo { display: block; margin: 0 auto; width: 100%; max-width: 1100px; object-fit: contain;
  /* 16:9 frame, but no taller than ~half the screen so the search box stays in view */
  height: min(56.25vw, 52vh, 560px);
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 50%, #000 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 56% at 50% 50%, #000 66%, transparent 100%); }
@media (max-width: 767px) {
  /* phones: zoom on the centre of the frame so the logo is big, not a thin strip */
  .hero-logo { height: min(78vw, 46vh); object-fit: cover; object-position: 50% 52%; }
}
.hero-text { color: #e9e2d0; margin-top: -4px; }
.hero-tag { text-transform: uppercase; letter-spacing: 6px; font-size: .78rem; color: var(--gold); }
.hero-about { max-width: 560px; margin: 6px auto 14px; font-size: .92rem; }
.hero .search-box { max-width: 520px; }

/* startup intro video */
#intro { position: fixed; inset: 0; z-index: 3000; background: #050a06; display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease; }
#intro video { width: 100%; height: 100%; object-fit: contain; background: #050a06; }
#intro.fade { opacity: 0; pointer-events: none; }
.intro-done #intro { display: none; }
html:not(.intro-done) body { overflow: hidden; }
.intro-btn { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); border: 1px solid rgba(201,163,90,.7); background: rgba(5,10,6,.55);
  color: var(--gold-2); border-radius: 30px; padding: 8px 18px; font-size: .85rem; letter-spacing: 1px; }
.intro-skip { right: 22px; }
.intro-sound { left: 22px; }
.intro-btn:hover { background: var(--gold); color: var(--green); }

.search-box { position: relative; }
.search-box input { border-radius: 40px; padding: 12px 18px 12px 44px; border: 1px solid var(--gold); background: rgba(255,255,255,.96); }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--green-3); }

.section-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.7rem; color: var(--green); }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* category tiles */
.cat-tile { display: block; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 1 / 1; background: var(--green-2);
  text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: transform .2s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .noimg { width: 100%; height: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 11%; color: var(--gold-2);
  background: radial-gradient(circle at 50% 38%, #24503f 0%, var(--green-2) 45%, var(--green) 100%);
  box-shadow: inset 0 0 0 1px rgba(201,163,90,.28); }
.cat-tile .noimg .fi { width: 58%; height: 58%; stroke-width: 1.15; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.cat-tile:hover .noimg { color: #f3dca6; }
/* furniture line icons (static/furniture.svg) */
.fi { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.fi-lg { width: 3.2rem; height: 3.2rem; }
.cat-tile .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; color: #fff; font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; font-weight: 600; line-height: 1.1; background: linear-gradient(transparent, rgba(10,30,24,.92)); }
.cat-tile .label small { display: block; font-family: 'Montserrat', sans-serif; font-size: .66rem; color: var(--gold-2); letter-spacing: .5px; margin-top: 2px; }

/* photo-only gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--green-2); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery .noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold-2); gap: 10px;
  background: radial-gradient(circle at 50% 40%, #24503f 0%, var(--green) 85%); }
.gallery .noimg .fi { width: 55%; height: auto; aspect-ratio: 1; }
.gallery .noimg span { font-size: .8rem; color: #d9d0bb; font-family: 'Montserrat'; padding: 0 10px; text-align: center; }
.gallery .count { position: absolute; top: 8px; right: 8px; background: rgba(15,43,34,.75); color: var(--gold-2); border-radius: 20px; font-size: .7rem; padding: 2px 8px; }

/* product page */
.pp-main { border-radius: var(--radius); overflow: hidden; background: var(--green-2); aspect-ratio: 4 / 3.4; position: relative; }
.pp-main img { width: 100%; height: 100%; object-fit: contain; background: #10261f; cursor: zoom-in; }
.pp-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pp-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 74px; height: 62px; background: none; }
.pp-thumbs button.active { border-color: var(--gold); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15,43,34,.65); color: var(--gold-2); border: 0; width: 40px; height: 40px; border-radius: 50%; }
.pp-arrow.l { left: 10px; } .pp-arrow.r { right: 10px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.spec h5 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--green); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.spec h5 i { color: var(--gold); font-size: 1rem; }
.spec dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.spec dt { color: var(--muted); font-weight: 500; }
.spec dd { margin: 0; }
.price-box { background: var(--green); color: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--gold); }
.price-box .big { font-family: 'Cormorant Garamond', serif; font-size: 2.3rem; color: var(--gold-2); line-height: 1; }
.price-box .old { text-decoration: line-through; color: #aaa; margin-left: 8px; }
.price-box table { --bs-table-bg: transparent; --bs-table-color: #eee; --bs-table-border-color: rgba(201,163,90,.25); color: #eee; font-size: .85rem; }
.price-box .form-control { max-width: 90px; text-align: center; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green); font-weight: 600; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-2); border-color: var(--gold-2); color: var(--green); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--gold-2); }
.btn-green:hover { background: var(--green-3); color: #fff; }
.btn-outline-gold { border-color: var(--gold); color: var(--gold-2); }
.btn-outline-gold:hover { background: var(--gold); color: var(--green); }

.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.whish-box { background: linear-gradient(135deg, #fff 0%, #fdf8ee 100%); border: 2px dashed var(--gold); border-radius: var(--radius); padding: 18px; }
.whish-number { font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; color: var(--green); }

/* developed-by credit */
.dev-credit { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .74rem; color: var(--muted); padding: 14px 0 18px; }
.dev-credit img { height: 22px; border-radius: 3px; background: #fff; }
footer.site { background: var(--green); color: #cfc6b2; margin-top: 40px; }
footer.site .dev-credit { color: #b9b19d; border-top: 1px solid rgba(201,163,90,.25); }

/* popup */
.rd-popup .modal-content { border: 1px solid var(--gold); border-radius: var(--radius); }
.rd-popup .modal-header { background: var(--green); color: var(--gold-2); }

/* lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(5,15,12,.95); z-index: 2000; display: none; align-items: center; justify-content: center; }
#lightbox.show { display: flex; }
#lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
#lightbox .x { position: absolute; top: 12px; right: 16px; color: #fff; font-size: 2rem; background: none; border: 0; }

.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty i { font-size: 2.6rem; color: var(--gold); display: block; margin-bottom: 8px; }
.form-label { font-weight: 500; font-size: .85rem; color: var(--green-3); }
.status-pill { font-size: .75rem; }
