/* =====================================================
   طبقة — ملف التنسيقات الرئيسي
   الألوان والخطوط كلها معرّفة بالـ :root تحت
   ===================================================== */

:root {
  --bed: #f1f3f5; /* سطح الطباعة */
  --bed-grid: #e2e6ea; /* شبكة السطح */
  --ink: #16243b; /* كحلي حبري */
  --ink-soft: #5a6a82;
  --hot: #ff7a1a; /* كهرماني الفوهة */
  --hot-deep: #e85d04;
  --card: #ffffff;
  --line: #d8dde3;
  --radius: 14px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--bed);
  /* شبكة سطح الطباعة */
  background-image:
    linear-gradient(var(--bed-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bed-grid) 1px, transparent 1px);
  background-size: 36px 36px;
  overflow-x: hidden;
}
h1,
h2,
h3,
.brand {
  font-family: "Changa", sans-serif;
}

/* ============ NAVBAR ============ */
nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(241, 243, 245, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.brand .logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    var(--hot) 0%,
    var(--hot) 33%,
    var(--ink) 33%,
    var(--ink) 66%,
    var(--ink-soft) 66%
  );
  position: relative;
  overflow: hidden;
}
.brand .logo-mark::after {
  /* خطوط الطبقات بالشعار */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 5px,
    rgba(255, 255, 255, 0.22) 5px 6px
  );
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--hot-deep);
}
.nav-cta {
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 10px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.nav-cta:hover {
  background: var(--hot-deep);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 120px 20px 80px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hot-deep);
  background: #fff3e8;
  border: 1px solid #ffd9b8;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hot);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 122, 26, 0);
  }
}

/* العنوان ينطبع طبقة-طبقة */
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 14ch;
}
.print-word {
  display: inline-block;
  position: relative;
  clip-path: inset(100% 0 0 0);
  animation: printUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.print-word::before {
  /* خطوط الطبقات تظهر لحظة الطباعة وتختفي */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 7px,
    rgba(255, 122, 26, 0.16) 7px 9px
  );
  animation: layersFade 1.6s forwards;
}
.print-word:nth-child(1) {
  animation-delay: 0.5s;
}
.print-word:nth-child(1)::before {
  animation-delay: 0.5s;
}
.print-word:nth-child(2) {
  animation-delay: 1s;
}
.print-word:nth-child(2)::before {
  animation-delay: 1s;
}
.print-word.accent {
  color: var(--hot-deep);
  animation-delay: 1.5s;
}
.print-word.accent::before {
  animation-delay: 1.5s;
}
@keyframes printUp {
  from {
    clip-path: inset(100% 0 0 0);
    transform: translateY(14px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}
@keyframes layersFade {
  0%,
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* خط الفيلامنت + الفوهة */
.nozzle-track {
  position: relative;
  width: min(420px, 72vw);
  height: 34px;
  margin-top: 30px;
}
.filament-line {
  position: absolute;
  top: 50%;
  right: 0;
  height: 4px;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--hot-deep), var(--hot));
  animation: extrude 1.6s 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes extrude {
  to {
    width: 100%;
  }
}
.nozzle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -100%);
  animation: nozzleMove 1.6s 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes nozzleMove {
  to {
    right: 100%;
  }
}
.nozzle svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(232, 93, 4, 0.4));
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.7s 3s forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s 3.3s forwards;
}
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 15px 34px;
  border-radius: 12px;
  border: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn-hot {
  background: var(--hot-deep);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(232, 93, 4, 0.5);
}
.btn-hot:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(232, 93, 4, 0.55);
  background: var(--hot);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 6vw, 64px);
  margin-top: 64px;
  opacity: 0;
  animation: fadeUp 0.7s 3.6s forwards;
}
.stat {
  text-align: center;
}
.stat b {
  font-family: "Changa";
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
}
.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============ SECTIONS ============ */
section {
  padding: 90px clamp(16px, 6vw, 80px);
  position: relative;
}
.sec-head {
  max-width: 560px;
  margin-bottom: 48px;
}
.sec-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hot-deep);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--hot);
}
.sec-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.4;
}
.sec-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.9;
}

/* كشف عند التمرير */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ PRODUCTS ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  justify-content: start;
  gap: 26px;
  align-items: stretch;
}
/* الجوال: كرتين جنب بعض */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .pd-related .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-body {
    padding: 12px 14px 16px;
  }
  .card-body h3 {
    font-size: 0.92rem;
  }
  .card-body .mat {
    font-size: 0.72rem;
  }
  .add-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .price {
    font-size: 1.05rem;
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -16px rgba(22, 36, 59, 0.18);
}
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ebeef2, #dee3e9);
}
.card-img svg {
  width: 55%;
  height: 55%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card-img svg {
  transform: scale(1.08) rotate(-3deg);
}
/* المسح الطبقي عند الهوفر */
.card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 122, 26, 0.22) 50%,
    transparent 100%
  );
  background-size: 100% 220%;
  background-position: 0 -120%;
  background-repeat: no-repeat;
  transition: none;
  pointer-events: none;
}
.card:hover .card-img::after {
  animation: scan 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes scan {
  from {
    background-position: 0 -120%;
  }
  to {
    background-position: 0 220%;
  }
}
.card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hot-deep);
  background: #fff3e8;
  border: 1px solid #ffd9b8;
  border-radius: 99px;
  padding: 4px 12px;
}
.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.card-body .mat {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}
.price {
  font-family: "Changa";
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--hot-deep);
}
.price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.add-btn:hover {
  background: var(--hot-deep);
  border-color: var(--hot-deep);
  color: #fff;
  transform: scale(1.07);
}

/* ============ CUSTOM ORDER ============ */
.custom {
  background: var(--ink);
  border-radius: 24px;
  color: #fff;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.custom::before {
  /* طبقات خلفية */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 14px,
    #fff 14px 15px
  );
}
.custom-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .custom-inner {
    grid-template-columns: 1fr;
  }
}
.custom h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.45;
}
.custom h2 em {
  font-style: normal;
  color: var(--hot);
}
.custom p {
  color: #b8c2d2;
  margin-top: 14px;
  line-height: 2;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.step:last-child {
  border-bottom: none;
}
.step-num {
  font-family: "Changa";
  font-weight: 700;
  color: var(--hot);
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 122, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.step h4 {
  font-size: 1rem;
  font-weight: 600;
}
.step span {
  font-size: 0.86rem;
  color: #9aa7ba;
  display: block;
  margin-top: 3px;
  line-height: 1.8;
}
.custom .btn-hot {
  margin-top: 28px;
}

/* ============ WHY US ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.why {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.why:hover {
  transform: translateY(-4px);
  border-color: var(--hot);
}
.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff3e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why h3 {
  font-size: 1.05rem;
  font-weight: 700;
}
.why p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.9;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 48px clamp(16px, 6vw, 80px) 32px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}
.foot-brand p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 10px;
  max-width: 32ch;
  line-height: 1.9;
}
.foot-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.foot-col h4 {
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 9px;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--hot-deep);
}
.copy {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .print-word {
    clip-path: none;
  }
  .hero-eyebrow,
  .hero-sub,
  .hero-actions,
  .hero-stats {
    opacity: 1;
  }
  .filament-line {
    width: 100%;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ نافذة الطلب ============ */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 36, 59, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.order-modal.open {
  opacity: 1;
  visibility: visible;
}
.order-box {
  width: min(480px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 30px 80px -24px rgba(22, 36, 59, 0.4);
}
.order-modal.open .order-box {
  transform: translateY(0) scale(1);
}
.order-x {
  position: absolute;
  top: 16px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  background: var(--bed);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    background 0.2s,
    color 0.2s;
}
.order-x:hover {
  background: var(--hot-deep);
  color: #fff;
}
.order-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
}
.order-lead {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
  margin-bottom: 8px;
  line-height: 1.7;
}
.order-field {
  margin-top: 16px;
}
.order-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.order-field input,
.order-field textarea {
  width: 100%;
  background: var(--bed);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  resize: vertical;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.order-field input:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.13);
}
.order-field input[readonly] {
  background: #eef1f4;
  color: var(--ink-soft);
  font-weight: 600;
}
.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 440px) {
  .order-row {
    grid-template-columns: 1fr;
  }
}
.order-status {
  font-size: 0.86rem;
  margin-top: 14px;
  min-height: 1.2em;
  line-height: 1.6;
}
.order-status.err {
  color: #d62828;
}
.order-status.ok {
  color: #2a9d4a;
}
.order-send {
  width: 100%;
  margin-top: 20px;
  position: relative;
}
.order-send-loader {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  animation: pulse 1s infinite;
}
.order-send.loading .order-send-loader {
  display: block;
}
.order-send.loading .order-send-text {
  opacity: 0.7;
}

/* ============================================================
   صفحة تفاصيل المنتج — تنطبع طبقة طبقة
   ============================================================ */

/* مسار التنقّل */
.pd-crumb {
  max-width: 1100px;
  margin: 70px auto 0;
  padding: 0 clamp(16px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: fadeUp 0.5s 0.1s forwards;
}
.pd-crumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.pd-crumb a:hover {
  color: var(--hot-deep);
}
.pd-crumb-sep {
  opacity: 0.5;
}
.pd-crumb-current {
  color: var(--ink);
  font-weight: 600;
}

.pd-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 40px) 80px;
  min-height: 60vh;
}

/* حالة التحميل */
.pd-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  gap: 18px;
  color: var(--ink-soft);
}
.pd-loading-nozzle {
  animation: pdBounce 1.2s ease-in-out infinite;
}
@keyframes pdBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.pd-loading p {
  font-size: 0.95rem;
}

/* بطاقة المنتج */
.pd-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 840px) {
  .pd-card {
    grid-template-columns: 1fr;
  }
}

/* جهة الصورة */
.pd-media {
  position: sticky;
  top: 90px;
}
@media (max-width: 840px) {
  .pd-media {
    position: static;
  }
}
.pd-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  max-height: 560px;
}
.pd-image img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
/* خط المسح البرتقالي يكشف الصورة (الطباعة) */
.pd-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, var(--hot) 0%, transparent 6%);
  opacity: 0;
}
.pd-show .pd-scan {
  animation: pdScan 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pdScan {
  0% {
    opacity: 1;
    transform: translateY(-100%);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}
/* الصورة تنكشف من تحت لفوق */
.pd-image img {
  clip-path: inset(0 0 100% 0);
}
.pd-show .pd-image img {
  animation: pdReveal 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes pdReveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.pd-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hot-deep);
  background: #fff3e8;
  border: 1px solid #ffd9b8;
  border-radius: 99px;
  padding: 5px 14px;
  opacity: 0;
  animation: fadeUp 0.5s 1s forwards;
}

/* جهة التفاصيل — كل عنصر يرتفع بتتابع */
.pd-rise {
  opacity: 0;
  transform: translateY(18px);
}
.pd-show .pd-rise {
  animation: pdRise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes pdRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pd-show .pd-name {
  animation-delay: 0.3s;
}
.pd-show .pd-mat {
  animation-delay: 0.42s;
}
.pd-show #pd-price-wrap {
  animation-delay: 0.54s;
}
.pd-show #pd-desc-wrap {
  animation-delay: 0.66s;
}
.pd-show #pd-colors-wrap {
  animation-delay: 0.78s;
}
.pd-show .pd-actions {
  animation-delay: 0.9s;
}
.pd-show .pd-trust {
  animation-delay: 1.02s;
}

.pd-name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
}
.pd-mat {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-top: 10px;
}
.pd-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}
.pd-price b {
  font-family: "Changa";
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--hot-deep);
  line-height: 1;
}
.pd-price span {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.pd-desc {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pd-desc h3,
.pd-colors h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.pd-desc p {
  color: var(--ink-soft);
  line-height: 2;
  font-size: 0.95rem;
}

.pd-colors {
  margin-top: 24px;
}
.pd-colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-color-chip {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 7px 16px;
  transition:
    border-color 0.2s,
    transform 0.2s;
  cursor: default;
}
.pd-color-chip:hover {
  border-color: var(--hot);
  transform: translateY(-2px);
}

.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}
/* زر أضف للسلة يملأ العرض */
.pd-actions .pd-order {
  width: 100%;
  justify-content: center;
}
/* صف الإعجاب والمشاركة */
.pd-actions-row {
  display: flex;
  gap: 12px;
}
.pd-icon-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.15s,
    background 0.2s;
}
.pd-icon-btn svg {
  width: 21px;
  height: 21px;
  transition:
    transform 0.2s,
    fill 0.2s,
    stroke 0.2s;
}
.pd-icon-btn:hover {
  transform: translateY(-1px);
}
.pd-like:hover {
  border-color: #ff5470;
  color: #ff5470;
}
.pd-like.liked {
  border-color: #ff5470;
  color: #ff5470;
  background: #fff5f6;
}
.pd-like.liked svg {
  fill: #ff5470;
  stroke: #ff5470;
}
.pd-like-count {
  font-size: 0.9rem;
  min-width: 6px;
}
.pd-like.pop svg {
  animation: likePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pd-share:hover {
  border-color: var(--hot);
  color: var(--hot-deep);
}
.pd-actions .btn {
  flex: 1;
  min-width: 160px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pd-order {
  font-size: 1.05rem;
}

.pd-trust {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.pd-trust-item span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f7ee;
  color: #2a9d4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== معرض الصور (مصغّرات) ===== */
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pd-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bed-grid);
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-thumb:hover {
  transform: translateY(-2px);
}
.pd-thumb.active {
  border-color: var(--hot-deep);
}

/* ===== المواصفات (أبعاد + وزن) ===== */
.pd-specs {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pd-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.pd-spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-spec-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.pd-spec-value {
  font-family: "Changa";
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ===== دوائر الألوان (عرض فقط) ===== */
.pd-colors {
  margin-top: 26px;
}
.pd-colors-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.pd-color-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dot, #9aa0a6);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px #fff;
  flex-shrink: 0;
}

/* ===== الكمية ===== */
.pd-qty {
  margin-top: 26px;
}
.pd-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  background: var(--card);
}
.pd-qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: none;
  background: var(--bed);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.18s,
    color 0.18s;
}
.pd-qty-btn:hover {
  background: var(--hot-deep);
  color: #fff;
}
.pd-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bed);
  color: var(--ink);
}
.pd-qty-num {
  font-family: "Changa";
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 42px;
  text-align: center;
}

/* عناوين الأقسام الفرعية في التفاصيل */
.pd-specs h3,
.pd-qty h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ===== المنتجات المشابهة ===== */
.pd-related {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}
.pd-related-head {
  margin-bottom: 28px;
}
.pd-related-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-top: 8px;
}
.pd-related .grid {
  justify-content: start;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .pd-related .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pd-related .card {
  cursor: pointer;
}

/* المنتج غير موجود */
.pd-notfound {
  text-align: center;
  padding: 100px 20px;
}
.pd-notfound h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pd-notfound p {
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.pd-notfound .btn {
  text-decoration: none;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .pd-scan {
    display: none;
  }
  .pd-image img {
    clip-path: none !important;
    animation: none !important;
  }
  .pd-rise {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .pd-crumb,
  .pd-tag {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* البراند كرابط — نلغي تنسيق الرابط الافتراضي */
a.brand {
  text-decoration: none;
  color: var(--ink);
}
a.brand:hover {
  color: var(--ink);
}

/* ============ أيقونة السلة في الـ nav ============ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  display: flex;
  align-items: center;
  transition:
    color 0.2s,
    transform 0.2s;
}
.cart-btn:hover {
  color: var(--hot-deep);
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--hot-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: "Changa";
}

/* ============ شارة المخزون في كرت المتجر ============ */
.card-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 4px 12px;
}
.card-stock.avail {
  background: #e8f7ee;
  color: #2a9d4a;
  border: 1px solid #c5ebd3;
}
.card-stock.low {
  background: #fff3e8;
  color: var(--hot-deep);
  border: 1px solid #ffd9b8;
}
.card-stock.out {
  background: #fde8ec;
  color: #d62828;
  border: 1px solid #f8c9d2;
}
.card-stock.min {
  background: #fff8e6;
  color: #b8860b;
  border: 1px solid #f5e4b8;
}
.card-stock.pre {
  background: #eef1f4;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* زر أضف للسلة */
.add-btn {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 10px 16px;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.add-btn:hover {
  background: var(--hot-deep);
  transform: translateY(-1px);
}
.add-btn.added {
  background: #2a9d4a;
}
.add-btn.disabled,
.add-btn:disabled {
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
}

.grid-loading {
  grid-column: 1/-1;
  text-align: center;
  color: var(--ink-soft);
  padding: 50px 16px;
  font-size: 0.95rem;
}

/* ============ نافذة السلة ============ */
.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: flex-start;
  background: rgba(22, 36, 59, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.cart-modal.open {
  opacity: 1;
  visibility: visible;
}
.cart-box {
  width: min(420px, 100%);
  height: 100%;
  background: var(--bed);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
}
.cart-modal.open .cart-box {
  transform: translateX(0);
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.cart-head h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
.cart-x {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  background: var(--bed);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    background 0.2s,
    color 0.2s;
}
.cart-x:hover {
  background: var(--hot-deep);
  color: #fff;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bed-grid);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-noimg {
  font-size: 1.6rem;
  color: var(--ink-soft);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-item-pre {
  font-size: 0.66rem;
  background: #eef1f4;
  color: var(--ink-soft);
  border-radius: 99px;
  padding: 2px 8px;
  font-weight: 600;
}
.cart-item-min {
  font-size: 0.66rem;
  background: #fff8e6;
  color: #b8860b;
  border-radius: 99px;
  padding: 2px 8px;
  font-weight: 600;
}
.cart-item-price {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 3px;
}
.cart-qty-max {
  font-size: 0.72rem;
  color: var(--hot-deep);
  display: block;
  margin-top: 2px;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--bed);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.cart-qty-btn:hover {
  border-color: var(--hot-deep);
  background: #fff3e8;
}
.cart-qty-num {
  font-family: "Changa";
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.cart-item-total {
  font-family: "Changa";
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.cart-item-total small {
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.cart-item-del {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.cart-item-del:hover {
  opacity: 1;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  padding: 40px;
}
.cart-empty p {
  font-size: 1.1rem;
  font-weight: 600;
}
.cart-empty span {
  font-size: 0.88rem;
}

.cart-foot {
  padding: 20px 22px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.cart-row span {
  color: var(--ink-soft);
}
.cart-row b {
  font-family: "Changa";
  color: var(--ink);
}
.cart-ship-hint {
  font-size: 0.8rem;
  color: var(--hot-deep);
  background: #fff3e8;
  border: 1px solid #ffd9b8;
  border-radius: 9px;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: center;
}
.cart-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.cart-total span {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.cart-total b {
  color: var(--hot-deep);
  font-size: 1.3rem;
}
.cart-checkout {
  width: 100%;
  background: var(--hot-deep);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Changa";
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  box-shadow: 0 10px 30px -10px rgba(232, 93, 4, 0.5);
}
.cart-checkout:hover {
  background: var(--hot);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .cart-box {
    transition: none;
  }
}

/* ============ إصلاحات السلة ============ */
/* hidden يطغى على flex/grid دائمًا */
[hidden] {
  display: none !important;
}

/* زر أضف للسلة — يتسع للنص كامل */
.card-foot {
  gap: 10px;
}
.add-btn {
  min-width: max-content;
  padding: 10px 18px;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* meta المنتج في السلة (شارة + سعر بسطر) */
.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cart-item-avail {
  font-size: 0.66rem;
  background: #e8f7ee;
  color: #2a9d4a;
  border-radius: 99px;
  padding: 2px 9px;
  font-weight: 600;
  border: 1px solid #c5ebd3;
}
.cart-item-meta .cart-item-price {
  margin: 0;
}

/* ملاحظة حد المخزون */
.cart-qty-limit {
  display: block;
  font-size: 0.72rem;
  color: var(--hot-deep);
  margin-top: 6px;
  font-weight: 500;
}
/* زر الكمية المعطّل */
.cart-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--line);
}
.cart-qty-btn:disabled:hover {
  background: var(--bed);
}

/* ============================================
   الصفحات النصية (من نحن، الإرجاع، اتصل بنا، FAQ)
   ============================================ */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 90px clamp(16px, 5vw, 40px) 90px;
  min-height: 60vh;
}

/* رأس الصفحة */
.page-head {
  margin-bottom: 44px;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hot-deep);
  margin-bottom: 14px;
}
.page-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--hot);
  border-radius: 2px;
}
.page-head h1 {
  font-family: "Changa";
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.page-head .page-lead {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 640px;
}

/* محتوى الصفحة */
.page-body h2 {
  font-family: "Changa";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 38px 0 14px;
}
.page-body p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 14px;
}
.page-body ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.page-body li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 12px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.page-body li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--hot);
  transform: rotate(45deg);
}

/* بطاقات القيم (من نحن) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card .vc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin: 0;
}

/* الأسئلة الشائعة — طي/فتح */
.faq-list {
  margin-top: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open {
  border-color: var(--hot);
}
.faq-q {
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.12);
  color: var(--hot-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-q-icon {
  transform: rotate(135deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  line-height: 2;
  font-size: 1rem;
}

/* نموذج اتصل بنا */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-top: 26px;
}
@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.contact-method:last-child {
  border-bottom: none;
}
.contact-method:hover {
  color: var(--hot-deep);
}
.contact-method .cm-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 122, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method .cm-text b {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-method .cm-text span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* زر الرجوع للرئيسية */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  color: var(--hot-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: gap 0.2s;
}
.page-back:hover {
  gap: 14px;
}

/* ============================================
   أدوات المتجر: بحث + فئات + فلاتر
   ============================================ */
.shop-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}
.search-box {
  position: relative;
  flex: 1;
}
.search-box .search-icon {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12);
}
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.filter-toggle:hover,
.filter-toggle.active {
  border-color: var(--hot);
  color: var(--hot-deep);
}

/* أزرار الفئات */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.cat-chip {
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-chip:hover {
  border-color: var(--hot);
  color: var(--hot-deep);
}
.cat-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* لوحة الفلاتر */
.filters-panel {
  margin: 0 0 26px;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-group > label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.filter-group > label span {
  color: var(--ink-soft);
  font-weight: 400;
}
.filter-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-opt {
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--bed);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-opt:hover {
  border-color: var(--hot);
}
.filter-opt.active {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
}
.filter-group input[type="range"] {
  width: 180px;
  accent-color: var(--hot);
  cursor: pointer;
}
.filter-clear {
  padding: 9px 18px;
  border: none;
  background: none;
  color: var(--hot-deep);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-inline-start: auto;
}
.filter-clear:hover {
  text-decoration: underline;
}

/* حالة لا نتائج */
.grid-empty {
  text-align: center;
  padding: 70px 20px;
}
.grid-empty p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.grid-empty span {
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .shop-tools {
    flex-direction: column;
  }
  .filter-toggle {
    width: 100%;
    justify-content: center;
  }
  .filters-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-clear {
    margin: 0;
  }
}

/* زر "شاهد كل المنتجات" في الرئيسية */
.shop-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.shop-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.shop-all-btn svg {
  transition: transform 0.2s;
}
.shop-all-btn:hover svg {
  transform: translateX(-5px);
}

/* رأس صفحة المتجر */
.shop-header {
  max-width: 1180px;
  margin: 90px auto 30px;
  padding: 0 clamp(16px, 5vw, 40px);
}

/* ===== معاينة الصورة المكبّرة (Lightbox) ===== */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 36, 59, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
  cursor: zoom-out;
}
.img-lightbox.open {
  opacity: 1;
  visibility: visible;
}
.img-lightbox img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-lightbox.open img {
  transform: scale(1);
}
.img-lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s;
}
.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* حالة التحميل بأنيميشن الفوهة (شبكة المنتجات) */
.grid-loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--ink-soft);
}
.grid-loading-state .pd-loading-nozzle {
  animation: pdBounce 1.2s ease-in-out infinite;
}
.grid-loading-state p {
  font-size: 0.95rem;
}

/* زر أضف للسلة في صفحة المنتج — حالات */
.pd-order.added {
  background: #2a9d4a !important;
}
.btn.disabled,
.btn:disabled {
  background: var(--line) !important;
  color: var(--ink-soft) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* ============ أنيميشن الإضافة للسلة ============ */
/* العنصر الطائر: نسخة مصغرة من صورة المنتج */
.fly-to-cart {
  position: fixed;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  pointer-events: none;
  background: var(--hot, #ff7a1a);
  box-shadow: 0 10px 28px rgba(22, 36, 59, 0.28);
}
div.fly-to-cart {
  /* مكعب برتقالي لو المنتج بدون صورة */
  background: linear-gradient(
    160deg,
    var(--hot, #ff7a1a),
    var(--hot-deep, #e85d04)
  );
}

/* نطّة عداد السلة عند زيادة العدد */
.cart-badge.bump {
  animation: badgeBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgeBump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.65);
  }
  100% {
    transform: scale(1);
  }
}

/* أيقونة السلة "تلتقط" القطعة */
.cart-btn.cart-pop {
  animation: cartPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cartPop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  35% {
    transform: scale(1.18) rotate(-7deg);
  }
  70% {
    transform: scale(0.96) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* ============ توست التأكيد ============ */
.tb-toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translate(50%, 20px);
  z-index: 300;
  background: var(--ink, #16243b);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 122, 26, 0.4);
  box-shadow: 0 14px 40px rgba(22, 36, 59, 0.35);
  max-width: min(440px, calc(100vw - 32px));
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.35s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.tb-toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}
.tb-toast b {
  color: var(--hot, #ff7a1a);
  font-family: "Changa", sans-serif;
  letter-spacing: 0.5px;
  direction: ltr;
  display: inline-block;
}

/* ============ التقييمات (صفحة المنتج) ============ */
.pd-reviews {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.rv-avg {
  color: var(--hot, #ff7a1a);
  font-family: "Changa";
}
.rv-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 32px;
}
.rv-empty {
  color: var(--ink-soft, #5a6a82);
  text-align: center;
  padding: 24px;
}
.rv-item {
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 12px;
  padding: 16px;
}
.rv-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.rv-item-stars {
  color: var(--hot, #ff7a1a);
  letter-spacing: 2px;
}
.rv-item p {
  margin: 8px 0 0;
  color: var(--ink, #16243b);
  line-height: 1.8;
}

.rv-form-wrap {
  background: #faf8f5;
  border: 1px solid #e8e3da;
  border-radius: 16px;
  padding: 24px;
  max-width: 560px;
}
.rv-form-wrap h3 {
  margin: 0 0 4px;
  font-family: "Changa";
}
.rv-note {
  color: var(--ink-soft, #5a6a82);
  font-size: 0.84rem;
  margin: 0 0 14px;
}
.rv-stars-input {
  display: flex;
  gap: 4px;
  direction: ltr;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.rv-stars-input button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #d8d2c8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition:
    color 0.15s,
    transform 0.15s;
}
.rv-stars-input button:hover {
  transform: scale(1.15);
}
.rv-stars-input button.on {
  color: var(--hot, #ff7a1a);
}
.rv-form-wrap input,
.rv-form-wrap textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid #e0dad0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  resize: vertical;
}
.rv-form-wrap input:focus,
.rv-form-wrap textarea:focus {
  outline: none;
  border-color: var(--hot, #ff7a1a);
}
.rv-status {
  font-size: 0.88rem;
  margin: 0 0 12px;
}
.rv-status.err {
  color: #c1121f;
}
.rv-status.ok {
  color: #2a9d4a;
}

/* زر مسح البيانات المحفوظة */
.cust-clear-btn {
  display: block;
  width: 100%;
  background: none;
  border: 1px dashed #d8d2c8;
  color: var(--ink-soft, #5a6a82);
  border-radius: 10px;
  padding: 9px;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 10px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.cust-clear-btn:hover {
  border-color: var(--hot, #ff7a1a);
  color: var(--hot, #ff7a1a);
}

/* حقول التحقق من الطلب بالتقييم */
.rv-verify {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.rv-verify input {
  flex: 1;
  min-width: 130px;
  margin-bottom: 0 !important;
}

/* دخول بطاقات التقييم */
@keyframes rvIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rv-item {
  animation: rvIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.rv-item:nth-child(2) {
  animation-delay: 0.08s;
}
.rv-item:nth-child(3) {
  animation-delay: 0.16s;
}
.rv-item:nth-child(4) {
  animation-delay: 0.24s;
}
.rv-item-stars {
  animation: rvStarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: 0.2s;
  display: inline-block;
}
@keyframes rvStarPop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* نجوم الإدخال: نبضة عند الاختيار */
.rv-stars-input button.on {
  animation: starBump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes starBump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

/* ============================================
   نظام الحسابات — واجهة المصادقة
   ============================================ */

/* زر الحساب بالـ nav */
.acct-nav {
  position: relative;
  display: inline-flex;
}
.acct-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid #e0dad0;
  border-radius: 99px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink, #16243b);
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.15s;
}
.acct-nav-btn:hover {
  border-color: var(--hot, #ff7a1a);
  transform: translateY(-1px);
}
.acct-nav-btn svg {
  transition: transform 0.3s;
}
.acct-nav-btn.logged {
  background: rgba(255, 122, 26, 0.08);
  border-color: rgba(255, 122, 26, 0.3);
  color: var(--hot-deep, #e85d04);
}
.acct-nav-btn.open svg {
  transform: rotate(-8deg) scale(1.1);
}
.acct-nav-label {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  background: #fff;
  border: 1px solid #e8e3da;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(22, 36, 59, 0.16);
  padding: 6px;
  min-width: 200px;
  z-index: 120;
  animation: acctMenuIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes acctMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.acct-menu-item {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink, #16243b);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.acct-menu-item:hover {
  background: #faf5ee;
}
.acct-logout {
  color: #c1121f;
}

/* نافذة المصادقة */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 36, 59, 0);
  backdrop-filter: blur(0px);
  transition:
    background 0.35s,
    backdrop-filter 0.35s;
}
.auth-modal.show {
  background: rgba(22, 36, 59, 0.55);
  backdrop-filter: blur(6px);
}
.auth-box {
  background: #fff;
  border-radius: 22px;
  width: min(420px, 100%);
  padding: 30px 28px;
  box-shadow: 0 30px 80px rgba(22, 36, 59, 0.3);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.3, 0.5, 1),
    opacity 0.3s;
}
.auth-modal.show .auth-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.auth-x {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #b7b0a5;
  cursor: pointer;
  line-height: 1;
  transition:
    color 0.2s,
    transform 0.2s;
}
.auth-x:hover {
  color: var(--hot-deep, #e85d04);
  transform: rotate(90deg);
}

/* شعار النافذة: طبقات تتراكم */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.auth-logo i {
  display: block;
  width: 38px;
  height: 7px;
  border-radius: 3px;
  background: var(--hot, #ff7a1a);
  transform-origin: center;
  animation: authStack 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.auth-logo i:nth-child(1) {
  animation-delay: 0.05s;
  opacity: 0.55;
}
.auth-logo i:nth-child(2) {
  animation-delay: 0.13s;
  opacity: 0.78;
}
.auth-logo i:nth-child(3) {
  animation-delay: 0.21s;
}
@keyframes authStack {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.auth-brand-name {
  font-family: "Changa", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink, #16243b);
}

/* التبويبات بمؤشر منزلق */
.auth-tabs {
  position: relative;
  display: flex;
  background: #f3efe9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft, #5a6a82);
  cursor: pointer;
  transition: color 0.3s;
}
.auth-tab.active {
  color: var(--hot-deep, #e85d04);
}
.auth-tab-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  inset-inline-start: 4px;
  width: calc(50% - 4px);
  background: #fff;
  border-radius: 9px;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(22, 36, 59, 0.1);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.5, 1);
}

/* الألواح — انتقال انزلاقي */
.auth-panes {
  position: relative;
}
.auth-pane {
  display: none;
}
.auth-pane.active {
  display: block;
  animation: paneIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* الحقول مع label عائم */
.auth-field {
  position: relative;
  margin-bottom: 16px;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 14px 7px;
  border: 1px solid #e0dad0;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #faf8f5;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--hot, #ff7a1a);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.13);
  background: #fff;
}
.auth-field label {
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  color: #9a9389;
  font-size: 0.92rem;
  pointer-events: none;
  transition: 0.2s;
  transform-origin: start;
}
.auth-field input:focus + label,
.auth-field input:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 0.68rem;
  color: var(--hot-deep, #e85d04);
}
.auth-forgot {
  background: none;
  border: none;
  color: var(--ink-soft, #5a6a82);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}
.auth-forgot:hover {
  color: var(--hot-deep, #e85d04);
  text-decoration: underline;
}

.auth-msg {
  font-size: 0.84rem;
  margin: 4px 0 12px;
  min-height: 1em;
}
.auth-msg.err {
  color: #c1121f;
}
.auth-msg.ok {
  color: #2a9d4a;
}

/* زر الإرسال مع سبينر */
.auth-submit {
  position: relative;
  width: 100%;
  background: var(--hot, #ff7a1a);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition:
    background 0.2s,
    transform 0.15s;
}
.auth-submit:hover {
  background: var(--hot-deep, #e85d04);
}
.auth-submit:active {
  transform: scale(0.98);
}
.auth-submit.loading .auth-submit-text {
  opacity: 0;
}
.auth-submit.loading {
  pointer-events: none;
}
.auth-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}
.auth-submit.loading .auth-spinner {
  opacity: 1;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* فاصل "أو" */
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #b7b0a5;
  font-size: 0.82rem;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ece7df;
}

/* زر قوقل */
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #e0dad0;
  border-radius: 11px;
  padding: 13px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink, #16243b);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}
.auth-google:hover {
  border-color: #c9c1b4;
  background: #faf8f5;
  transform: translateY(-1px);
}

.auth-guest {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft, #5a6a82);
}
.auth-guest button {
  background: none;
  border: none;
  color: var(--hot-deep, #e85d04);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-guest button:hover {
  text-decoration: underline;
}

/* اهتزازة الخطأ */
.auth-shake {
  animation: authShake 0.4s;
}
@keyframes authShake {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-box,
  .auth-tab-ind,
  .auth-pane.active,
  .auth-logo i,
  .acct-menu {
    animation: none !important;
    transition: opacity 0.2s !important;
  }
}

/* ============================================
   تحسينات الاتساق (زر الطلب المسبق + الأبعاد + الصور)
   ============================================ */

/* زر الطلب المسبق بالكروت — برتقالي متناسق مع صفحة المنتج */
.add-btn-pre {
  background: var(--hot) !important;
  color: #fff !important;
}
.add-btn-pre:hover {
  background: var(--hot-deep) !important;
  transform: translateY(-1px);
}

/* توحيد ارتفاع صور الكروت ومنع التشوّه */
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* المواصفات: أبعاد أوضح وأكبر */
.pd-spec {
  padding: 16px 18px;
}
.pd-spec-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}
.pd-spec-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  direction: rtl;
  display: inline-block;
  unicode-bidi: plaintext;
}

/* ============================================
   تحسينات الحزمة (شارات + إعجاب + دليل + فلاتر)
   ============================================ */

/* إصلاح فراغ صورة المنتج على الشاشات الكبيرة */
.pd-image {
  aspect-ratio: 1 / 1; /* نسبة ثابتة تملأ الإطار */
  min-height: 0;
  max-height: none;
}
.pd-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover; /* يملأ الإطار بدون فراغ */
}
@media (max-width: 840px) {
  .pd-image {
    aspect-ratio: 4 / 3;
  }
}

/* شارة "نفد قريباً" — إلحاح */
.card-stock.urgent {
  background: linear-gradient(135deg, #ff5470, #e8174e);
  color: #fff;
  animation: urgentPulse 1.8s infinite;
}
@keyframes urgentPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 23, 78, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232, 23, 78, 0);
  }
}

/* الدليل الاجتماعي تحت السعر */
.pd-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff4ec;
  border: 1px solid #ffd9b8;
  color: var(--hot-deep);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-top: 10px;
}

/* أنيميشن نبضة القلب */
@keyframes likePop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/* حقلا السعر من-إلى */
.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-range input {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--ink);
}
.price-range input:focus {
  outline: none;
  border-color: var(--hot);
}
.price-dash {
  color: var(--ink-soft);
}

/* قائمة الترتيب */
.filter-sort {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.filter-sort:focus {
  outline: none;
  border-color: var(--hot);
}

/* ============================================
   حزمة: مشاركة + طلب مخصص + الأكثر مبيعاً
   ============================================ */

/* تلميح الطلب المخصص */
.pd-custom-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px;
  background: #fff4ec;
  border: 1px dashed #ffc99a;
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--ink);
}
.pd-custom-btn {
  background: none;
  border: none;
  color: var(--hot-deep);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s;
}
.pd-custom-btn:hover {
  transform: translateX(-3px);
}

/* شارة الأكثر مبيعاً — صفحة المنتج */
.pd-bestseller {
  display: inline-block;
  background: linear-gradient(135deg, #ff7a1a, #e8174e);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.25);
}

/* شارة الأكثر مبيعاً — كرت المتجر */
.card-bestseller {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  background: linear-gradient(135deg, #ff7a1a, #e8174e);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.3);
}

/* =====================================================
   شريط الملاحظة + حالة المتجر المغلق (يُدار من الإعدادات)
   ===================================================== */
.store-notice {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--hot), var(--hot-deep));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 44px 10px 16px;
  text-align: center;
  animation: noticeDown 0.4s ease;
}
@keyframes noticeDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.store-notice-x {
  position: absolute;
  inset-inline-end: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.2s;
}
.store-notice-x:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* بانر المتجر المغلق */
.store-closed-banner {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 300;
  background: #2a3b54;
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
/* لما المتجر مغلق نعتّم أزرار الطلب */
body.store-closed .add-btn,
body.store-closed .pd-order,
body.store-closed .add-btn-pre {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}

/* لما فيه شريط ملاحظة/إغلاق فوق، ندفع الـ nav والصفحة تحته */
body.has-notice nav {
  top: 42px;
}
body.has-notice {
  padding-top: 42px;
}
body.store-closed nav {
  top: 46px;
}
body.store-closed {
  padding-top: 46px;
}
