/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #14181f;
  --dark-2: #1c2230;
  --orange: #ff7a1a;
  --orange-dark: #e2620a;
  --amber: #ffb703;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #181c24;
  --muted: #6b7280;
  --border: #e6e8ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px -12px rgba(20,24,31,.18);
  --shadow-lg: 0 24px 48px -16px rgba(20,24,31,.28);
  --container: 1180px;
}

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }
h1, h2, h3 { line-height: 1.5; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section { padding: 90px 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head.light .section-tag { background: rgba(255,255,255,.1); color: var(--amber); }
.section-head.light h2 { color: #fff; }
.section-tag {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: .88rem;
  background: rgba(255,122,26,.1);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(255,122,26,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(255,122,26,.65); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== Notice bar ===== */
.notice-bar {
  background: var(--dark);
  color: #cfd3da;
  text-align: center;
  font-size: .82rem;
  padding: 9px 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; color: var(--dark); }
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
}
.brand-icon svg { width: 20px; height: 20px; }
.brand-text b { color: var(--orange); }

.nav-menu ul { display: flex; align-items: center; gap: 32px; }
.nav-menu a { font-weight: 500; transition: color .2s; }
.nav-menu a:hover { color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--dark);
  transition: background .2s, color .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--bg); color: var(--orange); }
.cart-count {
  position: absolute;
  top: 2px; left: 2px;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 30px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(circle at 15% 20%, #232a38 0%, var(--dark) 55%);
  color: #fff;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .5; }
.shape-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,122,26,.35), transparent 70%); top: -150px; left: -120px; }
.shape-2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,183,3,.25), transparent 70%); bottom: -160px; right: -60px; }
.shape-3 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); top: 40%; right: 30%; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-content { max-width: 560px; }
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero h1 { font-size: 2.7rem; font-weight: 900; margin-bottom: 18px; }
.hero-text { color: #c3c8d1; font-size: 1.05rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 46px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-size: 1.6rem; font-weight: 900; color: var(--amber); }
.hero-stat span { font-size: .85rem; color: #9aa1ac; margin-top: 2px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-illustration { width: 100%; max-width: 380px; }

/* ===== Categories ===== */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 4px;
}
.cat-icon svg { width: 24px; height: 24px; }
.icon-orange { background: linear-gradient(135deg, #ff9a3c, #ff5400); }
.icon-blue { background: linear-gradient(135deg, #3ab0e0, #0d6ba8); }
.icon-green { background: linear-gradient(135deg, #4ade80, #159a56); }
.icon-red { background: linear-gradient(135deg, #fb6f6f, #b91c1c); }
.icon-purple { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.category-card h3 { font-size: 1.05rem; font-weight: 800; }
.cat-count { font-size: .85rem; color: var(--muted); }

/* ===== Products ===== */
.products { background: var(--card); }
.products-toolbar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: .88rem;
  color: var(--muted);
  transition: all .2s;
}
.filter-chip:hover { border-color: var(--orange); color: var(--orange); }
.filter-chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media {
  position: relative;
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.product-media svg { width: 54px; height: 54px; opacity: .9; }
.grad-1 { background: linear-gradient(135deg, #ff9a3c, #ff5400); }
.grad-2 { background: linear-gradient(135deg, #64748b, #303b4d); }
.grad-3 { background: linear-gradient(135deg, #fcbf3f, #f2762e); }
.grad-4 { background: linear-gradient(135deg, #fb6f6f, #b91c1c); }
.grad-5 { background: linear-gradient(135deg, #3ab0e0, #0d6ba8); }
.grad-6 { background: linear-gradient(135deg, #4ade80, #159a56); }

.badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
}
.badge-sale { background: rgba(220,38,38,.85); }
.badge-new { background: rgba(0,0,0,.4); backdrop-filter: blur(4px); }

.product-info { padding: 20px; }
.product-cat { font-size: .75rem; color: var(--orange); font-weight: 700; }
.product-info h3 { font-size: 1rem; font-weight: 800; margin: 8px 0 10px; }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.product-rating svg { width: 15px; height: 15px; color: var(--amber); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; gap: 2px; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .78rem; }
.new-price { color: var(--dark); font-weight: 900; font-size: 1rem; }
.btn-add {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,122,26,.1);
  color: var(--orange);
  transition: background .2s, color .2s;
}
.btn-add svg { width: 18px; height: 18px; }
.btn-add:hover { background: var(--orange); color: #fff; }

.products-more { text-align: center; margin-top: 44px; }

/* ===== Why us ===== */
.why-us { background: linear-gradient(135deg, var(--dark), var(--dark-2)); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: transform .25s ease, background .25s ease;
}
.feature-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,122,26,.2), rgba(255,183,3,.2));
  color: var(--amber);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { color: #fff; font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: #9aa1ac; font-size: .88rem; }

/* ===== Offer CTA ===== */
.offer-cta { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; }
.offer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.offer-text .section-tag { background: rgba(255,255,255,.18); color: #fff; }
.offer-text h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 8px; }
.offer-text p { color: rgba(255,255,255,.85); max-width: 460px; }

/* ===== About ===== */
.about { background: var(--card); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-visual { display: flex; flex-direction: column; gap: 18px; }
.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 16px;
}
.about-card svg { width: 30px; height: 30px; color: var(--orange); flex-shrink: 0; }
.about-card strong { font-size: 1.3rem; font-weight: 900; margin-left: 6px; }
.about-card span { color: var(--muted); font-size: .9rem; }
.card-1, .card-2, .card-3 { margin-inline-start: 0; }
.card-2 { margin-inline-start: 28px; }

.about-text .section-tag { margin-bottom: 10px; }
.about-text h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 16px; }
.about-text > p { color: var(--muted); margin-bottom: 22px; }
.about-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-list svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* ===== Testimonials ===== */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.t-stars { display: flex; gap: 3px; }
.t-stars svg { width: 16px; height: 16px; color: var(--amber); }
.testimonial-card p { color: var(--text); font-size: .95rem; flex: 1; }
.t-user { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
  flex-shrink: 0;
}
.t-user strong { display: block; font-size: .92rem; }
.t-user span { font-size: .8rem; color: var(--muted); }

/* ===== Blog ===== */
.blog { background: var(--card); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-cover { height: 140px; display: flex; align-items: center; justify-content: center; color: #fff; }
.blog-cover svg { width: 44px; height: 44px; opacity: .9; }
.blog-body { padding: 22px; }
.blog-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.blog-meta .dot { opacity: .6; }
.blog-body h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 10px; }
.blog-body p { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.blog-link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 700; font-size: .88rem; }
.blog-link svg { width: 16px; height: 16px; }

/* ===== Contact ===== */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: .8fr 1fr .9fr; gap: 24px; align-items: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.contact-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,122,26,.1);
  color: var(--orange);
}
.contact-icon svg { width: 19px; height: 19px; }
.contact-item strong { display: block; font-size: .85rem; margin-bottom: 3px; }
.contact-item span { display: block; font-size: .88rem; color: var(--muted); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .92rem;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { align-self: flex-start; }

.contact-map {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.map-pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--border); opacity: .6; }
.map-pin {
  position: relative;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}
.map-pin svg { width: 24px; height: 24px; }
.contact-map p { position: relative; font-weight: 600; font-size: .9rem; color: var(--text); }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #cfd3da; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 70px 24px 50px;
}
.footer-brand .nav-brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; color: #9aa1ac; margin-bottom: 20px; max-width: 280px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #cfd3da;
  transition: background .2s, color .2s;
}
.social-icons svg { width: 18px; height: 18px; }
.social-icons a:hover { background: var(--orange); color: #fff; }

.footer-col h4, .footer-newsletter h4 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .9rem; color: #9aa1ac; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }

.footer-newsletter p { font-size: .88rem; color: #9aa1ac; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .88rem;
}
.newsletter-form input::placeholder { color: #7d848f; }
.newsletter-form button {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
}
.newsletter-form svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  font-size: .82rem;
  color: #7d848f;
  flex-wrap: wrap;
}
.payment-icons { display: flex; gap: 10px; }
.payment-icons svg { width: 22px; height: 22px; color: #7d848f; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s ease;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--orange-dark); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .navbar { height: 68px; }
  .nav-menu {
    position: fixed;
    top: 68px; right: -100%;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - 68px);
    background: #fff;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
    padding: 30px 24px;
    transition: right .3s ease;
    z-index: 105;
  }
  .nav-menu.open { right: 0; }
  .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding: 50px 24px 30px; }
  .offer-inner { flex-direction: column; align-items: flex-start; text-align: right; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .back-to-top { left: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .categories-grid, .products-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
