:root {
  --primary: #123C55;
  --accent: #F57C00;
  --success: #2E7D32;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1F2933;
  --muted: #6B7280;
  --line: #E5E7EB;
  --shadow: 0 16px 40px rgba(18, 60, 85, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 0; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.top-strip {
  background: #0E3044;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.top-strip__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 60, 85, .06);
}

.header-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--primary);
  font-weight: 900;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--primary), #1F5D7A);
}

.brand__text { font-size: 20px; }

.search-box {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}

.search-box select,
.search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
}

.search-box select {
  padding: 0 18px;
  border-left: 1px solid var(--line);
}

.search-box input {
  flex: 1;
  min-width: 120px;
  padding: 14px 16px;
}

.search-box button,
.mobile-search button {
  background: var(--accent);
  color: white;
  padding: 0 24px;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.icon-btn,
.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--line);
}

.cart-btn {
  gap: 8px;
  padding: 0 13px;
  background: var(--primary);
  color: white;
}

.cart-btn strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 12px;
}

.mobile-menu-toggle { display: none; }

.main-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}

.main-nav__inner {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 11px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.main-nav__inner a:first-child {
  color: var(--primary);
}

.hero {
  padding: 42px 0 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 124, 0, .12), transparent 28%),
    linear-gradient(180deg, #fff, var(--bg));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}

.hero__content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  color: var(--accent);
  background: rgba(245, 124, 0, .10);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 14px;
  color: var(--primary);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.25;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary,
.btn--cart {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(245, 124, 0, .22);
}

.btn--ghost {
  background: rgba(18, 60, 85, .08);
  color: var(--primary);
}

.hero__visual {
  min-height: 430px;
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(18, 60, 85, .96), rgba(18, 60, 85, .78)),
    radial-gradient(circle, rgba(255,255,255,.2), transparent);
  overflow: hidden;
  padding: 28px;
  box-shadow: var(--shadow);
}

.appliance-card {
  position: absolute;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0,0,0,.18);
  font-weight: 900;
}

.appliance-card--main {
  width: 230px;
  height: 260px;
  left: 50px;
  bottom: 54px;
}

.appliance-card:not(.appliance-card--main):nth-child(2) {
  width: 190px;
  height: 126px;
  right: 48px;
  top: 70px;
}

.appliance-card:not(.appliance-card--main):nth-child(3) {
  width: 185px;
  height: 150px;
  right: 78px;
  bottom: 72px;
}

.discount-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: var(--accent);
  color: white;
  padding: 13px 18px;
  border-radius: 18px;
  font-weight: 900;
}

.benefits { padding: 24px 0; }

.benefits__grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit,
.trust-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 2px;
  box-shadow: 0 10px 28px rgba(18, 60, 85, .05);
}

.benefit span {
  font-size: 28px;
}

.benefit strong,
.trust-grid strong { color: var(--primary); }

.benefit small,
.trust-grid small { color: var(--muted); }

.section { padding: 42px 0; }
.section--tinted { background: #fff; border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: clamp(23px, 3vw, 34px);
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.category-card {
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 124, 0, .5);
}

.category-card span { font-size: 32px; }
.category-card strong { color: var(--primary); }

.countdown {
  direction: ltr;
  display: flex;
  gap: 8px;
  color: var(--primary);
  align-items: center;
  font-weight: 900;
}

.countdown span {
  background: var(--primary);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-grid--special {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 14px 32px rgba(18, 60, 85, .07);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-image {
  display: grid;
  place-items: center;
  height: 170px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef4f7, #fff);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 14px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  min-height: 58px;
}

.rating {
  color: #F4B400;
  font-size: 13px;
}

.rating small {
  color: var(--muted);
}

.stock {
  color: var(--success);
  font-weight: 800;
  margin: 6px 0;
  font-size: 14px;
}

.price-row {
  display: grid;
  gap: 2px;
  margin: auto 0 14px;
}

.price-row strong {
  color: var(--primary);
  font-size: 17px;
}

.price-row del {
  color: var(--muted);
  font-size: 13px;
}

.badge,
.new-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  font-size: 13px;
  z-index: 1;
}

.badge { background: var(--accent); color: white; }
.new-badge { background: rgba(46,125,50,.1); color: var(--success); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.brand-grid span {
  display: grid;
  place-items: center;
  height: 82px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 900;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--primary), #1D5875);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.promo-banner h2 { margin: 10px 0; font-size: clamp(24px, 3vw, 36px); }
.promo-banner p { color: rgba(255,255,255,.82); margin: 0; }

.trust-section {
  padding: 36px 0;
  background: #fff;
  border-block: 1px solid var(--line);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 14px 32px rgba(18, 60, 85, .06);
}

.article-grid span {
  color: var(--accent);
  font-weight: 900;
}

.article-grid h3 {
  color: var(--primary);
  margin: 8px 0;
}

.article-grid p {
  margin: 0;
  color: var(--muted);
}

.newsletter {
  padding: 40px 0;
  background: var(--primary);
  color: white;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.newsletter h2 { margin: 0 0 6px; }
.newsletter p { margin: 0; color: rgba(255,255,255,.76); }

.newsletter form {
  display: flex;
  gap: 10px;
  min-width: min(440px, 100%);
}

.newsletter input,
.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 17px;
  outline: 0;
}

.site-footer {
  background: #0E3044;
  color: rgba(255,255,255,.78);
  padding: 46px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 30px;
}

.brand--footer { color: #fff; margin-bottom: 12px; }

.footer-grid h3 {
  color: #fff;
  margin: 0 0 12px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid p { margin: 8px 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.mobile-drawer,
.drawer-backdrop { display: none; }

@media (max-width: 1024px) {
  .header-main {
    grid-template-columns: auto auto 1fr auto;
  }

  .mobile-menu-toggle { display: inline-flex; }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
  }

  .main-nav { display: none; }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 340px;
  }

  .benefits__grid,
  .trust-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid--special,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 88vw);
    background: #fff;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    flex-direction: column;
    padding: 18px;
    gap: 14px;
    box-shadow: 20px 0 45px rgba(0,0,0,.18);
  }

  .mobile-drawer.is-open {
    transform: translateX(0);
  }

  .mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
  }

  .mobile-search {
    display: flex;
    gap: 8px;
  }

  .mobile-search button {
    border-radius: 999px;
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.36);
    z-index: 90;
  }

  .drawer-backdrop.is-open {
    display: block;
  }
}

@media (max-width: 720px) {
  .top-strip__inner {
    justify-content: center;
  }

  .top-strip__inner span:last-child {
    display: none;
  }

  .header-main {
    min-height: 64px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__text {
    font-size: 17px;
  }

  .header-actions .action-link,
  .header-actions .icon-btn {
    display: none;
  }

  .cart-btn span {
    display: none;
  }

  .search-box {
    display: none;
  }

  .hero {
    padding-top: 22px;
  }

  .hero__content {
    padding: 24px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual {
    min-height: 280px;
    padding: 18px;
  }

  .appliance-card--main {
    width: 160px;
    height: 190px;
    left: 24px;
    bottom: 36px;
  }

  .appliance-card:not(.appliance-card--main):nth-child(2) {
    width: 138px;
    height: 96px;
    right: 22px;
    top: 48px;
  }

  .appliance-card:not(.appliance-card--main):nth-child(3) {
    width: 138px;
    height: 108px;
    right: 34px;
    bottom: 42px;
  }

  .discount-badge {
    top: 16px;
    left: 16px;
    font-size: 13px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefits__grid,
  .trust-grid,
  .product-grid,
  .product-grid--special,
  .article-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .product-grid--special {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .product-card {
    min-width: 82%;
    scroll-snap-align: start;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-banner,
  .newsletter__inner,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter form {
    flex-direction: column;
  }

  .newsletter .btn {
    width: 100%;
  }
}
