@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0030-0039, U+0041-005A, U+0061-007A; }
@font-face { font-family: Vazirmatn; src: url("../fonts/Vazirmatn-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0030-0039, U+0041-005A, U+0061-007A; }

:root {
  --green: #8fbf9f;
  --green-dark: #143526;
  --gold: #e4c27a;
  --gold-light: #f3e2bc;
  --text: #f7f1e8;
  --muted: #cbbfae;
  --line: rgba(228, 194, 122, .22);
  --card: #102017;
  --bg: #07140e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.frontend {
  margin: 0;
  direction: rtl;
  text-align: right;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(228,194,122,.08), transparent 55%),
    radial-gradient(700px 420px at -10% 20%, rgba(143,191,159,.08), transparent 50%),
    var(--bg);
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
button, input, textarea { font-family: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.top-bar { background: #0c1c14; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.top-bar-inner, .header-container, .newsletter-content { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-bar-inner { min-height: 42px; }
.top-bar a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7,20,14,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-container { min-height: 84px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { width: 52px; height: 52px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-size: 22px; }
.brand-copy small { color: var(--gold-light); font-size: 12px; }
.search-form { flex: 1; display: flex; max-width: 460px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form input { flex: 1; border: 0; background: transparent; color: var(--text); padding: 12px 16px; outline: none; }
.search-form button { border: 0; background: transparent; color: var(--gold); padding: 0 14px; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action, .menu-toggle { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.action-count { min-width: 20px; height: 20px; border-radius: 99px; background: #7a3040; color: #fff; font-size: 11px; display: grid; place-items: center; }
.menu-toggle { display: none; }
.main-navigation { border-bottom: 1px solid rgba(255,255,255,.04); }
.main-menu { display: flex; gap: 8px; list-style: none; margin: 0; padding: 8px 0; }
.main-menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.main-menu a:hover, .main-menu .current-menu-item a { color: var(--text); background: rgba(228,194,122,.1); }

.hero { padding: 42px 0 18px; }
.hero-content, .atelier-grid, .product-detail, .contact-grid, .shop-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.hero h1, .section-title, .prose h1, .page-header h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1.25; margin: 0 0 12px; }
.hero h1 span { color: var(--gold-light); }
.hero-subtitle, .eyebrow { color: var(--gold); font-size: 13px; }
.hero-text p, .product-copy, .muted { color: var(--muted); }
.hero-buttons, .hero-points { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.hero-points { list-style: none; padding: 0; color: var(--muted); font-size: 14px; }
.hero-points li, .call-price { display: inline-flex; align-items: center; gap: 6px; }
.hero-image { position: relative; min-height: 460px; }
.hero-image img, .atelier-grid img, .product-detail > img { width: 100%; height: 520px; object-fit: cover; border-radius: 32px; }
.hero-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(16,28,22,.82); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; color: var(--gold-light); }
.hero-badge small { display: block; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; font-weight: 700; }
.btn-primary { background: linear-gradient(145deg, #1f6b45, #0e3d28); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--gold-light); background: transparent; }
.trust-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar .container, .features-grid, .categories-grid, .products-grid, .blog-grid { display: grid; gap: 16px; }
.trust-bar .container { grid-template-columns: repeat(4, 1fr); padding: 22px 0; text-align: center; }
.trust-bar strong { display: block; color: var(--gold-light); font-size: 22px; }
.trust-bar span, .shop-side a, .footer-container a, .footer-container li { color: var(--muted); }
.section { padding: 28px 0; }
.section-title { font-size: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: end; }
.categories-grid { grid-template-columns: repeat(3, 1fr); }
.category-card { position: relative; height: 230px; border-radius: 22px; overflow: hidden; color: #fff; }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3, .category-count { position: absolute; z-index: 1; }
.category-card h3 { right: 16px; bottom: 12px; margin: 0; }
.category-count { top: 12px; right: 12px; background: rgba(8,18,13,.72); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--gold-light); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,14,10,.78), transparent 55%); }
.products-grid, .blog-grid { grid-template-columns: repeat(4, 1fr); }
.blog-grid { grid-template-columns: repeat(3, 1fr); }
.product-card, .blog-card, .features-grid article, .contact-card, .shop-side, .cart-row { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.product-image { position: relative; display: block; height: 250px; }
.product-image img, .blog-card img, .cart-row img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 12px; right: 12px; background: rgba(8,18,13,.8); color: var(--gold-light); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.product-badge.sale { background: #7a3040; color: #fff; }
.product-info, .blog-card a, .features-grid article { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.product-info h3, .blog-card h3 { margin: 0; font-size: 16px; }
.product-info h3 a, .blog-card h3 { color: var(--text); }
.product-category { color: var(--gold); font-size: 12px; }
.product-price, .call-price { color: var(--gold-light); font-weight: 800; }
.old-price { color: #8f8476; text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.features-grid { grid-template-columns: repeat(4, 1fr); }
.features-grid h3 { margin: 0; }
.features-grid p { margin: 0; color: var(--muted); }
.atelier-grid { background: linear-gradient(145deg, rgba(228,194,122,.08), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.atelier-grid img { height: 420px; border-radius: 0; }
.atelier-grid div { padding: 28px; }
.page-header { padding: 34px 0 0; }
.page-header p { color: var(--muted); }
.shop-layout { align-items: start; grid-template-columns: 240px 1fr; }
.shop-side { padding: 16px; }
.shop-side ul, .footer-container ul { list-style: none; padding: 0; margin: 0; }
.shop-side a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.product-detail > img { height: 620px; }
.product-copy { color: var(--muted); }
.price-lg, .call-price-lg { font-size: 28px; }
.ship-note { color: var(--gold-light); }
.cart-list { display: grid; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px; }
.cart-row img { width: 96px; height: 96px; border-radius: 14px; }
.cart-row input { width: 70px; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.newsletter-section { border-top: 1px solid var(--line); padding: 28px 0; }
.newsletter-content form, .contact-card { display: flex; gap: 8px; }
.newsletter-content input, .contact-card input, .contact-card textarea { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; }
.newsletter-content input { min-width: 240px; }
.contact-card { flex-direction: column; padding: 22px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 18px; }
.footer-container { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 24px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.footer-bottom { color: #8f8476; font-size: 13px; padding-top: 18px; }
.flash-banner, .empty-note { background: #1d4a34; color: var(--text); border-radius: 12px; padding: 12px 14px; }
.pager { padding: 18px 0 30px; }
.pager .nav-links { display: flex; gap: 8px; }
.pager a, .pager span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }

.contact-orb { position: fixed; left: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-orb-toggle { width: 62px; height: 62px; border: 0; border-radius: 50%; background: linear-gradient(145deg, #1f6b45, #0e3d28); color: #fff; box-shadow: 0 12px 28px rgba(14,61,40,.35); cursor: pointer; }
.contact-orb-toggle svg { width: 26px; height: 26px; }
.contact-orb-menu { display: flex; flex-direction: column; gap: 8px; }
.contact-orb-menu[hidden] { display: none; }
.contact-orb-menu a { display: flex; align-items: center; gap: 10px; background: #fff; color: #163528; border-radius: 999px; padding: 8px 8px 8px 14px; font-weight: 700; }
.contact-orb-menu svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #1f6b45; color: #fff; }

@media (max-width: 980px) {
  .hero-content, .atelier-grid, .product-detail, .contact-grid, .shop-layout, .footer-container, .categories-grid, .features-grid, .blog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .search-form { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { display: none; }
  .main-navigation.is-open { display: block; }
  .main-menu { flex-direction: column; }
  .hero-image img, .product-detail > img, .atelier-grid img { height: 320px; }
  .cart-row { grid-template-columns: 72px 1fr; }
}
