:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #222222;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --turquoise: #14b8a6;
  --turquoise-dark: #0d9488;
  --sale: #e0574a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Tahoma", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"] body { direction: ltr; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--turquoise-dark);
  font-weight: 700;
}

.brand .leaf { color: var(--turquoise); }

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.topbar-nav a:hover { color: var(--turquoise-dark); }

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

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  background: var(--turquoise);
  color: #fff;
}

.social-icons svg { width: 17px; height: 17px; fill: currentColor; }

.lang-btn {
  background: #fff;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise-dark);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover { background: var(--turquoise); color: #fff; }

.topbar-actions > a.fb-link {
  display: inline-block;
  background: var(--turquoise);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.topbar-actions > a.fb-link:hover { background: var(--turquoise-dark); }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 34px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--ink);
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.controls {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 220px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
}

.sort-box select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.count-label {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f4;
  position: relative;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .thumb img { transform: scale(1.06); }

.discount-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body .pname {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

.price-sale {
  font-size: 18px;
  font-weight: 800;
  color: var(--sale);
}

.order-btn {
  margin-top: auto;
  text-align: center;
  background: #fff;
  color: var(--turquoise-dark);
  border: 1.5px solid var(--turquoise);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.order-btn:hover { background: var(--turquoise); color: #fff; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 20px 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer a { color: var(--turquoise-dark); text-decoration: none; }

footer .social-icons { justify-content: center; margin-top: 14px; }

.wa-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: #25d366;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  text-decoration: none;
  font-size: 26px;
  z-index: 60;
}

/* ---------- Cart ---------- */

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--turquoise);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.cart-btn:hover { background: var(--turquoise-dark); }

.cart-badge {
  background: #fff;
  color: var(--turquoise-dark);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 0 5px;
}

.add-cart-btn {
  margin-top: 8px;
  text-align: center;
  background: var(--turquoise);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.add-cart-btn:hover { background: var(--turquoise-dark); }
.add-cart-btn.added { background: #25d366; }
.add-cart-btn:disabled {
  background: #b3b3b3;
  cursor: not-allowed;
}
.add-cart-btn:disabled:hover { background: #b3b3b3; }

.card.sold-out .thumb img {
  filter: grayscale(70%);
  opacity: 0.75;
}

.sold-out-badge {
  background: #4a4a4a;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  z-index: 100;
  display: none;
}

.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(380px, 92vw);
  background: #fff;
  z-index: 101;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 30px rgba(0,0,0,0.15);
}

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

.cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 { margin: 0; font-size: 18px; color: var(--turquoise-dark); }

.cart-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cart-item-price { font-size: 13px; color: var(--muted); margin-top: 2px; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--sale);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 10px;
  font-size: 14px;
}

.cart-footer {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--turquoise-dark);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.cart-checkout-btn:hover { background: #0b7a70; }
.cart-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Simple pages (about/contact) ---------- */

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 20px 80px;
  line-height: 2;
}

.page-content h1 { font-size: 30px; margin-bottom: 18px; }

.contact-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
}

.contact-link-btn.wa { background: #25d366; }
.contact-link-btn.fb { background: var(--turquoise); }

.contact-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.contact-icons a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-icons a:hover {
  background: var(--turquoise);
  color: #fff;
  transform: translateY(-3px);
}

.contact-icons svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Contact form ---------- */

.contact-form {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
}

.contact-form textarea { min-height: 100px; resize: vertical; }

.contact-form button {
  background: var(--turquoise-dark);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover { background: #0b7a70; }

@media (max-width: 700px) {
  .hero h1 { font-size: 28px; }
  .grid { grid-template-columns: 1fr; gap: 18px; max-width: 420px; }
  .brand-logo { width: 24px; height: 24px; }
  .brand { font-size: 18px; gap: 6px; }
}
