*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --green: #22c55e;
  --green-dark: #16a34a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
  --radius: 16px;
  --max: 1180px;
}

html[data-theme='dark'] {
  --bg: #0b1220;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(248, 250, 252, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading] {
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  background: var(--green);
  color: var(--slate);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn,
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--slate);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
}

.mobile-nav.open {
  display: grid;
  gap: 0.75rem;
}

.mobile-nav a,
.mobile-nav button {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg);
  border: none;
  text-align: right;
  color: var(--text);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

html[data-theme='dark'] .eyebrow {
  color: var(--green);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
}

.hero-panel {
  background: linear-gradient(145deg, var(--slate), var(--slate-soft));
  color: #f8fafc;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.hero-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-panel-top img {
  width: 34px;
  height: 34px;
}

.hero-panel-badge {
  font-size: 0.78rem;
  color: #86efac;
  font-weight: 700;
}

.preview-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.preview-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.preview-card p {
  color: #cbd5e1;
  font-size: 0.82rem;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.price-chip {
  color: #86efac;
  font-weight: 800;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--muted);
  max-width: 38rem;
}

.products-grid,
.why-grid,
.categories-grid,
.reviews-grid {
  display: grid;
  gap: 1rem;
}

.products-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.show-more-btn {
  min-width: 220px;
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 999px;
  color: #052e16;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #4ade80 0%, var(--green) 45%, #16a34a 100%);
  box-shadow: 0 16px 35px rgba(34, 197, 94, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.show-more-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 20px 42px rgba(22, 163, 74, 0.24);
}

.show-more-btn:active {
  transform: translateY(0);
}

.products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card-link .product-card-anchor {
  display: block;
  color: inherit;
}

.products-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
}

.products-actions .btn {
  min-width: 220px;
}

.product-card-link .product-footer .btn {
  pointer-events: none;
}

.product-card-link:hover .product-footer .btn {
  transform: translateY(-2px);
}

.product-card,
.why-card,
.category-card,
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card-anchor {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

html[data-theme='dark'] .product-thumb {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255, 255, 255, 0.03));
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.product-type {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-name {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.product-desc {
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 3.2rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-discount-pill {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
}

.price-box strong {
  display: block;
  font-size: 1.15rem;
}

.price-box small {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.78rem;
}

.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.why-card {
  padding: 1.25rem;
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.why-card h3,
.category-card h3,
.review-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.why-card p,
.category-card p,
.review-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
  padding: 1.25rem;
  cursor: pointer;
}

.category-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.85rem;
}

.reviews-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.review-card {
  padding: 1.2rem;
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.review-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-author-meta {
  min-width: 0;
}

.review-author h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--slate);
  color: #fff;
  font-weight: 800;
}

html[data-theme='dark'] .avatar {
  background: var(--green);
  color: var(--slate);
}

.review-role {
  color: var(--muted);
  font-size: 0.82rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-align: right;
  font-weight: 700;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-a {
  max-height: 220px;
}

.faq-a-inner {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-icon {
  color: var(--green);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.cta-band {
  margin: 1rem 0 0;
  padding: 2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--slate), var(--slate-soft));
  color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p {
  color: #cbd5e1;
  max-width: 34rem;
}

.site-footer {
  padding: 3.4rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-brand,
.footer-col,
.footer-trust {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.footer-brand p,
.footer-col a,
.footer-bottom {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-col h4 {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 800;
}

.footer-col {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.footer-col a {
  transition: color 0.2s ease, transform 0.2s ease;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--green-dark);
  transform: translateX(-2px);
}

.footer-brand .brand span {
  font-size: 1.1rem;
}

.footer-brand p {
  max-width: 28rem;
  line-height: 1.9;
}

.footer-trust a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.65rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.footer-trust img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.secure-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.secure-badges span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.loading-shell {
  opacity: 0.55;
  pointer-events: none;
}

.skeleton {
  animation: pulse 1.4s ease infinite;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.12));
  background-size: 200% 100%;
  border-radius: 12px;
  min-height: 120px;
}

@keyframes pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 960px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav,
  .header-actions .btn-secondary {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .footer-col h4 {
    margin-bottom: 0.55rem;
  }

  .footer-col a,
  .footer-brand p,
  .footer-bottom {
    font-size: 0.86rem;
  }

  .footer-bottom {
    padding: 0.9rem 1rem;
    align-items: stretch;
  }

  .secure-badges {
    gap: 0.4rem;
  }

  .secure-badges span {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-footer .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
