:root {
  color-scheme: light;
  --page: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eaf3ef;
  --ink: #17332d;
  --muted: #687873;
  --line: #dfe7e2;
  --green: #176c5a;
  --green-deep: #104c40;
  --coral: #e96f59;
  --gold: #c18a37;
  --shadow: 0 18px 45px rgba(23, 51, 45, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.promo-bar {
  background: var(--green-deep);
  color: #eaf4ef;
}

.promo-inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 11px;
  letter-spacing: 0;
}

.promo-inner span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline-end: 34px;
  border-radius: 50%;
  background: #e6b568;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
  direction: ltr;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-inline-end: 5px;
  place-items: center;
  border-radius: 9px 3px 9px 3px;
  background: var(--coral);
  color: #fff;
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a,
.ghost-link,
.text-link,
.site-footer a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.ghost-link:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--coral);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  width: 210px;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--page);
  color: var(--muted);
}

.search-box span {
  font-size: 20px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 108, 90, 0.1);
}

.ghost-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease;
}

.cart-pill:hover,
.buy-btn:hover {
  background: var(--green-deep);
}

.cart-pill strong {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.hero-section {
  padding: 42px 0 25px;
}

.hero-shell {
  position: relative;
  display: grid;
  min-height: 418px;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 52px;
  overflow: hidden;
  padding: 48px 58px;
  border: 1px solid #e0eae4;
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 4% 0%, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(120deg, #e9f2ed 4%, #f3f6f1 62%, #f9eee8 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.mini-badge span {
  color: var(--coral);
  font-size: 17px;
}

.hero-copy h1 {
  max-width: 550px;
  margin-bottom: 15px;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.27;
}

.hero-copy h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy > p {
  max-width: 490px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.primary-btn,
.secondary-btn,
.buy-btn {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-btn,
.buy-btn {
  background: var(--green);
  color: #fff;
}

.primary-btn:hover,
.buy-btn:hover {
  transform: translateY(-1px);
}

.primary-btn span {
  font-size: 17px;
}

.secondary-btn {
  border-color: #cbd9d1;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.secondary-btn:hover {
  border-color: var(--green);
}

.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  color: #53665f;
  font-size: 11px;
}

.hero-promises li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-promises li span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #d9ebe3;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.hero-visual {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.device-card {
  position: relative;
  width: min(100%, 410px);
  aspect-ratio: 1.08 / 1;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: #dbe9e3;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.device-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-wash {
  position: absolute;
  z-index: 1;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(13, 43, 35, 0.68));
  pointer-events: none;
}

.hero-image-caption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 19px;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.hero-image-caption span {
  font-size: 11px;
}

.hero-image-caption strong {
  font-size: 20px;
}

.feature-strip {
  padding: 13px 0 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.feature-item {
  display: flex;
  min-height: 87px;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.feature-item + .feature-item {
  border-right: 1px solid var(--line);
}

.feature-item > span {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}

.feature-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.feature-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.categories-section,
.products-section {
  padding: 48px 0 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.section-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 700;
}

.section-head h2 {
  font-size: 25px;
  line-height: 1.4;
}

.text-link {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: right;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.category-card:hover,
.category-card.active {
  border-color: var(--green);
  background: var(--surface-soft);
}

.category-card .icon {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: #f2f6f3;
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
}

.category-card strong {
  font-size: 12px;
}

.products-section {
  padding-top: 39px;
  padding-bottom: 64px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #bfd3c8;
  box-shadow: 0 12px 28px rgba(23, 51, 45, 0.08);
}

.product-card[hidden] {
  display: none;
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.product-image {
  display: grid;
  aspect-ratio: 1.13 / 1;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f5f1, #e8f0eb);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 220ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.product-body {
  padding: 14px 15px 15px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
}

.category-label {
  color: var(--green);
  font-weight: 700;
}

.product-meta-note {
  color: #71847a;
}

.product-body h3 {
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-body p {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #edf1ee;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.price-wrap strong {
  color: var(--ink);
  font-family: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.price-wrap small {
  color: var(--muted);
  font-size: 9px;
}

.buy-btn {
  min-height: 35px;
  padding-inline: 11px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  white-space: nowrap;
}

.empty-results {
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.empty-results[hidden] {
  display: none;
}

.alert {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid #efd1cb;
  border-radius: 4px;
  background: #fff4f1;
  color: #a6493b;
  font-size: 13px;
}

.site-footer {
  padding: 40px 0 18px;
  border-top: 1px solid var(--line);
  background: #eaf0ec;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 25px;
}

.footer-brand {
  margin-bottom: 11px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  font-size: 11px;
}

.site-footer p {
  max-width: 340px;
  line-height: 1.9;
}

.site-footer h4 {
  margin: 5px 0 11px;
  font-size: 12px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  list-style: none;
}

.copy-right {
  padding-top: 13px;
  border-top: 1px solid #d8e1db;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(233, 111, 89, 0.65);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .nav-shell {
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-block: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 6px;
  }

  .hero-shell {
    gap: 25px;
    padding-inline: 38px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 560px);
  }

  .promo-inner {
    min-height: 33px;
    gap: 11px;
    font-size: 9px;
  }

  .promo-inner span + span::before {
    margin-inline-end: 11px;
  }

  .nav-shell {
    justify-content: space-between;
  }

  .brand {
    font-size: 24px;
  }

  .nav-tools {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
  }

  .search-box {
    width: 100%;
  }

  .ghost-link {
    padding-inline: 2px;
    font-size: 10px;
  }

  .cart-pill {
    min-height: 39px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .main-nav {
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    font-size: 11px;
    white-space: nowrap;
  }

  .hero-section {
    padding-top: 15px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 27px 22px 22px;
  }

  .hero-copy h1 {
    max-width: 470px;
    font-size: 35px;
  }

  .hero-copy > p {
    font-size: 12px;
  }

  .hero-promises {
    gap: 8px 13px;
    font-size: 9px;
  }

  .device-card {
    width: min(100%, 420px);
    aspect-ratio: 1.5 / 1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-item {
    min-height: 70px;
    padding: 10px 7px;
  }

  .feature-item:nth-child(3) {
    border-right: 0;
  }

  .feature-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .feature-item > span {
    width: 34px;
    height: 34px;
  }

  .feature-item strong {
    font-size: 10px;
  }

  .feature-item small {
    font-size: 9px;
  }

  .categories-section,
  .products-section {
    padding-top: 34px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-card {
    min-height: 60px;
    gap: 8px;
    padding: 8px 10px;
  }

  .category-card .icon {
    width: 34px;
    height: 34px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-body {
    padding: 10px;
  }

  .product-body h3 {
    font-size: 12px;
  }

  .product-body p {
    min-height: 36px;
    font-size: 9px;
  }

  .product-footer {
    gap: 5px;
    flex-wrap: wrap;
  }

  .price-wrap strong {
    font-size: 15px;
  }

  .buy-btn {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 9px;
  }

  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .footer-shell > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 22px);
  }

  .promo-inner {
    gap: 6px;
    font-size: 8px;
  }

  .promo-inner span + span::before {
    margin-inline-end: 6px;
  }

  .nav-tools {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ghost-link {
    display: none;
  }

  .hero-copy h1 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}