:root {
  --gold: #9a7b2f;
  --gold-dark: #7a6124;
  --ink: #1c1a17;
  --muted: #6f675d;
  --bg: #f7f3ec;
  --paper: #ffffff;
  --line: rgba(154, 123, 47, 0.22);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); text-align: center; color: var(--gold-dark); margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 36px; }
.btn {
  display: inline-block; padding: 12px 26px; border: none; cursor: pointer;
  font-family: Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem;
}
.btn-gold { background: linear-gradient(135deg, #d7bf78, var(--gold)); color: #1c1a17; }
.btn-outline { background: transparent; color: var(--gold-dark); border: 1px solid var(--gold); width: 100%; margin-top: 10px; }
.btn-outline:disabled { opacity: .45; cursor: not-allowed; }
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: rgba(247, 243, 236, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; letter-spacing: .16em; color: var(--gold-dark); }
.nav { display: flex; gap: 22px; }
.nav a { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--gold-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; background: none; border: none; color: var(--gold-dark); cursor: pointer; }
.cart-count {
  position: absolute; top: -6px; right: -8px; background: var(--gold); color: #fff;
  width: 18px; height: 18px; border-radius: 50%; font-size: .68rem;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; }
.menu-toggle span { width: 22px; height: 2px; background: var(--gold-dark); }
.hero {
  min-height: 78vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: linear-gradient(180deg, #fffdf8, #efe6d6);
  padding-top: 72px;
}
.hero h1 { font-size: clamp(3.2rem, 10vw, 6rem); color: var(--gold-dark); letter-spacing: .14em; }
.hero-subtitle { letter-spacing: .42em; color: var(--gold); margin: 6px 0 18px; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; }
.hero-desc { color: var(--muted); margin-bottom: 28px; }
.catalog { background: #fffdf8; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.product-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; cursor: pointer; box-shadow: 0 8px 24px rgba(80, 60, 20, .05);
}
.product-image {
  height: 210px; background: #faf7f2; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 14px;
}
.product-image img { max-height: 180px; width: auto; max-width: 78%; object-fit: contain; margin: 0 auto; }
.badge { position: absolute; top: 10px; right: 10px; font-size: .68rem; padding: 4px 8px; border-radius: 99px; color: #fff; }
.badge.available { background: #3d8b5f; }
.badge.not-available { background: #b44545; }
.product-info { padding: 16px 16px 18px; text-align: center; }
.product-brand { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product-info h3 { font-size: 1.35rem; margin: 4px 0; color: var(--ink); }
.product-notes { font-size: .8rem; color: var(--muted); min-height: 2.4em; }
.product-price { color: var(--gold-dark); font-weight: 600; margin-top: 6px; }
.product-price .unit { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tap-hint { display: block; margin-top: 8px; font-size: .72rem; color: var(--gold); }
.about, .delivery { background: var(--bg); }
.payment, .contacts { background: #fffdf8; }
.about-grid, .payment-grid, .delivery-grid, .contacts-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.about-text .section-title { text-align: left; }
.about-text p, .payment-card p, .delivery-card p, .contacts-note { color: var(--muted); }
.about-list { list-style: none; margin-top: 16px; }
.about-list li { padding-left: 18px; position: relative; margin-bottom: 8px; }
.about-list li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold); }
.about-image img { width: 100%; max-height: 420px; object-fit: contain; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.payment-card, .delivery-card, .contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center;
}
.payment-note { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.payment-note ol { margin-left: 18px; color: var(--muted); }
.footer { text-align: center; padding: 36px 0 48px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-logo { font-family: "Cormorant Garamond", serif; font-size: 1.6rem; letter-spacing: .16em; color: var(--gold-dark); margin-bottom: 8px; }
.cart-overlay, .modal-overlay {
  position: fixed; inset: 0; background: rgba(40, 32, 20, .45); z-index: 40;
  opacity: 0; visibility: hidden; transition: .25s;
}
.cart-overlay.active, .modal-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: -100%; width: min(380px, 100%); height: 100%;
  background: #fffdf8; z-index: 50; display: flex; flex-direction: column; transition: .3s; border-left: 1px solid var(--line);
}
.cart-sidebar.active { right: 0; }
.cart-header, .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-close, .modal-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted); }
.cart-items { flex: 1; overflow: auto; padding: 12px 20px; }
.cart-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-footer { padding: 16px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fffdf8; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 12px; }
.cart-order-btn { width: 100%; }
.product-modal {
  position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98);
  width: min(680px, calc(100% - 28px)); background: #fff; border-radius: 18px;
  opacity: 0; visibility: hidden; transition: .25s; overflow: hidden; border: 1px solid var(--line);
}
.product-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-body { display: grid; grid-template-columns: 200px 1fr; gap: 8px; }
.modal-photo { background: #faf7f2; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-photo img { max-height: 240px; width: auto; object-fit: contain; }
.modal-copy { padding: 8px 20px 22px; }
.modal-copy h3 { font-size: 2rem; }
.modal-copy p { color: var(--muted); margin: 8px 0; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fffdf8; flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .nav.active { display: flex; }
  .menu-toggle { display: flex; }
  .modal-body { grid-template-columns: 1fr; }
  .about-text .section-title { text-align: center; }
  .product-image { height: 180px; }
  .product-image img { max-height: 150px; }
}

.catalog-tools { margin: 0 auto 28px; max-width: 760px; }
.catalog-tools input, .catalog-tools select, .order-fields input, .order-fields select {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filter-row.selects { align-items: center; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; color: var(--gold-dark);
  border-radius: 999px; padding: 7px 12px; font-size: .78rem; cursor: pointer;
}
.filter-chip.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.filter-reset { border: none; background: none; color: var(--muted); cursor: pointer; font-size: .78rem; padding: 8px; }
.filter-count { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 12px; }
.catalog-empty { text-align: center; color: var(--muted); padding: 28px 0; }
.order-fields { display: grid; gap: 8px; margin-bottom: 12px; }
.order-fields input[hidden] { display: none; }

#cart-ig-btn{margin-top:8px;background:#fff}

.order-guide{background:#fffdf8}.guide-steps{max-width:560px;margin:0 auto;padding:0 0 0 22px;color:#4a4034;line-height:1.7}.guide-steps li{margin:8px 0}.guide-note{max-width:560px;margin:14px auto 0;text-align:center;color:#8a7760;font-size:14px}

.catalog-pager{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:22px 0 8px}
.page-btn{min-width:42px;height:40px;padding:0 12px;border:1px solid #d9c7a3;background:#fff;color:#5c4a2a;border-radius:8px;font:inherit}
.page-btn.active{background:#c4a35a;color:#fff;border-color:#c4a35a}
.page-btn:disabled{opacity:.4}

.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:8px}
.shop-grid figure{margin:0;background:#fff;border-radius:16px;overflow:hidden;border:1px solid #efe6d6}
.shop-grid img{width:100%;height:420px;object-fit:cover;display:block}
.shop-grid figcaption{padding:10px 14px 14px;text-align:center;color:#8a7760;font-size:14px}
@media(max-width:700px){.shop-grid{grid-template-columns:1fr}.shop-grid img{height:280px}}

.reviews { background: #fffdf8; }
.reviews-list { display: grid; gap: 14px; margin-bottom: 28px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.review-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.review-name { font-weight: 500; }
.review-stars { color: var(--gold); letter-spacing: 2px; }
.review-product { color: var(--muted); font-size: .82rem; margin: 4px 0 8px; }
.review-text { font-size: .95rem; }
.review-empty { text-align: center; color: var(--muted); }
.review-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.review-form h3 { font-size: 1.6rem; color: var(--gold-dark); text-align: center; }
.review-form input, .review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: #fffdf8; }
.review-form textarea { min-height: 110px; resize: vertical; }
.stars { display: flex; justify-content: center; gap: 6px; }
.stars button { background: none; border: none; font-size: 1.8rem; color: #ddd; cursor: pointer; line-height: 1; }
.stars button.on { color: var(--gold); }
.review-note, .review-status { text-align: center; color: var(--muted); font-size: .82rem; }
