/* Storefront chrome + homepage (mockup 8324): blush, dusty rose, gold. */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 14px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
#site:empty { display: none; }

/* ---------- utility bar ---------- */
.util { background: #1f1a1b; color: #f4e9e5; font-size: 13px; }
.util-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; }
.util-group { display: flex; gap: 20px; align-items: center; }
.util a, .util-country { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; min-height: 40px; }
.util a:hover { color: #e9cf8e; }
.util svg { width: 17px; height: 17px; }
.badge-n { background: #a8455c; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 18px; }
@media (max-width: 640px) {
  .util-group { gap: 14px; }
  .util a > span, .util-country > span { display: none; }
  .util a { min-width: 32px; justify-content: center; }
}

/* ---------- masthead ---------- */
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 12px; }
.mh-lang { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mh-lang i { width: 1px; height: 14px; background: var(--border); }
.mh-lang button { border: 0; background: none; padding: 6px 2px; min-height: 40px; color: var(--muted); font-weight: 600; }
.mh-lang button[aria-pressed="true"] { color: var(--primary); font-weight: 800; }
.mh-crown { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); color: var(--gold, #b88a3b); }
.mh-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.crown-gold { width: 44px; height: auto; filter: drop-shadow(0 2px 3px rgba(138, 101, 38, .25)); }
.mh-logo .crown-gold { margin-bottom: -6px; animation: bob 4s ease-in-out infinite; }
.mh-word, .h-word, .pd-word {
  font-family: 'Cinzel', 'Playfair Display', serif; font-weight: 700; letter-spacing: .08em; line-height: 1;
  background: linear-gradient(180deg, #ecd398 0%, #c49a4c 50%, #8a6526 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mh-word { font-size: clamp(40px, 8vw, 62px); }
.mh-tag { display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 11px; }
.mh-tag em { font-family: 'Playfair Display', serif; font-size: 14px; color: #6b4a3a; }
.mh-tag i { width: 26px; height: 1px; background: var(--gold, #b88a3b); }
.mh-search { justify-self: end; display: flex; align-items: center; width: min(340px, 100%); border: 1px solid var(--border); border-radius: 999px; background: #fff; padding-inline-start: 16px; }
.mh-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; min-height: 44px; }
.mh-search button { border: 0; background: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); }
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr; grid-template-areas: 'logo' 'search' 'lang'; gap: 8px; padding-top: 10px; }
  .mh-logo { grid-area: logo; }
  .mh-search { grid-area: search; justify-self: stretch; width: 100%; }
  .mh-lang { grid-area: lang; justify-content: center; }
  .mh-crown { display: none; }
}

/* ---------- category nav ---------- */
.catnav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.catnav-in { display: flex; gap: 4px; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; justify-content: space-between; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 42px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.catnav a svg { width: 20px; height: 20px; color: var(--gold, #b88a3b); }
.catnav a:hover { background: var(--surface-2); }
.catnav a.on { background: var(--primary); color: #fff; }
.catnav a.on svg { color: #fff; }
@media (max-width: 1100px) { .catnav-in { justify-content: flex-start; } }

/* ---------- hero ---------- */
.hero {
  position: relative; margin-top: 14px; height: clamp(250px, 27vw, 330px); border-radius: 16px; overflow: hidden;
  background: linear-gradient(90deg, #f6dedd 0%, #fdf1ee 50%, #f4dcd8 100%); box-shadow: var(--shadow);
}
.hslide {
  position: absolute; inset: 0; height: 100%; display: grid; grid-template-rows: 100%; overflow: hidden;
  background: linear-gradient(90deg, #f6dedd 0%, #fdf1ee 50%, #f4dcd8 100%);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 0;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hslide.on { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; transition: opacity .9s ease, visibility 0s; }
.hslide .h-img { height: 100%; min-height: 0; }
.hslide .h-img img { height: 100%; width: 100%; object-fit: cover; }
.hslide.brand { grid-template-columns: 1fr 1.15fr 1fr; }
.hslide.hs-promo { grid-template-columns: 1fr 1fr; }
.h-img { position: relative; overflow: hidden; }
.h-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 6s ease-out; }
.hslide.on .h-img img { transform: scale(1); }
.h-left img { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.h-right img, .h-photo img { -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
[dir="rtl"] .h-left img { -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
[dir="rtl"] .h-right img, [dir="rtl"] .h-photo img { -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent); }
.h-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; z-index: 1; }
.hslide.hs-promo .h-copy { align-items: flex-start; text-align: start; padding-inline-start: clamp(20px, 5vw, 60px); }
.h-kicker { margin: 0 0 6px; color: var(--primary); font-size: 15px; font-weight: 600; }
.h-copy .crown-gold { width: 46px; margin-bottom: -4px; }
.h-word { margin: 0; font-size: clamp(46px, 7vw, 84px); }
.h-word.small { font-family: 'Playfair Display', serif; letter-spacing: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; }
.h-line { margin: 8px 0 14px; color: var(--text); font-size: 15px; }
.h-btn { border-radius: 999px; min-height: 42px; padding: 8px 22px; font-size: 15px; }
.h-btn svg { width: 18px; height: 18px; }
.h-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--text); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.h-prev { left: 12px; } .h-next { right: 12px; }
.h-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.h-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(168, 69, 92, .3); transition: width .3s; }
.h-dots button[aria-current="true"] { width: 22px; background: var(--primary); }
@media (max-width: 640px) {
  .hero { height: 270px; margin-top: 10px; }
  .hslide.brand { grid-template-columns: .55fr 1.9fr .55fr; }
  .hslide.hs-promo { grid-template-columns: 1fr; }
  .hslide.hs-promo .h-photo { position: absolute; inset: 0; }
  .hslide.hs-promo .h-photo img { -webkit-mask-image: none; mask-image: none; }
  .hslide.hs-promo .h-copy { position: relative; align-items: center; text-align: center; padding: 16px 16px 30px; background: linear-gradient(rgba(255, 245, 242, 0) 30%, rgba(255, 245, 242, .92) 62%); justify-content: flex-end; }
  .hslide.hs-promo .h-line { margin-bottom: 8px; }
  .hslide.hs-promo .h-word.small { background: none; color: var(--primary); -webkit-text-fill-color: currentColor; }
  .h-kicker { font-size: 12px; }
  .h-line { font-size: 12.5px; margin: 6px 0 12px; }
  .h-arrow { width: 32px; height: 32px; }
}

/* ---------- categories ---------- */
.cats { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; margin-top: 18px; }
.cats-head { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 14px; background: linear-gradient(135deg, #fbe9ea, #fff6f3); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.cats-head b { font-family: var(--font-head); font-size: 22px; color: var(--primary); }
.cats-head small { color: var(--muted); }
.cats-head .go { position: absolute; inset-inline-end: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.cats-head .go svg { width: 18px; height: 18px; }
.cats-row { display: flex; justify-content: space-between; gap: 14px; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; }
.cat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 13.5px; text-align: center; width: 110px; }
.cat-img { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(120, 50, 60, .14); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); color: var(--primary); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img svg { width: 44px; height: 44px; }
.cat-img.offer { background: #fff3f3; }
.cat:hover .cat-img { transform: translateY(-5px) scale(1.04); }
@media (max-width: 760px) {
  .cats { grid-template-columns: 1fr; gap: 10px; }
  .cats-head { padding: 14px 16px; }
  .cats-head b { font-size: 19px; }
  .cats-row { justify-content: flex-start; margin: 0 -10px; padding: 6px 10px; }
  .cat { width: 84px; font-size: 12.5px; }
  .cat-img { width: 74px; height: 74px; }
}

/* ---------- trust badges ---------- */
.trust { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.trust-i { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.trust-i + .trust-i { border-inline-start: 1px solid var(--border); }
.trust-i svg { flex: 0 0 30px; width: 30px; height: 30px; color: var(--primary); }
.trust-i b { display: block; font-size: 14px; line-height: 1.25; }
.trust-i small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
@media (max-width: 900px) {
  .trust { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .trust-i { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- section titles, cards ---------- */
[data-theme="alfa"] .sec-title h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(21px, 5vw, 28px); }
.sec-title h2 .crown-gold { width: 30px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--primary); color: #fff !important; font-size: 13px; text-decoration: none; }
.pill-link svg { width: 16px; height: 16px; }
.best-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .best-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1050px) { .best-grid { grid-template-columns: repeat(6, 1fr); } }
.best-grid .pcard, .pgrid .pcard { width: auto; }
.pcard-wrap { position: relative; flex: 0 0 auto; }
.fav {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--primary); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}
.fav svg { width: 19px; height: 19px; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav.pop { animation: favpop .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes favpop { 50% { transform: scale(1.3); } }
.tag { inset-inline-start: 8px; left: auto; right: auto; }
.tag-new { background: #2e8f63 !important; color: #fff !important; }
.tag-sale { background: #e0485b !important; color: #fff !important; }
.tag-best { background: #a8455c !important; color: #fff !important; }

/* ---------- stories + marketplace ---------- */
.market-zone { display: grid; gap: 18px; }
@media (min-width: 980px) {
  .market-zone { grid-template-columns: 330px 1fr; align-items: start; gap: 26px; }
  .market-zone .stories { margin: 0; position: sticky; top: 70px; }
  .market-zone .market { grid-template-columns: repeat(5, 1fr); }
  .market-zone .main-block { grid-column: 2 / 4; grid-row: 1 / 3; }
}
[data-theme="alfa"] .story-frame { outline-color: var(--gold, #b88a3b); box-shadow: 0 18px 40px rgba(168, 69, 92, .25); }
[data-theme="alfa"] .story-label { background: linear-gradient(90deg, #a8455c, #c49a4c); box-shadow: 0 8px 20px rgba(168, 69, 92, .35); }
[data-theme="alfa"] .story-bubbles button { background: conic-gradient(#a8455c, #e2c37f, #a8455c); }
[data-theme="alfa"] .story-cap .shop { color: var(--primary); }
[data-theme="alfa"] .main-store { border-color: var(--primary); box-shadow: 0 0 0 4px #fff, 0 18px 40px rgba(168, 69, 92, .3); }
[data-theme="alfa"] .main-store .badge { background: var(--primary); }
[data-theme="alfa"] .main-store .enter { color: var(--primary); }
[data-theme="alfa"] .etc-tile { background: linear-gradient(160deg, #2a2224, #1f1a1b); color: #e9cf8e; }
[data-theme="alfa"] .vtile .lbl { background: linear-gradient(transparent, rgba(43, 20, 26, .82)); }

/* ---------- bottom promos ---------- */
.promos { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; gap: 14px; margin-top: 34px; }
.promo { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); min-height: 130px; }
.promo.dark { flex-direction: column; justify-content: center; gap: 4px; text-align: center; color: #f4e9e5; background: radial-gradient(circle at 20% 10%, #3a2a2c, #1a1516 70%); }
.promo.dark .crown-gold { width: 34px; margin-bottom: -2px; }
.pd-word { font-size: 34px; }
.promo.dark span { font-size: 14px; }
.promo.light { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .25s; }
.promo.light:hover { transform: translateY(-3px); }
.promo-ico { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--primary-2); color: var(--primary); display: grid; place-items: center; }
.promo-ico svg { width: 28px; height: 28px; }
.promo-txt { display: flex; flex-direction: column; gap: 3px; z-index: 1; }
.promo-txt b { font-family: var(--font-head); color: var(--primary); font-size: 18px; line-height: 1.2; }
.promo-txt small { color: var(--muted); }
.promo-txt .btn { align-self: flex-start; margin-top: 8px; border-radius: 999px; }
.promo.photo { padding-inline-end: 150px; }
.promo.photo img { position: absolute; inset-inline-end: 0; top: 0; width: 140px; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent); mask-image: linear-gradient(270deg, #000 60%, transparent); }
[dir="rtl"] .promo.photo img { -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
@media (max-width: 900px) { .promos { grid-template-columns: 1fr; } .promo.photo { padding-inline-end: 130px; } .promo.photo img { width: 120px; } }

/* ---------- order tracking ---------- */
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.steps li { position: relative; padding-inline-start: 34px; color: var(--muted); font-weight: 600; min-height: 24px; }
.steps li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); background: #fff; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 4px #fff; }

/* Arabic: slightly larger text, Cairo everywhere except the Latin logo */
[dir="rtl"] .catnav a, [dir="rtl"] .trust-i b { font-size: 15px; }
[dir="rtl"] .h-kicker { font-size: 17px; }
[dir="rtl"] .h-line { font-size: 16px; }
[dir="rtl"] .promo-txt b, [dir="rtl"] .cats-head b, [dir="rtl"] .sec-title h2, [dir="rtl"] .page-title { font-family: Cairo, sans-serif; font-weight: 700; }
@media (max-width: 640px) { [dir="rtl"] .h-kicker { font-size: 13px; } [dir="rtl"] .h-line { font-size: 13px; } }
