@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --navy: #253746;
  --navy-dark: #1a2732;
  --lime: #7acc00;
  --lime-dark: #63a600;
  --mint: #dff2d8;
  --sage: #c6dea6;
  --bg-soft: #f7fbf5;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.topbar { background: var(--navy); color: #fff; font-size: 12px; padding: 8px 0; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.badge-kb { background: var(--lime); color: var(--navy); font-weight: 900; padding: 2px 10px; border-radius: 999px; margin-left: 8px; font-size: 11px; }
.topbar-phones { display: flex; align-items: center; gap: 12px; direction: ltr; font-weight: 700; }
.topbar-phones a:hover { color: var(--lime); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(198,222,166,0.8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-link img { height: 42px; width: auto; }
.brand-title { font-weight: 900; font-size: 16px; line-height: 1.2; }
.brand-sub { font-size: 11px; opacity: 0.65; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.main-nav a:hover, .nav-active { color: var(--lime-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-box { display: flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--sage); border-radius: 12px; padding: 7px 12px; width: 220px; }
.search-box input { border: none; background: transparent; width: 100%; font-size: 12px; color: var(--navy); outline: none; }
.btn-cart { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; border: none; border-radius: 12px; padding: 9px 14px; font-size: 12px; font-weight: 800; cursor: pointer; }
.btn-cart:hover { background: var(--navy-dark); }
.cart-badge { background: var(--lime); color: var(--navy); font-weight: 900; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; padding: 0 5px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; padding: 48px 0; overflow: hidden; }
.hero-spotlight { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 65%) var(--my, 40%), rgba(122,204,0,0.22), transparent 62%); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.12; background-image: linear-gradient(rgba(198,222,166,0.4) 1px, transparent 1px), linear-gradient(90deg, rgba(198,222,166,0.4) 1px, transparent 1px); background-size: 40px 40px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; line-height: 1.3; margin: 10px 0; }
.hero h1 span { color: var(--lime); }
.hero p { font-size: 14px; color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 0 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: var(--navy); font-weight: 900; font-size: 13px; padding: 12px 20px; border-radius: 12px; border: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--lime-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.24); color: #fff; font-weight: 700; font-size: 13px; padding: 12px 18px; border-radius: 12px; cursor: pointer; }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.hero-card { background: rgba(255,255,255,0.09); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.18); border-radius: 22px; padding: 16px; transition: transform 0.14s ease-out; }
.hero-card-img { background: #fff; border-radius: 14px; padding: 12px; height: 170px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.hero-card-img img { max-height: 145px; object-fit: contain; }

/* PShopCenter-Inspired Alternating Category Showcase Rows (Refined & Premium) */
.showcase-section { padding: 48px 0 18px; background: #ffffff; }
.showcase-block { margin-bottom: 56px; }
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 10px;
}
.showcase-title-wrap { position: relative; padding-top: 14px; }
.showcase-watermark {
  position: absolute;
  top: -2px;
  right: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(37, 55, 70, 0.07);
  text-transform: uppercase;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}
.showcase-title {
  position: relative;
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.showcase-title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--mint);
}
.btn-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 800;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.22s ease;
}
.btn-see-all:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateX(-3px);
}

.showcase-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: center;
}
.showcase-row.reverse {
  grid-template-columns: 1fr 240px;
}
.showcase-row.reverse .showcase-feature { order: 2; }
.showcase-row.reverse .showcase-cards { order: 1; }

/* Floating cutout feature visual (clean white with subtle soft halo, no heavy border) */
.showcase-feature {
  position: relative;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.showcase-feature::before {
  content: '';
  position: absolute;
  width: 185px;
  height: 185px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(223, 242, 216, 0.85) 0%, rgba(223, 242, 216, 0) 72%);
  z-index: 0;
}
.showcase-feature img {
  position: relative;
  z-index: 1;
  max-height: 190px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(37, 55, 70, 0.16));
  transition: transform 0.35s ease;
}
.showcase-feature:hover img { transform: translateY(-7px) scale(1.05); }
.showcase-feature-sub {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(37, 55, 70, 0.65);
}

.showcase-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Crisp White Elevated Card (Inspired by PShopCenter, styled in Sharif Agrobot Navy + Lime) */
.ps-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(37, 55, 70, 0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  box-shadow: 0 8px 24px -10px rgba(37, 55, 70, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.ps-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--lime) 100%);
  opacity: 0.88;
}
.ps-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 204, 0, 0.55);
  box-shadow: 0 20px 36px -14px rgba(37, 55, 70, 0.18);
}
.ps-card-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #ffffff;
}
.ps-card-img img {
  max-height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.ps-card:hover .ps-card-img img { transform: scale(1.07); }
.ps-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 10px 0 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.ps-card-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ps-card-btn:hover { background: var(--lime); color: var(--navy); }

/* V1 Clean Interactive Blueprint Section */
.section-mint { background: rgba(223,242,216,0.45); border-top: 1px solid var(--sage); border-bottom: 1px solid var(--sage); padding: 48px 0; }
.section-white { padding: 48px 0; background: #fff; }
.blueprint-box { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 24px; background: #fff; border: 1px solid var(--sage); border-radius: 26px; padding: 24px; align-items: center; }
.blueprint-svg-wrap { position: relative; background: var(--navy); border-radius: 18px; padding: 16px; aspect-ratio: 16 / 10; }
.hotspot-btn { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 999px; background: var(--navy); border: 2px solid var(--lime); color: var(--lime); font-weight: 900; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s; }
.hotspot-btn.active, .hotspot-btn:hover { background: var(--lime); color: var(--navy); border-color: #fff; transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 20px rgba(122,204,0,0.6); }
.hs-info-card { background: rgba(223,242,216,0.65); border: 1px solid var(--sage); border-radius: 18px; padding: 20px; }
.hs-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.hs-quick-btn { text-align: right; padding: 9px 12px; border-radius: 11px; font-size: 12px; font-weight: 700; border: 1px solid var(--sage); background: #fff; color: var(--navy); cursor: pointer; }
.hs-quick-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* V1 Clean Category & Compatibility Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-pill { padding: 8px 14px; border-radius: 12px; font-size: 12px; font-weight: 700; border: 1px solid var(--sage); background: rgba(223,242,216,0.5); color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cat-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-pill .cnt { background: #fff; color: var(--navy); font-size: 10px; padding: 1px 6px; border-radius: 6px; }
.cat-pill.active .cnt { background: var(--lime); font-weight: 900; }
.compat-pill { padding: 5px 11px; border-radius: 9px; font-size: 11px; font-weight: 700; border: 1px solid var(--sage); background: #fff; color: var(--navy); cursor: pointer; }
.compat-pill.active { background: var(--lime); border-color: var(--lime); }

/* Main Catalog Grid & Cards */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; background: #fff; border: 1px solid rgba(198,222,166,0.9); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; will-change: transform; }
.product-card:hover { border-color: var(--lime); box-shadow: 0 16px 30px -14px rgba(37,55,70,0.15); }
.card-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s; z-index: 2; }
.product-card:hover .card-glare { opacity: 1; }
.card-img-wrap { background: var(--bg-soft); height: 190px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.card-img-wrap img { max-height: 158px; width: auto; object-fit: contain; transition: transform 0.28s; }
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 3; }
.card-cat { font-size: 11px; font-weight: 700; color: var(--lime-dark); }
.card-title { font-size: 13.5px; font-weight: 800; color: var(--navy); margin: 4px 0 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.card-title:hover { color: var(--lime-dark); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(198,222,166,0.45); }
.btn-add { flex: 1; background: var(--lime); color: var(--navy); border: none; border-radius: 10px; padding: 9px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.btn-add:hover { background: var(--lime-dark); color: #fff; }
.btn-detail { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--sage); background: var(--bg-soft); font-size: 12px; font-weight: 700; color: var(--navy); }
.btn-detail:hover { background: var(--mint); }

/* Product Single Page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: rgba(37,55,70,0.68); padding: 18px 0 10px; }
.breadcrumb a:hover { color: var(--lime-dark); }
.pdp-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 32px; background: #fff; border: 1px solid var(--sage); border-radius: 24px; padding: 26px; margin: 10px 0 32px; }
.pdp-main-img { background: var(--bg-soft); border: 1px solid var(--sage); border-radius: 18px; height: 350px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pdp-main-img img { max-height: 305px; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb { width: 66px; height: 66px; border-radius: 12px; border: 2px solid var(--sage); background: var(--bg-soft); padding: 4px; cursor: pointer; }
.pdp-thumb.active { border-color: var(--lime); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.specs-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.specs-table th, .specs-table td { padding: 10px 12px; border-bottom: 1px solid rgba(198,222,166,0.55); text-align: right; }
.specs-table th { color: rgba(37,55,70,0.7); width: 32%; background: var(--bg-soft); }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.trust-item { background: var(--bg-soft); border: 1px solid var(--sage); border-radius: 12px; padding: 10px; text-align: center; font-size: 11px; font-weight: 800; }
.faq-box { background: var(--bg-soft); border: 1px solid var(--sage); border-radius: 16px; padding: 18px 20px; margin-top: 20px; }

/* Cart Drawer & Toast */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(37,55,70,0.65); backdrop-filter: blur(4px); z-index: 100; display: none; justify-content: flex-end; }
.drawer-backdrop.open { display: flex; }
.drawer-panel { background: #fff; width: 100%; max-width: 420px; height: 100%; display: flex; flex-direction: column; box-shadow: -12px 0 36px rgba(0,0,0,0.2); }
.drawer-header { padding: 18px 20px; border-bottom: 1px solid var(--sage); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--sage); border-radius: 14px; background: var(--bg-soft); margin-bottom: 10px; }
.drawer-item img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.qty-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--sage); background: #fff; font-weight: 800; cursor: pointer; }
.toast { position: fixed; bottom: 20px; left: 20px; z-index: 120; background: var(--navy); color: #fff; border: 1px solid var(--lime); padding: 12px 18px; border-radius: 14px; font-size: 12px; font-weight: 700; box-shadow: 0 12px 28px rgba(0,0,0,0.25); display: none; }
.toast.show { display: block; }

.site-footer { background: var(--navy-dark); color: #fff; padding: 34px 0; margin-top: 40px; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

@media (max-width: 1120px) {
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-feature { order: 1; }
  .showcase-row.reverse .showcase-cards { order: 2; }
  .showcase-cards, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner, .blueprint-box, .pdp-grid, .banners-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .search-box { display: none; }
  .showcase-cards, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .showcase-cards, .products-grid { grid-template-columns: 1fr; }
}
