/* الأناقة · متجر أحذية وصيكان جلد
   هاتف أولاً، بدون إطار عمل. الألوان: أبيض كريمي، بني جلدي، ذهبي. */

:root {
  --cream: #FBF6EE;
  --cream-2: #F3E9D9;
  --paper: #FFFDF9;
  --leather: #7A4A2A;
  --leather-dark: #4A2C17;
  --leather-deep: #34200F;
  --ink: #2D1C10;
  --muted: #74624F;
  --gold: #C8A04A;
  --gold-soft: #EEDDB0;
  --gold-text: #8C6A1F;
  --line: #E8DBC6;
  --line-strong: #D6C3A5;
  --warn: #A23E22;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(74, 44, 23, .06), 0 10px 28px -14px rgba(74, 44, 23, .28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- الرأس ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 246, 238, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--leather-dark);
  text-decoration: none;
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold);
}

.nav { display: none; gap: 22px; margin-inline-start: 12px; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); }
.nav a:hover { color: var(--leather); }

.top__wa {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--leather);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.top__wa:hover { background: var(--leather-dark); }

@media (min-width: 720px) {
  .nav { display: flex; }
}

/* ---------- الواجهة ---------- */
.hero {
  position: relative;
  color: #FFF7E8;
  background:
    radial-gradient(120% 90% at 100% 0%, #8A5531 0%, transparent 60%),
    linear-gradient(160deg, #5A341B 0%, var(--leather-deep) 100%);
  padding: 36px 0 34px;
  overflow: hidden;
}

/* خياطة الجلد */
.hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(200, 160, 74, .4);
  border-radius: 20px;
  pointer-events: none;
}

.hero__in { position: relative; z-index: 1; width: min(1120px, 100% - 60px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
}

.hero h1 {
  margin-top: 6px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
}
.hero h1 span { color: var(--gold); }

.lead {
  margin-top: 10px;
  max-width: 34em;
  color: #EBDCC6;
  font-size: 1.05rem;
}

.chips {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(200, 160, 74, .45);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .9rem;
  font-weight: 700;
}
.chips svg { color: var(--gold); flex: none; }

.hero__cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { flex: none; }

.btn--gold { background: var(--gold); color: var(--leather-deep); }
.btn--gold:hover { background: #D6B160; }

.btn--light { border-color: rgba(255, 247, 232, .5); color: #FFF7E8; }
.btn--light:hover { background: rgba(255, 255, 255, .08); }

.btn--wa { background: var(--leather); color: #fff; }
.btn--wa:hover { background: var(--leather-dark); }

.btn--ghost { border-color: var(--leather); color: var(--leather); background: transparent; }
.btn--ghost:hover { background: var(--cream-2); }

/* ---------- الأقسام ---------- */
.section { padding: 48px 0; }
.section--alt { background: var(--cream-2); }

.title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--leather-dark);
}
.title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--gold);
}

.sub { margin-top: 10px; color: var(--muted); }

/* ---------- بطاقات المنتجات ---------- */
.grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #EEDFC6 0%, #CFAE84 100%);
}
/* يظهر فقط إذا لم توجد الصورة بعد */
.card__media::before {
  content: "الأناقة";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(74, 44, 23, .28);
}
.card__media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--leather-dark);
  color: var(--gold-soft);
  font-size: .82rem;
  font-weight: 700;
}
.badge--out { background: #6E655C; color: #fff; }

.card--out .card__media img { filter: grayscale(.8); opacity: .75; }

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__title { font-size: 1.15rem; font-weight: 800; }
.price { font-size: 1.2rem; font-weight: 800; color: var(--leather); white-space: nowrap; }
.price small { font-size: .8rem; font-weight: 700; }

.color { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(45, 28, 16, .25);
  flex: none;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }

.size {
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .12s, border-color .12s, color .12s;
}
.size:hover:not(:disabled) { border-color: var(--leather); }
.size[aria-pressed="true"] {
  background: var(--leather);
  border-color: var(--leather);
  color: #fff;
  box-shadow: 0 0 0 3px var(--gold-soft);
}
/* مخزون 0: رمادي ومشطوب */
.size:disabled {
  background: #EFEAE4;
  border-color: #E3DBD1;
  color: #A69B8E;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  cursor: not-allowed;
}

.hint { min-height: 1.6em; font-size: .9rem; color: var(--muted); }
.hint--warn { color: var(--warn); font-weight: 700; }

.order { margin-top: auto; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .shake { animation: shake .35s ease; }
}
@keyframes shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* ---------- كيفاش كنخدمو ---------- */
.steps {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.step {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--leather-dark);
}
.step h3 { margin-top: 12px; font-size: 1.1rem; font-weight: 800; color: var(--leather-dark); }
.step p { margin-top: 4px; color: var(--muted); }
.step b { color: var(--leather); }

/* ---------- الأسئلة ---------- */
.faq { max-width: 760px; }
.faq .title { margin-bottom: 20px; }

.faq details {
  margin-bottom: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq details[open] { border-color: var(--line-strong); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-text);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 16px 16px; color: var(--muted); }

/* ---------- التذييل ---------- */
.foot {
  position: relative;
  padding: 36px 0 20px;
  background: var(--leather-deep);
  color: #EBDCC6;
}
.foot::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline: 0;
  border-top: 1.5px dashed rgba(200, 160, 74, .4);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand--foot { display: inline-block; color: var(--gold); border-bottom-color: rgba(200, 160, 74, .5); }
.foot__tag { margin-top: 8px; font-size: .95rem; }

.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.foot__wa, .social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(200, 160, 74, .4);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.foot__wa { background: var(--gold); border-color: var(--gold); color: var(--leather-deep); }
.social:hover { background: rgba(255, 255, 255, .06); }
.social svg { color: var(--gold); }

.foot__copy {
  margin-top: 24px;
  text-align: center;
  font-size: .85rem;
  color: #A8917A;
}
