﻿:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --ink: #131313;
  --muted: #626262;
  --line: #e9e7e2;
  --gold: #d4a017;
  --gold-2: #f4cd62;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --r-lg: 20px;
  --r-md: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; font-family: Manrope, sans-serif; color: var(--ink); background: radial-gradient(circle at top right, #fff7de, #f6f6f4 28%); }
.container { width: min(1160px, 92%); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); }
.nav-wrap { display: flex; align-items: center; gap: 14px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.btn-primary { border: none; background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.btn-soft { background: #fff; }
.hero { padding: 58px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.kicker { margin: 0; color: #866400; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 8px 0 12px; }
.hero-copy { color: var(--muted); max-width: 58ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.section { padding: 26px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.input, select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; }
.product-image { aspect-ratio: 1/1; background: #f7f7f6; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; display: grid; gap: 8px; }
.product-name { margin: 0; font-size: 18px; }
.product-desc { margin: 0; color: var(--muted); font-size: 14px; }
.price { font-weight: 800; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.site-footer { padding: 26px 0 36px; color: var(--muted); }
.payment-note { background: #fff7de; border: 1px solid #f2dfaa; padding: 12px 14px; border-radius: 12px; color: #624a00; }
.modal { border: none; padding: 0; width: min(940px, 96vw); background: transparent; }
.modal::backdrop { background: rgba(0,0,0,.5); }
.modal-card { background: #fff; border-radius: 20px; border: 1px solid var(--line); max-height: 92vh; display: grid; overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 16px; overflow: auto; }
.product-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { border: none; background: #fff; padding: 8px 12px; cursor: pointer; }
.qty output { min-width: 36px; text-align: center; }
.toast-host { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 80; }
.toast { background: #151515; color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.profile-chip-wrap { position: relative; }
.profile-chip { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 180px; box-shadow: var(--shadow); display: none; }
.dropdown.open { display: block; }
.dropdown button { width: 100%; text-align: left; border: none; background: none; padding: 10px 12px; cursor: pointer; }
.skeleton { border-radius: 16px; min-height: 300px; background: linear-gradient(110deg, #efefed 8%, #f8f8f7 18%, #efefed 33%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.admin-grid { display: grid; gap: 14px; grid-template-columns: 1.1fr .9fr; }
.admin-stack { display: grid; gap: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 700; }
@keyframes shimmer { to { background-position-x: -200%; } }
@media (max-width: 1020px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 4%; }
  .nav.open { display: flex; flex-direction: column; }
  .hero-grid, .product-modal-grid, .cards-3, .admin-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-wrap { flex-wrap: wrap; }
}
@media (max-width: 540px) { .products-grid { grid-template-columns: 1fr; } .nav-actions { width: 100%; } }
