:root {
  --dark: #1a0b2e; --dark2: #241238; --purple: #6c3fa8;
  --rose: #e75480; --rose-d: #c23a63; --rose-soft: #ffe8f0;
  --gold: #d4af37; --gold-l: #f0d77b; --gold-soft: #fff6dc;
  --cream: #fff8f0; --surface: #fff; --line: #efe4f7;
  --ink: #2a1745; --ink-2: #7d6a99; --ink-3: #b3a3c9;
  --pink: var(--rose); --pink-soft: var(--rose-soft); --mint: #2fb57a; --butter-soft: var(--gold-soft);
  --danger: #d64545;
  --display: "Cairo", "Tajawal", Tahoma, sans-serif;
  --body: "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
  --r: 22px;
  --shadow: 0 10px 30px rgba(108, 63, 168, .12);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px); -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.75; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0; font-weight: 800; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* ===== top strip + header ===== */
.announce { background: var(--dark); color: var(--gold-l); text-align: center; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-bottom: 1px solid rgba(212, 175, 55, .25); }
.announce:empty { display: none; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(26, 11, 46, .94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(212, 175, 55, .25); color: #fff; }
.header-in { position: relative; display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; white-space: nowrap; color: #fff; direction: ltr; }
.logo-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--gold), var(--rose)); box-shadow: 0 6px 18px rgba(212, 175, 55, .35); }
.logo b { color: var(--gold-l); font-weight: 800; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 12px; font-weight: 500; font-size: 15px; color: #e3d8f3; }
.nav a:hover, .nav a.active { color: var(--gold-l); background: rgba(255, 255, 255, .06); }
.search { margin-inline-start: auto; display: flex; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 2px; width: 250px; }
.search input { border: 0; background: transparent; padding: 8px 12px; flex: 1; min-width: 0; outline: none; color: #fff; }
.search input::placeholder { color: #b6a3d6; }
.search button { border: 0; background: transparent; color: #d9cdee; padding: 6px 8px; display: grid; place-items: center; }
.cod-badge { background: rgba(212, 175, 55, .14); border: 1px solid rgba(212, 175, 55, .4); color: var(--gold-l); padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.icon-btn { border: 0; background: transparent; padding: 8px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: inherit; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn.only-mobile, .icon-btn.search-toggle { display: none; }
.cart-btn { position: relative; border: 0; background: linear-gradient(135deg, var(--rose), var(--rose-d)); color: #fff; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(231, 84, 128, .4); }
.cart-btn .badge { position: absolute; top: -7px; left: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--gold); color: var(--dark); font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--dark); }
.cart-btn.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }
.mobile-menu { position: fixed; z-index: 39; top: calc(env(safe-area-inset-top, 0px) + 72px); inset-inline: 0; background: var(--dark2); color: #fff; padding: 8px 16px 16px; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .5); }
.mobile-menu a { display: block; padding: 12px 6px; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu #mobileCats a { padding-inline-start: 22px; font-weight: 500; color: #cdbde6; }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 14px 28px; font-weight: 800; font-size: 16px; font-family: var(--display); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-pink { background: linear-gradient(135deg, var(--rose), var(--rose-d)); color: #fff; box-shadow: 0 10px 24px rgba(231, 84, 128, .35); }
.btn-pink:hover { box-shadow: 0 14px 30px rgba(231, 84, 128, .5); }
.btn-primary { background: linear-gradient(135deg, var(--purple), #8a5cd0); color: #fff; box-shadow: 0 8px 20px rgba(108, 63, 168, .3); }
.btn-ghost { background: transparent; border: 2px solid rgba(108, 63, 168, .35); color: var(--purple); }
.btn-ghost:hover { background: rgba(108, 63, 168, .07); }
.btn-gold { background: transparent; border: 2px solid rgba(212, 175, 55, .6); color: var(--gold-l); }
.btn-gold:hover { background: rgba(212, 175, 55, .12); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 28px; font-size: 18px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--rose); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ===== hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1100px 650px at 85% 0%, #3a1d5c 0%, var(--dark) 60%); padding-bottom: 70px; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10c4 8 12 12 20 20-8 8-16 12-20 20-4-8-12-12-20-20 8-8 16-12 20-20z' fill='none' stroke='%23d4af37' stroke-opacity='.08'/%3E%3C/svg%3E"); }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; pointer-events: none; }
.blob.b1 { width: 380px; height: 380px; background: #7b3fd4; top: -80px; left: -100px; }
.blob.b2 { width: 320px; height: 320px; background: var(--rose); bottom: -140px; right: 20%; opacity: .3; }
.line-svg { position: relative; width: 100%; height: auto; display: block; }
.line-svg .hang { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.2s ease-in-out 1 both; }
.line-svg .hang:nth-child(2n) { animation-delay: .25s; animation-duration: 3.6s; }
@keyframes sway { 25% { transform: rotate(4deg); } 55% { transform: rotate(-3deg); } 80% { transform: rotate(1.5deg); } }
.hero-text { position: relative; z-index: 1; max-width: 720px; }
.hero-tag { display: inline-flex; gap: 8px; background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .45); color: var(--gold-l); padding: 6px 16px; border-radius: 30px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 58px); font-weight: 900; line-height: 1.3; }
.hero h1 .gold { color: var(--gold-l); }
.hero p { font-size: clamp(16px, 2vw, 18px); color: #cdbde6; margin: 14px 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--display); font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1.3; }
.hero-stats span { font-size: 13px; color: #b6a3d6; }

/* ===== marquee ===== */
.marquee { background: linear-gradient(90deg, var(--gold), var(--gold-l), var(--gold)); padding: 12px 0; overflow: hidden; white-space: nowrap; border-block: 3px solid var(--dark); }
.marquee-track { display: inline-block; animation: marquee 40s linear infinite; font-weight: 800; color: var(--dark); font-size: 15px; }
.marquee-track span { margin: 0 24px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ===== sections ===== */
.section { margin-block: 70px; }
.sec-head { text-align: center; margin-bottom: 36px; }
.kicker { display: inline-block; background: linear-gradient(135deg, rgba(231, 84, 128, .1), rgba(212, 175, 55, .12)); border: 1px solid rgba(231, 84, 128, .28); color: var(--rose); padding: 5px 18px; border-radius: 30px; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; color: var(--dark); }
.sec-head p { color: var(--ink-2); margin: 6px 0 0; }
.more { text-align: center; margin-top: 30px; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { text-decoration: none; text-align: center; padding: 20px 8px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.cat:hover { transform: translateY(-5px); border-color: var(--gold); }
.cat .em { width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, var(--rose-soft), var(--gold-soft)); }
.cat b { font-family: var(--display); font-size: 16px; display: block; }
.cat small { color: var(--ink-2); font-size: 13px; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { position: relative; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(108, 63, 168, .2); }
.card .media { position: relative; }
.card a.img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); position: relative; }
.card a.img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card a.img img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover a.img img.alt { opacity: 1; }
.tag { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--rose); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 20px; box-shadow: 0 4px 12px rgba(231, 84, 128, .4); }
.tag.new { right: auto; left: 12px; background: var(--gold); color: var(--dark); box-shadow: none; }
.tag.out { background: #6b5d80; }
.card .info { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card .cat-l { font-size: 12px; color: var(--rose); font-weight: 700; }
.card h3 { font-size: 16px; line-height: 1.5; margin: 2px 0 4px; color: var(--dark); }
.card h3 a { text-decoration: none; }
.stars { color: #f5a623; font-size: 13px; letter-spacing: 2px; }
.price { font-family: var(--display); font-weight: 900; font-size: 19px; color: var(--purple); }
.price s { color: var(--ink-3); font-weight: 500; font-size: 13px; margin-inline-start: 6px; display: inline-block; }
.card .row { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.card .order-btn { flex: 1; border: 0; border-radius: 13px; padding: 10px 8px; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--rose-d)); text-decoration: none; text-align: center; }
.card .add-btn { width: 44px; flex: none; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--purple), #8a5cd0); font-size: 18px; }
.card .order-btn[aria-disabled="true"] { background: #b9adc9; pointer-events: none; }

/* features (dark) */
.features { background: linear-gradient(135deg, var(--dark), var(--dark2)); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.features::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 360px at 15% 20%, rgba(231, 84, 128, .15), transparent), radial-gradient(600px 360px at 85% 80%, rgba(212, 175, 55, .12), transparent); }
.features .sec-head h2 { color: #fff; }
.features .sec-head p { color: #b6a3d6; }
.feat-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); padding: 28px 22px; text-align: center; }
.feat .ic { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: linear-gradient(135deg, var(--rose), var(--purple)); box-shadow: 0 12px 26px rgba(231, 84, 128, .3); }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { margin: 0; color: #b6a3d6; font-size: 14.5px; }

/* banner */
.banner { position: relative; border-radius: 30px; overflow: hidden; background: linear-gradient(120deg, #4a1d6e, #8a2b5e 60%, #c96a2e); box-shadow: 0 30px 60px rgba(74, 29, 110, .3); display: grid; grid-template-columns: 1fr 240px; align-items: center; padding: 46px 6%; gap: 20px; color: #fff; }
.banner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.banner p { color: #ffd9e6; margin: 10px 0 22px; }
.banner svg { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: var(--surface); border-radius: var(--r); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.review .who { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.avatar { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; font-family: var(--display); }
.review .who b { display: block; font-family: var(--display); }
.review .who small { color: var(--ink-2); font-size: 13px; }
.review p { margin: 8px 0 0; color: #6b5885; }

/* shop */
.page-title { padding: 34px 0 6px; }
.page-title h1 { font-size: clamp(28px, 4vw, 40px); color: var(--dark); font-weight: 900; }
.page-title p { color: var(--ink-2); margin: 4px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 18px; border-radius: 30px; font-weight: 700; font-size: 14px; font-family: var(--display); }
.chip.on, .chip:hover { background: linear-gradient(135deg, var(--rose), var(--rose-d)); color: #fff; border-color: transparent; }
.select, .input { border: 1.5px solid #e5d5f0; background: #fff; border-radius: 14px; padding: 12px 14px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; }
.select:focus, .input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108, 63, 168, .1); }
.filters .select { width: auto; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty .big { font-size: 56px; }
.empty h3 { color: var(--dark); margin: 8px 0; }

/* product page */
.crumbs { font-size: 14px; color: var(--ink-2); padding: 20px 0 10px; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pdp > *, .checkout > * { min-width: 0; }
.gallery .main { border-radius: 28px; overflow: hidden; aspect-ratio: 1; background: var(--line); box-shadow: var(--shadow); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; padding: 0; border: 2px solid transparent; background: none; }
.thumbs button.on { border-color: var(--rose); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(26px, 3.2vw, 36px); color: var(--dark); }
.pdp .price { font-size: 28px; margin: 6px 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.save { background: var(--rose-soft); color: var(--rose-d); font-size: 13px; padding: 2px 10px; border-radius: 20px; font-weight: 700; font-family: var(--body); }
.stock { font-size: 14px; font-weight: 700; }
.stock.ok { color: var(--mint); } .stock.low { color: #c77700; } .stock.no { color: var(--danger); }
.opt { margin-top: 18px; }
.opt h4 { margin: 0 0 8px; font-size: 15px; }
.opt h4 span { color: var(--rose); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { border: 1.5px solid #e5d5f0; background: #fff; border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.sizes button.on { border-color: var(--purple); background: var(--purple); color: #fff; }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(42, 23, 69, .2); box-shadow: 0 0 0 3px #fff; }
.colors button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rose); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #e5d5f0; border-radius: 14px; background: #fff; }
.qty button { border: 0; background: none; width: 40px; height: 42px; font-size: 20px; color: var(--purple); font-weight: 700; }
.qty span { min-width: 30px; text-align: center; font-weight: 800; }
.buy-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 170px; }
.note-box { margin-top: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.note-box div { display: flex; gap: 12px; padding: 11px 16px; align-items: center; font-size: 15px; }
.note-box div + div { border-top: 1px solid var(--line); }
.desc { margin-top: 22px; color: var(--ink-2); }
.err-msg { color: var(--danger); font-size: 14px; margin-top: 6px; min-height: 1em; font-weight: 600; }

/* drawer */
.overlay { position: fixed; inset: 0; background: rgba(26, 11, 46, .55); backdrop-filter: blur(3px); z-index: 60; }
.drawer { visibility: hidden; position: fixed; top: 0; bottom: 0; left: 0; width: min(420px, 92vw); background: #fff; z-index: 61; display: flex; flex-direction: column; transform: translateX(-105%); transition: transform .35s ease, visibility .35s; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--dark); color: #fff; }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.line b { display: block; font-size: 15px; line-height: 1.4; }
.line small { color: var(--ink-2); font-size: 13px; }
.line .qty button { width: 30px; height: 32px; font-size: 16px; }
.line .rm { border: 0; background: none; color: var(--ink-3); font-size: 13px; text-decoration: underline; }
.free-bar { font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.free-bar .bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.free-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 4px; transition: width .4s; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.sum-row.total { font-weight: 900; font-size: 20px; border-top: 1px dashed #e5d5f0; padding-top: 10px; margin-top: 6px; font-family: var(--display); }
.sum-row.total span:last-child { color: var(--rose); }

/* order / checkout page */
.order-hero { background: radial-gradient(900px 400px at 85% 0%, #3a1d5c 0%, var(--dark) 70%); color: #fff; padding: 30px 0 70px; }
.order-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.order-hero p { color: #cdbde6; margin: 6px 0 0; }
.steps-bar { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.steps-bar span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 30px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #cdbde6; }
.steps-bar i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-weight: 800; font-size: 13px; }
.steps-bar .done i { background: var(--mint); color: #fff; }
.steps-bar .cur { background: rgba(212, 175, 55, .16); border-color: rgba(212, 175, 55, .5); color: var(--gold-l); font-weight: 700; }
.steps-bar .cur i { background: var(--gold); color: var(--dark); }
.checkout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; margin: -46px auto 60px; position: relative; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.panel h2 { font-size: 20px; margin-bottom: 16px; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--purple)); }
.panel + .panel { margin-top: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field label i { color: var(--rose); font-style: normal; }
.field.full { grid-column: 1 / -1; }
.field .bad { border-color: var(--danger); background: #fff6f6; }
.ship-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ship-opt { position: relative; border: 1.5px solid #e5d5f0; border-radius: 18px; padding: 14px 16px; cursor: pointer; display: block; transition: border-color .2s, background .2s; }
.ship-opt input { position: absolute; opacity: 0; }
.ship-opt b { display: block; }
.ship-opt small { color: var(--ink-2); }
.ship-opt .fee { font-weight: 800; margin-top: 4px; display: block; color: var(--purple); font-family: var(--display); }
.ship-opt:has(input:checked) { border-color: var(--rose); background: #fff5f8; box-shadow: 0 0 0 3px rgba(231, 84, 128, .12); }
.ship-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.ship-opt:has(input:focus-visible) { outline: 3px solid var(--gold); }
.checkbox { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 15px; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--rose); }
.cod { display: flex; gap: 12px; align-items: center; background: var(--gold-soft); border: 1px dashed rgba(212, 175, 55, .6); border-radius: 16px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 14.5px; }
.mini img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.mini div { flex: 1; line-height: 1.45; }
.mini small { color: var(--ink-2); display: block; }
.prod-pick { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prod-pick img { width: 110px; height: 110px; border-radius: 18px; object-fit: cover; }
.prod-pick h3 { font-size: 17px; color: var(--dark); }
.prod-pick .opt { margin-top: 12px; }
.sticky { position: sticky; top: 92px; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.secure { text-align: center; color: var(--ink-2); font-size: 13px; margin-top: 10px; }

/* success / track */
.center-card { max-width: 640px; margin: 40px auto 70px; text-align: center; }
.check-ic { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), #1f8f5f); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; font-size: 46px; box-shadow: 0 14px 30px rgba(47, 181, 122, .35); }
.check-ic.wa { background: #25d366; }
.code { display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; font-weight: 800; background: var(--gold-soft); border: 1px dashed var(--gold); padding: 10px 20px; border-radius: 14px; margin: 10px 0 4px; direction: ltr; color: var(--dark); }
.code button { border: 0; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-family: var(--body); }
.last-step { background: #effbf3; border: 2px solid #25d366; border-radius: 22px; padding: 22px; margin: 20px 0; }
.last-step h3 { color: #128c4b; font-size: 20px; }
.last-step p { margin: 6px 0 14px; color: var(--ink-2); }
.timeline { display: flex; justify-content: space-between; margin: 26px 0 10px; position: relative; text-align: center; }
.timeline::before { content: ""; position: absolute; top: 17px; inset-inline: 12%; height: 3px; background: var(--line); }
.timeline .st { position: relative; flex: 1; font-size: 14px; color: var(--ink-3); }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; display: grid; place-items: center; color: #fff; font-weight: 800; position: relative; }
.timeline .st.done { color: var(--dark); font-weight: 700; }
.timeline .st.done .dot { background: var(--mint); }
.timeline .st.cur .dot { background: var(--rose); box-shadow: 0 0 0 5px var(--rose-soft); }
.my-orders { margin-top: 28px; text-align: start; }
.my-orders button { display: flex; justify-content: space-between; width: 100%; padding: 12px 16px; border: 1px solid var(--line); background: #fff; border-radius: 14px; margin-top: 8px; }

/* info pages */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 40px; }
.info { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.info .ic { font-size: 32px; }
.info h3 { font-size: 19px; margin: 6px 0; color: var(--dark); }
.info p { margin: 0; color: var(--ink-2); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 40px; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 22px; font-weight: 900; color: #fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: linear-gradient(135deg, var(--rose), var(--purple)); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; max-height: 460px; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
.t th, .t td { padding: 11px 16px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th { background: var(--dark); color: var(--gold-l); position: sticky; top: 0; font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--rose); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* footer */
.footer { background: var(--dark); color: #cdbde6; margin-top: 70px; padding: 56px 0 22px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 18px; margin: 0 0 12px; }
.footer a, .footer span.f { display: block; text-decoration: none; padding: 3px 0; color: #b6a3d6; }
.footer a:hover { color: var(--gold-l); }
.footer .logo { display: flex; margin-bottom: 10px; color: #fff; }
.footer .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding-top: 18px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8a76a8; }

.wa-float { position: fixed; z-index: 30; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); right: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .7); }
.toasts { position: fixed; z-index: 80; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 16px; font-weight: 700; border: 1px solid rgba(212, 175, 55, .4); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: tin .25s ease; pointer-events: auto; text-align: center; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.loading { display: grid; place-items: center; min-height: 50vh; }
.loading span { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--rose); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-flag { background: #fff1c9; color: #6b4e00; text-align: center; font-size: 13px; padding: 6px; }

/* responsive */
@media (max-width: 1100px) {
  .nav, .cod-badge { display: none; }
  .icon-btn.only-mobile { display: grid; }
  .grid, .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .search { position: absolute; top: 72px; inset-inline: 0; width: auto; display: none; background: var(--dark2); border-radius: 0 0 14px 14px; padding: 6px; }
  .search.show { display: flex; }
  .icon-btn.search-toggle { display: grid; }
  .header-in { gap: 8px; }
  .logo { margin-inline-end: auto; font-size: 18px; }
  .logo-mark { width: 38px; height: 38px; font-size: 19px; }
  .pdp, .checkout, .banner { grid-template-columns: 1fr; }
  .banner svg { max-width: 180px; margin: 0 auto; }
  .pdp { gap: 22px; }
  .checkout { margin-top: -40px; }
  .reviews, .info-grid { grid-template-columns: 1fr; }
  .steps, .feat-grid { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  .checkout { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .checkout .sticky { display: contents; }
  .checkout .panel + .panel { margin-top: 0; }
  .checkout > div:first-child { display: flex; flex-direction: column; gap: 18px; }
  .checkout .p-items { order: -1; }
  .checkout .p-totals { order: 2; }
  .hero-stats { gap: 20px 28px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card h3 { font-size: 14px; }
  .card .info { padding: 10px 10px 12px; }
  .card .order-btn { font-size: 14px; padding: 9px 4px; }
  .card .add-btn { width: 38px; }
  .price { font-size: 16px; }
  .cats { gap: 10px; }
  .cat { padding: 14px 4px 12px; }
  .cat .em { width: 50px; height: 50px; font-size: 24px; }
  .cat b { font-size: 14px; }
  .cat small { display: none; }
  .fields, .ship-opts { grid-template-columns: 1fr; }
  .panel { padding: 18px; border-radius: 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .timeline .st { font-size: 12px; }
  .hero-stats b { font-size: 21px; }
  .prod-pick { grid-template-columns: 84px 1fr; }
  .prod-pick img { width: 84px; height: 84px; }
  .btn { padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Extra styles for PHP version */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.product-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .15s; }
.product-card:hover { transform: translateY(-3px); }
.product-card .img-wrap { display: block; aspect-ratio: 1; position: relative; overflow: hidden; }
.product-card .placeholder-img { font-size: 3.5rem; display: flex; align-items: center; justify-content: center; height: 100%; }
.product-info { padding: 1rem; }
.product-info h3 { margin: .3rem 0; font-size: 1rem; }
.product-info h3 a { color: inherit; text-decoration: none; }
.cat-label { font-size: .8rem; color: #888; }
.price-row { display: flex; align-items: center; gap: .5rem; margin: .4rem 0; }
.price { color: #7c3aed; }
.old-price { color: #aaa; font-size: .9rem; }
.badge-exclusive { position:absolute; top:10px; right:10px; background:#f59e0b; color:#fff; padding:.2rem .5rem; border-radius:999px; font-size:.72rem; font-weight:800; }
.offer-hint { color:#a16207; font-weight:700; }
.badge-feat, .badge-sale { position: absolute; top: 8px; right: 8px; background: #7c3aed; color: #fff; font-size: .7rem; padding: .2rem .5rem; border-radius: 6px; }
.badge-sale { background: #e74c3c; left: 8px; right: auto; }
.btn { display: inline-block; padding: .6rem 1.2rem; border-radius: 12px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; font-family: inherit; font-size: .95rem; text-align: center; }
.btn-primary { background: #7c3aed; color: #fff; }
.btn-primary:hover { background: #6d28d9; }
.btn-outline { background: transparent; border: 2px solid #7c3aed; color: #7c3aed; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.section { padding: 2.5rem 0; }
.section-title { font-size: 1.5rem; margin-bottom: 1.2rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
.hero { background: linear-gradient(135deg, #1a0b2e, #4c1d95); color: #fff; padding: 3rem 0; }
.hero-in { display: flex; align-items: center; gap: 2rem; }
.hero-text h1 { font-size: 2rem; margin: 0 0 .5rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hero-badges { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; opacity: .9; }
.hero-visual { font-size: 6rem; }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.cat-card { background: #f8f4ff; border-radius: 16px; padding: 1.2rem; text-align: center; text-decoration: none; color: inherit; transition: .15s; }
.cat-card:hover { background: #ede4ff; transform: translateY(-2px); }
.cat-icon { font-size: 2rem; display: block; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-chip { padding: .4rem 1rem; border-radius: 999px; background: #f0e8f8; text-decoration: none; color: #333; font-size: .9rem; }
.filter-chip.active { background: #7c3aed; color: #fff; }
.empty-state { text-align: center; padding: 3rem; color: #888; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; border-bottom: 1px solid #f0e8f8; }
.cart-item-actions { display: flex; align-items: center; gap: .4rem; }
.qty-btn, .remove-btn { width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: .8rem; }
.empty-cart { text-align: center; padding: 2rem; color: #888; }
.toast { background: #1a0b2e; color: #fff; padding: .7rem 1.2rem; border-radius: 10px; margin: .3rem; }
.footer { background: #1a0b2e; color: #fff; padding: 2rem 0; margin-top: 2rem; }
.footer-in { display: grid; gap: 1rem; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; margin-left: 1rem; }
.footer-copy { opacity: .6; font-size: .85rem; margin-top: 1rem; }
.text-center { text-align: center; }
@media (max-width: 768px) {
  .hero-in { flex-direction: column; text-align: center; }
  .hero-visual { font-size: 4rem; }
}


/* ---- Price LTR isolation (fix RTL digit reversal) ---- */
.price-num {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
}
.price, .old-price, .cart-total strong, .fee-preview {
  unicode-bidi: isolate;
}

/* ---- Drawer open state (cart) ---- */
.drawer.open {
  transform: none !important;
  visibility: visible !important;
}
.overlay.show,
.overlay:not([hidden]) {
  display: block;
}
body.drawer-open {
  overflow: hidden;
}
