/* Khiro Store - black / gold / warm neutral */
:root {
  --black: #16120d;
  --black-soft: #211a13;
  --gold: #c9a24b;
  --gold-light: #e3c888;
  --cream: #f7f1e6;
  --cream-dark: #efe6d4;
  --text: #2b241a;
  --muted: #7a6f5c;
  --wa: #25d366;
  --wa-dark: #1da851;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--gold);
  padding: 18px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand { flex: 1 1 200px; }
.brand-name {
  color: var(--gold-light);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-tagline {
  color: #cfc4ab;
  font-size: 0.92rem;
}
.header-wa {
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 30px;
  white-space: nowrap;
}
.header-wa:hover { background: var(--wa-dark); text-decoration: none; }

/* ---------- Terms strip ---------- */
.terms-strip {
  background: var(--black-soft);
  padding: 22px 0;
}
.terms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.term-card {
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px;
  color: #e8dfca;
}
.term-card h2 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.term-card strong { color: var(--gold-light); }

/* ---------- Products ---------- */
.section-title {
  margin: 28px 0 14px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  border-right: 5px solid var(--gold);
  padding-right: 12px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  background: #fff;
  border: 1.5px solid var(--gold);
  color: var(--text);
  border-radius: 30px;
  padding: 6px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.active, .chip:hover {
  background: var(--gold);
  color: var(--black);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: 40px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(22, 18, 13, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cream-dark);
}
.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--cream-dark);
}
.card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--black);
}
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}
.card-price small { font-size: 0.85rem; font-weight: 600; }
.price-note {
  font-size: 0.82rem;
  color: var(--muted);
}
.meta { font-size: 0.88rem; }
.meta span { font-weight: 700; color: var(--black); }
.meta ul { list-style: none; display: inline; }
.meta li { display: inline; }
.meta li + li::before { content: "، "; }

.card details {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed var(--cream-dark);
  padding-top: 8px;
}
.card summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--gold);
}
.card details p { white-space: pre-line; margin-top: 6px; }

.wa-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--wa);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 12px;
  border-radius: 12px;
}
.wa-btn:hover { background: var(--wa-dark); text-decoration: none; }
.wa-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #cfc4ab;
  text-align: center;
  padding: 30px 0 36px;
  font-size: 0.95rem;
}
.footer-logo { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 10px; }
.footer-brand { color: var(--gold-light); font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.footer-terms {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 162, 75, 0.35);
  color: var(--gold-light);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .terms-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-name { font-size: 2rem; }
  .logo { width: 88px; height: 88px; }
}
@media (min-width: 1180px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
