/* ANDALUS_CSS_BUNDLE_V1: andalus-showcase-v1.css + andalus-section-cards-v2.css */
/* == andalus-showcase-v1.css == */
/* ANDALUS_SHOWCASE_V1 (23 Oct 2026) — shared section cards + offers packages (includes/andalus-showcase.php).
   Self-contained: same look as the home page's section cards (photo whole in a 4:3 frame over a blurred copy,
   brown card, white title) and the offers site's package cards. Fills the screen width on computers. */
.an-sc{--sc-ink:#21140e;--sc-muted:#6b5a50;--sc-line:#eadbd0;--sc-brand:#7d1d2b;--sc-gold:#ffd98a;padding:26px 0;direction:rtl}
.an-sc__wrap{width:min(2400px,calc(100% - 24px));margin-inline:auto}
.an-sc__head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:4px 16px;margin-bottom:14px}
.an-sc__kicker{grid-column:1;color:var(--sc-brand);font-size:.86rem;font-weight:900}
.an-sc__head h2{grid-column:1;margin:0;font-size:clamp(1.35rem,2.2vw,2rem);line-height:1.3;font-weight:900;color:var(--sc-ink)}
.an-sc__head p{grid-column:1;margin:2px 0 0;font-size:.98rem;line-height:1.7;font-weight:700;color:var(--sc-muted)}
.an-sc__all{grid-column:2;grid-row:1/span 3;align-self:end;display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border-radius:999px;background:var(--sc-ink);color:#fff!important;font-weight:900;text-decoration:none!important;white-space:nowrap}

/* section cards */
.an-sc__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.an-sc__card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:16px;background:linear-gradient(135deg,#4d3523 0%,#7c5b3f 55%,#a8814f 100%);color:#fff!important;text-decoration:none!important;box-shadow:0 10px 26px rgba(54,31,20,.14);transition:transform .18s,box-shadow .18s}
.an-sc__card:hover,.an-sc__card:focus-visible{transform:translateY(-3px);box-shadow:0 16px 34px rgba(54,31,20,.2)}
.an-sc__card:focus-visible,.an-sc__offer:focus-visible,.an-sc__all:focus-visible{outline:3px solid #c6a087;outline-offset:2px}
.an-sc__photo{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#3a281b}
.an-sc__photo i{position:absolute;inset:-12%;background:center/cover no-repeat;filter:blur(18px) saturate(1.1);opacity:.75}
.an-sc__photo img{position:relative;display:block;width:100%;height:100%;object-fit:contain;transition:transform .3s}
.an-sc__card:hover .an-sc__photo img{transform:scale(1.03)}
.an-sc__copy{display:flex;flex-direction:column;gap:3px;padding:10px 12px 4px;flex:1 1 auto}
.an-sc__copy strong{font-size:1.05rem;line-height:1.35;font-weight:900;color:#fff}
.an-sc__meta{font-size:.82rem;line-height:1.5;color:#f6e7d8}
.an-sc__meta b,.an-sc__meta i{font-weight:800;font-style:normal;white-space:nowrap}
.an-sc__meta i{color:var(--sc-gold)}
.an-sc__meta s{text-decoration:none}
.an-sc__card .an-sc__go{display:none;margin:4px 12px 12px;align-self:flex-start;font-style:normal;font-size:.85rem;font-weight:900;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:5px 12px}

/* offers packages */
.an-sc__grid--offers{grid-template-columns:1fr;gap:12px}
.an-sc__offer{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid var(--sc-line);color:var(--sc-ink)!important;text-decoration:none!important;box-shadow:0 10px 26px rgba(54,31,20,.08);transition:transform .18s,box-shadow .18s}
.an-sc__offer:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(54,31,20,.14)}
/* ANDALUS_PACKAGE_PHOTO_ENGINE_V1: shape and fit come from includes/andalus-package-photo.php (square, whole photo) */
.an-sc__save{position:absolute;top:10px;left:10px;background:#d0283a;   /* ANDALUS_CONTRAST_V1 (13 Nov «موافق»): 3.9 ← 5.2:1 */
color:#fff;border-radius:10px;padding:4px 10px;font-size:.86rem;font-weight:900;box-shadow:0 4px 12px rgba(242,56,73,.3)}
.an-sc__offer-body{display:flex;flex-direction:column;gap:5px;padding:12px 14px 14px;flex:1 1 auto}
.an-sc__offer-body strong{font-size:1.1rem;font-weight:900;line-height:1.35}
.an-sc__rooms{font-size:.88rem;font-weight:700;color:var(--sc-muted);line-height:1.6}
.an-sc__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:2px}
.an-sc__price b{font-size:1.5rem;font-weight:900;color:var(--sc-ink);white-space:nowrap}
.an-sc__price b small{font-size:.8rem;font-weight:800;color:var(--sc-muted)}
.an-sc__price s{font-size:.92rem;font-weight:700;color:var(--sc-muted);text-decoration-thickness:2px}
.an-sc__monthly{font-size:.9rem;font-weight:800;color:var(--sc-brand)}
.an-sc__offer .an-sc__go{margin-top:auto;padding-top:8px;font-style:normal;font-size:.92rem;font-weight:900;color:var(--sc-brand)}

@media (max-width:420px){
  .an-sc__head{grid-template-columns:1fr}
  .an-sc__all{grid-column:1;grid-row:auto;justify-self:start;margin-top:8px}
}
@media (min-width:640px){
  .an-sc__grid{gap:12px}
  .an-sc__grid--offers{grid-template-columns:repeat(2,minmax(0,1fr))}
  .an-sc__card .an-sc__go{display:inline-block}
}
@media (min-width:1100px){
  .an-sc__wrap{width:min(2400px,calc(100% - 48px))}
  .an-sc__grid--offers{grid-template-columns:repeat(3,minmax(0,1fr))}
  .an-sc__copy strong{font-size:1.12rem}
}
/* ANDALUS_MATTRESS_SECTION_CARD_V1 — 10 sections (+ المراتب): 2 per row, 2 rows of 5 from 900px, one row from 1700px;
   6 packages: 3+3, then one row */
@media (min-width:900px){
  .an-sc__grid:not(.an-sc__grid--offers){grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (min-width:1700px){
  .an-sc__grid:not(.an-sc__grid--offers){grid-template-columns:repeat(10,minmax(0,1fr))}
  .an-sc__copy strong{font-size:1.02rem}
  .an-sc__card .an-sc__go{font-size:.8rem;padding:4px 10px}
}
@media (min-width:1700px){
  .an-sc__grid--offers{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:2100px){
  .an-sc__copy strong{font-size:1.12rem}
}
@media (prefers-reduced-motion:reduce){.an-sc__card,.an-sc__offer,.an-sc__photo img{transition:none}}
/* ANDALUS_KIDS_SECTION_V1: 11 section cards (+ غرف الأطفال): 2 per row with the last one across, 4 per row from 900px
   (4 + 4 + 3), 6 per row from 1700px (6 + 5) */
@media (max-width:899px){
  .an-sc__grid:not(.an-sc__grid--offers):has(> .an-sc__card:nth-child(odd):last-child) > .an-sc__card:last-child{grid-column:1/-1}
}
@media (min-width:900px){
  .an-sc__grid:not(.an-sc__grid--offers):has(> .an-sc__card:nth-child(11):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1700px){
  .an-sc__grid:not(.an-sc__grid--offers):has(> .an-sc__card:nth-child(11):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* == andalus-section-cards-v2.css == */
/* ANDALUS_SECTION_CARDS_V2 (28 Oct 2026) — one look for the section cards everywhere (أ. محمد: «شكل الأقسام دا المفروض
   مشترك في كل الويب سايت … يتناسق مع ألوان الويب سايت ككل … شكل مودرن أكتر ماشي مع الجلاسي بتاع أبل»).
   Same rules for the home page cards (.categoryPick .catCard--photo, index.php) and the shared block on /24, /live and
   /wheel (.an-sc__card, includes/andalus-showcase.php). Loaded last on those pages.
   - light glass card on the site's cream, photo inset with its own rounded corners (the whole photo, 4:3, as decided 23 Oct)
   - the model count is a glass pill on the photo; the title in ink; «كاش من» in the brand brown
   - a round glass arrow at the card's corner; no empty brown block under short cards
   - Android (html.an-android) has no backdrop-filter (assets/andalus-android-v1.css), so every glass part is readable
     without the blur. */

:root{
  --sc2-ink:#24160f;
  --sc2-muted:#6b584c;
  --sc2-brand:#6f442f;
  --sc2-cream:#f7f3ee;
  --sc2-glass:rgba(255,255,255,.62);
  --sc2-glass-line:rgba(255,255,255,.75);
  --sc2-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 0 0 1px rgba(36,22,15,.07),0 10px 28px rgba(54,31,20,.10);
  --sc2-shadow-hover:0 1px 0 rgba(255,255,255,.9) inset,0 0 0 1px rgba(36,22,15,.09),0 18px 40px rgba(54,31,20,.16);
}

/* ---------- the card ---------- */
html body .categoryPick{grid-auto-rows:auto!important;align-items:stretch}
html body .categoryPick .catCard.catCard--photo,
html body .an-sc .an-sc__card{
  position:relative!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  min-width:0;height:100%;padding:6px!important;gap:0!important;overflow:hidden;isolation:isolate;
  border-radius:24px!important;border:0!important;text-align:right!important;text-decoration:none!important;
  background:linear-gradient(180deg,rgba(255,255,255,.94) 0%,rgba(255,251,246,.86) 100%)!important;
  -webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);
  box-shadow:var(--sc2-shadow)!important;color:var(--sc2-ink)!important;
  transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease!important;
}
html body .categoryPick .catCard.catCard--photo::before,
html body .categoryPick .catCard.catCard--photo::after{display:none!important}
@media (hover:hover){
  html body .categoryPick .catCard.catCard--photo:hover,
  html body .an-sc .an-sc__card:hover{transform:translateY(-4px)!important;box-shadow:var(--sc2-shadow-hover)!important}
}
html body .categoryPick .catCard.catCard--photo:active,
html body .an-sc .an-sc__card:active{transform:scale(.985)!important}
html body .categoryPick .catCard.catCard--photo:focus-visible,
html body .an-sc .an-sc__card:focus-visible{outline:3px solid #f0b75a!important;outline-offset:3px}

/* ---------- photo: inset, rounded, whole photo over its blurred copy ---------- */
html body .catCard--photo .catPhoto,
html body .an-sc .an-sc__photo{
  position:relative;display:block;width:100%;aspect-ratio:4/3;flex:0 0 auto;overflow:hidden;
  border-radius:18px;background:#efe6dc!important;
}
html body .catCard--photo .catPhoto i,
html body .an-sc .an-sc__photo i{opacity:.6!important;filter:blur(18px) saturate(1.1)!important}
html body .catCard--photo .catPhoto img,
html body .an-sc .an-sc__photo img{object-fit:contain!important;transition:transform .5s cubic-bezier(.2,.8,.2,1)!important}
/* a soft glass sheen on the photo's top edge */
html body .catCard--photo .catPhoto::after,
html body .an-sc .an-sc__photo::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
  background:linear-gradient(180deg,rgba(255,255,255,.18) 0%,rgba(255,255,255,0) 28%);
}

/* ---------- copy ---------- */
html body .categoryPick .catCard--photo .catCardCopy,
html body .an-sc .an-sc__copy{
  position:static!important;flex:1 1 auto;display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:flex-start!important;gap:2px!important;width:100%;padding:10px 8px 6px!important;padding-inline-end:50px!important;
  text-align:right!important;
}
html body .categoryPick .catCard.catCard--photo .catCardCopy strong,
html body .an-sc .an-sc__card .an-sc__copy strong{
  color:var(--sc2-ink)!important;font-size:clamp(1rem,1.25vw,1.2rem)!important;font-weight:900!important;line-height:1.35!important;
}
html body .categoryPick .catCard.catCard--photo .catCardCopy > span,
html body .an-sc .an-sc__meta{color:var(--sc2-muted)!important;font-size:.85rem!important;font-weight:700!important;line-height:1.5!important}
html body .catCard--photo .catMeta s,
html body .an-sc .an-sc__meta s{display:none!important}
/* «كاش من …» in the brand brown */
html body .categoryPick .catCard.catCard--photo .catMeta i,
html body .an-sc .an-sc__meta i{display:block!important;color:var(--sc2-brand)!important;font-style:normal!important;font-weight:900!important;font-size:.9rem!important;white-space:nowrap}

/* the model count → a glass pill on the photo (top corner) */
html body .categoryPick .catCard.catCard--photo .catMeta,
html body .an-sc .an-sc__card .an-sc__meta{position:static!important;transform:none!important}
html body .categoryPick .catCard.catCard--photo .catMeta b,
html body .an-sc .an-sc__meta b{
  position:absolute;top:14px;right:14px;z-index:3;display:inline-flex!important;align-items:center;min-height:26px;padding:2px 10px;
  border-radius:999px;font-size:.78rem!important;font-weight:900!important;line-height:1.3;white-space:nowrap;color:var(--sc2-ink)!important;
  background:var(--sc2-glass);border:1px solid var(--sc2-glass-line);
  -webkit-backdrop-filter:blur(14px) saturate(1.7);backdrop-filter:blur(14px) saturate(1.7);
  box-shadow:0 4px 14px rgba(36,22,15,.12);
}

/* ---------- the round glass arrow (the old «عرض الموديلات» text stays for screen readers) ---------- */
html body .categoryPick .catCard.catCard--photo .arrow,
html body .an-sc .an-sc__card .an-sc__go{
  position:absolute!important;left:12px!important;bottom:12px!important;z-index:3;display:grid!important;place-items:center;
  width:36px!important;height:36px!important;min-height:0!important;margin:0!important;padding:0!important;border-radius:50%!important;
  font-size:0!important;line-height:0!important;color:var(--sc2-ink)!important;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(247,239,230,.8))!important;border:1px solid rgba(36,22,15,.08)!important;
  box-shadow:0 1px 0 #fff inset,0 4px 12px rgba(36,22,15,.12)!important;
  transition:transform .22s cubic-bezier(.2,.8,.2,1),background .22s ease!important;
}
html body .categoryPick .catCard.catCard--photo .arrow::after,
html body .an-sc .an-sc__card .an-sc__go::after{content:"←";font-size:18px;line-height:1;font-weight:900;font-style:normal}
@media (hover:hover){
  html body .categoryPick .catCard.catCard--photo:hover .arrow,
  html body .an-sc .an-sc__card:hover .an-sc__go{transform:translateX(-3px);background:var(--sc2-ink)!important;color:#fff!important}
}

/* ---------- grid ---------- */
@media (max-width:700px){
  html body .categoryPick,html body .an-sc .an-sc__grid{gap:10px!important}
  html body .categoryPick .catCard.catCard--photo,html body .an-sc .an-sc__card{border-radius:20px!important;padding:5px!important}
  html body .catCard--photo .catPhoto,html body .an-sc .an-sc__photo{border-radius:16px}
  html body .categoryPick .catCard--photo .catCardCopy,html body .an-sc .an-sc__copy{padding:8px 6px 4px!important;padding-inline-end:44px!important}
  html body .categoryPick .catCard.catCard--photo .arrow,html body .an-sc .an-sc__card .an-sc__go{width:32px!important;height:32px!important;left:10px!important;bottom:10px!important}
  html body .categoryPick .catCard.catCard--photo .catMeta b,html body .an-sc .an-sc__meta b{top:11px;right:11px}
}
@media (max-width:360px){
  html body .categoryPick .catCard.catCard--photo .catCardCopy strong,html body .an-sc .an-sc__card .an-sc__copy strong{font-size:.95rem!important}
  html body .categoryPick .catCard.catCard--photo .catMeta i,html body .an-sc .an-sc__meta i{font-size:.82rem!important}
}

/* ---------- Android: no blur → solid enough to read ---------- */
html.an-android body .categoryPick .catCard.catCard--photo,
html.an-android body .an-sc .an-sc__card{background:#fffdfa!important}
html.an-android body .categoryPick .catCard.catCard--photo .catMeta b,
html.an-android body .an-sc .an-sc__meta b{background:rgba(255,255,255,.92)}

@media (prefers-reduced-motion:reduce){
  html body .categoryPick .catCard.catCard--photo,html body .an-sc .an-sc__card,
  html body .catCard--photo .catPhoto img,html body .an-sc .an-sc__photo img,
  html body .categoryPick .catCard.catCard--photo .arrow,html body .an-sc .an-sc__card .an-sc__go{transition:none!important}
}

/* ANDALUS_TEXT_FIT_V1 (أ. محمد 8 Nov 2026 «ارقام او كلام بيطلع من برا مكانه»): on a 320–375px phone «كاش من 59,000 ج» was one
   line wider than the card, so «ج» slid under the round arrow — it may wrap now, and the number keeps its «ج». */
@media (max-width:380px){
  html body .categoryPick .catCard.catCard--photo .catMeta i,
  html body .an-sc .an-sc__meta i{white-space:normal!important;font-size:.84rem!important;line-height:1.35!important}
}

