/* ANDALUS_CSS_BUNDLE_V1: andalus-product-card-v1.css + andalus-product-card-v2.css + andalus-product-page-v2.css */
/* == andalus-product-card-v1.css == */
/* ANDALUS_PCARD_ACTIONS_LOOK_V1 (أ. محمد 9 Nov 2026 22:20 «زر المشاركة والتفاصيل تحت عاوزين يكونوا افضل من ناحية الشكل والتوزيعة» + «زر التفاصيل يبان انه بيودي لصفحة الموديل نفسها»):
   the buttons row of every model card (includes/andalus-product-card.php, every skin):
   [the page buy button — whole row] · «اسأل على واتساب» — whole row · then «صفحة الموديل» (page icon · label · arrow in a circle) | share square.
   Doubled selectors + !important beat the older per-page button rules; motion = transform only. */
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;gap:8px!important;align-items:stretch!important;margin-top:auto!important;width:100%!important;flex-wrap:initial!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>*{grid-column:1/-1!important;grid-row:auto!important;margin:0!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn{min-height:50px!important;height:auto!important;border-radius:14px!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn::after{content:none!important;display:none!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--wa{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page{grid-column:1!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;padding:0 8px 0 14px!important;padding-inline:14px 8px!important;background:#fff!important;color:#5a3424!important;border:1.5px solid #c9ab93!important;box-shadow:0 1px 0 rgba(90,52,36,.06)!important;font:900 15px/1.2 "IBM Plex Sans Arabic",Arial,sans-serif!important;text-decoration:none!important;transform:none;transition:transform .2s ease,background-color .2s ease,border-color .2s ease!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page .an-pc-ic{display:block!important;flex:none;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:.85}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page .an-pc-lbl{flex:1 1 auto;min-width:0;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page .an-pc-go{flex:none;display:grid;place-items:center;width:32px!important;height:32px!important;border-radius:50%!important;background:#6f442f!important;color:#fff!important;transition:transform .2s ease}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page .an-pc-go svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;fill:none!important;stroke:#fff!important;stroke-width:2.6!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:1!important;margin:0!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--share{grid-column:2!important;display:grid!important;place-items:center!important;width:52px!important;min-width:52px!important;max-width:52px!important;padding:0!important;background:#fbf6ef!important;color:#5a3424!important;border:1.5px solid #e3d3c5!important;box-shadow:none!important;transition:transform .2s ease,background-color .2s ease!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--share svg{display:block!important;width:23px!important;height:23px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--share>span{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts:not(:has(>.an-pc-btn--page))>.an-pc-btn--share{grid-column:1/-1!important;width:100%!important;max-width:none!important}
@media (hover:hover){html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page:hover{background:#fbf3ec!important;border-color:#6f442f!important}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page:hover .an-pc-go{transform:translateX(-3px)}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--share:hover{background:#f3e6da!important}
}
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn:focus-visible{outline:3px solid #f0b56b!important;outline-offset:2px!important}
@media (prefers-reduced-motion:reduce){html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn,html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts .an-pc-go{transition:none!important}
}
/* ANDALUS_TEXT_FIT_V2 (خطة «النص جوه إطاره» الجلسة 2، أ. محمد 11 Nov 2026 «النصوص بتخرج من إطارها ع التليفون… الأندرويد الرخيص»):
   «صفحة الموديل» was cut with «…» on a 280–300px phone and at 320 with the big phone font — the label wraps to a 2nd line instead. */
html body [data-an-card][data-an-card][data-an-card] .an-pc-acts.an-pc-acts.an-pc-acts.an-pc-acts>.an-pc-btn--page .an-pc-lbl{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.2}
html body [data-an-card] .an-pc-acts>.an-pc-btn--page{height:auto;white-space:normal}

/* == andalus-product-card-v2.css == */
/* ANDALUS_PCARD_V2 — «النهائي 2» (أ. محمد 13 Nov 2026 05:53 «النهائي ٢ كدا انا موافق نطبقه على الويب سايت عشان نحقق شرط السرعة ف كل
   الصفحات. اهم حاجة انه يبقى متناسق مع كل الشاشات والاجهزة عرضي وراسي»). The whole look of the new model card — every card built
   by an_product_card() while the switch is on carries data-an-card-v="2" (includes/andalus-product-card.php). Linked only on a
   page that shows the new card (an_pcard_assets()). Sizes and colours = the board's second row (Final2 · T41v2 · T26v2 · T39v2 · T16v2).
   The old card rules of each page (.an-cat-card / .product / .an-rc …) still match the <article>, so the card's own frame is
   written with the doubled attribute + !important; the inside uses only an-pc2 / an-cp2 / an-stk classes (no old class).
   Narrow card (< 330px, @container — and @media for browsers without it): the installment line stacks, rows may wrap.
   No rule here ends in a list (tools/tests/rules/css_bucket_test.js). Motion = the site's touch layer (andalus-live-touch-v1.js). */

/* ---------- the card ---------- */
html body article[data-an-card-v="2"][data-an-card-v="2"]{display:flex!important;flex-direction:column!important;gap:0!important;margin:0!important;padding:0!important;min-width:0!important;height:auto;box-sizing:border-box!important;background:#fff!important;border:1px solid #d5c6b6!important;border-radius:20px!important;box-shadow:0 8px 24px rgba(36,22,15,.10)!important;overflow:hidden!important;container:an-pc2/inline-size;font-family:"IBM Plex Sans Arabic",Arial,sans-serif!important;color:#24160f!important;text-align:right!important;direction:rtl}
@supports (overflow:clip){html body article[data-an-card-v="2"][data-an-card-v="2"]{overflow:clip!important}}
html body article[data-an-card-v="2"][data-an-card-v="2"][hidden]{display:none!important}
/* ANDALUS_SECTION_LINKS_V1 (أ. محمد 14 Nov 2026 02:26 «الدوس على أي قسم بيودي على قسم تاني غير اللي اتداس عليه»): the frame above
   forces display with !important, so a card the page's list HIDES must be hidden here too — the site's two hide marks for a model
   card: [hidden] (the section pages, andalus-catalog.js) and .hiddenProduct (the home list andalus-home-catalog-v29.js · /live/ · the
   catalog embed). Without it the home showed all 265 models under «غرف النوم» (dining tables first). Guard: anSlHideLeaks() in
   tools/tests/layout/section_links_test.js — any other hide mark lost to a forced display = the deploy stops. */
html body article[data-an-card-v="2"][data-an-card-v="2"].hiddenProduct{display:none!important}
/* the site's scroll reveal fades the new card in but never shrinks it (a shrunk card made its 44px targets 43px — layout_v3_test) */
html body article[data-an-card-v="2"][data-an-card-v="2"].an-reveal:not(.is-revealed){transform:none!important;scale:none!important}
html body article[data-an-card-v="2"][data-an-card-v="2"]::before{content:none!important;display:none!important}
html body article[data-an-card-v="2"][data-an-card-v="2"]::after{content:none!important;display:none!important}
html body [data-an-card-v="2"] .an-pc2__media *{box-sizing:border-box}
html body [data-an-card-v="2"] .an-pc2__body *{box-sizing:border-box}

/* ---------- the photo ---------- */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__media{position:relative!important;display:block!important;margin:0!important;padding:0!important;background:#fff!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal{--anp-ratio:37/30;--anp-radius:0;--anp-pad:0px;position:relative;margin:0!important;padding:0!important;width:100%!important;background:none!important;border-radius:0!important;box-shadow:none!important;aspect-ratio:auto!important;overflow:visible!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__box{aspect-ratio:37/30!important;width:100%!important;height:auto!important;max-height:none!important;border-radius:0!important;background:#e9dfd3!important}
/* the old marks of a gallery that was not asked for its lean shape (an_photo_gallery 'lean') */
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__count{display:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__zoom:not(.anp-gal__zoom--icon){display:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__dots{display:none!important}
/* the two arrows: white on the photo, always there (touch too); the one at the end hides */
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__nav{position:absolute!important;z-index:3;top:50%!important;bottom:auto!important;display:flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px;margin:-22px 0 0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#fff!important;opacity:1!important;filter:drop-shadow(0 1px 3px rgba(36,22,15,.75));cursor:pointer;transform:none}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__nav--prev{right:4px!important;left:auto!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__nav--next{left:4px!important;right:auto!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__nav svg{width:26px!important;height:26px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.6!important;stroke-linecap:round;stroke-linejoin:round}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__nav:disabled{opacity:0!important;pointer-events:none}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__nav:focus-visible{outline:3px solid #f0b56b;outline-offset:-3px}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal[data-anp-href] .anp-gal__slide{cursor:pointer}
/* the thin line under the photo: one dark part for the photo on show (any number of photos) */
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__bar{display:block;width:120px;max-width:60%;height:3px;margin:9px auto 0;border-radius:2px;background:#d5c6b6;overflow:hidden}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__bar>i{display:block;width:calc(100% / var(--anp-n,1));height:3px;border-radius:2px;background:#24160f;transform:translateX(calc(var(--anp-i,0) * -100%));transition:transform .2s ease}
html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal.is-single+.an-lv3-clip{bottom:12px!important}

/* the white pill: «ضيفه لاختياراتك» + «شارك», at the photo's top corner. Not sticky: the pill is 100px tall on a ~200–300px
   photo, so a rail (ANDALUS_CART_PIN_V1) would ride it over the arrows / out of the photo — it scrolls with the photo. */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__rail{position:absolute;z-index:4;top:10px;left:10px;display:block;width:48px;height:auto;margin:0;pointer-events:none}
/* ANDALUS_PCARD_V2 pill V2 (أ. محمد 13 Nov 2026 17:18 «الجزء البيضاوي بتاع الاضافة للعربة والمشاركة محتاج يتحسن خاصة مع الضغط على الزر»):
   each button is its own circle inside the pill — the press = a soft tint + a small dip (nothing is clipped any more: the pill does not
   cut its children), «في اختياراتك» = the circle turns brown with the ✓ badge, the pop and the ring play whole; a thin line between the two. */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap{position:relative;display:flex;flex-direction:column;align-items:center;width:48px;padding:2px;border-radius:24px;background:rgba(255,255,255,.97);color:#6f442f;box-shadow:0 0 0 1px rgba(111,68,47,.10),0 6px 18px rgba(36,22,15,.20);overflow:visible;pointer-events:auto}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#6f442f!important;box-shadow:none!important;transform:none;transition:background-color .15s ease,color .15s ease,transform .18s cubic-bezier(.34,1.56,.64,1)!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg::after{top:5px!important;right:3px!important;width:15px!important;height:15px!important;border-width:2px!important;background-size:9px!important;box-shadow:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg::before{border-radius:50%}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg.is-on{background:#6f442f!important;color:#fff!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg:active{background:#efe3d6!important;transform:scale(.9)}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg.is-press{background:#efe3d6!important;transform:scale(.9)}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg.is-on.is-press{background:#5c3726!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg.is-on:active{background:#5c3726!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share{position:relative;display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#6f442f!important;cursor:pointer;text-decoration:none!important;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,transform .18s cubic-bezier(.34,1.56,.64,1)}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-gz-tg+.an-pc2__share{margin-top:1px!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-gz-tg+.an-pc2__share::before{content:"";position:absolute;top:-1px;left:10px;right:10px;height:1px;background:#eadfd3;pointer-events:none}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round;stroke-linejoin:round}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share circle{fill:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share:active{background:#efe3d6!important;transform:scale(.9)}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share.is-press{background:#efe3d6!important;transform:scale(.9)}
@media (hover:hover) and (pointer:fine){
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg:hover{background:#f6efe8!important;transform:none!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg.is-on:hover{background:#5c3726!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share:hover{background:#f6efe8!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg:active{transform:scale(.9)!important}
}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap .an-gz-tg:focus-visible{outline:3px solid #f0b56b;outline-offset:1px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__share:focus-visible{outline:3px solid #f0b56b;outline-offset:-3px}
/* the ▶ clip = a third mark on the photo (the other bottom corner — the two-arrows mark is on the left) */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-lv3-clip{position:absolute!important;z-index:3;top:auto!important;right:12px!important;bottom:24px!important;left:auto!important;display:grid;place-items:center;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(23,13,8,.72)!important;color:#fff!important;box-shadow:0 2px 10px rgba(36,22,15,.25)!important}

/* ---------- the words ---------- */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__body{display:flex!important;flex-direction:column!important;flex:1 1 auto;gap:0!important;margin:0!important;padding:4px 16px 16px!important;min-width:0;background:transparent!important;border:0!important}
/* «ليه» = the dark badge over the name */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-why{align-self:flex-start;width:fit-content;max-width:100%;margin:6px 0 0!important;padding:1px 10px!important;border:0!important;border-radius:999px!important;background:#242024!important;color:#fff!important;font:700 12.5px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif!important;letter-spacing:0;text-align:right}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-why::before{content:none!important;display:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__name{margin:0!important;padding:0!important;font:700 21px/1.35 "IBM Plex Sans Arabic",Arial,sans-serif!important;color:#170d08!important;letter-spacing:0;text-align:right;min-height:0;overflow-wrap:anywhere}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__name>span{display:flex;align-items:center;min-height:44px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__link{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0!important;color:#170d08!important;text-decoration:none!important;background:none!important;border:0!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__link>span{min-width:0;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:6px;text-decoration-color:#170d08}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__go{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:#170d08;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__link:focus-visible{outline:3px solid #f0b56b;outline-offset:2px;border-radius:8px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__parts{margin:0!important;padding:0!important;font:500 13.5px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif!important;color:#4a3a30!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__feat{margin:2px 0 0!important;padding:0!important;font:600 13px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif!important;color:#5b3a2e!important}

/* ---------- the price (an_price_card 'look' => 'v2') ---------- */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp--v2{display:block!important;margin:10px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 8px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__lbl{font:700 13.5px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif;color:#4a3a30}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__off{padding:1px 11px;border-radius:999px;background:#fdeceb;color:#b81f10;font:700 13px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif;white-space:nowrap}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__row{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 8px;margin-top:2px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__big{display:inline!important;margin:0!important;padding:0!important;white-space:nowrap;color:#d4203f!important;font:700 15px/1.15 "IBM Plex Sans Arabic",Arial,sans-serif!important;background:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__big bdi{font-size:30px;font-size:clamp(28px,9.6cqw,36px);font-weight:700;line-height:1.15;font-variant-numeric:tabular-nums;color:inherit}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__big small{font-size:15px!important;font-weight:700;color:inherit!important;opacity:1!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__was{white-space:nowrap;font:600 14px/1.5 "IBM Plex Sans Arabic",Arial,sans-serif;color:#4a3a30}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__was s{text-decoration-thickness:1.5px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp--none{margin:10px 0 0!important;padding:0!important;border:0!important;background:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp__none{margin:0!important;font:700 14px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif!important;color:#4a3a30!important}
/* the installment line between two thin lines — all of it is the button that opens «كل أنظمة التقسيط» */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__plans{margin:8px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst{display:grid!important;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;row-gap:3px;align-items:center;min-height:44px;margin:0!important;padding:8px 0 7px!important;border:0!important;border-top:1px solid #e3d8cb!important;border-bottom:1px solid #e3d8cb!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#242024!important;font:700 14px/1.3 "IBM Plex Sans Arabic",Arial,sans-serif!important;list-style:none;cursor:pointer;text-align:right}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst::-webkit-details-marker{display:none}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst::before{content:none!important;display:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst::after{content:none!important;display:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst:focus-visible{outline:3px solid #f0b56b;outline-offset:2px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__m{grid-column:1;grid-row:1;min-width:0;font:700 14px/1.3 "IBM Plex Sans Arabic",Arial,sans-serif}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__m b{white-space:nowrap;font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__with{grid-column:2;grid-row:1;white-space:nowrap;font:600 13px/1.5 "IBM Plex Sans Arabic",Arial,sans-serif;color:#4a3a30}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__more{grid-column:1;grid-row:2;min-width:0;font:700 13.5px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__tag{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:6px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__tag b{padding:0 10px;border:1px solid #8a8490;border-radius:999px;font:700 12.5px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif;white-space:nowrap}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__tag svg{flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__plans[open] .an-cp2__tag svg{transform:rotate(-90deg)}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__plans .an-cp__list{margin-top:8px}
/* the stock line */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk{display:flex;align-items:center;gap:7px;margin:8px 0 0!important;padding:0!important;font:700 13px/1.6 "IBM Plex Sans Arabic",Arial,sans-serif;color:#4a3a30}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk__dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#a0785a}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--ready{color:#0b5229}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--ready_hot{color:#0b5229}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--ready .an-stk__dot{background:#12893f}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--ready_hot .an-stk__dot{background:#12893f}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--factory{color:#0b5229}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--factory .an-stk__dot{background:#12893f}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--demand{color:#6b4200}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--demand .an-stk__dot{background:#d38600}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-stk--made{font-weight:500}
/* «التفاصيل والمقاسات» (a model with no page) keeps its own look, a little air above */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cd{margin:10px 0 0!important}

/* ---------- the buttons: [the page's buy button] · «اسأل على واتساب» (the one filled button) ---------- */
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__acts{display:flex!important;flex-direction:column!important;gap:8px!important;margin:auto 0 0!important;padding:12px 0 0!important;width:100%!important;border:0!important;background:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__wa{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%!important;min-height:50px!important;height:auto!important;margin:0!important;padding:4px 6px!important;border:0!important;border-radius:14px!important;background:#0b7a3e!important;box-shadow:none!important;color:#fff!important;font:700 16px/1.35 "IBM Plex Sans Arabic",Arial,sans-serif!important;text-align:center;text-decoration:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__wa svg{flex:0 0 20px;width:20px!important;height:20px!important;fill:currentColor!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__wa:focus-visible{outline:3px solid #f0b56b;outline-offset:2px}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__acts>:not(.an-pc2__wa){display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:48px!important;margin:0!important;padding:4px 10px!important;border:1.5px solid #6f442f!important;border-radius:14px!important;background:#fff!important;color:#5a3424!important;box-shadow:none!important;font:700 15px/1.35 "IBM Plex Sans Arabic",Arial,sans-serif!important;text-decoration:none!important;text-align:center}

/* ---------- a narrow card (280–330px wide): the installment line stacks, nothing leaves its box ---------- */
@container an-pc2 (max-width:330px){
  /* a narrow card (its photo < ~260px tall): the pill lies down (cart | share) so it never meets the arrow in the middle */
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__rail{width:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap{flex-direction:row;width:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-gz-tg+.an-pc2__share{margin:0 1px 0 0!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-gz-tg+.an-pc2__share::before{top:10px;bottom:10px;left:auto;right:-1px;width:1px;height:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__body{padding:4px 12px 14px!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__name{font-size:19px!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst{grid-template-columns:minmax(0,1fr)}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__m{grid-column:1;grid-row:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__with{grid-column:1;grid-row:auto;white-space:normal}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__more{grid-column:1;grid-row:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__tag{grid-column:1;grid-row:auto;justify-content:flex-start}
}
@supports not (container-type:inline-size){
  @media (max-width:360px){
    html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__body{padding:4px 12px 14px!important}
    html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst{grid-template-columns:minmax(0,1fr)}
    html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__m{grid-column:1;grid-row:auto}
    html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__with{grid-column:1;grid-row:auto;white-space:normal}
    html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__more{grid-column:1;grid-row:auto}
    html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__tag{grid-column:1;grid-row:auto;justify-content:flex-start}
  }
}
@media (prefers-reduced-motion:reduce){
  html body [data-an-card-v="2"][data-an-card-v="2"] .anp-gal__bar>i{transition:none}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__tag svg{transition:none}
}

/* ---------- the phone on its side (ANDALUS_PCARD_V2_LANDSCAPE, أ. محمد 13 Nov 2026 19:38 «الكارت على التليفون العرضي طويل جدا»):
   one card per row, laid sideways — the photo on the start side, the words next to it — so a card fits the short screen
   (it was 3 narrow cards of ~650px on a 390px-tall screen). The grids keep their own rules; only their column count is 1. */
@media (orientation:landscape) and (max-height:500px) and (min-width:560px){
  html body .an-cat-grid{--an-cols:1;--an-cols-sm:1}
  html body .an-rc-grid{--an-cols:1;--an-cols-sm:1}
  html body #catalog #grid{--an-cols:1;--an-cols-sm:1}
  html body .mt-grid{--an-cols:1;--an-cols-sm:1}
  html body article[data-an-card-v="2"][data-an-card-v="2"]{display:grid!important;grid-template-columns:minmax(0,46%) minmax(0,1fr);align-items:start;max-width:860px;margin-inline:auto!important;width:100%}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__media{grid-column:1;grid-row:1;align-self:start}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__body{grid-column:2;grid-row:1;align-self:stretch;padding:8px 16px 14px!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__acts{padding-top:10px!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__rail{width:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-pc2__cap{flex-direction:row;width:auto}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-gz-tg+.an-pc2__share{margin:0 1px 0 0!important}
  html body [data-an-card-v="2"][data-an-card-v="2"] .an-gz-tg+.an-pc2__share::before{top:10px;bottom:10px;left:auto;right:-1px;width:1px;height:auto}
}
/* the iPad / phone turned: a card's size is measured again (ANDALUS_PCARD_V2_TURN — assets/andalus-photos-v1.js puts this class for two frames) */
html.an-pc2-turn body article[data-an-card-v="2"][data-an-card-v="2"]{container-type:normal!important}

/* ---------- the model page's price (ANDALUS_PCARD_V2_PAGE, أ. محمد 13 Nov 2026 20:35 «وحدها»): the same price look as the card —
   product/index.php wraps an_price_card(['look' => 'v2']) in <div class="an-pd__price2" data-an-card-v="2">; the installment line is a
   link to the page's own plans table, «احسب قسط الموديل ده» stays under it. ---------- */
html body [data-an-card-v="2"].an-pd__price2{display:block;container:an-pc2/inline-size;margin:10px 0 0}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst--link{text-decoration:none!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp2__inst--link:hover{background:#fbf7f2!important}
html body [data-an-card-v="2"][data-an-card-v="2"] .an-cp--v2 .an-cp__calc{margin-top:12px!important}


/* == andalus-product-page-v2.css == */
/* ANDALUS_PRODUCT_PAGE_V2 (19 Oct 2026) — the model page /product/<section>/<model>/.
   Photos + thumbnail row, the shared price block (andalus-price-card-v1.css), WhatsApp,
   reasons to buy, the showroom and other models from the same section.
   Site rules: text never under 13px, English digits, WhatsApp green #128c4a. */

.an-pd-body{background:#fbf6ef;color:#231713}
.an-pd{
  --pd-ink:#231713;--pd-soft:#7a675d;--pd-brand:#6f442f;--pd-line:#eadbd0;--pd-paper:#fff;--pd-wa:#128c4a;
  --pd-gut:clamp(16px,3vw,56px);width:min(1880px,100% - 2 * var(--pd-gut));margin:0 auto;padding:14px 0 40px;
}
.an-pd *{box-sizing:border-box}
.an-pd a{color:inherit}

/* Where am I */
html body .an-pd__crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;font-size:14px;font-weight:700;color:var(--pd-soft);line-height:1.5!important}
html body .an-pd__crumb a{color:var(--pd-brand);text-decoration:none}
html body .an-pd__crumb a:hover{text-decoration:underline}
html body .an-pd__crumb [aria-current]{color:var(--pd-ink)}

/* Photos */
.an-pd__top{display:grid;gap:18px}
.an-pd__media{min-width:0}
.an-pd .an-pd__gal.anp-gal{--anp-ratio:1/1;--anp-bg:#f3ece4;--anp-radius:0px;margin:0 -16px}
.an-pd__thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:10px 0 2px;margin:0}
.an-pd__thumbs::-webkit-scrollbar{display:none}
.an-pd .an-pd__thumb{
  flex:0 0 64px;width:64px;height:64px;padding:2px;border:0;border-radius:12px;background:#fff;cursor:pointer;
  box-shadow:inset 0 0 0 1px var(--pd-line);opacity:.75;transition:opacity .15s ease,box-shadow .15s ease;
}
.an-pd .an-pd__thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px}
.an-pd .an-pd__thumb.is-on{opacity:1;box-shadow:inset 0 0 0 2px var(--pd-brand)}
.an-pd .an-pd__thumb:focus-visible{outline:3px solid #f0b75a;outline-offset:2px}

/* Name, price, buttons */
.an-pd__info{min-width:0}
html body .an-pd__title{margin:0 0 4px;font-size:28px;font-weight:900;line-height:1.25!important;color:var(--pd-ink);letter-spacing:0}
.an-pd .an-cp{margin:8px 0 14px}
.an-pd .an-cp__cash strong{font-size:28px}
.an-pd .an-cp__from{font-size:17px}
.an-pd .an-cp__from strong{font-size:22px}
.an-pd .an-cp__line{font-size:14px}
.an-pd .an-pd__wa{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;padding:0 18px;border-radius:16px;
  background:var(--pd-wa);color:#fff!important;font-size:17px;font-weight:900;text-decoration:none!important;
  box-shadow:0 12px 24px rgba(18,140,74,.2);
}
.an-pd .an-pd__wa svg,.an-pd-bar__wa svg{width:22px;height:22px;flex:0 0 22px;fill:currentColor}
.an-pd .an-pd__wa:hover{background:#0f7a40}
.an-pd .an-pd__share{
  display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:10px;padding:0 16px;
  border:1px solid var(--pd-line);border-radius:14px;background:#fff;color:var(--pd-ink);font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;
}
.an-pd .an-pd__share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.an-pd .an-pd__share:hover{border-color:var(--pd-brand)}

html body .an-pd__perks{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body .an-pd__perks li{
  margin:0;padding:12px;border:1px solid var(--pd-line);border-radius:14px;background:#fff;display:grid;gap:2px;line-height:1.45!important;
}
html body .an-pd__perks strong{font-size:15px;font-weight:900;color:var(--pd-ink)}
html body .an-pd__perks span{font-size:13px;font-weight:700;color:var(--pd-soft)}

/* Usual pieces and sizes of the section (ANDALUS_CATEGORY_SPECS_V1) */
.an-pd__specs{margin-top:28px;padding:20px;border:1px solid var(--pd-line);border-radius:20px;background:#fff}
html body .an-pd__specs h2{margin:0 0 10px;font-size:22px;font-weight:900;line-height:1.3!important;color:var(--pd-ink)}
html body .an-pd__specs-group{margin:14px 0 6px;font-size:17px;font-weight:900;line-height:1.4!important;color:var(--pd-brand)}
html body .an-pd__specs-list{list-style:none;margin:0;padding:0;display:grid;gap:0}
html body .an-pd__specs-list li{margin:0;padding:10px 0;border-top:1px solid var(--pd-line);display:grid;grid-template-columns:minmax(96px,30%) 1fr;gap:10px;line-height:1.6!important}
html body .an-pd__specs-list li:first-child{border-top:0}
html body .an-pd__specs-list strong{font-size:15px;font-weight:900;color:var(--pd-ink)}
html body .an-pd__specs-list span{font-size:15px;font-weight:700;color:var(--pd-ink)}
html body .an-pd__specs-extra{margin:10px 0 0;font-size:15px;font-weight:900;color:var(--pd-brand)}
html body .an-pd__specs-note{margin:12px 0 0;font-size:14px;font-weight:700;line-height:1.7!important;color:var(--pd-soft)}
html body .an-pd__specs-note a{color:var(--pd-wa);font-weight:900;text-decoration:underline}

/* ANDALUS_PRODUCT_SEO_FIELDS_V1: «عن الموديل» + the questions */
.an-pd__about{margin-top:28px;padding:20px;border:1px solid var(--pd-line);border-radius:20px;background:#fff}
html body .an-pd__about h2{margin:0 0 10px;font-size:22px;font-weight:900;line-height:1.3!important;color:var(--pd-ink)}
html body .an-pd__about-text{margin:0;font-size:15.5px;font-weight:600;line-height:1.85!important;color:var(--pd-ink)}
.an-pd__faq{margin-top:14px;display:grid;gap:8px}
.an-pd__faq-item{border:1px solid var(--pd-line);border-radius:14px;background:#fbf7f3;padding:0 14px}
html body .an-pd__faq-item summary{cursor:pointer;list-style:none;padding:12px 0;font-size:15.5px;font-weight:900;color:var(--pd-brand);display:flex;align-items:center;gap:8px}
html body .an-pd__faq-item summary::-webkit-details-marker{display:none}
html body .an-pd__faq-item summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--pd-brand);color:#fff;font-size:16px;flex:0 0 auto}
html body .an-pd__faq-item[open] summary::before{content:"−"}
html body .an-pd__faq-item p{margin:0;padding:0 0 14px;font-size:15px;font-weight:600;line-height:1.8!important;color:var(--pd-ink)}

/* Showroom — ANDALUS_SHOWROOM_MAP_V1 (أ. محمد 4 Nov 2026): clear text + the Google map in the page */
.an-pd__visit{
  margin-top:28px;padding:18px;border-radius:20px;background:#2b1b16;color:#fff;display:grid;gap:16px;
}
.an-pd__visit-info{display:grid;gap:12px;min-width:0}
html body .an-pd__visit-kick{display:inline-flex;width:max-content;padding:4px 10px;border-radius:999px;background:rgba(232,190,140,.16);color:#f3c98f;font-size:13px;font-weight:900;line-height:1.4!important}
html body .an-pd__visit h2{margin:0;font-size:22px;font-weight:900;line-height:1.35!important;color:#fff}
.an-pd__visit-facts{list-style:none;margin:0;padding:0;display:grid;gap:8px}
html body .an-pd__visit-facts li{display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.07);font-size:15.5px;font-weight:800;line-height:1.6!important;color:#fff}
.an-pd__visit-facts svg{flex:0 0 20px;width:20px;height:20px;margin-top:2px;fill:#f3c98f}
.an-pd__visit-map{position:relative;min-width:0;border-radius:16px;overflow:hidden;background:#3a2720;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.an-pd__map{display:block;width:100%;height:230px;border:0}
.an-pd__visit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.an-pd .an-pd__btn{
  display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 14px;border-radius:14px;
  background:#fff;color:var(--pd-ink)!important;font-size:15px;font-weight:900;text-decoration:none!important;text-align:center;
}
.an-pd .an-pd__btn--ghost{background:transparent;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}

/* Other models */
.an-pd__more{margin-top:32px}
.an-pd__more-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
html body .an-pd__more h2{margin:0;font-size:22px;font-weight:900;line-height:1.3!important;color:var(--pd-ink)}
.an-pd__more-head a{flex:none;font-size:15px;font-weight:800;color:var(--pd-brand)!important;text-decoration:none;white-space:nowrap}
.an-pd__more-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.an-pd .an-pd__card{
  display:grid;align-content:start;gap:3px;padding:0 0 12px;border:1px solid var(--pd-line);border-radius:16px;background:#fff;
  overflow:hidden;text-decoration:none!important;color:var(--pd-ink)!important;transition:box-shadow .15s ease,transform .15s ease;
}
.an-pd .an-pd__card:hover{box-shadow:0 12px 26px rgba(61,35,24,.1);transform:translateY(-2px)}
.an-pd__card-img{display:block;aspect-ratio:4/3;background:#f3ece4;margin-bottom:6px}
.an-pd__card-img img{display:block;width:100%;height:100%;object-fit:cover}
.an-pd__card-title{padding:0 10px;font-size:15px;font-weight:900;line-height:1.35}
.an-pd__card-price{padding:0 10px;font-size:17px;font-weight:900}
.an-pd__card-from{padding:0 10px;font-size:13px;font-weight:800;color:var(--pd-wa)}
.an-pd .an-pd__btn--wide{margin-top:14px;background:#fff;box-shadow:inset 0 0 0 1px var(--pd-line)}

/* Bottom bar (phones): price + WhatsApp, shown once the main button scrolls away. */
.an-pd-bar{
  position:fixed;inset-inline:0;bottom:0;z-index:60;display:flex;align-items:center;gap:12px;
  padding:10px 16px calc(env(safe-area-inset-bottom,0px) + 10px);background:#fff;border-top:1px solid #eadbd0;
  box-shadow:0 -10px 24px rgba(35,23,19,.08);transform:translateY(110%);transition:transform .2s ease;direction:rtl;
}
.an-pd-bar.is-on{transform:none}
.an-pd-bar__text{flex:1 1 auto;min-width:0;display:grid;line-height:1.3}
.an-pd-bar__text strong{font-size:17px;font-weight:900;color:#231713}
.an-pd-bar__text span{font-size:13px;font-weight:800;color:#128c4a}
.an-pd-bar__wa{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border-radius:14px;
  background:#128c4a;color:#fff!important;font-size:15px;font-weight:900;text-decoration:none!important;
}
.an-pd-body{padding-bottom:76px}
/* ANDALUS_MODEL_PERSUADE_V1 (م6-هـ): the quiet second button in the bar; narrow phones = the price on its own line */
.an-pd-bar__visit{flex:0 0 auto;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 12px;border:1.5px solid #d9c3b1;border-radius:14px;background:#fff;color:#6f442f!important;font-size:14px;font-weight:900;text-decoration:none!important;white-space:nowrap}
@media (max-width:560px){.an-pd-bar{flex-wrap:wrap;gap:6px 8px;padding-top:8px}.an-pd-bar__text{flex:1 0 100%;display:flex;align-items:baseline;gap:8px}.an-pd-bar__wa,.an-pd-bar__visit{flex:1 1 0;justify-content:center;gap:6px;padding:0 6px;font-size:13.5px;white-space:nowrap}.an-pd-bar__wa svg{width:18px;height:18px;flex-basis:18px}.an-pd-body{padding-bottom:128px}}

/* ===== ANDALUS_PRODUCT_PAGE_V3 (owner, 23 Oct 2026): full screen width, installment table,
   pieces with icons, cash payment methods. Phone order: photos, price, installments, pieces. ===== */
.an-pd__top{grid-template-areas:"media" "info" "inst" "specs"}
.an-pd__media{grid-area:media}.an-pd__info{grid-area:info}.an-pd__inst{grid-area:inst}.an-pd__top>.an-pd__specs{grid-area:specs;margin-top:0}
.an-pd__media,.an-pd__info,.an-pd__inst,.an-pd__specs{min-width:0}

/* Pay methods (includes/andalus-pay-methods.php) */
.an-pd .an-pm{margin-top:12px;padding:14px;border:1px solid var(--pd-line);border-radius:16px;background:#fff}
html body .an-pm__title{margin:0 0 10px;font-size:16px;font-weight:900;line-height:1.4!important;color:var(--pd-ink)}
.an-pm__groups{display:grid;gap:10px}
.an-pm__grp{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.an-pm__lbl{flex:0 0 112px;font-size:13px;font-weight:800;color:var(--pd-soft);line-height:1.4}
html body .an-pm__note{margin:10px 0 0;font-size:13px;font-weight:700;line-height:1.6!important;color:var(--pd-soft)}

/* Installment table */
.an-pd__inst{padding:18px;border:1px solid var(--pd-line);border-radius:20px;background:#fff}
html body .an-pd__inst h2{margin:0 0 4px;font-size:22px;font-weight:900;line-height:1.3!important;color:var(--pd-ink)}
html body .an-pd__inst-head p{margin:0 0 12px;font-size:14px;font-weight:700;line-height:1.6!important;color:var(--pd-soft)}
.an-pd__inst-table{display:grid;gap:8px}
.an-pd__inst-row{display:grid;grid-template-columns:64px repeat(var(--cos,2),minmax(0,1fr));gap:8px;align-items:stretch}
.an-pd__inst-row--head{align-items:end}
.an-pd__inst-term{display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:13px;font-weight:800;color:var(--pd-soft);line-height:1.2;text-align:center}
.an-pd__inst-term b{font-size:22px;font-weight:900;color:var(--pd-ink)}
.an-pd__inst-row--head .an-pd__inst-term{font-size:13px}
.an-pd__inst-co{display:flex;align-items:center;justify-content:center;gap:6px;min-height:32px;font-size:14px;font-weight:900;color:var(--pd-ink)}
.an-pd__inst-co .an-fp-logo{height:22px;width:auto;max-width:74px;object-fit:contain}
.an-pd__inst-co .an-fp-logo--tile{border-radius:5px 2px 5px 2px}
.an-pd .an-pd__inst-cell{position:relative;display:grid;gap:2px;align-content:center;padding:10px 10px 9px;border:1px solid var(--pd-line);border-radius:14px;
  background:#fffaf6;color:var(--pd-ink)!important;text-decoration:none!important;text-align:center;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.an-pd .an-pd__inst-cell:hover,.an-pd .an-pd__inst-cell:focus-visible{border-color:var(--pd-wa);background:#f1faf4;box-shadow:0 8px 18px rgba(18,140,74,.12);outline:none}
.an-pd__inst-cell strong{font-size:20px;font-weight:900;line-height:1.2;white-space:nowrap}
.an-pd__inst-cell strong small{font-size:13px;font-weight:700;color:var(--pd-soft)}
.an-pd__inst-cell span{font-size:13px;font-weight:700;line-height:1.35;color:var(--pd-soft)}
.an-pd__inst-cell .an-pd__inst-total{color:#9a877b}
.an-pd .an-pd__inst-cell.is-low{border-color:var(--pd-wa);background:#effaf3;box-shadow:inset 0 0 0 1px var(--pd-wa)}
.an-pd__inst-cell.is-low strong{color:#0f7a40}
.an-pd__inst-cell em{position:absolute;top:-9px;inset-inline-start:50%;transform:translateX(50%);padding:1px 8px;border-radius:999px;background:var(--pd-wa);
  color:#fff;font-style:normal;font-size:13px;font-weight:800;line-height:1.4;white-space:nowrap}
.an-pd__inst-cell--na{display:flex;align-items:center;justify-content:center;color:#c9b8ab;background:#faf7f4}
html body .an-pd__inst-steps{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html body .an-pd__inst-steps li{margin:0;display:flex;align-items:center;gap:6px;padding:8px;border-radius:12px;background:#f7f1eb;font-size:13px;font-weight:800;line-height:1.35!important;color:var(--pd-ink)}
.an-pd__inst-steps .an-pi{width:18px;height:18px;flex:0 0 18px;color:var(--pd-wa);stroke-width:2.4}
.an-pd__inst-partners{margin-top:14px;padding-top:12px;border-top:1px dashed var(--pd-line)}
.an-pd__inst-partners>span{display:block;margin-bottom:8px;font-size:13px;font-weight:800;color:var(--pd-soft)}
.an-pd__inst-logos{display:flex;flex-wrap:wrap;gap:6px}
html body .an-pd__inst-partners p{margin:10px 0 0;font-size:13px;font-weight:700;line-height:1.6!important;color:var(--pd-soft)}

/* Pieces with icons */
html body .an-pd__parts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:8px}
html body .an-pd__part{margin:0;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--pd-line);border-radius:16px;background:#fffaf6;line-height:1.45!important}
.an-pd__ic{position:relative;flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#f3e7dc;color:var(--pd-brand)}
.an-pd__ic .an-pi{width:28px;height:28px}
.an-pd__cnt{position:absolute;top:-6px;inset-inline-end:-6px;min-width:22px;height:22px;padding:0 5px;display:grid;place-items:center;border-radius:999px;
  background:var(--pd-brand);color:#fff;font-style:normal;font-size:13px;font-weight:900;line-height:1;box-shadow:0 0 0 2px #fff}
.an-pd__part-txt{min-width:0;display:grid;gap:1px}
.an-pd__part-txt b{font-size:16px;font-weight:900;color:var(--pd-ink)}
.an-pd__part-txt span{font-size:14px;font-weight:700;color:var(--pd-soft)}
.an-pd__mat{display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:12px;border-radius:16px;background:#2b1b16;color:#fff}
.an-pd__mat .an-pd__ic{background:rgba(255,255,255,.12);color:#f0c79a}
.an-pd__mat div{display:grid;gap:1px;line-height:1.5}
.an-pd__mat b{font-size:13px;font-weight:800;color:#f0ddd0}
.an-pd__mat div span{font-size:16px;font-weight:900;color:#fff}
.an-pd__extras{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}
.an-pd__extras b{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:900;color:#0f7a40}
.an-pd__extras .an-pi{width:20px;height:20px}
.an-pd__extras span{padding:5px 10px;border-radius:999px;background:#effaf3;border:1px solid #cfe9d9;font-size:13px;font-weight:800;color:#0f5f33}
html body .an-pd__specs-extra{display:flex;align-items:center;gap:6px}
.an-pd__specs-extra .an-pi{width:20px;height:20px;flex:0 0 20px}

@media (max-width:380px){.an-pm__lbl{flex-basis:100%}}

@media (min-width:700px){
  .an-pd .an-pd__gal.anp-gal{margin:0;--anp-ratio:4/3;--anp-radius:18px}
  .an-pd__more-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .an-pd__more-grid>.an-pd__card:nth-child(n+5){display:none}
  .an-pd__visit{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:stretch;gap:22px;padding:24px}
  .an-pd__visit-info{align-content:center}
  .an-pd__map{height:100%;min-height:280px}
  .an-pd .an-pd__btn{padding:0 22px}
  .an-pd .an-pd__btn--wide{display:none}
}
/* ANDALUS_STAGES_RESPONSIVE_V2 (owner 28 Oct 2026: «صفحة المنتجات… على الايباد وحشة جدا»):
   iPad portrait gets photos and price side by side instead of one tall photo with the price far below */
@media (min-width:760px) and (max-width:999px){
  .an-pd{padding-top:16px}
  .an-pd__top{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"media info" "inst inst" "specs specs";gap:20px 22px;align-items:start}
  html body .an-pd__title{font-size:26px;line-height:1.35}
  .an-pd .an-pd__thumb{flex-basis:60px;width:60px;height:60px}
}
@media (min-width:1000px){
  .an-pd{padding-top:20px}
  .an-pd__top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"media info" "specs inst";gap:28px 32px;align-items:start}
  html body .an-pd__title{font-size:36px}
  .an-pd .an-cp__cash strong{font-size:36px}
  .an-pd .an-pd__thumb{flex-basis:72px;width:72px;height:72px}
  .an-pd-bar{display:none}
  .an-pd-body{padding-bottom:0}
}
@media (prefers-reduced-motion:reduce){
  .an-pd-bar,.an-pd .an-pd__card,.an-pd .an-pd__thumb{transition:none}
}

/* Wide screens: three columns — photos | price + buttons + payment | installment table; pieces below. */
@media (min-width:1500px){
  .an-pd__top{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,.95fr);grid-template-areas:"media info inst" "specs specs inst";gap:28px}
  .an-pd .an-pd__gal.anp-gal{--anp-ratio:4/3}
  .an-pd__more-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .an-pd__more-grid>.an-pd__card:nth-child(n+5){display:grid}
  html body .an-pd__parts{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
}
@media (min-width:2200px){
  html body .an-pd__title{font-size:40px}
}

/* ANDALUS_SPEC_CHIPS_V1 (owner, 23 Oct 2026): «4 كراسي: ترابيزة 120×80 أو …» as small chips sized to their text. */
.an-pd__chips{display:grid;gap:8px;margin-top:12px}
.an-pd__chips-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.an-pd__chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:10px;background:#fff;border:1px solid #dcc8b8;
  font-size:14px;font-weight:800;line-height:1.3;color:var(--pd-ink);white-space:nowrap}
.an-pd__chip--lbl{background:var(--pd-brand);border-color:var(--pd-brand);color:#fff}
.an-pd__chip--lbl .an-pi{width:18px;height:18px;flex:0 0 18px;color:#f6dcc6}
.an-pd__chip-or{font-size:13px;font-weight:700;color:var(--pd-soft)}
@media (max-width:699px){
  .an-pd__more-grid>.an-pd__card:nth-child(n+5){display:none}
  html body .an-pd__inst-steps{grid-template-columns:1fr}
  .an-pd__inst-cell strong{font-size:18px}
}

/* ANDALUS_PLAN_OPENS_CALC_V1 (أ. محمد 3 Nov 2026, UX plan م1 — was ANDALUS_INSTALLMENT_PICK_V1): a tap on a cell opens the
   calculator sheet on that plan (months + company) — the cell is a real button now, no picked look */
.an-pd .an-pd__inst-cell{cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.an-pd .an-pd__inst-cell:active{transform:scale(.98)}
@media (hover:hover){.an-pd .an-pd__inst-cell:hover{border-color:#64231f}}
@media (prefers-reduced-motion:reduce){.an-pd .an-pd__inst-cell{transition:none}}

/* ANDALUS_PD_SPECS_UP_V1 (owner 29 Oct 2026): «الخامة والمكونات» sit right under the price buttons (inside the info column),
   and the cash payment block «ادفع كاش بالطريقة اللي تريحك» moved down to where the pieces used to be. */
.an-pd__top{grid-template-areas:"media" "info" "inst" "pay"}
.an-pd__paybox{grid-area:pay;min-width:0}
.an-pd .an-pd__paybox .an-pm{margin-top:0}
.an-pd__info>.an-pd__specs{margin-top:14px;padding:16px}
html body .an-pd__info>.an-pd__specs h2{font-size:19px}
/* iPad and up: the info column is taller now, so it spans two rows and the installment table fills the space under the photos. */
@media (min-width:760px) and (max-width:999px){.an-pd__top{grid-template-areas:"media info" "inst info" "pay pay"}}
@media (min-width:1000px){.an-pd__top{grid-template-areas:"media info" "inst info" "pay pay"}}
@media (min-width:1500px){.an-pd__top{grid-template-areas:"media info inst" "pay info inst"}}
@media (min-width:760px){.an-pd__top{grid-template-rows:auto 1fr}.an-pd__paybox,.an-pd__inst{align-self:start}}
@media (min-width:760px) and (max-width:1499px){.an-pd__top{grid-template-rows:auto 1fr auto}}

/* ANDALUS_GALLERY_PHOTO_RATIO_V1 (أ. محمد 7 Nov 2026 «المنتجات … بتكون ظاهرة بلوري»): the gallery box takes the cover photo's
   shape (an_photo_ratio(), 4:5…16:9) instead of a square on the phone — a wide room photo no longer sits in a big blurred
   band. Bigger screens keep 4:3 unless the photo is wider (then its own shape). */
@media (max-width:699px){.an-pd .an-pd__gal.anp-gal[data-anp-ratio]{--anp-ratio:var(--anp-photo-ratio)}}
@media (min-width:700px){.an-pd .an-pd__gal.anp-gal[data-anp-ratio="wide"]{--anp-ratio:var(--anp-photo-ratio)}}

/* ANDALUS_INST_TABLE_FIT_V1 (أ. محمد 8 Nov 2026 «شوف هل في ارقام او كلام بيطلع من برا مكانه»): on a narrow box (phones,
   320–420px, and the iPad half column) the 3-company table pushed «ج/شهر» out of the cell, the logo and the name ran into
   each other and at 320px the whole page scrolled sideways. The table now sizes itself to its own box (container query):
   thinner «المدة» column, logo over the name, the monthly number with «ج/شهر» under it, smaller notes — nothing leaves its cell. */
.an-pd__inst{container-type:inline-size;container-name:pdinst}
.an-pd__inst-cell strong bdi,.an-pd__inst-total{font-variant-numeric:tabular-nums}
@container pdinst (max-width:520px){
  .an-pd__inst-table{gap:7px}
  .an-pd__inst-row{grid-template-columns:clamp(34px,11cqi,52px) repeat(var(--cos,2),minmax(0,1fr));gap:clamp(4px,1.6cqi,8px)}
  .an-pd__inst-term{font-size:12px}
  .an-pd__inst-term b{font-size:clamp(17px,5.6cqi,22px)}
  .an-pd__inst-co{flex-direction:column;gap:3px;min-height:0;font-size:12px;line-height:1.2;text-align:center}
  .an-pd__inst-co .an-fp-logo{height:20px;max-width:100%}
  .an-pd .an-pd__inst-cell{padding:12px clamp(4px,1.6cqi,9px) 9px;text-align:center;justify-items:center;border-radius:12px}
  .an-pd .an-pd__inst-cell strong{display:flex;flex-direction:column;align-items:center;gap:1px;font-size:clamp(15px,5.4cqi,19px);line-height:1.15;white-space:normal}
  .an-pd .an-pd__inst-cell strong bdi{white-space:nowrap}
  .an-pd .an-pd__inst-cell strong small{font-size:11px;line-height:1.2}
  .an-pd .an-pd__inst-cell span{font-size:clamp(10.5px,3.4cqi,12.5px);line-height:1.3;overflow-wrap:anywhere}
  .an-pd__inst-cell em{top:-10px;padding:0 6px;font-size:10.5px;white-space:nowrap}
}
@container pdinst (max-width:270px){
  .an-pd__inst-co .an-fp-logo+b{display:none}
  .an-pd__inst-co .an-fp-logo{height:18px}
}
/* ANDALUS_TEXT_FIT_V2 (الجلسة 4): «أقل قسط» sat on the monthly amount of its cell with the big phone font (phone on its side) — the
   cell keeps room for its badge at any font size. */
.an-pd .an-pd__inst-cell.is-low{padding-top:max(10px,calc(.85em + 4px))}

