:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b111b;
  --navy: #0b1422;
  --navy-2: #12203a;
  --blue: #2f8bff;
  --blue-2: #0a4fe0;
  --blue-soft: rgba(47, 139, 255, 0.14);
  --accent: #4fb3ff;
  --wa: #25d366;
  --wa-dark: #1da851;
  --card: rgba(255, 255, 255, 0.035);
  --card-solid: #0f1726;
  --text: #e8eef7;
  --muted: #93a3b8;
  --border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(47, 139, 255, 0.5), 0 10px 40px rgba(47, 139, 255, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
::selection { background: var(--blue); color: #fff; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 46px; width: auto; }
.nav { display: flex; gap: 0.3rem; margin-inline-start: auto; }
.nav a {
  text-decoration: none; color: #c4d0df; font-weight: 500;
  padding: 0.4rem 0.85rem; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.header-actions { display: flex; gap: 0.5rem; }
.lang-btn, .menu-btn {
  font: inherit; font-weight: 500; cursor: pointer; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04); color: #fff; border-radius: 999px; padding: 0.35rem 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.lang-btn:hover { border-color: var(--blue); background: var(--blue-soft); }
.menu-btn { display: none; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.8rem 1.5rem; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #04210f; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25); }
.btn-wa:hover { background: #2fe474; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: inherit; border: 1px solid rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; border-radius: 10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 5.5rem 0 3rem;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(47, 139, 255, 0.28), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(10, 79, 224, 0.22), transparent 70%),
    var(--bg);
}
.hero::before {
  /* faint technical grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-inner { max-width: 680px; }
.eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: 0.9rem; margin: 0 0 1rem;
  padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--blue-soft); border: 1px solid rgba(47, 139, 255, 0.35);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 30%, #a9c8f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { color: var(--muted); font-size: 1.15rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.2rem; }
.hero-visual { display: grid; place-items: center; }
.hero-visual img {
  width: min(340px, 100%); height: auto; border-radius: 48px;
  box-shadow: 0 0 0 1px rgba(47, 139, 255, 0.35), 0 30px 120px rgba(47, 139, 255, 0.45);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 3.5rem 0 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px);
}
.hero-stats div { padding: 1.2rem 1.5rem; }
.hero-stats div + div { border-inline-start: 1px solid var(--border); }
.hero-stats dt { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

.status { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; margin: 0.5rem 0 0; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.status.open::before { background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2); animation: pulse 2s infinite; }
.status.closed::before { background: #ff5a5f; box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0.05); } }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-text { color: var(--muted); margin-top: 0; }

.card, .cat, .product, .request, .about-tagline {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}

/* Photo slideshow */
.showcase-section { padding-bottom: 0; }
.showcase-section[hidden] { display: none; }
.showcase {
  position: relative; overflow: hidden; margin-top: 1.5rem;
  height: clamp(260px, 42vw, 460px); border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-solid); box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; cursor: pointer; }
.slide.active { opacity: 1; z-index: 1; }
.slide-bg {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; filter: blur(30px) brightness(0.45) saturate(120%);
}
.slide-img {
  position: relative; display: block; width: 100%; height: 100%;
  object-fit: scale-down; padding: 1.5rem 1.5rem 5rem;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}
.slide.active .slide-img { animation: slide-zoom 6s ease-out both; }
@keyframes slide-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.slide figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.5rem 1.5rem 1.2rem;
  display: flex; flex-direction: column;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.slide figcaption span { color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.slide figcaption strong { font-size: 1.3rem; color: #fff; }
.slide-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer;
  background: rgba(7, 11, 18, 0.55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}
.slide-nav:hover { background: var(--blue); border-color: var(--blue); }
.slide-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.slide-nav.prev { inset-inline-start: 14px; }
.slide-nav.next { inset-inline-end: 14px; }
[dir="rtl"] .slide-nav svg { transform: scaleX(-1); }
.showcase-progress { position: absolute; top: 0; inset-inline-start: 0; z-index: 2; height: 3px; width: 0; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.showcase-progress.run { animation: slide-progress 4.5s linear both; }
@keyframes slide-progress { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .slide.active .slide-img, .showcase-progress.run { animation: none; }
}

/* Categories */
.cat-grid {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  padding: 1.6rem 1rem; font: inherit; font-weight: 700; color: var(--text);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; background: rgba(47, 139, 255, 0.06); }
.cat-icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  font-size: 2rem; line-height: 1;
  background: radial-gradient(circle at 30% 30%, #ffffff, #dbe8fb);
  box-shadow: 0 6px 20px rgba(47, 139, 255, 0.25);
}
.icon-img { display: block; width: 1.25em; height: 1.25em; }

.other-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.2rem; width: 100%; margin-top: 1.5rem;
  padding: 1.8rem; border: 1px solid rgba(79, 179, 255, 0.4); border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(120deg, var(--blue-2), var(--blue) 60%, #4fb3ff);
  color: #fff; font: inherit; text-align: start;
  box-shadow: 0 20px 60px rgba(47, 139, 255, 0.3); transition: transform 0.2s, box-shadow 0.2s;
}
.other-card:hover { transform: translateY(-3px); box-shadow: 0 26px 70px rgba(47, 139, 255, 0.45); }
.other-card > * { position: relative; z-index: 1; }
.other-card::after {
  /* light flash sweeping left and back */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 22%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(480%) skewX(-18deg);
  animation: flash-sweep 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes flash-sweep { to { transform: translateX(-130%) skewX(-18deg); } }
.other-icon { font-size: 2.8rem; animation: truck-drive 3.2s ease-in-out infinite alternate; }
@keyframes truck-drive { from { transform: translateX(6px); } to { transform: translateX(-14px); } }
.other-body { display: flex; flex-direction: column; flex: 1; }

/* Nationwide shipping box */
.ship-track {
  /* clips the box while it slides out; padding leaves room for its glow */
  overflow: hidden; margin: 0.2rem -16px 0; padding: 0.8rem 16px 1.6rem;
}
.ship-card {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.8rem;
  border-radius: var(--radius); text-decoration: none; color: #0b1422;
  background: linear-gradient(120deg, #ffc400, #ffd23f 55%, #ffe27a);
  box-shadow: 0 16px 50px rgba(255, 196, 0, 0.25);
  animation: ship-pulse 2.4s ease-out infinite, ship-slide 4.5s ease-in-out infinite;
}
.ship-card:hover, .ship-card:active { animation-play-state: paused; }
/* rests in place, slides out to the left, re-enters from the right */
@keyframes ship-slide {
  0%, 42% { transform: translateX(0); }
  62% { transform: translateX(-115%); }
  62.01% { transform: translateX(115%); }
  84%, 100% { transform: translateX(0); }
}
@keyframes ship-pulse {
  0% { box-shadow: 0 16px 50px rgba(255, 196, 0, 0.25), 0 0 0 0 rgba(255, 210, 63, 0.55); }
  70%, 100% { box-shadow: 0 16px 50px rgba(255, 196, 0, 0.25), 0 0 0 12px rgba(255, 210, 63, 0); }
}
.ship-icon { font-size: 2.6rem; animation: truck-drive 3.2s ease-in-out infinite alternate; }
.ship-body { display: flex; flex-direction: column; flex: 1; }
.ship-body strong { font-size: 1.4rem; font-weight: 900; }
.ship-body span { font-weight: 500; color: #3a3000; }
.ship-cta { background: #0b1422; color: #ffd23f; padding: 0.65rem 1.3rem; border-radius: 12px; font-weight: 800; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .other-card::after, .other-icon, .ship-card, .ship-icon { animation: none; }
  .other-card::after { display: none; }
}
.other-body strong { font-size: 1.35rem; }
.other-body span { color: rgba(255, 255, 255, 0.85); }
.other-cta { background: #fff; color: var(--blue-2); padding: 0.65rem 1.3rem; border-radius: 12px; font-weight: 800; white-space: nowrap; }

/* Products */
.tabs { display: inline-flex; gap: 0.3rem; margin: 1.2rem 0; padding: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.tab {
  font: inherit; font-weight: 700; padding: 0.5rem 1.2rem; border-radius: 999px; cursor: pointer;
  border: 0; background: transparent; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.tab:hover { color: #fff; }
.tab.active { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(47, 139, 255, 0.35); }
.filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.filters input { flex: 2 1 260px; }
.filters select { flex: 1 1 180px; }
.input {
  font: inherit; padding: 0.75rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #6f8097; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 139, 255, 0.2); }
select.input option { background: var(--card-solid); }

.product-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; }
.product-media {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 40%, #ffffff, #dfe8f5); font-size: 3.4rem;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .icon-img { width: 1.25em; height: 1.25em; object-fit: contain; }
.product-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 1.1rem; flex: 1; }
.product-body h3 { font-size: 1.12rem; margin: 0; }
.product-body .btn { margin-top: auto; width: 100%; }
.product-cat { color: var(--accent); font-size: 0.82rem; font-weight: 500; }
.product-meta { margin: 0; font-size: 0.9rem; color: var(--muted); }
.badge { font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.65rem; border-radius: 999px; margin-bottom: 0.7rem; }
.badge.in { background: rgba(37, 211, 102, 0.14); color: #4ee38a; }
.badge.out { background: rgba(255, 184, 0, 0.14); color: #ffc53d; }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

.request {
  margin-top: 3rem; padding: 2rem;
  background: linear-gradient(135deg, rgba(47, 139, 255, 0.1), rgba(255, 255, 255, 0.02));
}
.request p { color: var(--muted); margin-top: 0; }
.request-fields { display: grid; gap: 0.8rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.2rem; }
.request-fields textarea { grid-column: 1 / -1; resize: vertical; }

/* About */
.about-intro { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; }
.about-intro p { color: var(--muted); }
.about-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 190px; aspect-ratio: 1; border-radius: 50%; text-align: center; color: var(--muted);
  background: radial-gradient(circle at 30% 25%, var(--navy-2), var(--bg));
  box-shadow: 0 0 0 1px rgba(47, 139, 255, 0.5), 0 0 0 10px rgba(47, 139, 255, 0.07), 0 20px 80px rgba(47, 139, 255, 0.35);
}
.about-stat strong {
  font-size: 3.6rem; line-height: 1.1; font-weight: 800;
  background: linear-gradient(180deg, #ffffff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2.5rem; }
.about-grid p { color: var(--muted); }
.about-tagline {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; font-weight: 700; font-size: 1.15rem;
  border-inline-start: 4px solid var(--blue);
  background: linear-gradient(90deg, rgba(47, 139, 255, 0.12), transparent);
}

/* Contact */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.card { padding: 1.6rem; }
.card h3 { font-size: 1rem; margin-top: 1.4rem; color: #fff; }
.card h3:first-child { margin-top: 0; }
.card p { margin: 0 0 0.8rem; color: var(--muted); }
.link-list { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.link-list a { text-decoration: none; font-weight: 500; color: var(--accent); }
.link-list a:hover { color: #fff; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 0.6rem 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; }
.hours td:last-child { text-align: end; font-weight: 500; color: var(--accent); }

.footer { border-top: 1px solid var(--border); color: var(--muted); padding: 2rem 0; text-align: center; font-size: 0.9rem; }

.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 30;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.06); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .header-actions { margin-inline-start: auto; }
  .nav {
    display: none; position: absolute; top: 72px; inset-inline: 0;
    flex-direction: column; gap: 0; background: rgba(7, 11, 18, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.9rem 16px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .hero-stats div + div { border-inline-start: 0; border-top: 1px solid var(--border); }
  .section { padding: 3.5rem 0; }
  .showcase { height: 340px; }
  .slide-img { padding: 0.75rem 0.75rem 5rem; }
  .slide figcaption { padding: 2rem 1rem 0.9rem; }
  .slide figcaption strong { font-size: 1.1rem; }
  .slide-nav { width: 38px; height: 38px; }
  .slide-nav.prev { inset-inline-start: 8px; }
  .slide-nav.next { inset-inline-end: 8px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat { padding: 1.2rem 0.6rem; gap: 0.7rem; font-size: 0.95rem; text-align: center; }
  .cat-icon { width: 58px; height: 58px; font-size: 1.7rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-media { aspect-ratio: 1; font-size: 2.6rem; }
  .product-body { padding: 0.8rem; gap: 0.25rem; }
  .product-body h3 { font-size: 0.98rem; }
  .product-cat, .product-meta { font-size: 0.78rem; }
  .badge { margin-bottom: 0.5rem; }
  .product-body .btn { padding: 0.55rem 0.4rem; font-size: 0.8rem; line-height: 1.4; text-align: center; }
  .other-card { flex-wrap: wrap; }
  .ship-card { flex-wrap: wrap; padding: 1.3rem; }
  .ship-body strong { font-size: 1.2rem; }
  .other-cta, .ship-cta { width: 100%; text-align: center; }
  .request-fields { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; justify-items: center; }
  .about-stat { width: 160px; }
}
