@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS — DARK (default)
═══════════════════════════════════════ */
:root {
  --bg:        #0d0e11;
  --bg2:       #12141a;
  --bg3:       #181b24;
  --surface:   #1e2130;
  --border:    rgba(255,255,255,0.07);
  --gold:      #c9a84c;
  --gold2:     #e8c96a;
  --gold-dim:  rgba(201,168,76,0.12);
  --gold-b:    rgba(201,168,76,0.28);
  --text:      #ece8e0;
  --text2:     rgba(236,232,224,0.55);
  --text3:     rgba(236,232,224,0.28);
  --white:     #f6f3ec;
  --card:      #12141a;
  --input:     #0d0e11;
  --shadow:    0 8px 40px rgba(0,0,0,0.55);
  --t:         0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════ */
[data-theme="light"] {
  --bg:       #f8f5ef;
  --bg2:      #f0ebe2;
  --bg3:      #e8e1d5;
  --surface:  #ffffff;
  --border:   rgba(0,0,0,0.09);
  --gold:     #96701e;
  --gold2:    #b8892a;
  --gold-dim: rgba(150,112,30,0.08);
  --gold-b:   rgba(150,112,30,0.3);
  --text:     #18160f;
  --text2:    rgba(24,22,15,0.58);
  --text3:    rgba(24,22,15,0.32);
  --white:    #18160f;
  --card:     #ffffff;
  --input:    #f0ebe2;
  --shadow:   0 4px 24px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-tap-highlight-color:transparent; }
body {
  background:var(--bg); color:var(--text);
  font-family:'DM Sans',system-ui,sans-serif;
  font-weight:300; line-height:1.65;
  overflow-x:hidden;
  transition:background 0.4s, color 0.4s;
}
img { display:block; max-width:100%; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; }

/* grain overlay */
body::before {
  content:''; position:fixed; inset:0; z-index:9999; pointer-events:none;
  opacity:0.016;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:160px;
}

.container { max-width:1160px; margin:0 auto; padding:0 18px; }
@media(min-width:560px) { .container { padding:0 28px; } }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.site-nav {
  position:fixed; top:0; left:0; right:0; z-index:900;
  height:60px; display:flex; align-items:center;
  background:rgba(13,14,17,0.88);
  backdrop-filter:blur(20px) saturate(1.3);
  border-bottom:1px solid var(--border);
  transition:background var(--t), box-shadow var(--t);
}
[data-theme="light"] .site-nav { background:rgba(248,245,239,0.92); }
.site-nav.scrolled { box-shadow:0 1px 0 var(--gold-b); }

.nav-inner {
  width:100%; max-width:1160px; margin:0 auto;
  padding:0 18px; display:flex; align-items:center; gap:12px;
}
@media(min-width:560px) { .nav-inner { padding:0 28px; } }

.nav-brand { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-brand img {
  height:36px; width:36px; object-fit:contain; border-radius:50%;
  filter:drop-shadow(0 0 8px rgba(201,168,76,0.4));
}
.nav-brand-text {
  font-family:'Cormorant Garamond',serif;
  font-size:1.1rem; font-weight:500; letter-spacing:0.06em;
  color:var(--gold); line-height:1; white-space:nowrap;
}

.nav-links { display:none; list-style:none; gap:1.8rem; align-items:center; }
@media(min-width:720px) { .nav-links { display:flex; } }
.nav-links a {
  font-size:0.7rem; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--text2); transition:color var(--t);
  position:relative; padding-bottom:3px;
}
.nav-links a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:1px; background:var(--gold); transition:width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color:var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

.nav-right {
  display:flex; align-items:center; gap:8px; margin-left:auto;
}
@media(min-width:720px) { .nav-right { margin-left:0; } }

/* Theme toggle button */
.theme-toggle {
  width:34px; height:34px; border-radius:50%;
  background:var(--bg3); border:1px solid var(--border);
  color:var(--text2); font-size:0.9rem;
  display:flex; align-items:center; justify-content:center;
  transition:all var(--t); flex-shrink:0;
}
.theme-toggle:hover { border-color:var(--gold-b); color:var(--gold); background:var(--gold-dim); }

.nav-call {
  display:none;
  font-size:0.68rem; letter-spacing:0.1em;
  color:var(--gold); border:1px solid var(--gold-b);
  padding:8px 14px; white-space:nowrap;
  transition:background var(--t), color var(--t);
}
@media(min-width:900px) { .nav-call { display:inline-flex; align-items:center; gap:6px; } }
.nav-call:hover { background:var(--gold); color:#0d0e11; }

.nav-ham {
  display:flex; flex-direction:column; gap:5px;
  background:none; border:none; padding:8px; z-index:910;
}
@media(min-width:720px) { .nav-ham { display:none; } }
.nav-ham span {
  display:block; width:22px; height:1.5px; background:var(--text);
  transition:transform 0.3s, opacity 0.3s; transform-origin:center;
}
.nav-ham.open span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity:0; }
.nav-ham.open span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position:fixed; top:60px; left:0; right:0; z-index:800;
  background:var(--bg2); border-bottom:1px solid var(--gold-b);
  transform:translateY(-110%);
  transition:transform 0.38s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform:translateY(0); }
.nav-drawer ul { list-style:none; }
.nav-drawer a {
  display:block; padding:15px 22px;
  font-size:0.82rem; letter-spacing:0.2em; text-transform:uppercase;
  color:var(--text2); border-bottom:1px solid var(--border);
  transition:color var(--t), background var(--t);
}
.nav-drawer a:hover, .nav-drawer a.active { color:var(--gold); background:var(--gold-dim); }
.drawer-phone {
  display:block; padding:15px 22px;
  font-size:0.9rem; color:var(--gold);
  font-weight:500; background:var(--gold-dim);
}

/* ═══════════════════════════════════════
   PAGE HERO (shared)
═══════════════════════════════════════ */
.page-hero {
  padding:108px 0 60px;
  background:linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
  position:relative; overflow:hidden;
}
.page-hero::after {
  content:''; position:absolute; top:0; right:0; width:55%; height:100%;
  background:radial-gradient(ellipse at 80% 30%, var(--gold-dim) 0%, transparent 65%);
  pointer-events:none;
}
.ph-tag {
  display:inline-flex; align-items:center; gap:10px;
  font-size:0.6rem; letter-spacing:0.5em; text-transform:uppercase;
  color:var(--gold); margin-bottom:14px;
}
.ph-tag::before { content:''; width:20px; height:1px; background:var(--gold-b); }
.page-hero h1 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2.5rem,7vw,5.5rem);
  font-weight:300; line-height:1.05; color:var(--white);
}
.page-hero h1 em { font-style:italic; color:var(--gold); }
.ph-sub { font-size:0.88rem; color:var(--text2); margin-top:12px; max-width:480px; line-height:1.75; }

/* ═══════════════════════════════════════
   SECTION LABEL
═══════════════════════════════════════ */
.sec-label {
  display:inline-flex; align-items:center; gap:10px;
  font-size:0.6rem; letter-spacing:0.5em; text-transform:uppercase;
  color:var(--gold); margin-bottom:10px;
}
.sec-label::before { content:''; width:20px; height:1px; background:var(--gold-b); }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px;
  font-family:'DM Sans',sans-serif; font-size:0.7rem; font-weight:400;
  letter-spacing:0.26em; text-transform:uppercase;
  cursor:pointer; border:none; white-space:nowrap;
  transition:all var(--t);
}
.btn-gold { background:var(--gold); color:#0d0e11; }
.btn-gold:hover { background:var(--gold2); transform:translateY(-2px); box-shadow:0 6px 20px rgba(201,168,76,0.3); }
.btn-outline { background:transparent; border:1px solid var(--gold-b); color:var(--gold); }
.btn-outline:hover { background:var(--gold); color:#0d0e11; transform:translateY(-2px); }
.btn-ghost { background:transparent; border:1px solid var(--border); color:var(--text2); }
.btn-ghost:hover { border-color:var(--gold-b); color:var(--text); }

/* ═══════════════════════════════════════
   PRODUCT CARD
═══════════════════════════════════════ */
.product-card {
  background:var(--card);
  border:1px solid var(--border); border-radius:8px;
  overflow:hidden; display:flex; flex-direction:column;
  transition:border-color var(--t), transform var(--t), box-shadow var(--t);
}
.product-card:hover {
  border-color:var(--gold-b);
  transform:translateY(-5px);
  box-shadow:0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--gold-dim);
}
.pc-img { width:100%; aspect-ratio:3/4; overflow:hidden; background:var(--bg3); flex-shrink:0; }
.pc-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform 0.6s cubic-bezier(0.4,0,0.2,1), filter 0.4s;
  filter:brightness(0.9) saturate(0.8);
}
.product-card:hover .pc-img img { transform:scale(1.07); filter:brightness(1) saturate(1); }
.pc-no-img {
  width:100%; height:100%; min-height:240px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, var(--bg3), var(--bg2));
  color:var(--text3); font-size:2.5rem;
}
.pc-body { padding:16px; display:flex; flex-direction:column; gap:5px; flex:1; }
.pc-cat-tag {
  display:inline-block; font-size:0.56rem; letter-spacing:0.28em;
  text-transform:uppercase; color:var(--gold);
  background:var(--gold-dim); padding:3px 8px;
  margin-bottom:4px; align-self:flex-start; border-radius:2px;
}
.pc-name {
  font-family:'Cormorant Garamond',serif;
  font-size:1.12rem; font-weight:400; color:var(--white); line-height:1.3;
}
/* ── PRICE — prominent & always visible ── */
.pc-price {
  font-family:'Cormorant Garamond',serif;
  font-size:1.25rem; font-weight:500;
  color:var(--gold); letter-spacing:0.03em;
  margin-top:4px; margin-bottom:2px;
}
.pc-price-label {
  font-size:0.62rem; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--text3); display:block; margin-top:-2px;
}
.pc-desc { font-size:0.76rem; color:var(--text3); line-height:1.55; flex:1; margin-top:4px; }
.pc-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:14px; padding:11px;
  border:1px solid var(--gold-b); color:var(--gold);
  font-size:0.62rem; letter-spacing:0.3em; text-transform:uppercase;
  background:transparent; transition:background var(--t), color var(--t);
  border-radius:4px;
}
.pc-btn:hover { background:var(--gold); color:#0d0e11; }

/* ═══════════════════════════════════════
   CATEGORY TABS
═══════════════════════════════════════ */
.cat-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.cat-tab {
  padding:8px 18px; font-size:0.64rem; letter-spacing:0.22em; text-transform:uppercase;
  border:1px solid var(--border); color:var(--text2); background:var(--card);
  border-radius:999px; cursor:pointer; transition:all var(--t);
}
.cat-tab:hover { border-color:var(--gold-b); color:var(--gold); }
.cat-tab.active { background:var(--gold); color:#0d0e11; border-color:var(--gold); font-weight:500; }

/* ═══════════════════════════════════════
   SEARCH BAR
═══════════════════════════════════════ */
.search-wrap { position:relative; margin-bottom:20px; }
.search-wrap svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text3); width:16px; height:16px; pointer-events:none; }
.prod-search {
  width:100%; padding:12px 16px 12px 42px;
  background:var(--card); border:1px solid var(--border); border-radius:6px;
  color:var(--text); font-family:'DM Sans',sans-serif; font-size:0.88rem;
  outline:none; transition:border-color var(--t);
}
.prod-search:focus { border-color:var(--gold-b); }
.prod-search::placeholder { color:var(--text3); }

/* ═══════════════════════════════════════
   LOADING / STATES
═══════════════════════════════════════ */
.state-box {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:14px; min-height:280px; grid-column:1/-1;
}
.loading-ring {
  width:30px; height:30px;
  border:2px solid var(--border); border-top-color:var(--gold);
  border-radius:50%; animation:spin 0.8s linear infinite;
}
.state-msg { font-size:0.73rem; letter-spacing:0.3em; text-transform:uppercase; color:var(--text3); }
@keyframes spin { to { transform:rotate(360deg); } }

/* ═══════════════════════════════════════
   FORM
═══════════════════════════════════════ */
.cf { display:flex; flex-direction:column; gap:16px; }
.cf-f { display:flex; flex-direction:column; gap:5px; }
.cf-f label { font-size:0.6rem; letter-spacing:0.42em; text-transform:uppercase; color:var(--text3); }
.cf-f input, .cf-f textarea {
  background:var(--input); border:1px solid var(--border);
  color:var(--text); padding:12px 14px; border-radius:4px;
  font-family:'DM Sans',sans-serif; font-size:0.88rem; font-weight:300;
  outline:none; transition:border-color var(--t); resize:vertical; -webkit-appearance:none;
}
.cf-f input::placeholder, .cf-f textarea::placeholder { color:var(--text3); }
.cf-f input:focus, .cf-f textarea:focus { border-color:var(--gold-b); }
.cf-f textarea { min-height:110px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer { background:var(--bg2); border-top:1px solid var(--border); padding:52px 0 0; }
.footer-grid { display:grid; grid-template-columns:1fr; gap:36px; padding-bottom:44px; }
@media(min-width:560px) { .footer-grid { grid-template-columns:1fr 1fr; } }
@media(min-width:900px) { .footer-grid { grid-template-columns:1.5fr 1fr 1fr; } }
.footer-brand-name {
  font-family:'Cormorant Garamond',serif;
  font-size:1.4rem; font-weight:400; letter-spacing:0.12em; color:var(--gold); margin-bottom:8px;
}
.footer-tagline { font-size:0.78rem; font-style:italic; font-family:'Cormorant Garamond',serif; color:var(--text3); }
.footer-col h4 { font-size:0.58rem; letter-spacing:0.45em; text-transform:uppercase; color:var(--text3); margin-bottom:14px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-col a { font-size:0.82rem; color:var(--text2); transition:color var(--t); }
.footer-col a:hover { color:var(--gold); }
.footer-bottom {
  border-top:1px solid var(--border); padding:18px 0;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
}
.footer-copy { font-size:0.68rem; color:var(--text3); letter-spacing:0.08em; }

/* ═══════════════════════════════════════
   FLOATING ELEMENTS
═══════════════════════════════════════ */
/* Telegram float button */
.tg-fab {
  position:fixed; right:20px; bottom:20px; z-index:850;
  width:54px; height:54px; border-radius:50%;
  background:#229ED9; border:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 24px rgba(34,158,217,0.45);
  transition:transform var(--t), box-shadow var(--t);
  animation:fabPop 0.5s 1.5s cubic-bezier(0.34,1.56,0.64,1) both;
  cursor:pointer;
}
.tg-fab:hover { transform:scale(1.1) translateY(-2px); box-shadow:0 8px 32px rgba(34,158,217,0.55); }
.tg-fab svg { width:26px; height:26px; fill:#fff; }
@keyframes fabPop { from { opacity:0; transform:scale(0.4); } to { opacity:1; transform:scale(1); } }

/* Tooltip on hover */
.tg-fab::before {
  content:'Telegram'; position:absolute; right:62px; top:50%; transform:translateY(-50%);
  background:var(--bg2); color:var(--text); border:1px solid var(--border);
  font-family:'DM Sans',sans-serif; font-size:0.68rem; letter-spacing:0.1em;
  padding:6px 12px; border-radius:4px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity 0.2s;
}
.tg-fab:hover::before { opacity:1; }

/* To-top button */
.to-top {
  position:fixed; right:20px; bottom:84px; z-index:840;
  width:40px; height:40px; border-radius:50%;
  background:var(--bg2); border:1px solid var(--gold-b);
  color:var(--gold); font-size:0.85rem;
  display:none; align-items:center; justify-content:center;
  box-shadow:var(--shadow); transition:background var(--t), transform var(--t);
}
.to-top.show { display:flex; }
.to-top:hover { background:var(--gold); color:#0d0e11; transform:translateY(-3px); }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.65s ease, transform 0.65s ease; }
.reveal.vis { opacity:1; transform:translateY(0); }

/* ═══════════════════════════════════════
   PRODUCTS GRID
═══════════════════════════════════════ */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:14px;
}
@media(min-width:600px) { .products-grid { grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:16px; } }
@media(min-width:900px) { .products-grid { gap:20px; } }
