/* ===== Madinty Ratan — واجهة المتجر ===== */
:root {
  --ink: #141210;
  --ink-2: #453e35;
  --ink-3: #7d7365;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e8e2d7;
  --soft: #f2ede3;
  --gold: #a8822f;
  --gold-2: #c79c40;
  --forest: #2c4632;
  --terra: #9d5636;
  --wa: #25d366;
  --radius: 14px;
  --head-h: 78px;
  --shadow: 0 2px 10px rgba(20, 18, 16, 0.06);
  --shadow-lg: 0 10px 30px rgba(20, 18, 16, 0.1);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Header ---------- */
body {
  padding-top: var(--head-h);
}
body.has-hero {
  padding-top: 0;
}

header.site {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 60;
  height: var(--head-h);
  background: var(--ink);
  color: #fff;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
header.site.overlay {
  background: transparent;
}
header.site.overlay.scrolled {
  background: rgba(20, 18, 16, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--head-h);
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.logo .txt {
  text-align: right;
  line-height: 1.15;
}
.logo .txt b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.logo .txt em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-2);
  margin-top: 2px;
}
.logo .txt small {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
.logo .mark {
  width: 36px;
  height: 36px;
  color: var(--gold-2);
  flex: none;
}
.logo .mark svg {
  width: 100%;
  height: 100%;
}

/* nav links */
.nav .links {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav .links a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.82);
}
.nav .links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--gold-2);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav .links a:hover {
  color: #fff;
}
.nav .links a:hover::after,
.nav .links a.active::after {
  transform: scaleX(1);
}
.nav .links a.active {
  color: #fff;
  font-weight: 600;
}

/* tools */
.tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.cart-btn .count {
  position: absolute;
  top: 1px;
  inset-inline-start: 1px;
  background: var(--gold);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  padding: 0;
  background: #141210 url("../img/hero.webp?v=2") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 15, 13, 0.9) 0%,
    rgba(18, 15, 13, 0.72) 34%,
    rgba(18, 15, 13, 0.3) 62%,
    rgba(18, 15, 13, 0.42) 100%
  );
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 15, 13, 0.55) 0%,
    transparent 26%,
    transparent 62%,
    rgba(18, 15, 13, 0.72) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: calc(var(--head-h) + 30px);
  padding-bottom: 34px;
}
.hero-content {
  max-width: 600px;
  /* margin-top:auto مع margin-top:auto في .hero-feats بيوزّع المسافة الفاضية
     بالتساوي، فالكتلة تنزل لنص الهيرو والمميزات تفضل تحت */
  margin: auto auto 0 0;
  text-align: right;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero .sub {
  margin: 0 0 30px;
  font-size: clamp(15px, 1.5vw, 21px);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
}
.btn.btn-lg {
  padding: 15px 34px;
  font-size: 16.5px;
  border-radius: 12px;
}
.btn-lg .chev {
  font-size: 19px;
  opacity: 0.85;
  margin-inline-start: 2px;
}

/* شريط المميزات داخل الهيرو */
.hero-feats {
  list-style: none;
  display: flex;
  padding: 0;
  margin: auto auto 0 0;
  max-width: 600px;
  width: 100%;
}
.hero-feats li {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.hero-feats li + li::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}
.hero-feats .ic {
  color: var(--gold-2);
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
}
.hero-feats .ic svg {
  width: 100%;
  height: 100%;
}
.hero-feats b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.hero-feats span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 2px;
}

/* ---------- Page banner (الصفحات الداخلية) ---------- */
.page-head {
  position: relative;
  color: #fff;
  padding: 56px 0;
  text-align: center;
  background: #141210 url("../img/hero.webp?v=2") center/cover no-repeat;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 15, 13, 0.72);
}
.page-head .wrap {
  position: relative;
  z-index: 2;
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
}
.page-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 11px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.15s;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-2);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #2f2924;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-line {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-line:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover {
  background: #1fb757;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Sections ---------- */
section {
  padding: 52px 0;
}
.sec-head {
  text-align: center;
  margin-bottom: 30px;
}
.sec-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
}
.sec-head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14.5px;
}

/* ---------- Categories ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.18s;
}
.cat:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* صورة القسم — الأيقونة تحتها كبديل لو الصورة ناقصة */
.cat-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #2c2620 0%, #141210 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cat-img .ic {
  font-size: 34px;
  opacity: 0.75;
}
.cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.cat:hover .cat-img img {
  transform: scale(1.06);
}
.cat-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(18, 15, 13, 0.45) 100%
  );
  pointer-events: none;
}

.cat-body {
  padding: 15px 16px 17px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cat h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 600;
}
.cat p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  flex: 1;
}
.cat-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.cat:hover .cat-more {
  color: var(--gold-2);
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card .thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--soft);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--terra);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
}
.card .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.card .cat-tag {
  font-size: 11.5px;
  color: var(--gold);
  font-weight: 600;
}
.card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}
.card .short {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  flex: 1;
}
.price {
  font-weight: 700;
  color: var(--terra);
  font-size: 18px;
}
.price .old {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 400;
  text-decoration: line-through;
  margin-inline-start: 7px;
}
.card .actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.card .actions .btn {
  padding: 9px 12px;
  font-size: 13.5px;
  flex: 1;
}

/* ---------- Filter bar ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 26px;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}
.chip:hover {
  border-color: var(--gold);
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Product page ---------- */
.p-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  padding: 34px 0;
}
.p-detail .photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.p-detail .photo img {
  max-height: 660px;
  width: auto;
  object-fit: contain;
}
.p-detail h1 {
  margin: 6px 0 8px;
  font-size: 27px;
  line-height: 1.4;
}
.p-detail .short {
  color: var(--ink-3);
  margin: 0 0 16px;
}
.p-detail .price {
  font-size: 28px;
}
.meta {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 8px;
}
.meta li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  align-items: flex-start;
}
.meta li::before {
  content: "✓";
  color: var(--forest);
  font-weight: 700;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
.qty button {
  width: 40px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 19px;
  cursor: pointer;
  color: var(--ink-2);
}
.qty button:hover {
  background: var(--soft);
}
.qty span {
  width: 46px;
  text-align: center;
  font-weight: 700;
}
.buy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.infobox {
  background: var(--soft);
  border-radius: 11px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.infobox div {
  margin-bottom: 5px;
}
.infobox div:last-child {
  margin: 0;
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0 10px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel h2 {
  margin: 0 0 16px;
  font-size: 19px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.line {
  display: flex;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--soft);
}
.line:last-child {
  border-bottom: 0;
}
.line img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: var(--soft);
  border-radius: 10px;
  flex: none;
}
.line .info {
  flex: 1;
  min-width: 0;
}
.line .info h4 {
  margin: 0 0 3px;
  font-size: 14.5px;
  font-weight: 600;
}
.line .info .u {
  font-size: 12.5px;
  color: var(--ink-3);
}
.line .ctrl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.line .qty button {
  width: 30px;
  height: 32px;
  font-size: 16px;
}
.line .qty span {
  width: 34px;
  font-size: 14px;
}
.rm {
  background: none;
  border: 0;
  color: #a33a34;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}
.rm:hover {
  text-decoration: underline;
}
.sum {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14.5px;
}
.sum.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 13px;
  font-size: 19px;
  font-weight: 700;
  color: var(--terra);
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-3);
}
.empty .ic {
  font-size: 46px;
  margin-bottom: 12px;
}

/* ---------- Form ---------- */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field label .req {
  color: #a33a34;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
}
.field textarea {
  resize: vertical;
  min-height: 74px;
}
.field .err {
  color: #a33a34;
  font-size: 12.5px;
  margin-top: 4px;
  display: none;
}
.field.invalid input,
.field.invalid select {
  border-color: #a33a34;
}
.field.invalid .err {
  display: block;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.22s;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Float WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #b8b0a2;
  padding: 38px 0 24px;
  margin-top: 40px;
  font-size: 14px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 26px;
}
footer.site h4 {
  color: #fff;
  font-size: 15.5px;
  margin: 0 0 10px;
}
footer.site a:hover {
  color: #e8cf9a;
}
footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
footer.site .copy {
  border-top: 1px solid #2f2924;
  margin-top: 26px;
  padding-top: 16px;
  text-align: center;
  font-size: 12.5px;
}

/* ---------- نبذة عنّا (الرئيسية) ---------- */
.about-teaser {
  background: var(--soft);
}
.at-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}
.at-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.at-img img {
  width: 100%;
  height: auto;
}
.kicker {
  display: block;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.at-txt h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}
.at-txt p {
  color: var(--ink-2);
  margin: 0 0 18px;
}
.at-stats {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0 0 22px;
}
.at-stats b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
}
.at-stats span {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- صفحة تواصل معنا ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.c-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: 0.15s;
  display: block;
}
a.c-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.c-card .ic {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.c-card .ic.wa {
  background: rgba(37, 211, 102, 0.12);
  color: var(--wa);
}
.c-card .ic svg {
  width: 24px;
  height: 24px;
}
.c-card h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 600;
}
.c-card .val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.c-card p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.map-box {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .map-box {
    aspect-ratio: 1/1;
  }
}

/* ---------- صفحة من نحن ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}
.about-story .ph {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-story .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-story h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.5vw, 28px);
}
.about-story p {
  color: var(--ink-2);
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.value .ic {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}
.value .ic svg {
  width: 100%;
  height: 100%;
}
.value h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 600;
}
.value p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold-2);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.steps h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
}
.steps p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 44px 0;
}
.stats-band .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}
.stats-band b {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-2);
}
.stats-band span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
}
.cta-band {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 23px;
}
.cta-band p {
  margin: 0 0 18px;
  color: var(--ink-3);
}
.cta-band .btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .at-grid,
  .about-story {
    grid-template-columns: 1fr;
  }
}

.crumbs {
  font-size: 13px;
  color: var(--ink-3);
  padding: 16px 0 0;
}
.crumbs a:hover {
  color: var(--gold);
}

@media (max-width: 980px) {
  .nav .links {
    gap: 18px;
    font-size: 13.5px;
  }
  .logo .txt small {
    display: none;
  }
}
@media (max-width: 860px) {
  .p-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }
  footer.site .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  :root {
    --head-h: 66px;
  }
  .burger {
    display: block;
  }
  .nav .links {
    display: none;
    position: absolute;
    top: var(--head-h);
    inset-inline: 0;
    background: rgba(20, 18, 16, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav .links.open {
    display: flex;
  }
  .nav .links a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav .links a::after {
    display: none;
  }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    min-height: auto;
    padding-top: calc(var(--head-h) + 70px);
    padding-bottom: 30px;
  }
  .hero-content {
    max-width: none;
    margin: 0;
  }
  .hero-feats {
    max-width: none;
    margin-top: 44px;
    flex-wrap: wrap;
    gap: 18px 0;
  }
  .hero-feats li {
    flex: 1 1 33%;
    padding: 0 6px;
  }
  .hero-feats .ic {
    width: 26px;
    height: 26px;
  }
  .hero-feats b {
    font-size: 13px;
  }
  .hero-feats span {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
  .logo .txt b {
    font-size: 16px;
  }
  .logo .txt em {
    font-size: 8.5px;
    letter-spacing: 0.22em;
  }
  .logo .mark {
    width: 30px;
    height: 30px;
  }
}

/* ---------- خيارات المنتج (النوع / الألوان / المقاسات) ---------- */
.opt {
  margin: 16px 0;
}
.opt-h {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.opt-h small {
  font-weight: 400;
  color: var(--ink-3);
}
.opt-h .req {
  color: var(--terra);
}

/* أنواع الطقم */
.variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.variant {
  text-align: start;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  transition: 0.16s;
}
.variant:hover {
  border-color: var(--gold-2);
}
.variant.on {
  border-color: var(--gold);
  background: #fdfaf3;
  box-shadow: 0 0 0 3px rgba(168, 130, 47, 0.12);
}
.variant b {
  font-size: 14px;
}
.variant span {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.variant em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
  font-size: 14px;
  margin-top: 3px;
}

/* ألوان الشلت */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(20, 18, 16, 0.18);
  background: var(--sw);
  cursor: pointer;
  padding: 0;
  transition: 0.15s;
}
.sw:hover {
  transform: scale(1.12);
}
.sw.on {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--gold);
}

/* وسوم (المكونات / المقاسات / ألوان الحديد والجدل) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  background: var(--soft);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.note {
  font-size: 13px;
  color: var(--forest);
  background: rgba(44, 70, 50, 0.07);
  border-radius: 9px;
  padding: 9px 12px;
  margin: 14px 0 0;
}

/* سطر الخيارات جوّه العربة */
.line .opt-line {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- روابط السوشيال في الفوتر ---------- */
footer.site .social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
footer.site .social a {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.16s;
}
footer.site .social a svg {
  width: 19px;
  height: 19px;
}
footer.site .social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* لون الشلت مطلوب — تنبيه لو العميل مختارش */
.swatches.missing {
  border: 1.5px dashed var(--terra);
  border-radius: 11px;
  padding: 9px;
  background: rgba(157, 86, 54, 0.05);
}

/* ---------- مؤشر التحميل (الكتالوج بييجي من قاعدة البيانات) ---------- */
.loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 54px 0;
  color: var(--ink-3);
  font-size: 14.5px;
}
.loading .sp {
  width: 19px;
  height: 19px;
  border: 2.5px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mr-spin 0.7s linear infinite;
}
@keyframes mr-spin {
  to {
    transform: rotate(360deg);
  }
}
