/* ═══════════════════════════════════════════════
   تطريز سليمانية — تصميم الموقع العام
   ═══════════════════════════════════════════════ */

:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --rose: #e85f90;
  --rose-dark: #c94776;
  --rose-light: #f59abb;
  --blue: #5b9fe8;
  --blue-dark: #347cc8;
  --blue-light: #dcebfc;
  --blush: #fff0f5;
  --blush-2: #f8cfe0;
  --plum: #273b5b;
  --text: #41546e;
  --muted: #778aa4;
  --gold: #9071c9;
  --shadow-sm: 0 2px 10px rgba(65, 105, 157, 0.09);
  --shadow-md: 0 10px 30px rgba(91, 159, 232, 0.16);
  --shadow-lg: 0 18px 50px rgba(232, 95, 144, 0.2);
  --radius: 20px;
  --radius-lg: 28px;
  --font-display: 'El Messiri', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
  --stitch-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath d='M7 4l7 8M14 4l-7 8' stroke='%235b9fe8' stroke-width='2.4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
  --stitch-x-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16' viewBox='0 0 24 16'%3E%3Cpath d='M7 4l7 8M14 4l-7 8' stroke='%23f8cfe0' stroke-width='2.4' stroke-linecap='round' opacity='.8'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  /* حتى لا تختفي بداية القسم خلف الترويسة اللاصقة عند روابط #القفز */
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--plum); line-height: 1.35; }

.container {
  width: min(1150px, 100% - 1.5rem);
  margin-inline: auto;
}

.desktop-only { display: none; }

/* ————— الأزرار ————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--rose) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(91, 159, 232, 0.34);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(232, 95, 144, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--rose);
  border: 2px solid var(--blush-2);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--rose-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.1rem; }

/* ————— الترويسة ————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91, 159, 232, 0.15);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding-block: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose);
}

.brand-mark { display: grid; place-items: center; }

.mountain-logo {
  display: block;
  filter: drop-shadow(0 3px 7px rgba(91, 159, 232, 0.2));
  animation: logoBreath 5s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-1.5px) rotate(-1deg); }
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--plum);
}

.brand-text small { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--rose));
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding-block: 0.3rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--rose-light));
  transition: width 0.3s ease;
}

.main-nav a:not(.nav-cta):hover { color: var(--rose); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--rose) 100%);
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(91, 159, 232, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(232, 95, 144, 0.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--blush);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.6px;
  border-radius: 2px;
  background: var(--rose);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* ————— الترحيب ————— */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 75% 15%, rgba(220, 235, 252, 0.85), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 85%, rgba(255, 224, 236, 0.72), transparent 65%),
    var(--bg);
  padding-block: 4.5rem 3.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; }

.float-x {
  position: absolute;
  font-size: 1.4rem;
  color: var(--rose-light);
  opacity: 0.4;
  animation: floaty 7s ease-in-out infinite;
}

.fx-1 { top: 14%; right: 8%; font-size: 2rem; animation-delay: 0s; }
.fx-2 { top: 62%; right: 14%; animation-delay: 1.4s; }
.fx-3 { top: 22%; left: 10%; font-size: 1.9rem; animation-delay: 0.7s; }
.fx-4 { top: 70%; left: 7%; animation-delay: 2.1s; }
.fx-5 { top: 8%; left: 42%; font-size: 1.6rem; animation-delay: 2.8s; }
.fx-6 { bottom: 8%; right: 40%; animation-delay: 3.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

.hero-inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; }

.hero-badge {
  display: inline-block;
  background: var(--surface);
  color: var(--rose);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1.5px dashed var(--rose-light);
  box-shadow: var(--shadow-sm);
}

/* لا نستخدم letter-spacing مع العربية — يقطع اتصال الحروف */
.hero-title {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 700;
}

.hero-title .grad {
  background: linear-gradient(120deg, var(--blue) 15%, var(--rose) 70%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.02rem, 3.5vw, 1.25rem);
  color: var(--text);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

/* ————— خط الغرز الفاصل ————— */
.stitch-divider {
  height: 16px;
  background-image: var(--stitch-x);
  background-repeat: repeat-x;
  background-position: center;
}

/* ————— المميزات ————— */
/* ————— مدخل الكتالوج ————— */
.catalog-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 1.55rem 1.35rem;
  text-align: center;
  background: linear-gradient(120deg, rgba(220, 235, 252, 0.72), rgba(255, 224, 236, 0.68));
  border-bottom: 1px solid rgba(91, 159, 232, 0.12);
}

.catalog-intro::before,
.catalog-intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.catalog-intro::before {
  width: 190px;
  height: 190px;
  top: -125px;
  right: -45px;
  background: rgba(91, 159, 232, 0.13);
}

.catalog-intro::after {
  width: 170px;
  height: 170px;
  bottom: -125px;
  left: -35px;
  background: rgba(232, 95, 144, 0.12);
}

.catalog-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.catalog-intro h1 {
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  margin-bottom: 0.15rem;
}

.catalog-intro p {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ورود خفيفة في خلفية الكتالوج */
.soft-flowers {
  position: fixed;
  inset: 56px 0 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.soft-flower {
  position: absolute;
  color: var(--rose);
  font-size: clamp(1rem, 4vw, 1.55rem);
  opacity: 0.11;
  animation: flowerDrift 9s ease-in-out infinite;
  will-change: transform;
}

.sf-1 { top: 8%; right: 4%; animation-delay: -1s; }
.sf-2 { top: 24%; left: 5%; color: var(--blue); animation-delay: -5s; }
.sf-3 { top: 42%; right: 7%; animation-delay: -3s; }
.sf-4 { top: 60%; left: 4%; color: var(--blue); animation-delay: -7s; }
.sf-5 { top: 78%; right: 5%; animation-delay: -2s; }
.sf-6 { top: 88%; left: 30%; color: var(--blue); animation-delay: -6s; }

@keyframes flowerDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); }
  50% { transform: translate3d(8px, -12px, 0) rotate(10deg); }
}

main,
.site-footer { position: relative; z-index: 1; }

main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }

main .container,
.site-footer .container { position: relative; z-index: 3; }

/* ————— الأقسام ————— */
.section { padding-block: 2.2rem; }
.catalog-section { padding-top: 1.4rem; }

.section-tint {
  background:
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(255, 227, 239, 0.74), transparent 70%),
    linear-gradient(180deg, #f4faff 0%, var(--bg) 100%);
}

.catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.catalog-heading h2 { font-size: 1.3rem; }
.catalog-heading span { color: var(--muted); font-size: 0.76rem; }

.section-head { text-align: center; margin-bottom: 2.4rem; }

.section-eyebrow {
  display: inline-block;
  color: var(--rose);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--blush);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.section-title { font-size: clamp(1.7rem, 6vw, 2.5rem); }

.section-intro {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0.35rem auto 0;
  max-width: 32rem;
}

.title-stitch {
  width: 130px;
  height: 16px;
  margin: 0.8rem auto 0;
  background-image: var(--stitch-x);
  background-repeat: repeat-x;
  background-position: center;
}

/* ————— بطاقات الفئات ————— */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.category-card {
  position: relative;
  background: var(--surface);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(91, 159, 232, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.category-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--blush));
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-media img { transform: scale(1.07); }

.category-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  opacity: 0.7;
}

.category-body { padding: 0.7rem 0.75rem 0.8rem; }
.category-body h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-body p {
  display: none;
}

.category-meta, .design-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--blush);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

.category-go, .design-view {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-go { display: none; }

.category-card:nth-child(even) .category-count,
.design-card:nth-child(even) .design-tag {
  color: var(--blue-dark);
  background: var(--blue-light);
}

.category-card:nth-child(even) .category-go,
.design-card:nth-child(even) .design-view { color: var(--rose-dark); }

/* ————— بطاقات التصاميم ————— */
.design-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.design-card {
  background: var(--surface);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(91, 159, 232, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.design-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-light), var(--blush));
}

.design-media::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: calc(var(--radius) - 8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.design-card:hover .design-media::after { opacity: 1; }

.design-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.design-card:hover .design-media img { transform: scale(1.06); }

.design-body { padding: 0.65rem 0.7rem 0.75rem; }

.design-body h3 {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.design-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--blush);
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
}

.design-card-meta { margin-top: 0.35rem; }
.design-card-meta .design-tag { margin-top: 0; }

/* ————— من نحن ————— */
.about-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.about-text .section-title { margin-bottom: 1rem; }
.about-text p { max-width: 36rem; margin-inline: auto; margin-bottom: 1.5rem; }

.about-art { display: grid; place-items: center; }

.hoop {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 10px solid var(--rose);
  background: #fff;
  box-shadow: var(--shadow-md), inset 0 0 0 6px var(--blush);
  display: grid;
  place-items: center;
  position: relative;
  animation: hoopFloat 6s ease-in-out infinite;
}

.hoop::before {
  content: '';
  position: absolute;
  top: -30px;
  right: 50%;
  transform: translateX(50%);
  width: 34px;
  height: 24px;
  background: var(--rose);
  border-radius: 8px;
}

@keyframes hoopFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.hoop-inner {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2.5px dashed var(--blush-2);
  display: grid;
  place-items: center;
  position: relative;
}

.hoop-heart { font-size: 3.4rem; animation: heartbeat 2.4s ease-in-out infinite; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.14); }
  24% { transform: scale(1); }
}

.hoop-x { position: absolute; color: var(--rose-light); font-size: 1rem; opacity: 0.7; }
.x1 { top: 16px; right: 38px; }
.x2 { top: 42px; left: 22px; }
.x3 { bottom: 26px; right: 24px; }
.x4 { bottom: 14px; left: 46px; }

/* ————— صفحة الفئة ————— */
.page-hero {
  background:
    radial-gradient(ellipse 90% 100% at 50% 0%, rgba(220, 235, 252, 0.75), transparent 70%),
    var(--bg);
  padding-top: 1.15rem;
  text-align: center;
}

.page-title { font-size: clamp(1.65rem, 7vw, 2.35rem); margin-bottom: 0.25rem; }

.page-sub {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1rem;
}

.page-hero .stitch-divider { display: none; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.breadcrumb a { color: var(--rose); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span:last-child {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ————— صفحة التصميم ————— */
.design-page { padding-top: 1.1rem; }
.design-page .breadcrumb { justify-content: flex-start; }

.design-detail {
  display: grid;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.design-detail-media {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(91, 159, 232, 0.16);
  padding: 12px;
}

/* صورة التصميم تُعرض كاملة بدون قص — هي المنتج نفسه */
.design-detail-media img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
}

.design-detail-info h1 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  margin: 0.6rem 0 0.8rem;
}

.design-desc { margin-bottom: 1.6rem; white-space: pre-line; }

/* النصوص التي تكتبها صاحبة الموقع قد تحوي روابط/كلمات طويلة غير قابلة للكسر */
.design-desc, .page-sub, .category-body p, .about-text p, .footer-brand p {
  overflow-wrap: break-word;
}

.design-order { display: grid; gap: 0.7rem; justify-items: start; }
.order-hint { font-size: 0.85rem; color: var(--muted); }

.related { margin-top: 1.5rem; }

/* ————— الحالات الفارغة ————— */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.empty-icon { font-size: 3.2rem; }
.empty-state p { color: var(--muted); font-size: 1.05rem; }

/* ————— التذييل ————— */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  color: var(--muted);
  border-top: 1px solid rgba(91, 159, 232, 0.13);
}

.footer-compact {
  min-height: 58px;
  padding-block: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social a { color: var(--blue-dark); font-weight: 700; }

.stitch-edge {
  height: 16px;
  background-image: var(--stitch-x-light);
  background-repeat: repeat-x;
  background-position: center;
  background-color: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 2.2rem;
  padding-block: 3rem 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-brand p { font-size: 0.92rem; opacity: 0.85; max-width: 24rem; }

.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.contact-list, .footer-links ul { display: grid; gap: 0.6rem; }

.contact-list a, .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.contact-list a:hover, .footer-links a:hover { opacity: 1; color: var(--rose-light); }

.contact-list .muted { opacity: 0.6; font-size: 0.9rem; }

.ci::before { font-size: 1.05rem; }
.ci-wa::before { content: '💬'; }
.ci-ig::before { content: '📸'; }
.ci-tt::before { content: '🎵'; }
.ci-ph::before { content: '📞'; }

.footer-bottom {
  border-top: 1px solid rgba(243, 219, 230, 0.15);
  padding-block: 1.1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ————— صفحة الخطأ ————— */
.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(220, 235, 252, 0.8), transparent 70%),
    var(--bg);
}

.error-page .container { display: grid; justify-items: center; gap: 1rem; padding-block: 3rem; }
.error-icon { font-size: 4rem; }
.error-page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.error-page p { color: var(--muted); }

/* ————— حركة الظهور ————— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-x, .hoop, .hoop-heart, .soft-flower, .mountain-logo { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════ الهاتف (قائمة منسدلة) ═══════════ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 251, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--blush-2);
    box-shadow: var(--shadow-md);
    padding: 0.6rem 1.25rem 1.1rem;
    display: none;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 0.8rem 0.4rem;
    border-bottom: 1px solid rgba(91, 159, 232, 0.15);
    font-size: 1.05rem;
  }

  .main-nav a:not(.nav-cta)::after { display: none; }

  .nav-cta {
    margin-top: 0.9rem;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    border-bottom: none !important;
  }
}

/* ═══════════ شاشات أوسع ═══════════ */
@media (min-width: 600px) {
  .design-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (min-width: 900px) {
  .desktop-only { display: inline; }
  .design-grid { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }

  .about-inner {
    grid-template-columns: 1fr 1.4fr;
    text-align: right;
  }

  .about-text p { margin-inline: 0; }
  .hoop { width: 280px; height: 280px; }
  .hoop-inner { width: 210px; height: 210px; }

  .design-detail { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }

  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}
