/* ============ رونق · بوتيك ============ */
:root {
  --fuchsia: #b2084c;
  --fuchsia-d: #8a063b;
  --orange: #f68914;
  --ink: #2b0f1c;
  --text: #3d2430;
  --muted: #8a6f7b;
  --line: #f0dfe6;
  --blush: #fff5f8;
  --petal: #fde6ee;
  --cream: #fff8f0;
  --white: #fff;
  --r: 22px;
  --shadow: 0 10px 30px -12px rgba(120, 10, 60, .22);
  --shadow-lg: 0 24px 60px -20px rgba(120, 10, 60, .35);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15.5px; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--main { background: var(--fuchsia); color: #fff; box-shadow: 0 10px 24px -10px rgba(178, 8, 76, .7); }
.btn--main:hover { background: var(--fuchsia-d); }
.btn--line { border-color: var(--fuchsia); color: var(--fuchsia); background: transparent; }
.btn--line:hover { background: var(--fuchsia); color: #fff; }
.btn--block { width: 100%; }

/* ---------- شريط الإعلانات ---------- */
.announce { background: var(--fuchsia); color: #fff; overflow: hidden; font-size: 13px; font-weight: 500; height: 36px; display: flex; align-items: center; }
.announce__track { display: flex; gap: 48px; white-space: nowrap; animation: marquee 30s linear infinite; padding-inline-start: 48px; }
.announce__track span { display: inline-flex; align-items: center; gap: 48px; }
.announce__track span::after { content: "✦"; color: var(--orange); font-size: 11px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- الهيدر ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 68px; }
.logo { justify-self: center; }
.logo img { height: 48px; width: auto; }
.hbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush); color: var(--fuchsia); display: grid; place-items: center; transition: background .2s; }
.hbtn:hover { background: var(--petal); }
.searchbar { padding: 0 0 12px; }
.searchbar input { width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--blush); padding: 0 20px; font-size: 15px; outline: none; }
.searchbar input:focus { border-color: var(--fuchsia); background: #fff; }
.catbar { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 12px; scrollbar-width: none; justify-content: center; }
.catbar::-webkit-scrollbar { display: none; }
.catbar button { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; height: 38px; padding: 0 18px; font-size: 14px; font-weight: 500; color: var(--text); transition: all .2s; }
.catbar button:hover { border-color: var(--fuchsia); color: var(--fuchsia); }
.catbar button.on { background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }

/* ---------- الواجهة ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(60% 70% at 85% 10%, var(--petal) 0%, transparent 60%),
  radial-gradient(50% 60% at 10% 90%, #ffeedd 0%, transparent 65%),
  var(--blush); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(178, 8, 76, .09) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero__in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 56px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--fuchsia); font-weight: 600; font-size: 14px; letter-spacing: .3px; }
.eyebrow i { width: 28px; height: 2px; background: var(--orange); border-radius: 2px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.25; margin: 14px 0 16px; color: var(--ink); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--fuchsia); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .22em; background: var(--orange); opacity: .35; border-radius: 99px; z-index: -1; }
.hero p { font-size: 17.5px; color: var(--muted); margin: 0 0 28px; max-width: 460px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__stage { position: relative; height: 520px; }
.frame { position: absolute; border-radius: 999px 999px 26px 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 6px solid #fff; cursor: pointer; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.frame:hover { transform: translateY(-8px) rotate(0deg) !important; }
.frame .media { width: 100%; height: 100%; }
.frame--1 { width: 50%; height: 88%; inset-inline-start: 25%; top: 2%; z-index: 2; }
.frame--2 { width: 34%; height: 58%; inset-inline-start: 0; top: 30%; transform: rotate(4deg); z-index: 1; }
.frame--3 { width: 34%; height: 58%; inset-inline-end: 0; top: 10%; transform: rotate(-4deg); z-index: 1; }
.tag { position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35; pointer-events: none; max-width: 190px; }
.tag b { display: block; color: var(--fuchsia); font-size: 15px; }
.tag--1 { bottom: 4%; inset-inline-start: 18%; }
.tag--2 { top: 6%; inset-inline-end: 30%; }
.spark { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); top: 4%; inset-inline-start: 8%; box-shadow: 0 0 0 8px rgba(246, 137, 20, .15); }

/* ---------- مكان الصورة البديل ---------- */
.media { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--petal); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; position: relative; }
.ph svg { width: 42%; height: auto; max-width: 120px; stroke-width: 1.1; color: var(--fuchsia); opacity: .85; position: relative; }
.ph::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.ph::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); top: 16%; inset-inline-end: 18%; opacity: .7; }
.ph--0 { background: linear-gradient(160deg, #fff0f5, #f9cfe0); }
.ph--1 { background: linear-gradient(160deg, #fff7ee, #fbd9b5); }
.ph--2 { background: linear-gradient(160deg, #fdf1f6, #ecc6dc); }
.ph--3 { background: linear-gradient(160deg, #fff5ef, #f6cdc1); }

/* ---------- الأقسام ---------- */
.sec { padding: 64px 0 8px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.kicker { display: block; color: var(--orange); font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.sec h2, .follow h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--ink); margin: 0; line-height: 1.3; font-weight: 700; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--fuchsia); display: grid; place-items: center; transition: all .2s; }
.arrow:hover { background: var(--fuchsia); color: #fff; border-color: var(--fuchsia); }

/* شريط المميز */
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(16px, (100% - 1240px) / 2) 26px; scrollbar-width: none; scroll-padding-inline: max(16px, (100% - 1240px) / 2); }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 min(72vw, 290px); scroll-snap-align: start; }

/* بطاقات الأقسام */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; border: 0; padding: 0; text-align: start; background: var(--petal); box-shadow: var(--shadow); }
.tile .media { position: absolute; inset: 0; }
.tile:hover .media img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(90, 4, 40, .78)); }
.tile__txt { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 18px; color: #fff; }
.tile__txt b { display: block; font-size: 20px; line-height: 1.3; }
.tile__txt small { display: block; opacity: .9; font-size: 13px; }
.tile__txt i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 3px 12px; backdrop-filter: blur(6px); }

/* فلاتر */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; height: 40px; padding: 0 18px; font-size: 14px; font-weight: 500; transition: all .2s; }
.filters button:hover { border-color: var(--fuchsia); color: var(--fuchsia); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button small { opacity: .6; margin-inline-start: 4px; }
.sort { height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; padding: 0 16px; font-size: 14px; outline: none; }

/* ---------- بطاقة المنتج ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.card { position: relative; cursor: pointer; outline: none; animation: rise .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 0 var(--line); }
.card:hover .card__media img, .card:focus-visible .card__media img { transform: scale(1.06); }
.card:focus-visible .card__media { box-shadow: 0 0 0 3px var(--fuchsia); }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: #fff; color: var(--fuchsia); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .15); }
.badge--hot { background: var(--fuchsia); color: #fff; }
.off { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; direction: ltr; }
.soldout { position: absolute; inset: 0; z-index: 2; background: rgba(255, 255, 255, .55); display: grid; place-items: center; }
.soldout span { background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; padding: 6px 16px; border-radius: 999px; }
.card__quick { position: absolute; z-index: 2; inset-inline: 12px; bottom: 12px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .95); color: var(--fuchsia); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; transform: translateY(8px); transition: all .25s; box-shadow: var(--shadow); }
.card:hover .card__quick { opacity: 1; transform: none; }
.card__quick:hover { background: var(--fuchsia); color: #fff; }
.card__body { padding: 12px 4px 0; }
.card__cat { font-size: 12px; color: var(--muted); }
.card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { color: var(--fuchsia); font-size: 17px; font-weight: 700; }
.price s { color: var(--muted); font-size: 13.5px; }
.swatches { display: flex; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* هيكل التحميل */
.skel .card__media { background: linear-gradient(90deg, var(--blush) 0%, var(--petal) 50%, var(--blush) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel .line { height: 12px; border-radius: 6px; background: var(--blush); margin-top: 10px; }
.skel .line + .line { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- المميزات ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 64px 0 8px; }
.perk { display: flex; align-items: center; gap: 14px; background: var(--blush); border-radius: var(--r); padding: 20px; }
.perk__ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--fuchsia); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow); }
.perk b { display: block; color: var(--ink); font-size: 15.5px; }
.perk small { color: var(--muted); font-size: 13px; }

/* ---------- تابعينا ---------- */
.follow { margin-top: 64px; background: radial-gradient(80% 120% at 80% 0%, #d01462 0%, var(--fuchsia) 45%, var(--fuchsia-d) 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.follow::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.follow__in { position: relative; padding: 64px 0; }
.follow__mark { width: 72px; height: 72px; margin: 0 auto 12px; background: #fff; border-radius: 50%; padding: 10px; }
.follow h2 { color: #fff; }
.follow p { opacity: .9; max-width: 480px; margin: 10px auto 24px; }
.socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; color: var(--fuchsia); font-weight: 600; transition: transform .2s; }
.social:hover { transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.phone { margin-top: 18px !important; font-weight: 600; direction: ltr; }

.footer { background: #fff; border-top: 1px solid var(--line); padding: 26px 0; font-size: 13.5px; color: var(--muted); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__logo { height: 36px; width: auto; }

/* ---------- صفحة المنتج ---------- */
.pm { position: fixed; inset: 0; z-index: 60; background: rgba(43, 15, 28, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.pm__card { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px; display: grid; grid-template-columns: 1.05fr 1fr; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: translateY(20px) scale(.98); opacity: 0; } }
.pm__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.pm__gallery { position: relative; background: var(--blush); }
.pm__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; aspect-ratio: 4 / 5; scrollbar-width: none; }
.pm__slides::-webkit-scrollbar { display: none; }
.pm__slides > .media { flex: 0 0 100%; scroll-snap-align: center; }
.pm__dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.pm__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .7); transition: all .2s; }
.pm__dots button.on { width: 22px; background: var(--fuchsia); }
.pm__body { padding: 36px 32px 28px; display: flex; flex-direction: column; }
.pm__cat { color: var(--orange); font-weight: 600; font-size: 13.5px; }
.pm h2 { font-size: 27px; margin: 4px 0 8px; color: var(--ink); line-height: 1.35; }
.pm__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pm__price b { font-size: 26px; color: var(--fuchsia); }
.pm__price s { color: var(--muted); }
.pm__price .off { position: static; }
.pm__desc { color: var(--text); margin: 14px 0 6px; }
.opt { margin-top: 14px; }
.opt > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.opt > span em { font-style: normal; color: var(--fuchsia); font-weight: 500; }
.opt div { display: flex; gap: 8px; flex-wrap: wrap; }
.opt button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; transition: all .15s; }
.opt button:hover { border-color: var(--fuchsia); }
.opt button.on { border-color: var(--fuchsia); background: var(--petal); color: var(--fuchsia); font-weight: 600; }
.pm__actions { display: flex; gap: 10px; margin-top: 24px; }
.pm__share { padding: 0; width: 52px; flex-shrink: 0; }
.pm__more { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pm__more h3 { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
.pm__more-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini { border: 0; background: none; padding: 0; text-align: start; }
.mini .media { aspect-ratio: 1; border-radius: 14px; }
.mini span { display: block; font-size: 12.5px; margin-top: 6px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini b { color: var(--fuchsia); font-size: 13px; }

/* ---------- عناصر عائمة ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); z-index: 80; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.wa-float { position: fixed; bottom: 20px; left: 20px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; stroke: none; }

/* ظهور تدريجي */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- الشاشات ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero__stage { height: 440px; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 130px; }
  .catbar { justify-content: flex-start; }
  .hero__in { grid-template-columns: 1fr; gap: 8px; padding: 28px 0 36px; text-align: center; }
  .hero p { margin-inline: auto; font-size: 16px; }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { flex: 1; max-width: 220px; padding: 0 16px; }
  .hero__stage { order: -1; height: 360px; margin: 0 -8px; }
  .tag { font-size: 12px; padding: 8px 11px; }
  .tag b { font-size: 13.5px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile__txt { padding: 14px; }
  .tile__txt b { font-size: 17px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .card h3 { font-size: 14.5px; }
  .price b { font-size: 15.5px; }
  .card__quick { display: none; }
  .badge, .off { top: 8px; font-size: 11px; padding: 3px 9px; }
  .badge { inset-inline-start: 8px; } .off { inset-inline-end: 8px; }
  .sec { padding-top: 48px; }
  .sec__head { margin-bottom: 18px; }
  .arrows { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex-shrink: 0; }
  .perks { grid-template-columns: 1fr; padding-top: 48px; gap: 10px; }
  .perk { padding: 14px 16px; }
  .pm { padding: 0; place-items: end stretch; }
  .pm__card { grid-template-columns: 1fr; border-radius: 26px 26px 0 0; max-height: 94vh; animation: up .35s cubic-bezier(.2, .8, .2, 1); }
  @keyframes up { from { transform: translateY(100%); } }
  .pm__slides { aspect-ratio: 1; }
  .pm__body { padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); }
  .pm h2 { font-size: 22px; }
  .pm__actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0; margin-top: 16px; z-index: 2; }
  .footer__in { justify-content: center; text-align: center; }
}
@media (max-width: 380px) {
  .hero__stage { height: 310px; }
  .tag--2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* تعديلات */
.tile .ph { place-items: start center; padding-top: 16%; }
.tile .ph::before { top: 10%; }
.tile .ph svg { width: 34%; }
.tile::after { background: linear-gradient(180deg, transparent 48%, rgba(90, 4, 40, .8)); }
.toast { opacity: 0; } .toast.show { opacity: 1; }
.price b small, .pm__price b small { font-size: .72em; font-weight: 500; color: var(--muted); }
.pm__hint { font-size: 13px; color: var(--muted); }
.opt button.off-opt { opacity: .45; text-decoration: line-through; border-style: dashed; cursor: not-allowed; }

/* ---------- هيدر: الشعار يمين، الأقسام يسار ---------- */
.header__in { display: flex; align-items: center; gap: 28px; height: 84px; }
.logo { flex-shrink: 0; justify-self: auto; }
.logo img { height: 62px; width: auto; transition: transform .3s; }
.logo:hover img { transform: scale(1.04); }
.catbar { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; padding: 0; overflow: visible; justify-content: flex-end; }
.catbar button { position: relative; border: 0; background: none; height: 40px; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--text); border-radius: 0; }
.catbar button::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--fuchsia); transform: scaleX(0); transition: transform .25s; }
.catbar button:hover { color: var(--fuchsia); border-color: transparent; }
.catbar button:hover::after { transform: scaleX(.5); }
.catbar button.on { background: none; color: var(--fuchsia); font-weight: 700; }
.catbar button.on::after { transform: scaleX(1); }
.catbar button + button::before { content: ""; position: absolute; inset-inline-start: -2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--orange); opacity: .55; }
.hicons { display: flex; gap: 8px; flex-shrink: 0; padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
@media (max-width: 1024px) {
  .catbar button { padding: 0 10px; font-size: 14px; }
  .catbar button::after { inset-inline: 10px; }
}
@media (max-width: 820px) {
  .header__in { flex-wrap: wrap; height: auto; gap: 0; padding-top: 10px; }
  .logo img { height: 50px; }
  .hicons { margin-inline-start: auto; border: 0; padding: 0; }
  .catbar { order: 3; width: calc(100% + 32px); margin: 8px -16px 0; padding: 0 12px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; border-top: 1px solid var(--line); }
  .catbar button { flex-shrink: 0; height: 46px; }
}

/* ---------- شريط الإعلانات: رسالة وحدة بتتبدّل ---------- */
.announce { background: linear-gradient(90deg, #fde6ee, #fff3ea 50%, #fde6ee); color: var(--fuchsia); height: 38px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--line); overflow: hidden; }
.ann__spark { color: var(--orange); font-size: 11px; animation: twinkle 3.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
.ann__box { position: relative; height: 38px; min-width: min(70vw, 360px); }
.ann__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; opacity: 0; transform: translateY(70%); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.ann__msg.on { opacity: 1; transform: none; }

/* ---------- المناسبات ---------- */
.tiles { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { aspect-ratio: 5 / 4; }
.tile .ph { padding-top: 10%; }
.tile .ph svg { width: 26%; }
.tile__txt b { font-size: 22px; }
.filters .occ-chip { background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }
@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tile { aspect-ratio: 4 / 5; }
  .tile .ph svg { width: 36%; }
  .tile__txt b { font-size: 17px; }
  .announce { font-size: 12.5px; gap: 8px; }
}

/* ---------- مقاس موحّد لصور المنتجات: 3:4 عمودي ---------- */
.card__media, .mini .media { aspect-ratio: 3 / 4; }
.pm__gallery { align-self: start; }
.pm__slides { aspect-ratio: 3 / 4; height: auto; }
.media img { object-position: center; }
@media (max-width: 820px) {
  .pm__slides { aspect-ratio: 3 / 4; max-height: 62vh; }
}
.pm__gallery { padding: 14px; background: #fff; position: sticky; top: 0; }
.pm__slides { border-radius: 20px; }
.pm__dots { bottom: 28px; }
@media (max-width: 820px) {
  .pm__gallery { position: relative; padding: 10px 10px 0; }
  .pm__dots { bottom: 14px; }
}

/* ---------- اقتراحات البحث ---------- */
.search-wrap { position: relative; }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; max-height: min(70vh, 460px); overflow-y: auto; }
.sg { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 8px 10px; border-radius: 14px; text-align: start; transition: background .15s; }
.sg:hover, .sg.hl { background: var(--blush); }
.sg__img { width: 46px; flex-shrink: 0; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; }
.sg__img .ph svg { width: 60%; }
.sg__img .ph::after { display: none; }
.sg__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.sg__txt b { font-weight: 600; color: var(--ink); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg__txt small { color: var(--muted); font-size: 12px; }
.sg__price { color: var(--fuchsia); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sg--group { gap: 8px; }
.sg--group span { font-size: 11.5px; color: #fff; background: var(--orange); border-radius: 999px; padding: 1px 10px; }
.sg--group b { color: var(--fuchsia); font-size: 14.5px; }
.sg--all { justify-content: center; color: var(--fuchsia); font-weight: 600; font-size: 13.5px; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; margin-top: 4px; padding-top: 12px; }
.sg-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.off { direction: rtl; }

/* مسافة كافية بين سطري العنوان حتى ما تتداخل الحركات */
.hero h1 { line-height: 1.6; margin: 18px 0 18px; padding-top: .15em; word-spacing: .06em; }
.hero h1 em { display: inline-block; line-height: 1.4; padding-bottom: .08em; }
.hero h1 em::after { bottom: .12em; }
@media (max-width: 820px) { .hero h1 { line-height: 1.55; } }
.hero h1 em { position: relative; z-index: 0; }

/* إطارات الواجهة: مستطيلة بزوايا ناعمة بدل الأقواس */
.frame { border-radius: 22px; }
.frame--1 { width: 54%; height: 86%; inset-inline-start: 23%; top: 4%; }
.frame--2, .frame--3 { width: 33%; height: 56%; }
/* كل بطاقة سعر جنب صورتها */
.tag--1 { bottom: 2%; inset-inline-start: 16%; }
.tag--2 { top: 4%; inset-inline-start: auto; inset-inline-end: 3%; }
@media (max-width: 820px) { .frame { border-radius: 18px; border-width: 4px; } }
