:root {
  --bg: #efeadf;
  --bg-soft: #f7f2e8;
  --card: #fbf7ee;
  --ink: #11100d;
  --muted: #746b5e;
  --line: rgba(17, 16, 13, 0.12);
  --accent: #1a1712;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Kufi Arabic", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fbf8ef 0, var(--bg) 48%, #e7dfcf 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px clamp(18px, 4vw, 64px);
  background: rgba(239, 234, 223, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 54px; height: 54px; object-fit: contain; }
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}
nav a:hover { color: var(--ink); }
#cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-inline-start: 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-soft);
  font-size: 0.75rem;
}

main { padding: 0 clamp(18px, 4vw, 64px) 64px; }
.hero {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  padding: 80px 20px;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1.5rem;
}

.eyebrow {
  color: #9b7a55;
  margin: 0 0 1rem;
  font-size: 2.1rem;
}

.hero h1 {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.5rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  max-width: 760px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 620px;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.intro { border-block: 1px solid var(--line); padding: 28px 0; text-align: center; display: grid; place-items: center; }

.products-section { padding-top: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2, .checkout-hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); font-family: "Noto Naskh Arabic", serif; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, .72);
  box-shadow: 0 18px 44px rgba(32, 24, 15, .06);
}
.product-image-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.04); }
.product-image-wrap span {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(17,16,13,.75);
  color: var(--bg-soft);
  padding: 8px 12px;
  font-size: .8rem;
}
.product-info { padding: 18px; }
.latin { margin: 0 0 6px; color: var(--muted); font-family: Georgia, serif; letter-spacing: .08em; direction: ltr; text-align: right; }
.product-info h3 { font-size: 1.15rem; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.add-to-cart {
  background: #3d3023;
  color: #f7f2e8;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

.add-to-cart:hover {
  background: #2f2419;
  transform: translateY(-2px);
}

.checkout-page { max-width: 1180px; margin-inline: auto; }
.checkout-hero { padding: 56px 0 24px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.cart-panel, .order-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, .76);
  padding: 24px;
}
.cart-items { display: grid; gap: 12px; margin: 20px 0; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; }
.qty-controls { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.qty-controls button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; margin: 16px 0; }
.order-form { display: grid; gap: 14px; }
.order-form label { display: grid; gap: 8px; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.5);
  padding: 13px 14px;
  color: var(--ink);
}
textarea { min-height: 100px; resize: vertical; }
.small-note { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.empty-cart { color: var(--muted); line-height: 2; }
footer { text-align: center; padding: 40px 20px; color: var(--muted); border-top: 1px solid var(--line); }
footer img { width: 56px; margin: 0 auto 10px; }

@media (max-width: 980px) {
  .hero, .checkout-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-logo-card { min-height: 300px; }
}
@media (max-width: 560px) {
  nav { gap: 10px; font-size: .82rem; }
  .product-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 62px 1fr; }
  .cart-row > strong { grid-column: 2; }
}
.center-title {
  text-align: center;
  width: 100%;
  margin-bottom: 1.5rem;
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
/* Main action buttons */
.primary,
.ghost-button,
.add-to-cart {
  background: #3d3023;
  color: #f7f2e8;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.primary:hover,
.ghost-button:hover,
.add-to-cart:hover {
  background: #2f2419;
  transform: translateY(-2px);
}

/* Quantity +/- buttons stay ghost style */
.qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-controls button:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(17,16,13,0.25);
}