/* الصفحة الرئيسية بشكل متاجر سلة (مرجعه serbksa.com).
   الصفحات الأخرى (الفكرة، التسعير) ما زالت على hub.css */
:root{
  --bg:#fff;
  --soft:#f7f7f6;
  --line:#ececea;
  --ink:#231f1e;
  --ink-2:#55504a;
  --muted:#8a847c;
  --brand:#1f5c3d;
  --brand-2:#174a31;
  --brand-soft:#eaf3ee;
  --gold:#b0863f;
  --gold-soft:#fbf4e6;
  --red:#dc2626;
  --red-soft:#fef2f2;
  --wa:#25d366;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:90px}
body{
  font-family:'IBM Plex Sans Arabic',system-ui,sans-serif;
  background:var(--bg);color:var(--ink);
  font-size:15px;line-height:1.7;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
h1,h2,h3{line-height:1.35;font-weight:700}
.wrap{width:min(1240px,100% - 24px);margin-inline:auto}
.ico{width:22px;height:22px;flex-shrink:0}
.sprite{display:none}

/* ---------- header ---------- */
.topbar{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.topbar-row{display:flex;align-items:center;gap:10px;min-height:64px}
.wordmark img{width:48px;height:48px;border-radius:50%}
.topnav{display:none}
.search{
  display:none;align-items:center;gap:8px;
  background:var(--soft);border:1px solid var(--line);border-radius:12px;
  padding:0 14px;height:44px;color:var(--muted);
}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:.9rem;color:var(--ink)}
.search input::placeholder{color:var(--muted)}
.search .ico{width:18px;height:18px}
.top-actions{display:flex;align-items:center;gap:2px;margin-inline-start:auto}
.icon-btn{
  display:grid;place-items:center;width:42px;height:42px;
  border:0;border-radius:50%;background:none;cursor:pointer;color:var(--ink);
}
.icon-btn:hover{background:var(--soft)}
.icon-wa{color:#128c4b}
.topbar-row{flex-wrap:wrap}
/* on phones the search drops into its own row when the search icon is tapped */
.topbar.is-search .topbar-row > .search{display:flex;order:10;flex-basis:100%;margin-bottom:12px}

/* ---------- announcement bar ---------- */
.ticker{background:var(--brand);color:#fff;overflow:hidden;white-space:nowrap}
.ticker-track{display:flex;width:max-content;animation:ticker 40s linear infinite}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker ul{display:flex;list-style:none;flex-shrink:0}
.ticker li{display:flex;align-items:center;gap:10px;padding:11px 26px;font-size:.88rem;font-weight:600}
.ticker li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold)}
@keyframes ticker{to{transform:translateX(50%)}}
@media (prefers-reduced-motion:reduce){
  .ticker-track{animation:none}
  .ticker{overflow-x:auto}
}

/* ---------- drawer ---------- */
.drawer[hidden]{display:none}
.drawer{position:fixed;inset:0;z-index:130}
.drawer-backdrop{position:absolute;inset:0;background:rgba(20,18,16,.45)}
.drawer-sheet{
  position:absolute;inset-block:0;inset-inline-start:0;width:min(300px,84vw);
  background:#fff;padding:16px;display:flex;flex-direction:column;gap:4px;overflow-y:auto;
}
.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.drawer-head img{width:48px;height:48px;border-radius:50%}
.drawer-sheet > a{
  display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;font-weight:600;
}
.drawer-sheet > a:hover{background:var(--soft)}
.drawer-sheet > a .ico{color:var(--brand)}

/* ---------- hero banner ---------- */
.hero-sec{padding:20px 0 0}
.hero{
  position:relative;display:grid;grid-template-columns:1fr 1.05fr;align-items:center;
  aspect-ratio:16/9;max-height:520px;width:100%;
  border-radius:12px;overflow:hidden;
  background:radial-gradient(120% 90% at 20% 30%,#fdfcf9 0%,#ecebe6 60%,#e2e0da 100%);
}
.hero-copy{padding-inline:6% 2%;padding-bottom:5%;position:relative;z-index:2}
.hero-copy img{width:clamp(34px,9vw,84px);height:auto;border-radius:50%;margin-bottom:clamp(4px,1.4vw,14px)}
.hero h1{font-size:clamp(1.05rem,5.2vw,3.1rem);font-weight:700;color:var(--brand);line-height:1.3}
.hero h1 span{color:var(--gold)}
.hero-sub{margin-top:clamp(2px,.8vw,8px);font-size:clamp(.6rem,2vw,1.05rem);color:var(--ink-2);font-weight:500;line-height:1.6}
.hero-pill{
  display:inline-block;margin-top:clamp(6px,1.6vw,18px);
  background:var(--brand);color:#fff;border-radius:999px;
  padding:clamp(3px,.8vw,9px) clamp(10px,2.4vw,26px);
  font-size:clamp(.58rem,1.8vw,1rem);font-weight:600;
}
.hero-shots{position:relative;height:100%}
.hero-shots img{
  position:absolute;width:62%;aspect-ratio:16/10;object-fit:cover;object-position:top;
  border-radius:clamp(4px,1vw,10px);border:clamp(2px,.5vw,5px) solid #fff;
  box-shadow:0 10px 30px rgba(30,25,15,.18);
}
.hero-shots img:nth-child(1){top:12%;left:6%;transform:rotate(-6deg)}
.hero-shots img:nth-child(2){top:30%;left:30%;transform:rotate(4deg);z-index:2}
.hero-shots img:nth-child(3){top:50%;left:10%;transform:rotate(-2deg);z-index:3}
.hero-strip{position:absolute;inset-inline:0;bottom:0;z-index:4}

/* a sadu-like strip in the brand colours — under the banner and every card image */
.hero-strip,.p-strip{
  display:block;height:clamp(10px,2vw,22px);
  background:
    linear-gradient(45deg,transparent 33%,var(--gold) 33% 50%,transparent 50% 83%,var(--gold) 83%) 0 0/16px 16px,
    linear-gradient(-45deg,transparent 33%,var(--brand) 33% 50%,transparent 50% 83%,var(--brand) 83%) 0 0/16px 16px,
    #f4efe4;
}
.p-strip{height:9px}

/* ---------- sections ---------- */
.sec{padding:40px 0 0}
.sec-head{margin-bottom:18px}
.sec-head h2{font-size:clamp(1.45rem,4.6vw,1.9rem)}
.sec-head p{color:var(--ink-2);font-size:.92rem}

/* ---------- product grid ---------- */
.p-grid{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.p-card{
  display:flex;flex-direction:column;background:#fff;
  border:1px solid var(--line);border-radius:12px;overflow:hidden;
  transition:border-color .3s;
}
.p-card:hover{border-color:var(--brand)}
.p-card[hidden]{display:none}
.p-img{position:relative;display:block;overflow:hidden;background:linear-gradient(180deg,#f3f3f1,#e4e3df)}
.p-img img{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:top;transition:transform .5s}
.p-card:hover .p-img img{transform:scale(1.06)}
.p-img img.is-contain{object-fit:contain;object-position:center;padding:8px}
.p-eye{
  position:absolute;top:8px;left:8px;
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:#fff;border:1px solid rgba(0,0,0,.08);color:var(--ink);
}
.p-eye .ico{width:18px;height:18px}
.p-body{display:flex;flex-direction:column;flex:1;padding:10px 12px 14px}
.p-badge{
  align-self:flex-start;margin-bottom:6px;
  background:var(--red-soft);color:var(--red);border-radius:8px;
  font-size:.72rem;font-weight:600;padding:2px 9px;
}
.p-badge.is-gold{background:var(--gold-soft);color:#8a6524}
.p-tag{font-size:.74rem;color:var(--muted);font-weight:500}
.p-name{font-size:1rem;font-weight:700;color:var(--ink)}
.p-desc{
  margin-top:4px;font-size:.8rem;line-height:1.65;color:var(--ink-2);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.p-price{margin-top:8px;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;font-weight:700}
.p-price b{font-size:1.2rem;font-weight:700;color:var(--ink)}
.p-price small{font-size:.8rem;font-weight:600;color:var(--ink)}
.p-price .pp-word{font-size:.8rem;font-weight:500;color:var(--ink-2)}
.p-host{
  margin-top:4px;display:flex;align-items:flex-start;gap:5px;
  font-size:.74rem;color:var(--brand);font-weight:600;line-height:1.5;
}
.p-host .ico{width:15px;height:15px;margin-top:2px}
.p-actions{
  margin-top:auto;padding-top:14px;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;
}
.pa{
  display:flex;align-items:center;justify-content:center;gap:6px;
  min-height:44px;border-radius:12px;font-size:.88rem;font-weight:600;
  transition:background .2s,border-color .2s;
}
.pa .ico{width:18px;height:18px}
.pa-prev{background:#f9fafb;border:1px solid rgba(0,0,0,.1);color:#333}
.pa-prev:hover{border-color:var(--ink)}
.pa-order{background:var(--brand);border:1px solid var(--brand);color:#fff}
.pa-order:hover{background:var(--brand-2)}
.pa-info{background:var(--gold-soft);border:1px solid rgba(176,134,63,.35);color:#7a5a20;cursor:pointer;font-family:inherit}
.pa-info:hover{border-color:var(--gold)}

/* ---------- «معلومات عن المنتج»: قائمة من ثلاثة أزرار، وكل زر يفتح صفحته ---------- */
.info[hidden]{display:none}
.info{position:fixed;inset:0;z-index:135;display:flex;align-items:flex-end;justify-content:center}
.info-backdrop{position:absolute;inset:0;background:rgba(20,18,16,.5);animation:info-fade .2s ease-out}
.info-sheet{
  position:relative;width:100%;max-height:min(88vh,88dvh);
  display:flex;flex-direction:column;background:#fff;
  border-radius:18px 18px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.2);
  animation:info-up .26s ease-out;
}
.info-head{display:flex;align-items:center;gap:6px;padding:12px 12px 10px;border-bottom:1px solid var(--line)}
.info-titles{flex:1;min-width:0;padding-inline-start:4px}
.info-titles small{display:block;font-size:.72rem;font-weight:600;color:var(--gold)}
.info-titles h2{font-size:1.05rem;line-height:1.4}
.info-back[hidden]{display:none}
.info-back .ico{transform:scaleX(-1)}
.info-x{font-size:1rem;color:var(--ink-2)}
.info-body{overflow-y:auto;overscroll-behavior:contain;padding:14px 14px 18px}
.info-foot{display:flex;align-items:center;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--soft)}
.info-foot .pa{flex:1;max-width:260px;margin-inline-start:auto;cursor:pointer;font-family:inherit}
.info-price{font-size:.82rem;font-weight:600;color:var(--ink-2)}
.info-price b{font-size:1.1rem;color:var(--ink)}

.info-menu{list-style:none;display:grid;gap:10px}
.info-item{
  width:100%;display:flex;align-items:center;gap:12px;text-align:start;cursor:pointer;
  font:inherit;color:inherit;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 12px;
  transition:border-color .2s,background .2s;
}
.info-item:hover{border-color:var(--brand);background:var(--brand-soft)}
.info-num{
  display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:12px;
  background:var(--brand-soft);color:var(--brand);
}
.info-item.is-gold .info-num{background:var(--gold-soft);color:var(--gold)}
.info-item-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.5}
.info-item-txt b{font-size:.95rem}
.info-item-txt small{font-size:.78rem;color:var(--ink-2)}
.info-item > .ico{width:18px;height:18px;color:var(--muted)}
.info-item-tag{
  align-self:flex-start;margin-top:3px;font-size:.68rem;font-weight:700;
  background:var(--gold-soft);color:#8a6524;border-radius:6px;padding:0 7px;
}

.info-lead{font-size:.88rem;color:var(--ink-2);line-height:1.85;margin-bottom:12px}
.info-group{margin-top:16px}
.info-group:first-child{margin-top:0}
.info-group h3{display:flex;align-items:center;gap:8px;font-size:.98rem;color:var(--brand);margin-bottom:8px}
.info-group h3 .ico{width:20px;height:20px}
.info-list{list-style:none;display:grid;gap:8px}
.info-list li{
  position:relative;padding:10px 12px 10px 12px;padding-inline-start:34px;
  background:var(--soft);border-radius:12px;font-size:.86rem;line-height:1.8;color:var(--ink-2);
}
.info-list li::before{
  content:"";position:absolute;inset-inline-start:12px;top:17px;
  width:12px;height:7px;border:solid var(--brand);border-width:0 0 2.4px 2.4px;transform:rotate(-45deg);
}
.info-list b{color:var(--ink)}
.info-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.info-chips li{font-size:.8rem;font-weight:600;background:var(--brand-soft);color:var(--brand);border-radius:999px;padding:4px 11px}
.info-note{margin-top:10px;font-size:.78rem;color:var(--muted);line-height:1.7}
.info-link{
  margin-top:14px;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;
  font:inherit;font-size:.86rem;font-weight:600;color:var(--brand);
  background:#fff;border:1px dashed var(--brand);border-radius:12px;min-height:44px;
}
.info-link .ico{width:18px;height:18px}
.info-tech{direction:ltr;unicode-bidi:isolate;font-size:.8em;font-weight:600;color:var(--ink)}

@keyframes info-up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@keyframes info-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.info-sheet,.info-backdrop{animation:none}}
@media (min-width:700px){
  .info{align-items:center;padding:24px}
  .info-sheet{max-width:560px;border-radius:18px;max-height:min(84vh,760px)}
  .info-body{padding:18px 20px 22px}
  .info-foot{border-radius:0 0 18px 18px}
}

.no-result{text-align:center;color:var(--ink-2);font-weight:600;padding:26px 8px}

/* ---------- «دوحة العائلة»: two-photo gallery, offer timer, name bundles ---------- */
.p-dawha{border:2px solid var(--gold)}
.dw-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.dw-track::-webkit-scrollbar{display:none}
.dw-slide{flex:0 0 100%;scroll-snap-align:start;display:block}
.p-card:hover .dw-gallery img{transform:none}
.dw-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:30px;height:30px;border-radius:50%;border:0;cursor:pointer;
  display:grid;place-items:center;background:rgba(20,16,10,.55);color:#fff;
}
.dw-arrow svg{width:18px;height:18px}
.dw-next{inset-inline-end:6px}
.dw-prev{inset-inline-start:6px}
.dw-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px}
.dw-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.7);box-shadow:0 0 0 1px rgba(0,0,0,.25);cursor:pointer}
.dw-dots button.is-on{background:var(--gold);width:18px;border-radius:999px}
.dw-badges{display:flex;flex-wrap:wrap;gap:6px}
.dw-timer{margin-top:8px;display:flex;flex-direction:column;gap:3px;background:var(--brand);color:#fff;border-radius:10px;padding:7px 9px}
.dw-timer[hidden],.dw-ended[hidden],.dw-was[hidden]{display:none}
.dw-timer-l{font-size:.72rem;font-weight:600;color:#f3dcae}
.dw-clock{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 4px}
.dw-clock b{font-size:1rem;font-weight:700;min-width:1.3em;text-align:center}
.dw-clock i{font-style:normal;font-size:.64rem;font-weight:500;color:#d8e8de}
.dw-ended{margin-top:8px;text-align:center;font-weight:700;font-size:.82rem;color:var(--red);background:var(--red-soft);border-radius:10px;padding:6px}
.dw-pick{display:grid;gap:4px;margin-top:10px;font-size:.74rem;font-weight:600;color:var(--ink-2)}
.dw-pick select{
  width:100%;min-height:42px;padding:0 8px;border:1px solid rgba(0,0,0,.14);border-radius:10px;
  background:var(--soft);font:inherit;font-size:.84rem;font-weight:600;color:var(--ink);
}
.dw-pick select:focus{outline:none;border-color:var(--gold)}
.dw-price{flex-wrap:nowrap;white-space:nowrap}
.dw-was{font-size:.9rem;font-weight:600;color:var(--muted);text-decoration-thickness:2px}
.dw-note{margin-top:2px;font-size:.74rem;font-weight:600;color:var(--ink-2)}
.dw-note b{color:var(--red)}

/* ---------- features ---------- */
.feats{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.feat{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:18px 10px;border-radius:12px;background:var(--soft)}
.feat-ico{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:var(--brand);border:1px solid var(--line)}
.feat-ico .ico{width:24px;height:24px}
.feat h3{font-size:.92rem}
.feat p{font-size:.78rem;color:var(--ink-2);line-height:1.6}

/* ---------- store link ---------- */
.storebox{
  width:100%;display:flex;align-items:center;gap:12px;text-align:start;cursor:pointer;
  background:#fff;border:1px dashed var(--gold);border-radius:12px;padding:14px;
}
.sb-ico{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--gold-soft);color:var(--gold)}
.sb-txt{flex:1;display:flex;flex-direction:column;line-height:1.5}
.sb-txt b{font-size:.95rem}
.sb-url{font-size:.85rem;color:var(--brand);font-weight:600}
.sb-txt small{font-size:.74rem;color:var(--muted)}
.sb-copy{display:flex;align-items:center;gap:5px;font-size:.8rem;font-weight:600;color:var(--ink-2)}
.sb-copy .ico{width:18px;height:18px}
.storebox.is-copied .sb-copy{color:var(--brand)}
.num{direction:ltr;unicode-bidi:embed}

/* ---------- terms ---------- */
.terms{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 16px}
.terms .sec-head h2{font-size:clamp(1.2rem,4vw,1.5rem)}
.terms-list{list-style:none;counter-reset:t;display:grid;gap:12px}
.terms-list li{
  counter-increment:t;position:relative;padding-inline-start:38px;
  font-size:.88rem;line-height:1.8;color:var(--ink-2);
}
.terms-list li::before{
  content:counter(t);position:absolute;inset-inline-start:0;top:1px;
  display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:var(--brand-soft);color:var(--brand);font-size:.8rem;font-weight:700;
}
.terms-list b{color:var(--ink);font-weight:700}
.terms-note{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:.82rem;font-weight:600;color:var(--brand)}

/* ---------- footer ---------- */
footer{margin-top:48px;background:var(--soft);border-top:1px solid var(--line);padding:32px 0 100px}
.foot-grid{display:grid;gap:24px}
.foot-about img{width:64px;height:64px;border-radius:50%;margin-bottom:8px}
.foot-about p{font-size:.86rem;color:var(--ink-2);max-width:34em}
footer h3{font-size:1rem;margin-bottom:8px}
.foot-links{list-style:none;display:grid;gap:6px;font-size:.88rem;color:var(--ink-2)}
.foot-links a:hover{color:var(--brand)}
.foot-copy{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted);text-align:center}

/* ---------- floating whatsapp ---------- */
.fab-wa{
  position:fixed;bottom:18px;right:18px;z-index:60;
  display:flex;align-items:center;gap:8px;
}
.fab-wa .fab-ico{
  display:grid;place-items:center;width:56px;height:56px;border-radius:50%;
  background:var(--wa);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.2);
}
.fab-wa .fab-ico svg{width:30px;height:30px}
.fab-wa .fab-label{
  background:#fff;color:var(--ink);font-size:.8rem;font-weight:600;
  padding:6px 12px;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.14);
}

.toast{
  position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:140;
  background:var(--ink);color:#fff;font-size:.85rem;font-weight:600;padding:10px 18px;border-radius:999px;
}
.toast[hidden]{display:none}

/* ---------- wider screens ---------- */
@media (min-width:700px){
  .p-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .feats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .foot-grid{grid-template-columns:2fr 1fr 1fr}
}
@media (min-width:960px){
  .topbar-row{min-height:76px;gap:22px}
  .topnav{display:flex;gap:20px;font-size:.9rem;font-weight:600;color:var(--ink-2)}
  .topnav a:hover{color:var(--brand)}
  .topbar-row > .search{display:flex;flex:1;max-width:460px}
  .search-toggle,.menu-btn{display:none}
  .p-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .sec{padding-top:56px}
}
@media (min-width:1200px){
  .p-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}

/* أسئلة شائعة */
.faq{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 16px}
.faq .sec-head h2{font-size:clamp(1.2rem,4vw,1.5rem)}
.faq-q{border-top:1px solid var(--line)}
.faq-q summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px;font-weight:700;color:var(--ink)}
.faq-q summary::-webkit-details-marker{display:none}
.faq-q summary::after{content:'+';flex:none;font-size:1.3rem;line-height:1;color:var(--brand);transition:transform .2s}
.faq-q[open] summary::after{transform:rotate(45deg)}
.faq-q p{padding:0 2px 16px;color:var(--ink-2);font-size:.92rem;line-height:1.9}

/* ---------- pricing clarity (see pricebox.css) ---------- */
.p-warn{
  margin-top:6px;padding:6px 9px;border-radius:8px;
  background:var(--red-soft);color:#991b1b;font-size:.76rem;font-weight:700;line-height:1.6;
}
.sec-link{color:var(--brand);font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
