/* aseel-theme.css — بيطبّق «التصميم» من لوحة التحكم على كل المتجر.
 * القيم بتيجي من متغيرات --a-* اللي بتنكتب بـ header.php (AseelDesign::cssVars).
 * الملف بينحمّل آخر إشي عشان يوحّد الألوان والخطوط فوق الملفات القديمة. */

/* ───── الأساس: ما في ولا فراغ فاتح بين الأقسام ───── */
html{background:var(--a-bg-deep);font-size:calc(100% * var(--a-font-scale,1))}
html body{background:var(--a-bg)!important;color:var(--a-text);font-family:var(--a-font-body)!important}
/* خط واحد لكل الموقع (كان في Cairo مش محمّل و Georgia بالعناوين) */
html body *{font-family:inherit!important}
html body :is(h1,h2,h3,h4,.prod-title,.v2-tagline,.savings-head h2,.aseel-banner-text strong){font-family:var(--a-font-heading)!important;font-weight:var(--a-heading-weight,700);letter-spacing:0}
html body main{background:radial-gradient(circle at 50% 0,var(--a-bg-soft) 0,transparent 34%),linear-gradient(180deg,var(--a-bg),var(--a-bg-deep))!important;display:flow-root}

/* ───── الهيدر والتنقل ───── */
html body .header{background:linear-gradient(115deg,var(--a-bg-deep),var(--a-bg) 55%,var(--a-bg-soft))!important;border-bottom:1px solid rgb(var(--a-accent-rgb)/.55)!important}
html body .header .header-shop-actions button,html body .header .header-shop-actions a{color:var(--a-accent-light)!important}
html body .store-v2-nav{background:var(--a-bg)!important;border-top:1px solid rgb(var(--a-accent-rgb)/.35)!important}
html body .store-v2-nav a,html body .store-v2-nav button{color:var(--a-muted)!important}
html body .store-v2-nav [aria-current="page"],html body .store-v2-nav .active{color:var(--a-accent-light)!important}
html body .site-announcement{background:var(--a-accent)!important;color:var(--a-on-accent)!important;font-weight:700}

/* ───── شريط البحث والتصنيفات ───── */
html body .v2-tagline{color:var(--a-accent-light)!important;font-family:var(--a-font-heading)!important;text-wrap:balance;line-height:1.6}
html body .v2-search{background:rgb(var(--a-text-rgb)/.06)!important;border-color:rgb(var(--a-accent-rgb)/.4)!important;color:var(--a-text)!important;border-radius:calc(var(--a-radius) + 4px)!important}
html body .v2-search input{color:var(--a-text)!important}
html body .v2-search input::placeholder{color:var(--a-muted)!important;opacity:.85}
html body .v2-chip{background:rgb(var(--a-text-rgb)/.05)!important;border-color:rgb(var(--a-accent-rgb)/.35)!important;color:var(--a-text)!important}
html body .v2-chip.active,html body .v2-chip[aria-pressed="true"]{background:var(--a-accent)!important;border-color:var(--a-accent)!important;color:var(--a-on-accent)!important}
html body .v2-sort button{background:rgb(var(--a-accent-rgb)/.08)!important;border-color:rgb(var(--a-accent-rgb)/.45)!important;color:var(--a-accent-light)!important}
html body .v2-sort button[aria-pressed="true"]{background:rgb(var(--a-accent-rgb)/.18)!important;border-color:var(--a-accent)!important}
html body .v2-trust{background:rgb(var(--a-text-rgb)/.04)!important;border-color:rgb(var(--a-text-rgb)/.1)!important;color:var(--a-text)!important;border-radius:var(--a-radius)!important}
html body .v2-results,html body .results-count{color:var(--a-muted)!important}
html body .v2-shop-bar{margin-bottom:6px}

/* ───── بطاقة المنتج ───── */
html body #productsGrid .card,html body .grid .card{background:linear-gradient(155deg,var(--a-surface),var(--a-surface-2))!important;border-color:rgb(var(--a-accent-rgb)/.38)!important;border-radius:var(--a-radius)!important;color:var(--a-text)!important}
html body .card .img-wrap{background:var(--a-surface-2)!important;border-radius:calc(var(--a-radius) - 4px)!important}
html body .card .prod-title,html body .card .prod-title a{color:var(--a-text)!important}
html body .price-current,html body .prod-price .price-current{color:var(--a-price)!important}
html body .price-old,html body del{color:var(--a-muted)!important}
html body .card .badge{background:rgb(var(--a-bg-rgb)/.88)!important;color:var(--a-accent-light)!important;border-color:var(--a-accent)!important}
html body .btn-quick-options,html body .savings-go{background:linear-gradient(135deg,var(--a-accent-light),var(--a-accent))!important;color:var(--a-on-accent)!important;border-color:var(--a-accent)!important}
html body .btn-product-details{background:transparent!important;color:var(--a-text)!important;border-color:rgb(var(--a-text-rgb)/.35)!important}
html body .swatch.active,html body .main-swatch{border-color:var(--a-accent)!important;box-shadow:0 0 0 2px rgb(var(--a-accent-rgb)/.35)!important;outline-color:var(--a-accent)!important}

/* ───── صفحة المنتج ───── */
html body .product-detail-page > .card{background:transparent!important}
html body .product-detail-page .prod-title{color:var(--a-text)!important}
html body .product-detail-page .sizes [data-size]{background:rgb(var(--a-text-rgb)/.05)!important;color:var(--a-text)!important;border:1px solid rgb(var(--a-accent-rgb)/.45)!important}
html body .product-detail-page .sizes [data-size].active,html body .product-detail-page .sizes [data-size][aria-pressed="true"]{background:var(--a-accent)!important;color:var(--a-on-accent)!important;border-color:var(--a-accent)!important}
html body .product-detail-page .color-choice span{color:var(--a-text)}
html body .product-detail-page .color-choice.active span{color:var(--a-accent-light)!important}
html body .product-detail-page .pdp-tab{color:var(--a-accent-light)!important;background:rgb(var(--a-text-rgb)/.03)!important}

/* ───── السلة ───── */
html body #sideDrawer{background:linear-gradient(165deg,var(--a-bg-soft),var(--a-bg-deep) 74%)!important;border-color:var(--a-accent)!important;color:var(--a-text)!important}
html body .cart-empty-state{background:transparent!important;border:0!important;display:grid;justify-items:center;gap:6px;padding:42px 14px;text-align:center;color:var(--a-muted)}
html body .cart-empty-state b{color:var(--a-text);font-size:1.05rem}
html body .cart-empty-state i{font-style:normal;font-size:2rem}

/* ───── الصفحات (من نحن، السياسات، تتبع الطلب، حسابي) ───── */
html body .policy-page,html body .about-page{background:linear-gradient(160deg,var(--a-surface),var(--a-surface-2))!important;color:var(--a-text)!important;border:1px solid rgb(var(--a-accent-rgb)/.3);border-radius:var(--a-radius);margin-inline:12px!important;margin-block:22px 28px!important}
html body .policy-page :where(p,li,span,td){color:var(--a-text)!important}
html body .policy-page :where(h1,h2,h3){color:var(--a-text)!important}
html body .policy-page :where(small,.eyebrow){color:var(--a-accent)!important}
html body .policy-page hr{border-color:rgb(var(--a-accent-rgb)/.25)!important}
html body .policy-page a{color:var(--a-accent-light)!important}

/* ───── الفوتر ───── */
html body footer.luxury-footer{background:var(--a-bg)!important;color:var(--a-muted)!important;border-top:1px solid rgb(var(--a-accent-rgb)/.4)!important;margin-top:0!important}
html body footer.luxury-footer :where(h3,h4,strong){color:var(--a-accent-light)!important}
html body footer.luxury-footer a{color:var(--a-text)!important}

/* ───── الشريط المتحرك ───── */
.aseel-ticker{display:block;overflow:hidden;background:var(--a-accent);color:var(--a-on-accent);font-weight:700;font-size:.86rem;line-height:1;padding:9px 0;text-decoration:none;position:relative;z-index:5;direction:rtl}
.aseel-ticker-track{display:flex;width:max-content;animation:aseel-ticker var(--ticker-speed,28s) linear infinite}
.aseel-ticker:hover .aseel-ticker-track,.aseel-ticker:focus-within .aseel-ticker-track{animation-play-state:paused}
.aseel-ticker-run{display:flex;align-items:center;flex-shrink:0}
.aseel-ticker-item{white-space:nowrap;padding:0 18px}
.aseel-ticker-dot{opacity:.65;font-size:.7em}
.aseel-ticker--bottom{position:fixed;inset:auto 0 calc(64px + env(safe-area-inset-bottom,0px)) 0;z-index:40}
@keyframes aseel-ticker{from{transform:translateX(0)}to{transform:translateX(50%)}}
@media (prefers-reduced-motion:reduce){.aseel-ticker-track{animation:none}.aseel-ticker-run[aria-hidden]{display:none}.aseel-ticker-run{flex-wrap:wrap;justify-content:center;width:100vw}}

/* ───── البنرات المتنقلة ───── */
.aseel-banners{position:relative;margin:12px 12px 16px;border-radius:var(--a-radius);overflow:hidden;border:1px solid rgb(var(--a-accent-rgb)/.35);background:var(--a-surface-2);aspect-ratio:16/7;isolation:isolate}
.aseel-banners--home_mid{margin-block:6px 18px}
.aseel-banner{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s;color:var(--a-text);text-decoration:none}
.aseel-banner.is-active{opacity:1;visibility:visible}
.aseel-banner picture,.aseel-banner img{display:block;width:100%;height:100%;object-fit:cover}
.aseel-banner-text{position:absolute;inset:auto 0 0 0;padding:18px 16px 16px;display:grid;gap:4px;background:linear-gradient(0deg,rgb(var(--a-bg-rgb)/.88),rgb(var(--a-bg-rgb)/0));color:var(--a-text)}
.aseel-banner.is-text{background:linear-gradient(135deg,var(--a-surface),var(--a-bg-soft))}
.aseel-banner.is-text .aseel-banner-text{inset:0;align-content:center;justify-items:center;text-align:center;background:none}
.aseel-banner-text strong{font-family:var(--a-font-heading);font-size:1.25rem;color:var(--a-accent-light)}
.aseel-banner-text span{font-size:.92rem;opacity:.92}
.aseel-banner-btn{justify-self:start;margin-top:6px;font-style:normal;font-weight:800;font-size:.85rem;padding:8px 16px;border-radius:999px;background:var(--a-accent);color:var(--a-on-accent)}
.aseel-banner.is-text .aseel-banner-btn{justify-self:center}
.aseel-banner-dots{position:absolute;inset:auto 0 8px 0;display:flex;justify-content:center;gap:6px;z-index:2}
.aseel-banner-dots button{width:8px;height:8px;border-radius:50%;border:0;padding:0;background:rgb(var(--a-text-rgb)/.45);cursor:pointer}
.aseel-banner-dots button[aria-current="true"]{width:20px;border-radius:999px;background:var(--a-accent-light)}
@media (max-width:700px){.aseel-banners{aspect-ratio:16/9;margin-inline:10px}}
@media (min-width:1000px){.aseel-banners{max-width:1180px;margin-inline:auto;aspect-ratio:16/5}}

/* ───── أسطح تانية كانت مثبتة على الكحلي ───── */
html body footer.site-footer.luxury-footer.alkarmen-minimal-footer{background:var(--a-bg-deep)!important}
html body .header-luxury{background:linear-gradient(135deg,var(--a-bg),var(--a-bg-soft))!important}
html body label.ship-opt,html body .checkout-exchange,html body .checkout-payment{background:rgb(var(--a-text-rgb)/.05)!important;border-color:rgb(var(--a-accent-rgb)/.35)!important;color:var(--a-text)!important}
html body form.tracking-card{background:linear-gradient(160deg,var(--a-surface),var(--a-surface-2))!important;border-color:rgb(var(--a-accent-rgb)/.35)!important}
html body main.account-page{background:linear-gradient(180deg,var(--a-bg),var(--a-bg-deep))!important}
html body .acc-signin-wrap{background:linear-gradient(160deg,var(--a-surface),var(--a-surface-2))!important;border-color:rgb(var(--a-accent-rgb)/.3)!important}
html body .btn-confirm{background:var(--a-accent)!important;color:var(--a-on-accent)!important}
html body #popup .header-luxury{background:linear-gradient(135deg,var(--a-bg),var(--a-bg-soft))!important}
html body #popup .ship-group .ship-opt{background:rgb(var(--a-text-rgb)/.05)!important;border-color:rgb(var(--a-accent-rgb)/.4)!important}
html body #popup .ship-group .ship-opt.selected{background:rgb(var(--a-accent-rgb)/.18)!important;border-color:var(--a-accent-light)!important}

/* ───── صفحات مركز النمو (المجلة، العرايس، VIP، صفحات الهبوط) على نفس الثيم ───── */
html body .aseel-page{color:var(--a-text)}
html body .aseel-section p,html body .aseel-empty-page{color:var(--a-muted)!important}
html body .aseel-section :is(h2,h3){color:var(--a-text)!important}
html body .aseel-card{background:linear-gradient(155deg,var(--a-surface),var(--a-surface-2))!important;border-color:rgb(var(--a-accent-rgb)/.35)!important;color:var(--a-text)!important;border-radius:var(--a-radius)!important}
html body .aseel-card small{color:var(--a-price)!important}
html body .aseel-card img,html body .aseel-noimg{background:var(--a-surface-2)!important}
html body .aseel-issues a{border-color:rgb(var(--a-accent-rgb)/.35)!important;color:var(--a-text)!important}
html body .aseel-issues a.current{background:var(--a-accent)!important;border-color:var(--a-accent)!important;color:var(--a-on-accent)!important}
html body .aseel-list li,html body .aseel-tiers li{background:rgb(var(--a-text-rgb)/.05)!important;border-color:rgb(var(--a-accent-rgb)/.25)!important;color:var(--a-text)!important}
html body .aseel-tiers span,html body .aseel-badges small,html body .aseel-shared-banner small,html body .aseel-push p{color:var(--a-muted)!important}
html body .aseel-badges li{background:rgb(var(--a-text-rgb)/.05)!important}
html body .aseel-badges li.earned{background:linear-gradient(160deg,rgb(var(--a-accent-rgb)/.22),rgb(var(--a-text-rgb)/.04))!important}
html body .aseel-note.gold{background:rgb(var(--a-accent-rgb)/.12)!important;color:var(--a-text)!important}
html body .aseel-shared-banner,html body .aseel-push{background:linear-gradient(155deg,var(--a-surface),var(--a-surface-2))!important;color:var(--a-text)!important;border:1px solid rgb(var(--a-accent-rgb)/.4)!important}
html body .aseel-shared-banner button.ghost,html body .aseel-push button.ghost{background:rgb(var(--a-text-rgb)/.08)!important;color:var(--a-text)!important}
html body .aseel-shared-banner button:not(.ghost),html body .aseel-push button:not(.ghost),html body .aseel-receipt button,html body .aseel-pay-link{background:linear-gradient(135deg,var(--a-accent-light),var(--a-accent))!important;color:var(--a-on-accent)!important}
html body .aseel-bridal label{color:var(--a-text)}
html body :is(.aseel-bridal,.aseel-page,.account-v3) :is(input,select,textarea):not([type=checkbox]):not([type=radio]){background:rgb(var(--a-text-rgb)/.06)!important;color:var(--a-text)!important;border:1.5px solid rgb(var(--a-accent-rgb)/.35)!important}
html body :is(.aseel-bridal,.aseel-page) :is(input,textarea)::placeholder{color:var(--a-muted)!important;opacity:.8}
html body :is(.aseel-bridal,.aseel-page) select option{background:var(--a-bg);color:var(--a-text)}
