﻿@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;700&display=swap");

:root {
  --brand: #46B989;
  --brand-dark: #2E8F6A;
  --brand-soft: rgba(70, 185, 137, 0.14);
  --paper: #F2F2F2;
  --ink: #333333;
  --ink-soft: #5b5b5b;
  --white: #ffffff;
  --surface: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 44px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", "Tajawal", sans-serif;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(70, 185, 137, 0.18), transparent 60%),
    radial-gradient(700px 320px at 10% 10%, rgba(70, 185, 137, 0.08), transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 700;
}

h4 {
  font-weight: 600;
}

p {
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 242, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand img {
  height: 46px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-weight: 600;
}

.site-nav a {
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav .btn {
  padding: 6px 14px;
}

.lang-switch {
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 6px;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  border-bottom-color: var(--brand);
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(70, 185, 137, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  display: block;
}

.hero {
  padding: 110px 0 90px;
  background: linear-gradient(120deg, rgba(70, 185, 137, 0.85), rgba(70, 185, 137, 0.65)),
    url("../image/background.jpg") center/cover no-repeat;
  color: var(--white);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 260px at 15% 10%, rgba(255, 255, 255, 0.2), transparent 60%);
  pointer-events: none;
}

.hero.small {
  padding: 80px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  gap: 12px;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 16px 0;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.stat {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-card {
  background: var(--surface);
  color: var(--ink);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.feature-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.feature-list i {
  color: var(--brand);
  margin-left: 8px;
}

.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 680px;
}

.section-head h2 {
  position: relative;
  padding-right: 14px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
}

.section-head p {
  color: var(--ink-soft);
}

.subtitle {
  color: var(--ink-soft);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--surface);
  padding: 18px;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.media-card img {
  border-radius: var(--radius-sm);
}

.media-card.dark {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

.media-card .note {
  margin: 18px 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill {
  padding: 6px 14px;
  background: rgba(70, 185, 137, 0.15);
  color: var(--brand-dark);
  border-radius: 999px;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 24px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(70, 185, 137, 0.25);
}

.card.highlight {
  background: linear-gradient(135deg, rgba(70, 185, 137, 0.15), rgba(70, 185, 137, 0.05));
  border: 1px solid rgba(70, 185, 137, 0.3);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(70, 185, 137, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  width: fit-content;
}

.tag.solid {
  background: var(--brand);
  color: var(--white);
}

.categories {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(70, 185, 137, 0.25);
}

.category i {
  font-size: 1.6rem;
  color: var(--brand);
}

.section-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.btn.is-added {
  background: var(--brand-dark);
}

.btn-solid {
  background: var(--brand);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.hero .btn-outline,
.media-card.dark .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-item i {
  color: var(--brand);
  font-size: 1.2rem;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(70, 185, 137, 0.25);
}

.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.filter-btn.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: transparent;
}

.filter-bar::-webkit-scrollbar {
  height: 6px;
}

.filter-bar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(70, 185, 137, 0.25);
}

.product-actions {
  padding: 0 14px 14px;
  display: flex;
  justify-content: flex-start;
}

.product-card h3 {
  padding: 0 14px;
  font-size: 1rem;
}

.product-card p {
  padding: 0 14px;
}

.product-thumb {
  position: relative;
}

.product-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.08));
}

.product-thumb img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer {
  padding: 40px 0;
  background: linear-gradient(120deg, #2d2d2d, #1f1f1f);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.order-form {
  display: grid;
  gap: 16px;
}

.cart-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.cart-card {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-empty {
  padding: 16px;
  border-radius: 12px;
  background: rgba(70, 185, 137, 0.08);
  color: var(--brand-dark);
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr 120px 80px;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.cart-info h4 {
  font-size: 1rem;
}

.cart-info p {
  margin-top: 4px;
}

.cart-qty {
  text-align: center;
  background: rgba(70, 185, 137, 0.12);
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 72px;
  font-weight: 600;
  display: grid;
  gap: 4px;
}

.cart-qty input {
  width: 72px;
  text-align: center;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.cart-remove {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}

.cart-remove:hover {
  color: var(--ink);
  border-color: var(--brand);
}

.cart-summary p {
  color: rgba(255, 255, 255, 0.85);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}

select {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(70, 185, 137, 0.35);
  border-color: var(--brand);
}

select:focus {
  outline: 2px solid rgba(70, 185, 137, 0.35);
  border-color: var(--brand);
}

.form-hint {
  margin-top: 6px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: center;
}

.footer-inner img {
  height: 36px;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
  color: var(--white);
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social a:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    background: var(--white);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cart-item img {
    width: 100%;
    height: 160px;
  }

  .cart-qty,
  .cart-remove {
    justify-self: start;
  }
}
