/* ==========================================================================
 * آنية — صفحة المنتج المستقلّة (مرجع: aneya-product-mobile-final.html حرفياً)
 * بلا Astra. القيم من tokens.css (محمّل قبله). الفورم والغاليري من Woo مغلّفان.
 * ========================================================================== */

body.aneya-standalone { font-family: var(--font); background: #EDEAE7; color: var(--ink); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; margin: 0; }
.aneya-standalone svg.i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.aneya-standalone svg.f { fill: currentColor; stroke: none; }
.aneya-standalone a { text-decoration: none; color: inherit; }
.aneya-standalone *, .aneya-standalone *::before, .aneya-standalone *::after { box-sizing: border-box; }
/* السمة hidden تُخفي دائماً (تتجاوز أي display: flex/grid صريح) */
body.aneya-standalone [hidden] { display: none !important; }

/* الإطار — على الموبايل عمود كامل، مركزّ لشاشات أكبر */
.aneya-shell { width: 100%; max-width: 1600px; margin: 0 auto; background: var(--surface-page); min-height: 100vh; position: relative; overflow-x: hidden; }

/* ── الهيدر ── */
.a-top { background: var(--surface-card); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.a-logo { font-size: 19px; font-weight: 500; color: var(--plum-600); display: flex; align-items: center; gap: 6px; }
.a-logo .custom-logo-link { display: flex; align-items: center; line-height: 0; }
.a-logo img, .a-logo .custom-logo { max-height: 30px !important; width: auto !important; height: auto !important; display: block; }
.a-icons { display: flex; gap: 16px; color: var(--ink-secondary); align-items: center; }
/* عناصر هيدر الديسكتوب/التابلت — مخفية على الموبايل (يستعمل الدرج) */
.a-dsearch, .a-daccount, .a-dnav { display: none; }
.a-cartwrap { position: relative; display: flex; }
.a-cartcount { position: absolute; top: -6px; left: -8px; background: var(--plum-600); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ── الغاليري (Woo مغلّف) ── */
.a-gal { background: var(--surface-card); padding: 12px 16px 0; position: relative; }
.a-gal .woocommerce-product-gallery { width: 100% !important; margin: 0; float: none; opacity: 1 !important; }
.a-gal .woocommerce-product-gallery__wrapper { margin: 0; }
.a-gal .woocommerce-product-gallery__image { margin: 0; }
.a-gal .woocommerce-product-gallery__image img { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: var(--r-control); display: block; }
.a-gal .flex-viewport { border-radius: var(--r-control); aspect-ratio: 1 / 1; overflow: hidden; } /* 🔴 2026-08-18: قصّ طفرة flexslider العابرة — لحظة التهيئة تصير حاوية الشرائح 800% فيتضخّم البطل؛ تثبيت الحاوية مربّعةً بحجم العمود + قصّ يمنع التضخّم. بعد الاستقرار يضبط smoothHeight ارتفاعاً صريحاً يتجاوز aspect-ratio فلا يتغيّر النهائيّ. */
.a-gal .flex-control-thumbs { display: flex; gap: 6px; margin: 8px 0 0; padding: 0 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.a-gal .flex-control-thumbs::-webkit-scrollbar { display: none; }
.a-gal .flex-control-thumbs li { width: auto; margin: 0; float: none; }
.a-gal .flex-control-thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; border: 1.5px solid transparent; opacity: 1; }
.a-gal .flex-control-thumbs img.flex-active, .a-gal .flex-control-thumbs img:hover { border-color: var(--plum-600); }
.a-gal .woocommerce-product-gallery__trigger { display: none; }
/* قبل تهيئة سلايدر الغاليري (تأجيل JS في LiteSpeed): أظهر الصورة الأولى فقط بدل تكديس كل الصور؛ وحين يعمل flexslider يتولّى العرض */
.a-gal .woocommerce-product-gallery__image:not(:first-child) { display: none; }
.a-gal .flex-viewport .woocommerce-product-gallery__image { display: block; }
.a-tag { position: absolute; top: 20px; right: 24px; z-index: 5; background: rgba(255,255,255,.94); border-radius: 999px; font-size: 11px; padding: 5px 13px; color: var(--plum-800); }

/* ── الملخّص (hero) ── */
.a-hero { background: var(--surface-card); padding: 16px; }
.a-hero h1 { font-size: 21px; font-weight: 500; line-height: 1.4; margin: 0; }
.a-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-secondary); }
.a-stars { display: inline-flex; gap: 1px; }
.a-star { fill: var(--line); }
.a-star.on { fill: var(--warn); }
.a-rlink { color: var(--plum-600); text-decoration: underline; text-underline-offset: 3px; }
.a-promise { background: var(--plum-50); border-radius: var(--r-control); padding: 13px 15px; margin-top: 14px; font-size: 15px; color: var(--plum-800); line-height: 1.65; }

.a-pricerow { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 18px; gap: 12px; }
.a-price { font-size: 27px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.a-price .woocommerce-Price-currencySymbol { font-size: 16px; font-weight: 400; }
.a-price del { color: var(--ink-hint); font-size: 16px; font-weight: 400; margin-left: 6px; }
.a-price ins { text-decoration: none; }
.a-stock { font-size: 12px; color: var(--ok); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.a-stock.oos { color: var(--danger); }

/* الفورm Woo المغلّف: الكمية داخل pricerow، الزر الثانوي بالأسفل */
.a-cart form.cart { margin: 0; }
.a-qtywrap { flex-shrink: 0; }
.a-cart .quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.a-cart .quantity .qty { width: 44px; border: 0; text-align: center; font-size: 15px; padding: 10px 2px; background: var(--surface-card); color: var(--ink); -moz-appearance: textfield; }
.a-cart .quantity .qty::-webkit-outer-spin-button, .a-cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.a-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; padding: 15px; border-radius: var(--r-control); font-size: 16px; font-weight: 500; font-family: var(--font); border: 1px solid transparent; cursor: pointer; line-height: 1.4; }
.a-primary { background: var(--plum-600); color: #fff; margin-top: 16px; }
.a-primary:active { background: var(--plum-800); }
.a-cart .single_add_to_cart_button { display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px; width: 100% !important; box-sizing: border-box !important; padding: 15px !important; margin-top: 8px !important; font-family: var(--font) !important; font-size: 16px !important; font-weight: 500 !important; line-height: 1.4 !important; letter-spacing: 0 !important; min-height: 0 !important; height: auto !important; border: 1px solid var(--plum-200) !important; border-radius: var(--r-control) !important; background: var(--surface-card) !important; color: var(--plum-600) !important; text-shadow: none !important; box-shadow: none !important; float: none !important; }
.a-cart .single_add_to_cart_button:hover { background: var(--plum-50) !important; }
.a-cart .variations { width: 100%; margin: 14px 0 0; }
.a-cart .variations td, .a-cart .variations th { display: block; width: 100%; padding: 0; text-align: right; border: 0; }
.a-cart .variations th.label { font-size: 13px; color: var(--ink-secondary); margin-bottom: 6px; }
.a-cart .variations td.value { margin-bottom: 12px; }
.a-cart .woocommerce-variation-add-to-cart { margin-top: 8px; }
.a-cart .woocommerce-variation-price .price { font-size: 20px; font-weight: 500; margin-bottom: 8px; display: block; }

.a-trust { display: flex; gap: 8px; margin-top: 16px; text-align: center; }
.a-tr { flex: 1; color: var(--plum-600); }
.a-trt { font-size: 11px; color: var(--ink-secondary); line-height: 1.45; margin-top: 6px; }

/* ملاحظة الضمان أسفل شارات الثقة */
.a-warnote { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 11px; background: var(--plum-50); border-radius: var(--r-control); font-size: 12px; color: var(--plum-800); }
.a-warnote .i { color: var(--plum-600); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* الفيديو — واجهة بديلة (تحميل كسول) */
.a-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-card); overflow: hidden; background: var(--plum-900); cursor: pointer; }
.a-vthumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-vthumb-plain { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--plum-800), var(--plum-900)); }
.a-vplay { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--plum-800); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); padding-inline-start: 4px; }
.a-video.playing { cursor: default; }
.a-video iframe, .a-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.a-gap { height: 8px; background: var(--surface-page); }

/* ── الأقسام (مطابقة لـ aneya-product-mobile-final) ── */
.a-sec { padding: 18px 16px; }
.a-sec > h2 { font-size: 18px; font-weight: 500; margin: 0 0 14px; }

/* المزايا: بطاقات بعمود واحد، صندوق أيقونة جانبي */
.a-card { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start; }
.a-cico { background: var(--plum-50); color: var(--plum-600); border-radius: var(--r-control); padding: 9px; flex-shrink: 0; line-height: 0; }
.a-ct { font-size: 15px; font-weight: 500; }
.a-cd { font-size: 13px; color: var(--ink-secondary); line-height: 1.65; margin-top: 4px; }

/* fallback: الوصف الطويل منسّقاً حين لا مزايا */
.a-desc { font-size: 14.5px; line-height: 1.85; color: var(--ink-secondary); }
.a-desc p { margin: 0 0 12px; }
.a-desc p:last-child { margin-bottom: 0; }
.a-desc img { max-width: 100%; height: auto; border-radius: var(--r-control); margin: 6px 0; }
.a-desc ul, .a-desc ol { margin: 0 0 12px; padding-right: 20px; }
.a-desc li { margin-bottom: 6px; }
.a-desc h1, .a-desc h2, .a-desc h3, .a-desc h4 { font-size: 16px; font-weight: 500; color: var(--ink); margin: 14px 0 8px; }
.a-desc a { color: var(--plum-600); text-decoration: underline; }

/* التقييمات: ملخّص أفقي (رقم+نجوم يسار، أشرطة يمين) ثم البطاقات */
.a-rsum { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin-bottom: 10px; }
.a-rtop { display: flex; align-items: center; gap: 18px; }
.a-rbig { font-size: 36px; font-weight: 500; line-height: 1; }
.a-rst { color: var(--warn); font-size: 14px; letter-spacing: 2px; margin-top: 5px; display: flex; }
.a-rcnt { font-size: 12px; color: var(--ink-secondary); margin-top: 3px; }
.a-bars { flex: 1; min-width: 0; }
.a-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.a-bnum { font-size: 11px; color: var(--ink-secondary); width: 9px; }
.a-btrack { flex: 1; height: 5px; background: var(--surface-page); border-radius: 999px; overflow: hidden; }
.a-bfill { height: 100%; background: var(--warn); border-radius: 999px; }
.a-bcnt { font-size: 11px; color: var(--ink-hint); width: 14px; text-align: left; }
.a-rev { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; margin-bottom: 8px; }
.a-rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.a-rav { width: 34px; height: 34px; background: var(--plum-50); border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--plum-800); flex-shrink: 0; }
.a-rnm { font-size: 14px; line-height: 1.3; }
.a-rvf { font-size: 11px; color: var(--ok); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.a-rdt { font-size: 11px; color: var(--ink-hint); margin-right: auto; flex-shrink: 0; }
.a-rstars { color: var(--warn); font-size: 12px; letter-spacing: 1px; display: flex; }
.a-rtxt { font-size: 14px; line-height: 1.7; margin-top: 7px; }
.a-askbox { background: var(--plum-50); border-radius: var(--r-card); padding: 16px; text-align: center; margin-top: 4px; }
.a-askt { font-size: 14px; color: var(--ink-secondary); margin-bottom: 11px; }
.a-askbtn { background: var(--plum-600); color: #fff; border: none; font-family: var(--font); font-size: 14px; font-weight: 500; padding: 11px 24px; border-radius: var(--r-control); cursor: pointer; }

/* الطقم (bundle) */
.a-bundle { background: var(--surface-card); border: 1px solid var(--plum-200); border-radius: var(--r-card); padding: 14px; }
.a-bhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a-bht { font-size: 15px; font-weight: 500; }
.a-bsave { background: var(--plum-50); color: var(--plum-800); font-size: 11px; padding: 4px 11px; border-radius: 999px; }
.a-brow { display: flex; align-items: center; gap: 10px; }
.a-bimg { width: 52px; height: 52px; background: var(--plum-50); border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.a-bimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-bnm { font-size: 13px; line-height: 1.4; }
.a-bplus { color: var(--ink-hint); display: flex; }
.a-btot { display: flex; align-items: baseline; gap: 9px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.a-bnew { font-size: 19px; font-weight: 500; }
.a-bold { text-decoration: line-through; color: var(--ink-hint); font-size: 14px; font-weight: 400; }
.a-bbtn { margin: 13px 0 0; }

/* ── المواصفات ── */
.a-specs { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.a-spec { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.a-spec:last-child { border-bottom: 0; }
.a-spec:nth-child(even) { background: var(--surface-page); }
.a-spn { color: var(--ink-secondary); flex-shrink: 0; }
.a-spv { color: var(--ink); font-weight: 500; text-align: left; }

/* ── الهدايا المرفقة ── */
.a-gifts { display: flex; flex-direction: column; gap: 8px; }
.a-gift { display: flex; align-items: center; gap: 10px; background: var(--plum-50); border-radius: var(--r-control); padding: 11px 13px; font-size: 13.5px; color: var(--plum-800); line-height: 1.5; }
.a-gico { color: var(--plum-600); display: flex; flex-shrink: 0; }

/* الأسئلة الشائعة: أكورديون */
.a-faq { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 6px; overflow: hidden; }
.a-fq { padding: 13px 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; gap: 10px; }
.a-fi { color: var(--ink-hint); flex-shrink: 0; transition: transform .2s; display: flex; }
.a-faq.open .a-fi { transform: rotate(180deg); }
.a-fa { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.a-faq.open .a-fa { max-height: 240px; }
.a-fatext { padding: 0 14px 14px; font-size: 13.5px; color: var(--ink-secondary); line-height: 1.7; }

/* ── كمّل مطبخك (related) ── */
.a-rel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-rc { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px; display: block; color: var(--ink); }
.a-rimg { aspect-ratio: 1/1; background: var(--plum-50); border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.a-rimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-rn { font-size: 13px; line-height: 1.4; }
.a-rp { font-size: 14px; font-weight: 500; margin-top: 4px; color: var(--ink); }
.a-rp .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 400; }

/* ── الشريط اللاصق ── */
.a-stick { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); width: 100%; max-width: 1600px; background: var(--surface-card); border-top: 1px solid var(--line); padding: 11px 16px; display: flex; align-items: center; gap: 12px; transition: transform .25s ease; z-index: 30; }
.a-stick.on { transform: translateX(-50%) translateY(0); }
.a-sp { flex: 1; font-size: 17px; font-weight: 500; }
.a-sp del { display: none; }
.a-sb { background: var(--plum-600); color: #fff; padding: 12px 24px; border-radius: var(--r-control); font-size: 15px; font-weight: 500; border: none; font-family: var(--font); cursor: pointer; }

/* ── الفوتر ── */
.a-foot { background: var(--plum-900); color: #fff; padding: 26px 16px 16px; margin-top: 8px; }
.a-foot-brand { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.a-foot-desc { font-size: 13px; line-height: 1.75; opacity: .72; margin-bottom: 20px; }
.a-foot-wa { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--ok); color: #fff; font-size: 14.5px; font-weight: 500; padding: 13px; border-radius: var(--r-control); margin-bottom: 22px; }
.a-foot-cols { display: flex; gap: 16px; margin-bottom: 20px; }
.a-foot-col { flex: 1; }
.a-foot-h { font-size: 13px; font-weight: 500; margin-bottom: 9px; opacity: .55; }
.a-foot-l { font-size: 13.5px; line-height: 2.1; opacity: .85; display: block; }
.a-foot-soc { display: flex; gap: 18px; justify-content: center; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.11); opacity: .85; }
.a-foot-pay { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; opacity: .6; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.11); }
.a-foot-cr { font-size: 11.5px; opacity: .45; text-align: center; padding-top: 14px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) { .a-stick { transition: none; } }

/* نخفي كمية فورم Woo (البسيط والمتغيّر) — نستخدم ستيبرنا في pricerow */
.a-cart .quantity { display: none !important; }
.a-cart .woocommerce-variation-add-to-cart .quantity { display: none !important; }

/* ستيبر الكمية (بديل عن .quantity كي لا يخفيه القاعدة أعلاه بعد نقله داخل الفورم) */
.a-qbox { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.a-qbox .a-qb { padding: 10px 14px; cursor: pointer; user-select: none; color: var(--ink-secondary); font-size: 15px; line-height: 1; }
.a-qbox .a-qb:active { background: var(--plum-50); }
.a-qbox .a-qv { min-width: 26px; text-align: center; font-size: 15px; }

/* ══════════════════════════════════════════════════════════════════════════
 * المنتج المتغيّر — إعادة ترتيب فورم التنويعات ليطابق البسيط (منطق التنويعات كما هو)
 * الترتيب: خيارات (عيّنات) → سعر+كمية → توفّر → «اطلبه الآن» → «أضف للسلة»
 * ══════════════════════════════════════════════════════════════════════════ */
/* منع وميض إعادة الترتيب: نُخفي منطقة الشراء حتى ينتهي JS */
body.aneya-var .a-pricerow, body.aneya-var #a-buynow, body.aneya-var .a-cart { visibility: hidden; }
body.aneya-var.aneya-ready .a-pricerow, body.aneya-var.aneya-ready #a-buynow, body.aneya-var.aneya-ready .a-cart { visibility: visible; }

.a-cart form.a-vform { display: flex; flex-direction: column; margin: 0; }
.a-cart form.a-vform > .variations { order: 1; margin: 14px 0 0; }
.a-cart form.a-vform > .a-pricerow { order: 2; margin-top: 16px; }
.a-cart form.a-vform > #a-buynow { order: 3; margin-top: 16px; }
.a-cart form.a-vform > .single_variation_wrap { order: 4; margin-top: 8px; }

/* سعر/توفّر واحد فقط: نُخفي نسخة Woo (نحدّث .a-price/.a-stock بالـJS من found_variation) */
.a-cart .woocommerce-variation-price, .a-cart .woocommerce-variation-availability, .a-cart .woocommerce-variation-description { display: none !important; }
/* رابط «إزالة» (reset) مخفي */
.a-cart .reset_variations, .a-cart .reset_variations_alert { display: none !important; }
/* زرّ الإضافة معطّل قبل اختيار التنويعة */
.a-cart .single_add_to_cart_button.disabled, .a-cart .single_add_to_cart_button.wc-variation-selection-needed { opacity: .5; }
/* صفّ التنويعة (label + عيّنات) */
.a-cart .variations th.label { font-size: 13px; color: var(--ink-secondary); margin: 0 0 8px; padding: 0; display: block; text-align: right; font-weight: 400; }
.a-cart .variations td.value { padding: 0; margin: 0; display: block; text-align: right; }

/* ── عيّنات cfvsw بهويتنا: حدّ رفيع، 8px، والمختار بإطار بنفسجي (تجاوز البرتقالي #f5a623) ── */
body.aneya-standalone .cfvsw-swatches-container, body.aneya-standalone .cfvsw-product-container {
	--cfvsw-swatches-border-color: var(--plum-600) !important;
	--cfvsw-swatches-border-color-hover: var(--plum-200) !important;
	--cfvsw-swatches-border-width: 2px !important;
	display: flex; flex-wrap: wrap; gap: 8px; margin: 0;
}
body.aneya-standalone .cfvsw-swatches-option { border-radius: 8px !important; min-width: 40px !important; min-height: 40px !important; }
body.aneya-standalone .cfvsw-swatch-inner { border-radius: 7px !important; border: 1px solid var(--line) !important; }

/* ── عيّنات نصية (شكل/عدد): شرائح متسقة — ارتفاع موحّد + حشو متساوٍ، عرض يلائم النص ── */
body.aneya-standalone .cfvsw-label-option { min-width: 56px !important; min-height: 40px !important; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: 8px !important; font-size: 13px !important; }
body.aneya-standalone .cfvsw-label-option .cfvsw-swatch-inner { border: 0 !important; width: 100% !important; height: 100% !important; padding: 8px 14px !important; color: var(--ink); }
body.aneya-standalone .cfvsw-label-option.cfvsw-selected-swatch { border-color: var(--plum-600) !important; }

/* ── المعطّل/نافد المخزون: باهت + شطب هادئ — لا ✕ حمراء (تجاوز dashicon f335) ── */
body.aneya-standalone .cfvsw-swatches-blur-cross::before, body.aneya-standalone .cfvsw-swatches-blur-cross-disable::before,
body.aneya-standalone .cfvsw-swatches-hide-disable::before, body.aneya-standalone .cfvsw-swatches-blur::before,
body.aneya-standalone .cfvsw-swatches-blur-disable::before { content: none !important; background: none !important; }
body.aneya-standalone .cfvsw-swatches-out-of-stock, body.aneya-standalone .cfvsw-swatches-disabled,
body.aneya-standalone .cfvsw-swatches-option[class*="blur-cross"] { opacity: .45 !important; }
body.aneya-standalone .cfvsw-swatches-out-of-stock .cfvsw-swatch-inner, body.aneya-standalone .cfvsw-swatches-disabled .cfvsw-swatch-inner,
body.aneya-standalone .cfvsw-swatches-option[class*="blur-cross"] .cfvsw-swatch-inner { text-decoration: line-through !important; text-decoration-color: var(--ink-hint) !important; }

/* ── عنوان الخيار (الشكل/العدد) فوق صفّ العيّنات بمسافة منتظمة (تجاوز body.cfvsw-label-inline) ── */
body.aneya-standalone .a-cart .variations, body.aneya-standalone .a-cart .variations tbody { display: block; width: 100%; }
body.aneya-standalone .a-cart .variations tr { display: block; margin-bottom: 16px; }
body.aneya-standalone .a-cart .variations tr:last-child { margin-bottom: 0; }
body.aneya-standalone .a-cart .variations th.label { display: block; width: auto; text-align: right; margin: 0 0 8px; padding: 0; font-size: 13px; color: var(--ink-secondary); font-weight: 400; }
body.aneya-standalone .a-cart .variations th.label label { font-weight: 400; margin: 0; }
body.aneya-standalone .a-cart .variations td.value { display: block; width: auto; padding: 0; }

/* ══════ الطلب 1: زر «أضف للسلة» — أيقونة سلة + ارتفاع مطابق لـ«اطلبه الآن» ══════ */
.a-cart .single_add_to_cart_button { display: flex !important; align-items: center; justify-content: center; gap: 8px; line-height: 1.4; }
.a-cart .single_add_to_cart_button::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2721%27%20r%3D%271%27%2F%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2721%27%20r%3D%271%27%2F%3E%3Cpath%20d%3D%27M1%201h4l2.68%2013.39a2%202%200%200%200%202%201.61h9.72a2%202%200%200%200%202-1.61L23%206H6%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2721%27%20r%3D%271%27%2F%3E%3Ccircle%20cx%3D%2720%27%20cy%3D%2721%27%20r%3D%271%27%2F%3E%3Cpath%20d%3D%27M1%201h4l2.68%2013.39a2%202%200%200%200%202%201.61h9.72a2%202%200%200%200%202-1.61L23%206H6%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; }
.a-cart .single_add_to_cart_button.added { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }

/* ══════ الطلب 2: صندوق «اكتب تقييمك» ══════ */
.a-askbox { background: var(--plum-50); border-radius: var(--r-card); padding: 16px; text-align: center; margin-top: 4px; }
.a-askt { font-size: 15px; font-weight: 500; color: var(--plum-800); }
.a-askd { font-size: 13px; color: var(--plum-800); opacity: .85; line-height: 1.6; margin: 6px 0 12px; }
.a-askstars { font-size: 26px; letter-spacing: 6px; color: var(--plum-200); margin-bottom: 12px; display: block; }
.a-askstars span { cursor: pointer; transition: color .12s; }
.a-askstars span.on { color: var(--warn); }
.a-askbtn { background: var(--plum-600); color: #fff; border: none; font-family: var(--font); font-size: 14px; font-weight: 500; padding: 11px 24px; border-radius: var(--r-control); cursor: pointer; }
.a-revform { margin-top: 14px; display: none; text-align: right; }
.a-revform.on { display: block; }
.a-revin { width: 100%; border: 1px solid var(--line); border-radius: var(--r-control); padding: 11px 13px; font-family: var(--font); font-size: 14px; margin-bottom: 9px; background: var(--surface-card); color: var(--ink); }
textarea.a-revin { min-height: 84px; resize: vertical; }

/* ══════ الطلب 3: اللوحة السفلية للطلب السريع (واجهة للـcheckout القياسي) ══════ */
.a-veil { position: fixed; inset: 0; background: rgba(34,32,31,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.a-veil.on { opacity: 1; pointer-events: auto; }
.a-sheet { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); width: 100%; max-width: 480px; background: var(--surface-card); border-radius: 18px 18px 0 0; transition: transform .3s cubic-bezier(.32,.72,0,1); z-index: 50; max-height: 92vh; overflow-y: auto; }
.a-sheet.on { transform: translateX(-50%) translateY(0); }
.a-grab { width: 38px; height: 4px; background: var(--line); border-radius: 999px; margin: 10px auto 0; }
.a-sh { padding: 14px 18px 22px; }
.a-shead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: sticky; top: 0; background: var(--surface-card); padding-top: 4px; z-index: 2; }
.a-sttl { font-size: 18px; font-weight: 500; }
.a-sx { color: var(--ink-hint); cursor: pointer; padding: 4px; display: flex; background: none; border: 0; }
/* ملخّص السلة داخل اللوحة — بطاقة مفردة أو كومة مائلة (مرجع: aneya-cart-stack-v2.html) */
.a-summ { margin-bottom: 16px; }
.a-single .a-card, .a-stack .a-card { background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--r-control); padding: 11px 12px; display: flex; align-items: center; gap: 11px; }
.a-cimg { width: 46px; height: 46px; background: var(--plum-50); border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.a-cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-cinfo { min-width: 0; flex: 1; }
.a-cname { font-size: 13.5px; line-height: 1.4; } /* بلا nowrap/ellipsis/clamp — العربي يلتف بلا قصّ الحروف */
.a-cqty { font-size: 12px; color: var(--ink-secondary); margin-top: 2px; }
.a-cprice { font-size: 15px; font-weight: 500; flex-shrink: 0; white-space: nowrap; }
/* كومة (منتجان فأكثر) */
.a-stackzone { cursor: pointer; user-select: none; }
.a-stack { position: relative; transition: height .42s cubic-bezier(.32,.72,0,1); padding: 0 3px; }
.a-stack .a-card { position: absolute; right: 0; left: 0; overflow: visible; transition: transform .42s cubic-bezier(.32,.72,0,1), opacity .34s ease, box-shadow .3s; will-change: transform; }
.a-stack.fold .a-card { box-shadow: none; }
.a-stack.fold .c1 { transform: rotate(-.35deg); z-index: 3; background: var(--surface-card); box-shadow: 0 2px 12px rgba(34,32,31,.08); }
.a-stack.fold .c2 { transform: translateY(25px) rotate(-1.4deg) scale(.94); z-index: 2; opacity: .9; }
.a-stack.fold .c3 { transform: translateY(48px) rotate(1.8deg) scale(.885); z-index: 1; opacity: .75; }
.a-stack.fold .chide { transform: translateY(48px) scale(.885); z-index: 0; opacity: 0; }
.a-stack.open { overflow-y: auto; }
.a-stack.open .a-card { position: relative; transform: none !important; opacity: 1 !important; margin-bottom: 7px; box-shadow: none; background: var(--surface-page); }
.a-sbar { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 9px 12px; background: var(--plum-50); border-radius: var(--r-control); }
.a-sbcount { font-size: 12.5px; color: var(--plum-800); display: flex; align-items: center; gap: 7px; }
.a-sbchev { color: var(--plum-600); display: flex; transition: transform .38s cubic-bezier(.32,.72,0,1); }
.a-sbar.open-bar .a-sbchev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .a-stack, .a-stack .a-card, .a-sbchev { transition: none; } }
.a-fine { font-size: 11px; color: var(--ink-hint); text-align: center; margin-top: 12px; line-height: 1.6; }

/* Toast — يظهر فقط عند .on (كان يظهر فارغاً ككبسولة داكنة قرب الحافة) */
.a-toast { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--plum-900); color: #fff; font-size: 13px; padding: 11px 20px; border-radius: 999px; transition: transform .28s, opacity .28s, visibility .28s; z-index: 60; pointer-events: none; opacity: 0; visibility: hidden; }
.a-toast.on { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.a-toast:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .a-sheet, .a-veil, .a-toast { transition: none; } }

/* ══════ اللوحة — فورمنا الخاصّ (form.checkout) بنمط النموذج (لا تضمين، لا iframe) ══════ */
.a-checkout { margin: 0; }
.a-checkout .woocommerce-billing-fields, .a-checkout .woocommerce-billing-fields__field-wrapper { display: flex; flex-direction: column; width: 100%; }
.a-checkout .form-row { padding: 0 !important; margin: 0 0 12px !important; width: 100% !important; float: none !important; display: block; }
.a-checkout .form-row > label, .a-checkout label.a-flabel { font-size: 13px !important; color: var(--ink-secondary) !important; margin: 0 0 6px !important; display: block !important; font-weight: 400 !important; line-height: 1.4 !important; }
.a-checkout label .required, .a-checkout label .optional { display: none !important; }
.a-checkout input.input-text, .a-checkout select, .a-checkout .select2-selection {
	width: 100% !important; border: 1px solid var(--line) !important; border-radius: var(--r-control) !important;
	padding: 12px 13px !important; font-family: var(--font) !important; font-size: 15px !important;
	background: var(--surface-card) !important; color: var(--ink) !important; height: auto !important; min-height: 46px !important;
	box-shadow: none !important; box-sizing: border-box !important; }
.a-checkout input.input-text:focus, .a-checkout select:focus, .a-checkout .select2-container--focus .select2-selection {
	outline: none !important; border-color: var(--plum-600) !important; box-shadow: 0 0 0 3px var(--plum-50) !important; }
.a-checkout .select2-selection__rendered { line-height: 22px !important; color: var(--ink) !important; padding: 0 !important; }
.a-checkout .select2-selection__arrow { top: 12px !important; }
.a-checkout #billing_country_field { display: none !important; }
/* نُخفي منتقي رمز الدولة (+964) — سنيبتات المتجر تتعرّف على الرقم تلقائياً؛ القيمة تبقى للـOTP */
.a-checkout .dig_wc_logincountrycodecontainer, .a-checkout .digits_countrycodecontainer, .a-checkout .countrycodecontainer,
.a-checkout .dig_wc_countrycodecontainer { display: none !important; }
/* أعِد ضبط حشو حقل الهاتف بعد إخفاء المنتقي (Digits يضيف padding-left inline) */
.a-checkout #username.mobile_field, .a-checkout input#username { padding: 12px 13px !important; }
/* سطر الإجمالي */
.a-tot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.a-totl { font-size: 14px; color: var(--ink-secondary); }
.a-totv { font-size: 20px; font-weight: 500; color: var(--ink); }
.a-totv .woocommerce-Price-currencySymbol, .a-totv .woocommerce-Price-amount { color: var(--ink) !important; }
.a-totv .woocommerce-Price-currencySymbol { font-size: 14px; font-weight: 400; }

/* تفصيل الفاتورة: المنتج/التوصيل/المجموع (شفافية الدفع عند الاستلام) */
.a-breakdown { margin-top: 6px; }
.a-brow { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 14px; }
.a-brl { color: var(--ink-secondary); }
.a-brv { color: var(--ink); font-weight: 500; }
.a-brv.a-b-ship-neutral { color: var(--ink-hint); font-weight: 400; font-size: 12.5px; }
.a-breakdown .a-tot { margin-top: 6px; padding: 12px 0 0; }

/* سطر التوصيل الهادئ تحت حقل المحافظة */
.a-shipline { display: flex; align-items: center; gap: 7px; margin: -4px 0 12px; font-size: 12.5px; color: var(--ink-secondary); line-height: 1.5; }
.a-shipline svg { color: var(--plum-600); flex-shrink: 0; }
.a-shipline.neutral, .a-shipline.neutral svg { color: var(--ink-hint); }

/* ── كود الخصم (4 حالات) — نجاح أخضر، خطأ أحمر، بلا صخب ── */
.a-coupon { margin: 4px 0 10px; }
.a-coupon-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font-family: var(--font); font-size: 13px; color: var(--plum-600); cursor: pointer; }
.a-coupon-toggle svg { color: var(--plum-600); }
.a-coupon-form { display: flex; gap: 8px; align-items: stretch; }
.a-coupon-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-control); padding: 11px 13px; font-family: var(--font); font-size: 14px; background: var(--surface-card); color: var(--ink); }
.a-coupon-input::placeholder { color: var(--ink-hint); }
.a-coupon-input:focus { outline: none; border-color: var(--plum-600); box-shadow: 0 0 0 3px var(--plum-50); }
.a-coupon-input.error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(166,64,60,.09) !important; }
.a-coupon-apply { flex-shrink: 0; background: var(--surface-card); color: var(--plum-600); border: 1px solid var(--plum-200); border-radius: var(--r-control); font-family: var(--font); font-size: 14px; font-weight: 500; padding: 0 18px; cursor: pointer; position: relative; }
.a-coupon-apply:active { background: var(--plum-50); }
.a-coupon-apply.a-loading { color: transparent; pointer-events: none; }
.a-coupon-apply.a-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -8px 0 0 -8px; border: 2px solid var(--plum-200); border-top-color: var(--plum-600); border-radius: 50%; animation: a-spin .7s linear infinite; }
.a-coupon-err { font-size: 12px; color: var(--danger); margin-top: 6px; }
.a-coupon-applied { display: flex; align-items: center; justify-content: space-between; background: rgba(62,125,90,.1); border: 1px solid rgba(62,125,90,.35); border-radius: var(--r-control); padding: 9px 12px; }
.a-coupon-applied-txt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ok); font-weight: 500; }
.a-coupon-applied-txt b { font-weight: 700; }
.a-coupon-remove { background: none; border: 0; color: var(--ok); cursor: pointer; display: flex; padding: 2px; opacity: .85; }
.a-coupon-remove:active { opacity: 1; }
/* سطر الخصم في التفصيل (أخضر، قيمة سالبة) */
.a-brow-disc .a-brl, .a-brow-disc .a-b-disc { color: var(--ok) !important; }
/* زر التأكيد */
.a-place { margin-top: 4px !important; }

/* ── حالة زر «أضف للسلة» بعد الإضافة (آلة الحالة، الطلب 1) ── */
.a-cart .single_add_to_cart_button.a-added { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }
.a-cart .single_add_to_cart_button.a-added::before { display: none; }
.a-cart .single_add_to_cart_button.a-added svg { stroke: #fff; }

/* ── حالات التحميل على الأزرار (spinner) — الطلب 5 ── */
.a-btn.a-loading, .a-place.a-loading, .a-sb.a-loading, .a-cart .single_add_to_cart_button.a-loading { color: transparent !important; pointer-events: none; position: relative; }
.a-btn.a-loading > *, .a-place.a-loading > *, .a-cart .single_add_to_cart_button.a-loading > * { visibility: hidden; }
.a-btn.a-loading::before, .a-cart .single_add_to_cart_button.a-loading::before { opacity: 0; }
.a-btn.a-loading::after, .a-place.a-loading::after, .a-sb.a-loading::after, .a-cart .single_add_to_cart_button.a-loading::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
	border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: a-spin .7s linear infinite; }
.a-cart .single_add_to_cart_button.a-loading::after { border-color: rgba(124,77,110,.3); border-top-color: var(--plum-600); }
@keyframes a-spin { to { transform: rotate(360deg); } }

/* ── #4 زر التأكيد: بنفسجي مصمت بحواف 8px (تجاوز gradient المتجر ذي الأولوية) ── */
.a-checkout #place_order, #place_order.a-place, .a-place, .a-checkout button#place_order {
	background: var(--plum-600) !important; background-image: none !important; border-radius: var(--r-control) !important; }
.a-place:active, .a-checkout #place_order:active { background: var(--plum-800) !important; background-image: none !important; }

/* ── #3 حقول اللوحة: ملء العرض + اتجاه سليم ── */
.a-checkout .digcon { display: block; width: 100%; }
.a-checkout input#username, .a-checkout .digcon input.input-text { width: 100% !important; box-sizing: border-box; padding: 12px 13px !important; direction: ltr; text-align: right; }
.a-checkout input.input-text:not(#username), .a-checkout select { direction: rtl; text-align: right; }

/* ── #8 صندوق الوعد: سطران كحدّ أقصى + «المزيد» ── */
.a-promise.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-promise-more { display: inline-block; margin-top: 7px; color: var(--plum-600); font-size: 13px; font-weight: 500; cursor: pointer; }

/* ══════════════════════════════════════════════════════════════════════════
 * درج السلة الجانبي (مرجع: aneya-cart-drawer.html) — منطق Store API الرسمي
 * ══════════════════════════════════════════════════════════════════════════ */

/* نبضة شارة السلة (تحديث متفائل فوري عند الإضافة) */
.a-cartcount { transition: transform .18s ease; }
.a-cartcount.a-pop { animation: a-badgepop .32s ease; }
@keyframes a-badgepop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* الغطاء + الدرج */
.a-cart-veil { position: fixed; inset: 0; background: rgba(34,32,31,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 70; }
.a-cart-veil.on { opacity: 1; pointer-events: auto; }
.a-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 360px; max-width: 88%; background: var(--surface-page); transform: translateX(105%); transition: transform .3s cubic-bezier(.32,.72,0,1); z-index: 80; display: flex; flex-direction: column; box-shadow: -6px 0 26px rgba(34,32,31,.14); }
.a-drawer.on { transform: translateX(0); }

/* رأس الدرج */
.a-dhead { background: var(--surface-card); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.a-dtitle { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.a-dcount { background: var(--plum-50); color: var(--plum-800); font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 400; }
.a-dcount:empty { display: none; }
.a-dx { color: var(--ink-hint); cursor: pointer; padding: 4px; display: flex; background: none; border: 0; }

/* شريط التوصيل المجاني */
.a-ship { background: var(--surface-card); padding: 11px 16px 13px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.a-shiptxt { font-size: 12px; color: var(--ink-secondary); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.a-shiptxt b { color: var(--plum-800); font-weight: 500; }
.a-shipbar { height: 5px; background: var(--surface-page); border-radius: 999px; overflow: hidden; }
.a-shipfill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .4s ease; }
.a-ship.done .a-shiptxt { color: var(--ok); }
.a-ship.done .a-shiptxt b { color: var(--ok); }

/* جسم الدرج */
.a-dbody { flex: 1; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }

/* عنصر السلة */
.a-ci { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 11px; display: flex; gap: 11px; margin-bottom: 9px; }
.a-ciimg { width: 66px; height: 66px; background: var(--plum-50); border-radius: var(--r-control); flex-shrink: 0; overflow: hidden; }
.a-ciimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-cimain { flex: 1; min-width: 0; }
.a-cirow1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.a-ciname { font-size: 13.5px; line-height: 1.45; }
.a-civar { font-size: 11.5px; color: var(--ink-hint); margin-top: 2px; }
.a-cidel { color: var(--ink-hint); cursor: pointer; flex-shrink: 0; display: flex; padding: 2px; background: none; border: 0; }
.a-cidel:active { color: var(--danger); }
.a-cirow2 { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.a-ciqty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-control); overflow: hidden; }
.a-ciqb { padding: 5px 11px; color: var(--ink-secondary); cursor: pointer; user-select: none; font-size: 15px; line-height: 1; }
.a-ciqb:active { background: var(--plum-50); }
.a-ciqb.dis { opacity: .35; pointer-events: none; }
.a-ciqv { padding: 5px 2px; font-size: 13.5px; min-width: 26px; text-align: center; }
.a-ciprice { font-size: 15px; font-weight: 500; white-space: nowrap; }

/* حالة تحميل خفيفة على العنصر أثناء تحديث Store API */
.a-ci.a-busy { opacity: .55; pointer-events: none; }

/* قسم «يمشي وياه» (الأبسيل) */
.a-up { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.a-uphead { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.a-upsub { font-size: 11.5px; color: var(--ink-hint); margin-bottom: 11px; }
.a-upitem { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 9px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.a-upimg { width: 50px; height: 50px; background: var(--plum-50); border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.a-upimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-upmain { flex: 1; min-width: 0; }
.a-upname { font-size: 13px; line-height: 1.4; }
.a-upprice { font-size: 13.5px; font-weight: 500; margin-top: 3px; }
.a-upprice del { color: var(--ink-hint); font-weight: 400; font-size: 11.5px; margin-left: 5px; }
.a-upprice ins { text-decoration: none; }
.a-upprice .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 400; }
.a-upadd { background: var(--surface-card); color: var(--plum-600); border: 1px solid var(--plum-200); border-radius: var(--r-control); font-family: var(--font); font-size: 12.5px; font-weight: 500; padding: 8px 13px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
.a-upadd:active { background: var(--plum-50); }
.a-upadd.a-loading { opacity: .55; pointer-events: none; }
.a-upadd.done { background: var(--ok); color: #fff; border-color: var(--ok); }
.a-upadd.done svg { stroke: #fff; }

/* السلة الفارغة */
.a-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 46px 24px; text-align: center; color: var(--ink-secondary); }
.a-empty svg { color: var(--plum-200); margin-bottom: 14px; }
.a-empty .a-et { font-size: 15px; color: var(--ink); margin-bottom: 5px; }
.a-empty .a-es { font-size: 13px; line-height: 1.6; }

/* هيكل تحميل */
.a-cload { padding: 40px 0; text-align: center; }
.a-cload::after { content: ""; display: inline-block; width: 24px; height: 24px; border: 2.5px solid var(--plum-200); border-top-color: var(--plum-600); border-radius: 50%; animation: a-spin .7s linear infinite; }

/* تذييل الدرج */
.a-dfoot { background: var(--surface-card); border-top: 1px solid var(--line); padding: 14px 16px 16px; flex-shrink: 0; }
.a-sumtot { display: flex; justify-content: space-between; align-items: baseline; }
.a-sumtotl { font-size: 14px; }
.a-sumtotv { font-size: 20px; font-weight: 500; }
.a-shipnote { font-size: 11.5px; color: var(--ink-hint); margin-top: 5px; }
.a-dcheckout { margin-top: 12px; }
.a-dcont { display: block; text-align: center; font-size: 13px; color: var(--ink-secondary); margin-top: 10px; cursor: pointer; }
.a-dfine { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--ink-hint); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { .a-drawer, .a-cart-veil, .a-shipfill { transition: none; } }

/* 🔴 صفر ودجتات: احجب أي أثر بصري لشات Zoho على تصميم v2 (حماية إضافية للإزالة في PHP) */
/* [ZOHO-RESTORE 20260829-065658] chat re-enabled on v2 — rule disabled (was: hide zsiq widgets) */

/* ══════════════════════════════════════════════════════════════════════════
 * درج القائمة الجانبي / النافبار (مرجع: aneya-nav-drawer.html)
 * ══════════════════════════════════════════════════════════════════════════ */
.a-nav-veil { position: fixed; inset: 0; background: rgba(34,32,31,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 70; }
.a-nav-veil.on { opacity: 1; pointer-events: auto; }
.a-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 306px; max-width: 88%; background: var(--surface-card); transform: translateX(105%); transition: transform .3s cubic-bezier(.32,.72,0,1); z-index: 80; display: flex; flex-direction: column; box-shadow: -6px 0 26px rgba(34,32,31,.14); }
.a-nav.on { transform: translateX(0); }

.a-nhead { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.a-nbrand { font-size: 19px; font-weight: 500; color: var(--plum-600); display: flex; align-items: center; line-height: 0; }
.a-nbrand img, .a-nbrand .custom-logo { max-height: 28px !important; width: auto !important; height: auto !important; display: block; }
.a-nx { color: var(--ink-hint); cursor: pointer; padding: 4px; display: flex; background: none; border: 0; }

/* بطاقة المستخدم */
.a-nuser { background: var(--plum-50); padding: 14px 16px; display: flex; align-items: center; gap: 11px; cursor: pointer; flex-shrink: 0; color: inherit; }
.a-nav-av { width: 40px; height: 40px; background: var(--plum-200); border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--plum-800); font-size: 16px; flex-shrink: 0; }
.a-nav-uname { font-size: 14.5px; line-height: 1.3; }
.a-nav-ulink { font-size: 12px; color: var(--plum-600); margin-top: 1px; }
.a-nav-uarrow { margin-right: auto; color: var(--plum-400, var(--plum-200)); display: flex; }

/* بحث */
.a-nsearch { margin: 12px 16px 4px; display: flex; align-items: center; gap: 9px; background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--r-control); padding: 0 13px; flex-shrink: 0; }
.a-nav-si { color: var(--ink-hint); display: flex; flex-shrink: 0; }
.a-nav-sin { flex: 1; border: 0; background: none; font-family: var(--font); font-size: 14px; color: var(--ink); padding: 11px 0; outline: none; min-width: 0; }
.a-nav-sin::placeholder { color: var(--ink-hint); }

.a-nbody { flex: 1; overflow-y: auto; padding: 8px 0 12px; -webkit-overflow-scrolling: touch; }
.a-nsec { padding: 8px 0; }
.a-nsech { font-size: 11px; color: var(--ink-hint); padding: 6px 16px 4px; }
.a-nit { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14.5px; cursor: pointer; color: var(--ink); width: 100%; }
.a-nit:active { background: var(--surface-page); }
.a-nit-btn { background: none; border: 0; font-family: var(--font); text-align: right; }
.a-nitic { color: var(--plum-600); display: flex; width: 20px; justify-content: center; flex-shrink: 0; }
.a-nitbadge { margin-right: auto; background: var(--plum-50); color: var(--plum-800); font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.a-nitcount { margin-right: auto; color: var(--ink-hint); font-size: 12px; }
.a-ndiv { height: 1px; background: var(--line); margin: 6px 16px; }

/* بطاقة العرض */
.a-npromo { margin: 10px 16px; background: var(--plum-900); color: #fff; border-radius: var(--r-card); padding: 14px; }
.a-npromot { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.a-npromod { font-size: 12px; opacity: .75; line-height: 1.6; margin-top: 5px; }

/* آخر ما تصفّحت */
.a-nrecent { padding: 4px 16px 8px; }
.a-nrecenth { font-size: 11px; color: var(--ink-hint); margin-bottom: 9px; }
.a-nrrow { display: flex; gap: 8px; }
.a-nrim { flex: 0 0 calc((100% - 16px) / 3); max-width: calc((100% - 16px) / 3); aspect-ratio: 1/1; background: var(--plum-50); border-radius: var(--r-control); overflow: hidden; display: block; }
.a-nrim img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* تذييل */
.a-nfoot { border-top: 1px solid var(--line); padding: 14px 16px; flex-shrink: 0; background: var(--surface-card); }
.a-nwa { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ok); color: #fff; font-size: 14px; font-weight: 500; padding: 12px; border-radius: var(--r-control); }
.a-nsoc { display: flex; gap: 18px; justify-content: center; color: var(--ink-secondary); margin-top: 14px; }

/* نُخفي زرّ Digits الافتراضي (نُبقي النافذة .dig-box فقط، تُفتح من بطاقة المستخدم) */
.a-diglogin-host > span { display: none !important; }

/* واتساب: أخضر أعمق لتباين نص أبيض أوضح (كل أزرار المراسلة) */
.a-nwa, .a-foot-wa { background: #2E6A4A !important; color: #fff !important; }

/* لا قصّ للنص العربي في منتقي المحافظة (select2 يضيف ellipsis افتراضياً) */
.a-checkout .select2-selection__rendered { text-overflow: clip !important; }

@media (prefers-reduced-motion: reduce) { .a-nav, .a-nav-veil { transition: none; } }

/* ══════════════════════════════════════════════════════════════════
   الاستجابة — تابلت (≥768) وديسكتوب (≥1024). ملف واحد يخدم الثلاثة.
   مرجع: aneya-desktop-tablet-final.html. البنية نفسها؛ التخطيط يتكيّف بالعرض.
   ══════════════════════════════════════════════════════════════════ */

/* ───────── تابلت وما فوق (≥768px) ───────── */
@media (min-width: 768px) {
	body.aneya-standalone { background: #EAE6E2; }
	.aneya-shell { box-shadow: 0 1px 40px rgba(34,32,31,.05); }

	.a-top { position: static; padding: 14px 22px; justify-content: flex-start; gap: 18px; }

	/* هيدر الديسكتوب/التابلت: بحث + حساب + شريط تصنيفات أفقي؛ إخفاء زر الدرج */
	.a-menu-btn { display: none !important; }
	.a-dsearch { display: flex; flex: 1; align-items: center; gap: 9px; background: var(--surface-page); border: 1px solid var(--line); border-radius: var(--r-control); padding: 9px 13px; max-width: 360px; color: var(--ink-hint); }
	.a-dsearch svg { flex-shrink: 0; }
	.a-dsearch input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font); font-size: 14px; color: var(--ink); outline: none; }
	.a-icons { margin-inline-start: auto; gap: 20px; }
	.a-daccount { display: flex; color: var(--ink-secondary); }
	.a-dnav { display: block; background: var(--surface-card); border-bottom: 1px solid var(--line); }
	.a-dnav-in { display: flex; gap: 26px; padding: 0 22px; overflow-x: auto; scrollbar-width: none; }
	.a-dnav-in::-webkit-scrollbar { display: none; }
	.a-dnav-in a { padding: 12px 0; font-size: 14.5px; color: var(--ink-secondary); white-space: nowrap; position: relative; }
	.a-dnav-in a.on { color: var(--plum-600); }
	.a-dnav-in a.on::after { content: ""; position: absolute; bottom: -1px; right: 0; left: 0; height: 2px; background: var(--plum-600); }

	/* البطل: عمودان (غاليري + ملخّص) */
	.a-heroband { display: flex; gap: 24px; align-items: flex-start; padding: 20px 22px 6px; background: var(--surface-card); }
	.a-gal { width: 44%; flex-shrink: 0; padding: 0; background: transparent; }
	.a-hero { flex: 1; min-width: 0; padding: 0; background: transparent; }
	.a-hero h1 { font-size: 26px; line-height: 1.32; }

	/* الأقسام: بلا أشرطة فاصلة، بمسافات داخلية */
	.a-gap { display: none; }
	.a-sec { padding: 22px; }

	/* شبكات */
	.a-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.a-card { margin-bottom: 0; }
	.a-faqs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: start; }
	.a-faq { margin-bottom: 0; }
	.a-rel { grid-template-columns: repeat(3, 1fr); gap: 12px; }

	/* التقييمات مكدّسة على التابلت */
	.a-rsum { margin-bottom: 12px; }

	/* الفوتر: العلامة يميناً + أعمدة الروابط يساراً (صفّ واحد ممتلئ) */
	.a-foot { padding: 34px 22px 16px; }
	.a-foot-top { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 24px; }
	.a-foot-brandcol { width: 300px; flex-shrink: 0; }
	.a-foot-cols { margin-inline-start: auto; gap: 56px; margin-bottom: 0; }
	.a-foot-wa { display: inline-flex; width: auto; }

	/* شريط CTA اللاصق للموبايل فقط */
	.a-stick { display: none !important; }
}

/* ───────── ديسكتوب (≥1024px) ───────── */
@media (min-width: 1024px) {
	.a-top { padding: 16px 34px; gap: 26px; }
	.a-logo { font-size: 23px; }
	.a-icons { gap: 22px; }
	.a-dsearch { max-width: 420px; padding: 10px 14px; }
	.a-dnav-in { padding: 0 34px; gap: 28px; }

	.a-heroband { gap: 34px; padding: 26px 34px 10px; }
	.a-gal { width: 47%; }
	.a-hero h1 { font-size: 30px; line-height: 1.3; }
	.a-promise { font-size: 16px; padding: 15px 17px; }
	.a-price { font-size: 31px; }

	.a-sec { padding: 28px 34px; }
	.a-sec > h2 { font-size: 22px; margin-bottom: 18px; }

	.a-rel { grid-template-columns: repeat(4, 1fr); gap: 13px; }

	/* التقييمات: عمودان (ملخّص ثابت + قائمة) */
	.a-revwrap { display: flex; gap: 26px; align-items: flex-start; }
	.a-rsum { width: 300px; flex-shrink: 0; margin-bottom: 0; }
	.a-revlist { flex: 1; min-width: 0; }

	.a-foot { padding: 42px 34px 18px; }
	.a-foot-cols { gap: 44px; }
}

/* ═══ إشعارات ووكومرس داخل لوحة الدفع v2 (أخطاء التحقّق/المخزون من checkout.js) — القالب لا يرث تنسيق Astra ═══ */
.aneya-standalone .woocommerce-NoticeGroup { margin: 0 0 12px; }
.aneya-standalone .woocommerce-error,
.aneya-standalone .woocommerce-message,
.aneya-standalone .woocommerce-info,
.aneya-standalone ul.woocommerce-error {
	list-style: none; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-control, 10px);
	font-size: 14px; line-height: 1.55; font-weight: 600;
}
.aneya-standalone .woocommerce-error,
.aneya-standalone ul.woocommerce-error { background: #fdecea; border: 1px solid #f0b3ad; color: #a01813; }
.aneya-standalone .woocommerce-message { background: #e7f4ec; border: 1px solid #b2d8c0; color: #14622f; }
.aneya-standalone .woocommerce-info { background: #eaf1fb; border: 1px solid #bcd3f0; color: #10416e; }
.aneya-standalone .woocommerce-error li,
.aneya-standalone .woocommerce-message li,
.aneya-standalone .woocommerce-info li { margin: 0; padding: 3px 0; list-style: none; }
.aneya-standalone .woocommerce-error li + li { border-top: 1px solid rgba(160,24,19,.16); padding-top: 7px; margin-top: 4px; }
.aneya-standalone .woocommerce-NoticeGroup .button,
.aneya-standalone .woocommerce-error .button,
.aneya-standalone .woocommerce-message .button { display: none; } /* أزرار woo (مثل «عرض السلة») مربكة داخل اللوحة */

/* [ZOHO-Z] فقاعة دردشة Zoho: z-index الأصلي عندها = 1، وشريط الشراء الثابت .a-stick عنده 30
 * ⇒ الشريط يغطّي الفقاعة على الموبايل. نرفعها فوقه (35، أي تحت الحُجُب 40 والأدراج 80 فتبقى
 * الأدراج تغطّيها كما يجب) ونُبعدها عن الشريط رأسياً. */
body.aneya-standalone #zsiq_chat_wrap,
body.aneya-standalone .zsiq_floatmain { z-index: 45 !important; }
body.aneya-standalone #zsiq_float { bottom: 64px !important; }
