:root {
  --ink: #1c1e27;
  --muted: #6b7080;
  --line: #ece8f2;
  --bg: #ffffff;
  --soft: #f6f4fb;
  --accent: #5b3df5;
  --accent-2: #3a22c9;
  --hl: #6d4aff;
  --card: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 28px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #7a5cff, #3a22c9); color: #fff; font-weight: 800; }
.logo-type { font-weight: 800; font-size: 1.15rem; }
.main-nav { display: flex; gap: 16px; }
.main-nav a { color: #3a3f4d; font-weight: 600; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }
.header-search { margin-inline-start: auto; display: flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 4px; }
.header-search input { border: 0; background: transparent; font: inherit; padding: 8px 12px; width: 190px; }
.header-search button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-actions { display: flex; gap: 8px; }
.icon-link { position: relative; display: flex; flex-direction: column; align-items: center; color: #2b3040; font-size: 0.72rem; gap: 2px; min-width: 42px; }
.icon-link b { position: absolute; top: -4px; left: 0; background: var(--accent); color: #fff; border-radius: 99px; font-size: 0.68rem; padding: 0 5px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.nav-toggle span { display: block; height: 2px; background: #222; margin: 5px 8px; }
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 18px; }
.banner-wide { grid-column: 1 / -1; }
.banner img { width: 100%; height: auto; border-radius: 18px; }
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.35; margin: 0 0 10px; }
.hl { color: var(--hl); }
.lead { color: var(--muted); max-width: 46rem; margin-top: 0; }
.hero-search { display: flex; gap: 8px; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; }
.hero-search input { flex: 1; border: 0; font: inherit; padding: 10px 12px; }
.btn, .button, button.button, a.button { background: var(--accent); color: #fff !important; border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; display: inline-block; }
.btn-soft { background: var(--soft); color: var(--accent-2) !important; }
.btn-sm { padding: 8px 12px; font-size: 0.92rem; text-align: center; }
.block { padding: 8px 0 18px; }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.block-title { margin: 0; font-size: 1.25rem; }
.more { color: var(--accent); font-weight: 700; }
.grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0; margin: 0; }
.card, ul.products li.product { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.thumb { position: relative; display: block; background: #f3f1f8; aspect-ratio: 1 / 1; }
.thumb img, ul.products li.product img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title, .woocommerce-loop-product__title { margin: 0; font-size: 1rem; min-height: 2.8em; }
.price { font-weight: 800; }
.sale-badge, .stock-badge { position: absolute; top: 10px; right: 10px; background: #ff4d6d; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 0.75rem; font-weight: 800; z-index: 1; }
.stock-badge { background: #6b7080; }
.support { margin: 10px auto 36px; background: linear-gradient(135deg, #f4f0ff, #fff); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.support h2 { margin: 0 0 4px; }
.support p { margin: 0; color: var(--muted); }
.site-footer { background: #16141f; color: #ddd8ea; padding: 28px 0 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-content: start; }
.footer-links a { color: #ddd8ea; }
.copyright { border-top: 1px solid #2c2938; margin-top: 16px; padding-top: 10px; color: #9b95aa; font-size: 0.88rem; }
.shop-wrap { padding: 22px 0 40px; }
.woocommerce-breadcrumb { color: var(--muted); font-size: 0.85rem; }
.woocommerce div.product { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
.woocommerce div.product .woocommerce-product-gallery { background: #f6f4fb; border-radius: 18px; overflow: hidden; }
.woocommerce div.product form.cart { display: grid; gap: 10px; }
.woocommerce div.product .variations select, .qty, .input-text, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: #fff; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: right; }
@media (max-width: 900px) {
  .grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product, .banners { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px; flex-direction: column; }
  body.nav-open .main-nav { display: flex; }
  .header-search input { width: 110px; }
}
@media (max-width: 640px) {
  .support, .footer-row { flex-direction: column; align-items: stretch; }
}
