/* Soft Stitches — الواجهة */
:root {
  --plum: #582955;
  --plum-700: #45203f;
  --plum-900: #2c1328;
  --pink: #d85ca2;
  --pink-600: #c0468b;
  --pink-100: #fbe4ef;
  --blush: #fdf0f6;
  --cream: #fdf8f3;
  --sand: #f5ebe2;
  --wood: #b8703f;
  --ink: #3b1f38;
  --muted: #86677f;
  --line: #f0e0e9;
  --white: #fff;
  --ok: #2f9e6e;
  --danger: #d6455d;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(88, 41, 85, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(88, 41, 85, 0.35);
  --font-head: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --font: "Tajawal", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 0.5em; color: var(--plum); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 10px 22px -10px rgba(216, 92, 162, 0.8); }
.btn-primary:hover { background: var(--pink-600); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: var(--plum-700); }
.btn-ghost { background: transparent; border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-soft { background: var(--pink-100); color: var(--plum); }
.btn-soft:hover { background: #f7d3e5; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- الشريط العلوي والهيدر ---------- */
.announce {
  background: var(--plum); color: #fbe4ef; text-align: center;
  font-size: 14px; padding: 8px 16px; line-height: 1.5;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 243, 0.88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(88, 41, 85, 0.4); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 54px; width: auto; border-radius: 12px; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--plum); transition: background 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--pink-100); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1px solid var(--line);
  color: var(--plum); cursor: pointer; transition: background 0.2s;
}
.icon-btn:hover { background: var(--pink-100); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; border: 2px solid var(--cream);
}
.cart-count.bump { animation: bump 0.4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { height: 66px; gap: 12px; }
  .logo img { height: 44px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--cream); padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 12px 16px; font-size: 18px; }
  .nav-actions { margin-inline-start: auto; }
}

/* ---------- عناوين الأقسام ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pink-600); font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.kicker::before, .kicker::after { content: ""; width: 26px; border-top: 2px dashed currentColor; opacity: 0.6; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.head-row .section-head { text-align: start; margin: 0; }
.head-row .kicker::after { display: none; }

/* ---------- الهيرو ---------- */
.hero { position: relative; padding: 56px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 92, 162, 0.16), transparent 65%);
  top: -260px; inset-inline-start: -220px; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero .kicker { background: var(--white); border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; }
.hero .kicker::before, .hero .kicker::after { display: none; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 16px 0 18px; letter-spacing: -0.5px; }
.hero h1 .hl { color: var(--pink); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 25 1 50 7 T 100 7 T 150 7 T 198 6' fill='none' stroke='%23d85ca2' stroke-width='3' stroke-dasharray='7 5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.7;
}
.hero-sub { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof b { font-family: var(--font-head); font-size: 28px; color: var(--plum); line-height: 1.2; }
.hero-proof span { font-size: 14px; color: var(--muted); }

.hero-art { position: relative; aspect-ratio: 1 / 1.02; }
.hero-art .blob {
  position: absolute; inset: 6% 4% 4% 6%;
  background: linear-gradient(145deg, var(--pink-100), #efdcf0);
  border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph { 50% { border-radius: 56% 44% 42% 58% / 44% 56% 44% 56%; } }
.hero-art .ph {
  position: absolute; border-radius: var(--r-lg); overflow: hidden; background: var(--sand);
  box-shadow: var(--shadow-lg); border: 6px solid var(--white);
}
.hero-art .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .ph-1 { inset: 4% 22% 22% 6%; transform: rotate(-3deg); }
.hero-art .ph-2 { width: 42%; aspect-ratio: 1; inset-inline-end: 0; top: 14%; transform: rotate(5deg); }
.hero-art .ph-3 { width: 44%; aspect-ratio: 1.1; inset-inline-end: 8%; bottom: 0; transform: rotate(-2deg); }
.hero-art .badge-float {
  position: absolute; inset-inline-start: -4%; bottom: 10%; background: var(--white);
  border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
  font-size: 14px; line-height: 1.4; animation: floaty 5s ease-in-out infinite; z-index: 2;
}
.badge-float .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--pink-100); display: grid; place-items: center; font-size: 20px; }
.badge-float b { display: block; color: var(--plum); }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.yarn-deco { position: absolute; width: 70px; top: 2%; inset-inline-end: 6%; animation: floaty 6s ease-in-out infinite; z-index: 2; }

@media (max-width: 900px) {
  .hero { padding: 28px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-proof { gap: 22px; }
}

/* ---------- شريط المميزات ---------- */
.perks { background: var(--white); border-block: 1px solid var(--line); }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; gap: 14px; align-items: center; padding: 26px 18px; }
.perk + .perk { border-inline-start: 2px dashed var(--line); }
.perk .ic { width: 50px; height: 50px; border-radius: 16px; background: var(--blush); color: var(--pink-600); display: grid; place-items: center; flex: none; }
.perk .ic svg { width: 26px; height: 26px; }
.perk b { display: block; color: var(--plum); font-size: 16px; line-height: 1.4; }
.perk span { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .perk { padding: 18px 10px; }
  .perk + .perk { border-inline-start: 0; }
  .perk:nth-child(even) { border-inline-start: 2px dashed var(--line); padding-inline-start: 16px; }
  .perk:nth-child(n+3) { border-top: 2px dashed var(--line); }
}
@media (max-width: 480px) {
  .perk { flex-direction: column; text-align: center; gap: 8px; }
}

/* ---------- كروت المنتجات ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.card {
  position: relative; background: var(--white); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1; background: var(--sand); overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.4s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img:first-child { transform: scale(1.04); }
.tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, 0.92); color: var(--plum);
  backdrop-filter: blur(6px);
}
.tag svg { width: 14px; height: 14px; }
.tag.digital { color: var(--pink-600); }
.tag.sale { top: auto; bottom: 12px; background: var(--pink); color: #fff; }
.tag.out { top: auto; bottom: 12px; background: var(--plum); color: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--font-head); font-size: 18px; color: var(--plum); line-height: 1.4; margin: 0 0 4px; font-weight: 700; }
.card-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-weight: 800; color: var(--plum); font-size: 19px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price s { color: var(--muted); font-weight: 500; font-size: 14px; }
.add-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--plum); color: #fff;
  display: grid; place-items: center; cursor: pointer; flex: none; transition: background 0.2s, transform 0.15s;
}
.add-btn:hover { background: var(--pink); }
.add-btn:active { transform: scale(0.9); }
.add-btn svg { width: 20px; height: 20px; }
.add-btn[disabled] { opacity: 0.35; pointer-events: none; }
@media (max-width: 760px) {
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 15.5px; }
  .card-meta { font-size: 12.5px; margin-bottom: 8px; }
  .price { font-size: 16px; }
  .add-btn { width: 36px; height: 36px; }
  .tag { font-size: 11px; padding: 4px 9px; top: 8px; inset-inline-start: 8px; }
  .tag.sale, .tag.out { bottom: 8px; }
}

/* ---------- خطوات ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step {
  background: var(--white); border-radius: var(--r); padding: 30px 26px; position: relative;
  border: 2px dashed #ecd0df;
}
.step::before {
  counter-increment: s; content: counter(s);
  font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; background: var(--pink); display: grid; place-items: center;
  margin-bottom: 14px; box-shadow: 0 8px 18px -8px var(--pink);
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- المعرض ---------- */
.gallery { columns: 4 220px; column-gap: 16px; }
.g-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; position: relative;
  background: var(--sand); cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0;
}
.g-item img { width: 100%; height: auto; transition: transform 0.5s; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; text-align: start;
  background: linear-gradient(transparent, rgba(44, 19, 40, 0.75)); color: #fff; font-size: 14px; line-height: 1.4;
}
.g-item figcaption b { display: block; font-size: 15px; }
@media (max-width: 760px) { .gallery { columns: 2; column-gap: 10px; } .g-item { margin-bottom: 10px; } }

/* ---------- دورات وعن المتجر ---------- */
.band {
  background: var(--plum); color: #f6dcea; border-radius: var(--r-lg); padding: 56px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.14); inset-inline-end: -120px; top: -140px;
}
.band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.band p { font-size: 18px; color: #ecc9dc; }
.band .list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.band .list li { display: flex; gap: 10px; align-items: center; }
.band .list li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: rgba(216, 92, 162, 0.3); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.band-art { position: relative; z-index: 1; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 120px; }
.band-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; padding: 34px 24px; } .band-art { max-width: 340px; } }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-art { position: relative; }
.about-art .frame { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r-lg) var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--pink-100), var(--sand)); display: grid; place-items: center; }
.about-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-art .frame img.logo-big { width: 72%; height: auto; object-fit: contain; mix-blend-mode: multiply; border-radius: 20px; }
.about-art::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px dashed var(--pink); border-radius: 200px 200px var(--r-lg) var(--r-lg); z-index: -1; opacity: 0.5; }
.about h2 { font-size: clamp(30px, 4vw, 42px); }
.about p { color: var(--muted); font-size: 18px; white-space: pre-line; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 36px; } .about-art { max-width: 380px; margin: 0 auto; width: 100%; } }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--plum-900); color: #d9bfd2; padding: 64px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-logo { background: var(--cream); border-radius: 16px; padding: 6px 12px; display: inline-block; margin-bottom: 14px; }
.foot-logo img { height: 52px; mix-blend-mode: multiply; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; transition: background 0.2s; }
.socials a:hover { background: var(--pink); }
.socials svg { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.pay-icons { display: flex; gap: 8px; align-items: center; opacity: 0.8; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- صفحة المتجر ---------- */
.page-hero { padding: 48px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 6px; }
.page-hero p { color: var(--muted); font-size: 18px; margin: 0; }
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 26px 0 36px; }
.tab {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 700; cursor: pointer; color: var(--plum); transition: all 0.2s; display: inline-flex; gap: 8px; align-items: center;
}
.tab .n { font-size: 12px; background: var(--blush); border-radius: 999px; padding: 0 8px; color: var(--pink-600); }
.tab.active { background: var(--plum); border-color: var(--plum); color: #fff; }
.tab.active .n { background: rgba(255, 255, 255, 0.2); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .big { font-size: 56px; margin-bottom: 8px; }

/* ---------- صفحة المنتج ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--pink); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; padding-bottom: 40px; }
.pdp-gallery { position: sticky; top: 100px; }
.pdp-main { border-radius: var(--r-lg); overflow: hidden; background: var(--sand); aspect-ratio: 1; position: relative; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pdp-thumbs button { width: 80px; height: 80px; border-radius: 14px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; flex: none; background: var(--sand); }
.pdp-thumbs button.active { border-color: var(--pink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 8px; }
.pdp-info .price { font-size: 30px; margin-bottom: 14px; }
.pdp-info .price s { font-size: 19px; }
.pdp-info .lead { font-size: 18px; color: var(--muted); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; background: var(--blush); color: var(--pink-600); font-weight: 700; font-size: 13.5px; }
.pill.plum { background: #efe3ee; color: var(--plum); }
.pill svg { width: 15px; height: 15px; }
.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 24px 0; }
.qty-row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--plum); }
.qty span, .qty input { min-width: 34px; text-align: center; font-weight: 700; border: 0; background: none; width: 40px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assure { display: grid; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.assure div { display: flex; gap: 10px; align-items: center; }
.assure svg { width: 20px; height: 20px; color: var(--pink); flex: none; }
.desc { white-space: pre-line; font-size: 17px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--white); margin-top: 20px; }
.specs div { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs div:nth-child(odd) { background: var(--blush); color: var(--plum); font-weight: 700; }
.specs div:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp-gallery { position: static; }
  .pdp-thumbs button { width: 64px; height: 64px; }
}

/* ---------- السلة والدفع ---------- */
.checkout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: start; padding-bottom: 40px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.panel h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 15px; display: grid; place-items: center; }
.panel + .panel { margin-top: 20px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--sand); }
.line .t { font-weight: 700; color: var(--plum); line-height: 1.4; }
.line .m { font-size: 13.5px; color: var(--muted); }
.line .r { text-align: end; display: flex; flex-direction: column; align-items: end; gap: 6px; }
.line .qty button { width: 32px; height: 34px; font-size: 17px; }
.line .qty span { min-width: 22px; width: 26px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.link-btn:hover { color: var(--danger); }
.summary { position: sticky; top: 100px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 16px; }
.sum-row.total { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; font-weight: 800; color: var(--plum); }
.split-note { background: var(--blush); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; margin: 14px 0; line-height: 1.7; }
.split-note b { color: var(--plum); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--plum); }
.field label small { color: var(--muted); font-weight: 500; }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--cream); transition: border-color 0.2s, box-shadow 0.2s; font-size: 16px;
}
.field textarea { min-height: 84px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(216, 92, 162, 0.15); background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region { position: relative; }
.region input { position: absolute; opacity: 0; }
.region label {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); cursor: pointer; text-align: center; background: var(--cream); font-weight: 700; color: var(--plum); font-size: 15px; line-height: 1.4;
}
.region label small { color: var(--muted); font-weight: 500; font-size: 13px; }
.region input:checked + label { border-color: var(--pink); background: var(--blush); box-shadow: 0 0 0 3px rgba(216, 92, 162, 0.15); }
.region input:focus-visible + label { outline: 2px solid var(--pink); }
.form-err { background: #fde8ec; color: var(--danger); border-radius: var(--r-sm); padding: 10px 14px; font-size: 15px; margin-bottom: 12px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.secure svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .panel { padding: 20px 16px; }
  .line { grid-template-columns: 62px 1fr auto; gap: 10px; }
  .line img { width: 62px; height: 62px; }
  .regions { grid-template-columns: 1fr 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- نجاح ---------- */
.done { max-width: 620px; margin: 40px auto 20px; text-align: center; }
.done .check { width: 96px; height: 96px; border-radius: 50%; background: var(--pink-100); color: var(--pink-600); display: grid; place-items: center; margin: 0 auto 18px; font-size: 46px; animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.done h1 { font-size: clamp(30px, 4.5vw, 42px); }
.done .panel { text-align: start; margin-top: 22px; }

/* ---------- لايتبوكس وتوست ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(28, 10, 25, 0.88); z-index: 100; display: grid; place-items: center; padding: 20px; cursor: zoom-out; animation: fade 0.2s; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: var(--r); }
.lightbox .cap { color: #fff; text-align: center; margin-top: 12px; }
@keyframes fade { from { opacity: 0; } }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 120;
  background: var(--plum-900); color: #fff; padding: 12px 18px 12px 12px; border-radius: 999px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; transition: all 0.3s; font-size: 15px; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { background: var(--pink); padding: 6px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }

/* ---------- واتساب عائم ---------- */
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.7); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- ظهور تدريجي ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.skeleton { background: linear-gradient(90deg, var(--sand), #fbf3ec, var(--sand)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.demo-bar { background: #fff6d6; color: #6d5400; text-align: center; font-size: 13px; padding: 6px 12px; }
