/*
Theme Name:   Alsafa Astra
Theme URI:    http://localhost/alsafa
Description:  قالب فرعي لـ Astra لمخبوزات وحلواني الصفا والمروة — متوافق مع Elementor وWooCommerce، مع هيرو سلايدر وإضافة للسلة من كارت المنتج وتأكيد الطلب عبر واتساب.
Author:       رقمية تك
Template:     astra
Version:      1.0.0
Text Domain:  alsafa
*/

:root {
  --red: #c81e24;
  --red-dark: #9e161b;
  --orange: #f26a1b;
  --brown: #3b2416;
  --brown-soft: #6b4a36;
  --cream: #fff8ef;
  --cream-2: #fbeedd;
  --line: #ecdcc6;
  --muted: #8a6f5c;
  --green: #1f9d55;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(59, 36, 22, .08);
  --shadow-lg: 0 14px 40px rgba(59, 36, 22, .14);
  --font-body: "Cairo", system-ui, sans-serif;
  --font-head: "El Messiri", "Cairo", serif;
}

/* ---------- أساسيات فوق Astra ---------- */
body, button, input, select, textarea, .ast-button, .ast-custom-button { font-family: var(--font-body); }
h1, h2, h3, h4, .entry-title, .site-title, .elementor-heading-title { font-family: var(--font-head); }
body,
.ast-separate-container,
.ast-plain-container,
.ast-page-builder-template,
.ast-separate-container .ast-article-single:not(.ast-related-post) { background-color: var(--cream); }
body { color: var(--brown); }
[hidden], .alsafa-hidden { display: none !important; }
.alsafa-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

/* هيدر ثابت */
#masthead { position: sticky; top: 0; z-index: 99; }
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 0; } }
.ast-primary-header-bar, .main-header-bar, .ast-mobile-header-wrap .ast-primary-header-bar {
  background: rgba(255, 248, 239, .95) !important; backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .custom-logo { border-radius: 50%; }
.site-title a { font-family: var(--font-head); font-weight: 700; color: var(--brown) !important; }
.main-header-menu .menu-link { font-weight: 600; border-radius: 999px; }
.ast-header-woo-cart .ast-cart-menu-wrap .count,
.ast-site-header-cart .ast-addon-cart-wrap .ast-icon-shopping-cart::after { background: var(--orange) !important; color: #fff !important; }

/* ---------- أزرار عامة ---------- */
.alsafa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; line-height: 1.4; cursor: pointer; text-decoration: none !important;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.alsafa-btn:active { transform: scale(.97); }
.alsafa-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.alsafa-btn--primary { background: var(--red); color: #fff !important; box-shadow: 0 6px 18px rgba(200,30,36,.25); }
.alsafa-btn--primary:hover { background: var(--red-dark); }
.alsafa-btn--outline { border-color: var(--brown); color: var(--brown) !important; background: transparent; }
.alsafa-btn--outline:hover { background: var(--brown); color: #fff !important; }
.alsafa-btn--whatsapp { background: var(--green); color: #fff !important; }
.alsafa-btn--whatsapp:hover { background: #17834a; }
.alsafa-btn--sm { padding: 7px 14px; font-size: .9rem; }
.alsafa-btn--sm svg { width: 17px; height: 17px; }
.alsafa-link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* =========================================================
   هيرو سلايدر
   ========================================================= */
[data-theme="cream"] {
  --hs-bg: radial-gradient(circle at 12% 18%, rgba(242,106,27,.16), transparent 42%),
           radial-gradient(circle at 88% 85%, rgba(200,30,36,.12), transparent 45%), var(--cream);
  --hs-solid: var(--cream); --hs-fg: var(--brown); --hs-muted: var(--brown-soft);
  --hs-accent: var(--red); --hs-eyebrow: var(--orange);
  --hs-plate: rgba(255,255,255,.7); --hs-ring: rgba(242,106,27,.35); --hs-badge: var(--red);
  --hs-dots: rgba(59,36,22,.08);
}
[data-theme="dark"] {
  --hs-bg: radial-gradient(circle at 80% 30%, rgba(242,106,27,.28), transparent 50%),
           linear-gradient(135deg, #24130a 0%, #3b2416 55%, #54321d 100%);
  --hs-solid: #2c1810; --hs-fg: #fff8ef; --hs-muted: #e3cdb6;
  --hs-accent: #ffb25e; --hs-eyebrow: #ffb25e;
  --hs-plate: rgba(255,255,255,.08); --hs-ring: rgba(255,178,94,.45); --hs-badge: var(--orange);
  --hs-dots: rgba(255,255,255,.05);
}
[data-theme="red"] {
  --hs-bg: radial-gradient(circle at 20% 80%, rgba(255,190,120,.35), transparent 45%),
           linear-gradient(135deg, #9e161b 0%, #c81e24 50%, #e5482a 100%);
  --hs-solid: #b5191f; --hs-fg: #ffffff; --hs-muted: #ffe3d6;
  --hs-accent: #ffd9a8; --hs-eyebrow: #ffd9a8;
  --hs-plate: rgba(255,255,255,.14); --hs-ring: rgba(255,255,255,.4); --hs-badge: var(--brown);
  --hs-dots: rgba(255,255,255,.07);
}
[data-theme="orange"] {
  --hs-bg: radial-gradient(circle at 85% 20%, rgba(255,255,255,.7), transparent 45%),
           linear-gradient(135deg, #fff3e4 0%, #ffd9b3 60%, #ffc28c 100%);
  --hs-solid: #ffe3c6; --hs-fg: var(--brown); --hs-muted: #6b4a36;
  --hs-accent: var(--red); --hs-eyebrow: var(--red-dark);
  --hs-plate: rgba(255,255,255,.6); --hs-ring: rgba(200,30,36,.3); --hs-badge: var(--red);
  --hs-dots: rgba(59,36,22,.07);
}

.hero-slider { position: relative; overflow: hidden; background: var(--brown); touch-action: pan-y; width: 100%; }
.hs-track { display: grid; }
.hs-slide {
  grid-area: 1 / 1; position: relative; isolation: isolate; display: grid;
  background: var(--hs-bg); color: var(--hs-fg);
  opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s;
}
.hs-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease; }
.hs-slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--hs-dots) 2px, transparent 2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hs-slide:has(.hs-photo)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, rgba(30,15,8,.75)); }

.hs-inner {
  width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; align-content: center; gap: 40px;
  min-height: clamp(540px, 80vh, 680px); padding-block: 56px 110px;
}
.hs-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--hs-eyebrow); font-weight: 800; font-size: .95rem; margin-bottom: 10px; }
.hs-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.hero-slider .hs-title { font-family: var(--font-head); font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.3; margin: 0 0 .4em; color: var(--hs-fg); }
.hs-title em { font-style: normal; color: var(--hs-accent); }
.hs-lead { font-size: 1.15rem; color: var(--hs-muted); max-width: 520px; margin: 0 0 1em; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hs-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; color: var(--hs-muted); font-weight: 600; font-size: .95rem; }
.hs-badges span::before { content: "✓"; color: var(--green); font-weight: 800; margin-inline-end: 6px; }

.hs-slide .alsafa-btn--outline { border-color: currentColor; color: var(--hs-fg) !important; }
.hs-slide .alsafa-btn--outline:hover { background: var(--hs-fg); color: var(--hs-solid) !important; border-color: var(--hs-fg); }
[data-theme="red"] .alsafa-btn--primary { background: #fff; color: var(--red) !important; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
[data-theme="red"] .alsafa-btn--primary:hover { background: var(--cream-2); }
[data-theme="dark"] .alsafa-btn--primary { background: var(--orange); box-shadow: 0 8px 22px rgba(242,106,27,.35); }
[data-theme="dark"] .alsafa-btn--primary:hover { background: #d9590f; }

.hs-content > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.is-active .hs-content > * { opacity: 1; transform: none; }
.is-active .hs-content > :nth-child(1) { transition-delay: .15s; }
.is-active .hs-content > :nth-child(2) { transition-delay: .28s; }
.is-active .hs-content > :nth-child(3) { transition-delay: .41s; }
.is-active .hs-content > :nth-child(4) { transition-delay: .54s; }
.is-active .hs-content > :nth-child(5) { transition-delay: .67s; }

.hs-art { position: relative; justify-self: center; opacity: 0; transform: scale(.85) rotate(-8deg); transition: opacity .9s ease .2s, transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.is-active .hs-art { opacity: 1; transform: none; }
.hs-plate {
  position: relative; width: min(380px, 72vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 60%), var(--hs-plate);
  box-shadow: 0 30px 60px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.25);
  animation: hs-bob 7s ease-in-out infinite;
}
.hs-plate::before { content: ""; position: absolute; inset: -20px; border-radius: 50%; border: 2px dashed var(--hs-ring); animation: hs-spin 40s linear infinite; }
.hs-plate--logo { background: #fff; }
.hero-slider .hs-plate--logo, .hero-slider .hs-plate--photo { overflow: hidden; }
.hero-slider .hs-plate--photo { background: var(--hs-plate); }
.hero-slider .hs-plate--photo img,
.hero-slider .hs-plate--logo img { width: 100%; height: 100%; max-width: none; border-radius: 50%; display: block; object-fit: cover; }
.hs-emoji { font-size: clamp(6rem, 15vw, 10rem); line-height: 1; filter: drop-shadow(0 18px 24px rgba(0,0,0,.22)); }
.hs-float { position: absolute; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); animation: hs-bob 5s ease-in-out infinite; }
.hs-float.f1 { top: 6%; inset-inline-end: 4%; animation-delay: -1s; }
.hs-float.f2 { bottom: 10%; inset-inline-end: -2%; animation-delay: -2.5s; }
.hs-float.f3 { bottom: 4%; inset-inline-start: 12%; animation-delay: -3.5s; }
.hs-badge {
  position: absolute; top: 4%; inset-inline-start: -6%; width: 112px; height: 112px; border-radius: 50%;
  background: var(--hs-badge); color: #fff; text-align: center; line-height: 1.15;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-12deg); box-shadow: 0 14px 30px rgba(0,0,0,.25); border: 4px solid rgba(255,255,255,.85);
}
.hs-badge strong { font-size: 2rem; font-weight: 800; }
.hs-badge small { font-size: .78rem; font-weight: 700; opacity: .92; }
@keyframes hs-bob { 50% { transform: translateY(-12px); } }
@keyframes hs-spin { to { transform: rotate(360deg); } }

.hs-controls { position: absolute; z-index: 5; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: var(--hs-fg); }
.hero-slider .hs-arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0;
  background: color-mix(in srgb, var(--hs-fg) 12%, transparent); color: inherit;
  border: 1px solid color-mix(in srgb, var(--hs-fg) 25%, transparent); backdrop-filter: blur(6px);
  transition: background .2s, transform .2s; box-shadow: none;
}
.hero-slider .hs-arrow:hover { background: color-mix(in srgb, var(--hs-fg) 22%, transparent); transform: scale(1.06); color: inherit; }
.hs-arrow svg { width: 22px; height: 22px; }
.hs-dots { display: flex; gap: 8px; }
.hero-slider .hs-dot {
  position: relative; width: 26px; height: 7px; border-radius: 7px; padding: 0; cursor: pointer; overflow: hidden; border: 0; min-height: 0;
  background: color-mix(in srgb, var(--hs-fg) 25%, transparent); transition: width .4s ease; box-shadow: none;
}
.hero-slider .hs-dot.is-active { width: 60px; }
.hs-dot span { position: absolute; inset: 0; inset-inline-end: auto; width: 0; background: var(--hs-fg); border-radius: inherit; }
.hs-dot.is-active span { animation: hs-progress var(--hs-duration, 6s) linear forwards; }
.hero-slider.is-paused .hs-dot.is-active span { animation-play-state: paused; }
.hero-slider.is-static .hs-dot.is-active span { animation: none; width: 100%; }
.hs-arrow:focus-visible, .hs-dot:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@keyframes hs-progress { to { width: 100%; } }

@media (max-width: 860px) {
  .hs-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; min-height: 0; padding-block: 36px 100px; }
  .hs-art { order: -1; }
  .hs-plate { width: min(220px, 58vw); }
  .hs-plate::before { inset: -12px; }
  .hs-badge { width: 84px; height: 84px; inset-inline-start: -14%; }
  .hs-badge strong { font-size: 1.4rem; }
  .hs-badge small { font-size: .65rem; }
  .hs-eyebrow::before { display: none; }
  .hs-lead { margin-inline: auto; font-size: 1.05rem; }
  .hs-actions, .hs-badges { justify-content: center; }
  .hero-slider .hs-arrow { width: 40px; height: 40px; }
}

/* =========================================================
   أقسام الصفحة الرئيسية
   ========================================================= */
.alsafa-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.alsafa-cat-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
  color: var(--brown) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.alsafa-cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.alsafa-cat-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.alsafa-cat-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.alsafa-cat-card:hover .alsafa-cat-card__media img { transform: scale(1.06); }
.alsafa-cat-card__media.is-icon { display: grid; place-items: center; }
.alsafa-cat-card .icon { font-size: 3rem; line-height: 1; display: block; }
.alsafa-cat-card__body { display: block; padding: 14px 12px 16px; }
.alsafa-cat-card strong { display: block; font-size: 1.05rem; }
.alsafa-cat-card small { color: var(--muted); }
@media (max-width: 600px) {
  .alsafa-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .alsafa-cat-card__body { padding: 10px 8px 12px; }
  .alsafa-cat-card strong { font-size: .95rem; }
}

/* صورة صغيرة للقسم داخل شريط أقسام المنيو */
.alsafa-chip__img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; margin-inline-end: 6px; vertical-align: middle; }

.alsafa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.alsafa-step { background: var(--cream); border-radius: var(--radius); padding: 28px 22px; }
.alsafa-step::before {
  counter-increment: step; content: counter(step, arabic-indic); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.alsafa-step h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.alsafa-step p { color: var(--brown-soft); margin: 0; }
@media (max-width: 760px) { .alsafa-steps { grid-template-columns: 1fr; } }

.alsafa-branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.alsafa-branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.alsafa-branch-card h3 { font-size: 1.2rem; margin: 0; color: var(--red); }
.alsafa-branch-card p { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--brown-soft); }
.alsafa-branch-card p svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--orange); }
.alsafa-branch-card p a { color: inherit; }
.alsafa-branch-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }

.alsafa-social-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.alsafa-social-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 700; color: var(--brown) !important; text-decoration: none !important; transition: all .2s;
}
.alsafa-social-btn:hover { border-color: var(--orange); transform: translateY(-2px); }
.alsafa-social-btn svg { width: 20px; height: 20px; }
.alsafa-social-btn.is-whatsapp svg { color: var(--green); }
.alsafa-social-btn.is-facebook svg { color: #1877f2; }
.alsafa-social-btn.is-tiktok svg { color: #111; }

/* =========================================================
   WooCommerce — المنيو وكروت المنتجات
   ========================================================= */
.alsafa-menu-bar { margin: 0 0 24px; }
.alsafa-search { max-width: 420px; margin: 0 auto 14px; }
.alsafa-search input[type="search"] { width: 100%; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.alsafa-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.alsafa-chip {
  flex-shrink: 0; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: .92rem; color: var(--brown) !important; text-decoration: none !important; transition: all .2s;
}
.alsafa-chip:hover { border-color: var(--orange); }
.alsafa-chip.is-active { background: var(--red); border-color: var(--red); color: #fff !important; }

/* ---------- كارت المنتج ---------- */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  position: relative; container-type: inline-size;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; padding: 0 0 14px; text-align: start;
  box-shadow: 0 2px 10px rgba(59,36,22,.04);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 16px 36px rgba(59,36,22,.12); transform: translateY(-4px); border-color: #f4c9a8; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { margin: 0; position: relative; overflow: hidden; }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .5s ease; }
.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.05); }
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 14px 14px 0; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.woocommerce ul.products li.product .ast-woo-product-category { font-size: .75rem; font-weight: 700; color: var(--orange); margin-bottom: 2px; opacity: 1; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; color: var(--brown); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; margin: 0 0 4px;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--red); }
.woocommerce ul.products li.product .price { color: var(--red) !important; font-weight: 800; font-size: 1.2rem; margin: 0 0 4px; display: block; }
.woocommerce ul.products li.product .price del { display: none; }
.alsafa-from, .alsafa-unit { color: var(--muted); font-weight: 600; font-size: .78rem; }

/* شارة الأكثر طلبًا */
.alsafa-card-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--red); backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(59,36,22,.12);
}

/* الصورة المؤقتة: طبق */
.alsafa-ph {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; line-height: 1; overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(242,106,27,.16), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(200,30,36,.12), transparent 45%),
    linear-gradient(160deg, #fff3e3, #fbe6cf);
}
.alsafa-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(59,36,22,.06) 1.5px, transparent 1.5px); background-size: 18px 18px;
}
.alsafa-ph__plate {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, #fff 0, #fff 52%, #f6ece0 100%);
  box-shadow: 0 18px 34px rgba(59,36,22,.16), inset 0 0 0 8px rgba(255,255,255,.7), inset 0 0 0 9px rgba(236,220,198,.9);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.alsafa-ph__icon { font-size: clamp(2.6rem, 30cqw, 5.2rem); filter: drop-shadow(0 10px 10px rgba(59,36,22,.2)); }
.woocommerce ul.products li.product:hover .alsafa-ph__plate { transform: scale(1.07) rotate(-6deg); }

/* صورة صفحة المنتج */
.alsafa-ph--lg { border-radius: 24px; border: 1px solid var(--line); }
.alsafa-ph--lg .alsafa-ph__plate { width: 58%; }
.alsafa-ph--lg .alsafa-ph__icon { font-size: clamp(5rem, 13vw, 9rem); }

/* الصور الصغيرة في السلة */
.woocommerce-cart-form .product-thumbnail .alsafa-ph,
.woocommerce-mini-cart-item .alsafa-ph,
.widget_shopping_cart .alsafa-ph,
.woocommerce-checkout-review-order .alsafa-ph { width: 60px; height: 60px; aspect-ratio: auto; border-radius: 14px; display: inline-grid; float: none; }
.woocommerce-cart-form .alsafa-ph::before, .widget_shopping_cart .alsafa-ph::before { display: none; }
.woocommerce-cart-form .alsafa-ph__plate, .widget_shopping_cart .alsafa-ph__plate { width: 80%; box-shadow: 0 4px 10px rgba(59,36,22,.12); }
.woocommerce-cart-form .alsafa-ph__icon, .widget_shopping_cart .alsafa-ph__icon { font-size: 1.5rem; }

/* أزرار الوزن داخل الكارت */
.alsafa-add { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.alsafa-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.alsafa-pill { flex: 1 1 0; min-width: 0; position: relative; cursor: pointer; margin: 0; }
.alsafa-pills:has(.alsafa-pill:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; }
.alsafa-pill input { position: absolute; opacity: 0; pointer-events: none; }
.alsafa-pill span {
  display: block; text-align: center; white-space: nowrap; padding: 6px 4px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--cream); font-size: .78rem; font-weight: 700; color: var(--brown-soft);
  transition: all .18s;
}
.alsafa-pill:hover span { border-color: var(--orange); color: var(--brown); }
.alsafa-pill input:checked + span { border-color: var(--red); background: #fdeceb; color: var(--red); }
.alsafa-pill input:focus-visible + span { outline: 2px solid rgba(242,106,27,.5); outline-offset: 1px; }

/* الكمية + زر الإضافة */
.alsafa-add-row { display: flex; gap: 8px; align-items: center; }
.alsafa-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--cream); flex-shrink: 0; }
.alsafa-qty button { width: 30px; height: 40px; border: 0; background: none !important; color: var(--brown) !important; font-size: 1.15rem; font-weight: 700; cursor: pointer; padding: 0; box-shadow: none; }
.alsafa-qty button:hover { background: var(--cream-2) !important; }
.alsafa-qty input { width: 30px; height: 40px; text-align: center; border: 0 !important; background: none !important; font-weight: 800; padding: 0 !important; -moz-appearance: textfield; box-shadow: none !important; }
.alsafa-qty input::-webkit-outer-spin-button, .alsafa-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .alsafa-add .alsafa-add-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px !important; padding: 0 12px !important; min-height: 40px; margin: 0 !important;
  font-weight: 800; font-size: .92rem; white-space: nowrap; line-height: 1;
  background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(200,30,36,.22); transition: background .2s, transform .15s;
}
.woocommerce .alsafa-add .alsafa-add-btn:hover { background: var(--red-dark); }
.woocommerce .alsafa-add .alsafa-add-btn:active { transform: scale(.96); }
.woocommerce .alsafa-add .alsafa-add-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.woocommerce .alsafa-add .alsafa-add-btn.is-done { background: var(--green); box-shadow: 0 6px 14px rgba(31,157,85,.25); }
.alsafa-add-btn.loading { opacity: .7; }
.woocommerce .alsafa-add .alsafa-add-btn.added::after, .woocommerce .alsafa-add .alsafa-add-btn.loading::after { display: none !important; }

/* كروت ضيقة (عمودين على الجوال) */
@container (max-width: 200px) {
  .astra-shop-summary-wrap { padding-inline: 10px !important; }
  .alsafa-add-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .alsafa-qty { justify-content: space-between; }
  .alsafa-qty input { flex: 1; }
  .alsafa-pill span { font-size: .72rem; padding: 6px 2px; }
  .woocommerce-loop-product__title { font-size: .92rem !important; }
}

.alsafa-empty-cta { text-align: center; margin: 16px 0 32px; }
.term-description, .woocommerce-products-header__description { background: #fff; border: 1px dashed var(--orange); border-radius: var(--radius); padding: 16px 20px; }

/* =========================================================
   صفحة المنتج
   ========================================================= */
.single-product .site-content > .ast-container { padding-top: 32px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images.woocommerce-product-gallery,
.woocommerce div.product div.summary { grid-column: auto; width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images.woocommerce-product-gallery { position: relative; height: auto; }

/* الصورة / الصورة المؤقتة */
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce div.product .alsafa-ph--lg {
  aspect-ratio: 4 / 3; width: 100%; font-size: clamp(6.5rem, 20vw, 11rem); border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, #fff 0, rgba(255,255,255,0) 55%),
    radial-gradient(circle at 15% 15%, rgba(242,106,27,.18), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(200,30,36,.14), transparent 45%),
    var(--cream-2);
  border: 1px solid var(--line); filter: drop-shadow(0 0 0 transparent);
  text-shadow: 0 24px 30px rgba(59,36,22,.22);
}

/* كارت الملخص */
.woocommerce div.product div.summary {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
}
.single-product .woocommerce-breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.single-product .woocommerce-breadcrumb a { color: var(--muted); }
.single-product .summary .product_meta { display: none; }
.single-product .summary .single-product-category {
  display: block; width: fit-content; background: #fdeceb; color: var(--red); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 700; margin-bottom: 8px;
}
.single-product .summary .single-product-category a { color: inherit; }
.woocommerce div.product .product_title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.3; color: var(--brown); margin: 0 0 6px;
}
.alsafa-product-sub { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price {
  color: var(--red); font-size: 1.9rem; font-weight: 800; margin: 0 0 20px;
  padding-bottom: 18px; border-bottom: 2px dashed var(--line); display: block;
}
.woocommerce div.product .summary .price .alsafa-from, .woocommerce div.product .summary .price .alsafa-unit { font-size: .95rem; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--brown-soft); margin-bottom: 16px; }

/* اختيار الوزن */
.woocommerce div.product form.cart .variations { border: 0; margin: 0 0 12px; width: 100%; }
.woocommerce div.product form.cart .variations tr, .woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; border: 0; background: none; text-align: start; }
.woocommerce div.product form.cart .variations th.label label { font-weight: 800; color: var(--brown); margin-bottom: 10px; display: block; }
.woocommerce div.product form.cart .variations th.label label::before { content: "اختر "; }
.alsafa-sw-select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; }
.woocommerce div.product form.cart .reset_variations { display: none !important; }
.alsafa-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.woocommerce .alsafa-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--cream); color: var(--brown); cursor: pointer; line-height: 1.3;
  transition: border-color .2s, background .2s, transform .15s; box-shadow: none; font-family: var(--font-body);
}
.woocommerce .alsafa-swatch:hover { border-color: var(--orange); background: #fff; color: var(--brown); }
.woocommerce .alsafa-swatch strong { font-size: 1rem; font-weight: 800; }
.woocommerce .alsafa-swatch small { font-size: .85rem; color: var(--muted); font-weight: 700; }
.woocommerce .alsafa-swatch.is-active { border-color: var(--red); background: #fdeceb; color: var(--red); }
.woocommerce .alsafa-swatch.is-active small { color: var(--red); }
.woocommerce .alsafa-swatch:focus-visible { outline: 3px solid rgba(242,106,27,.4); outline-offset: 2px; }
.woocommerce div.product .woocommerce-variation-price { display: none; }
.woocommerce div.product .woocommerce-variation-description p { color: var(--brown-soft); }

/* الكمية + زر الإضافة */
.woocommerce div.product form.cart:not(.variations_form), .woocommerce div.product .woocommerce-variation-add-to-cart {
  display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 16px;
}
.woocommerce div.product form.cart:not(.variations_form)::before, .woocommerce div.product form.cart:not(.variations_form)::after,
.woocommerce div.product .woocommerce-variation-add-to-cart::before, .woocommerce div.product .woocommerce-variation-add-to-cart::after { display: none; }
.woocommerce .quantity { display: inline-flex !important; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); overflow: hidden; float: none !important; margin: 0 !important; }
.woocommerce .quantity .qty {
  width: 44px !important; height: 48px; border: 0 !important; background: none !important; text-align: center; font-weight: 800; font-size: 1.05rem;
  padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield;
}
.woocommerce .quantity .qty::-webkit-outer-spin-button, .woocommerce .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity .alsafa-qbtn {
  width: 40px; height: 48px; border: 0; background: none; color: var(--brown); font-size: 1.3rem; font-weight: 700; cursor: pointer; padding: 0; box-shadow: none;
}
.woocommerce .quantity .alsafa-qbtn:hover { background: var(--cream-2); color: var(--brown); }
.woocommerce-cart .quantity .qty, .woocommerce-cart .quantity .alsafa-qbtn { height: 38px; }
.woocommerce-cart .quantity .alsafa-qbtn { width: 32px; }
.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1; min-height: 50px; border-radius: 999px !important; font-size: 1.05rem; font-weight: 800; float: none;
  background: var(--red); box-shadow: 0 8px 20px rgba(200,30,36,.25);
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: var(--red-dark); }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled { opacity: .5; }
.woocommerce div.product form.cart .single_add_to_cart_button.added::after,
.woocommerce div.product form.cart .single_add_to_cart_button.loading::after { display: none !important; }
.woocommerce div.product form.cart .single_add_to_cart_button.loading { opacity: .7; }
.ast-sticky-add-to-cart { display: none; }
.single-product form.cart .added_to_cart { display: none !important; }

/* زر واتساب والمميزات */
.alsafa-btn--wa-outline { width: 100%; margin-top: 12px; border-color: var(--green); color: var(--green) !important; background: #fff; }
.alsafa-btn--wa-outline:hover { background: var(--green); color: #fff !important; }
.alsafa-perks { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alsafa-perks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.alsafa-perks li > span { font-size: 1.4rem; line-height: 1; width: 40px; height: 40px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; flex-shrink: 0; }
.alsafa-perks strong { display: block; font-size: .92rem; color: var(--brown); line-height: 1.4; }
.alsafa-perks small { color: var(--muted); font-size: .8rem; }

/* التبويبات والمقترحات */
.woocommerce div.product .woocommerce-tabs { margin-top: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.woocommerce div.product .related.products, .woocommerce div.product .up-sells { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.woocommerce div.product .related.products > h2, .woocommerce div.product .up-sells > h2 { font-family: var(--font-head); font-size: 1.8rem; text-align: center; margin-bottom: 24px; }

@media (max-width: 921px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce div.product div.summary { padding: 22px 18px; }
  .woocommerce div.product .alsafa-ph--lg { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .alsafa-perks { grid-template-columns: 1fr; }
  .alsafa-swatches { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
  .woocommerce .alsafa-swatch { padding: 10px 4px; }
  .woocommerce .alsafa-swatch strong { font-size: .92rem; }
}

/* اسم الموقع على الجوال */
@media (max-width: 544px) {
  .site-title, .site-title a { font-size: 1rem !important; line-height: 1.35 !important; }
  .ast-site-identity { max-width: 210px; }
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-billing-fields {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border-radius: var(--radius-sm); border-color: var(--line); background: var(--cream);
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,27,.15); }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { background: var(--green); border-radius: 999px; font-size: 1.1rem; padding: 14px; width: 100%; }
.woocommerce #payment #place_order:hover { background: #17834a; }
.woocommerce-shipping-methods li label { font-weight: 700; }
#billing_address_1_field .alsafa-req { display: none; }
#billing_address_1_field.alsafa-required .alsafa-req { display: inline; }
#billing_address_1_field.alsafa-required .optional { display: none; }

/* صفحة شكرًا */
.alsafa-wa-confirm {
  background: #e9f7ef; border: 1px solid #b6e2c8; border-radius: var(--radius); padding: 24px; margin: 0 0 28px; text-align: center;
}
.alsafa-wa-confirm h2 { color: #14633a; font-size: 1.4rem; margin: 0 0 8px; }
.alsafa-wa-confirm p { color: #24543a; }
.alsafa-wa-countdown { font-size: .9rem; margin: 12px 0 0; }

/* =========================================================
   السلة الجانبية
   ========================================================= */
/* إخفاء القائمة المنسدلة ودرج Astra الافتراضيين */
.ast-site-header-cart .widget_shopping_cart,
#astra-mobile-cart-drawer, .astra-mobile-cart-overlay, .astra-cart-drawer, .astra-cart-drawer-overlay { display: none !important; }
html.alsafa-lock, html.alsafa-lock body { overflow: hidden; }

.alsafa-drawer { position: fixed; inset: 0; z-index: 100000; }
.alsafa-drawer[hidden] { display: none; }
.alsafa-drawer__overlay { position: absolute; inset: 0; background: rgba(36, 19, 10, .45); backdrop-filter: blur(2px); opacity: 0; transition: opacity .3s; }
.alsafa-drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100vw);
  background: var(--cream); box-shadow: 0 0 40px rgba(36,19,10,.25);
  transform: translateX(-100%); transition: transform .32s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
}
[dir="ltr"] .alsafa-drawer__panel { transform: translateX(100%); }
.alsafa-drawer.is-open .alsafa-drawer__overlay { opacity: 1; }
.alsafa-drawer.is-open .alsafa-drawer__panel { transform: none; }
.admin-bar .alsafa-drawer__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .alsafa-drawer__panel { top: 46px; } }

.alsafa-drawer__inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.alsafa-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.alsafa-drawer__head h2 { font-family: var(--font-head); font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--brown); }
.alsafa-drawer__count {
  font-family: var(--font-body); font-size: .8rem; font-weight: 800; background: var(--red); color: #fff;
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center;
}
.alsafa-drawer .alsafa-drawer__close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--cream); color: var(--brown); cursor: pointer; transition: background .2s, transform .2s; box-shadow: none;
}
.alsafa-drawer .alsafa-drawer__close:hover { background: var(--cream-2); transform: rotate(90deg); color: var(--brown); }
.alsafa-drawer__close svg { width: 20px; height: 20px; }

/* العناصر */
.alsafa-drawer__items { list-style: none; margin: 0; padding: 14px 16px; overflow-y: auto; flex: 1; min-height: 0; display: grid; gap: 10px; align-content: start; }
.alsafa-drawer__item {
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin: 0;
  transition: opacity .2s;
}
.alsafa-drawer__item.is-busy { opacity: .5; pointer-events: none; }
.alsafa-drawer__thumb { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; }
.alsafa-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; }
.alsafa-drawer__thumb .alsafa-ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 12px; }
.alsafa-drawer__thumb .alsafa-ph::before { display: none; }
.alsafa-drawer__thumb .alsafa-ph__plate { width: 78%; box-shadow: 0 6px 12px rgba(59,36,22,.14), inset 0 0 0 4px rgba(255,255,255,.7), inset 0 0 0 5px rgba(236,220,198,.9); }
.alsafa-drawer__thumb .alsafa-ph__icon { font-size: 1.7rem; }
.alsafa-drawer__info { min-width: 0; padding-inline-end: 28px; display: flex; flex-direction: column; gap: 4px; }
.alsafa-drawer__name { font-weight: 800; color: var(--brown) !important; line-height: 1.4; text-decoration: none !important; }
.alsafa-drawer__name:hover { color: var(--red) !important; }
.alsafa-drawer__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.alsafa-drawer__variant { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-weight: 700; color: var(--brown-soft); }
.alsafa-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.alsafa-drawer__qty { display: inline-flex; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.alsafa-drawer .alsafa-drawer__qty button {
  width: 32px; height: 32px; border: 0; background: none; color: var(--brown); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; padding: 0; display: grid; place-items: center; box-shadow: none;
}
.alsafa-drawer .alsafa-drawer__qty button:hover { background: var(--cream-2); color: var(--brown); }
.alsafa-drawer__qty button svg { width: 15px; height: 15px; color: var(--red); }
.alsafa-drawer__qty span { min-width: 26px; text-align: center; font-weight: 800; }
.alsafa-drawer__line { color: var(--red); font-weight: 800; font-size: 1rem; }
.alsafa-drawer .alsafa-drawer__remove {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; box-shadow: none; transition: background .2s, color .2s;
}
.alsafa-drawer .alsafa-drawer__remove:hover { background: #fdeceb; color: var(--red); }
.alsafa-drawer__remove svg { width: 17px; height: 17px; }

/* الذيل */
.alsafa-drawer__foot { background: #fff; border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(59,36,22,.06); }
.alsafa-drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.05rem; color: var(--brown); }
.alsafa-drawer__total strong { color: var(--red); font-size: 1.45rem; }
.alsafa-drawer__note { font-size: .8rem; color: var(--muted); margin: 6px 0 14px; }
.alsafa-drawer__checkout { width: 100%; min-height: 50px; font-size: 1.05rem; }
.alsafa-drawer__links { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .88rem; font-weight: 700; }
.alsafa-drawer__links a, .alsafa-drawer__links button { color: var(--brown-soft) !important; }
.alsafa-drawer__links a:hover, .alsafa-drawer__links button:hover { color: var(--red) !important; }
.alsafa-drawer .alsafa-link-btn { background: none; box-shadow: none; padding: 0; }

/* سلة فارغة */
.alsafa-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 28px; }
.alsafa-drawer__empty-plate {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 3.4rem; margin-bottom: 18px;
  background: radial-gradient(circle at 38% 32%, #fff 0, #fff 52%, #f6ece0 100%);
  box-shadow: 0 14px 30px rgba(59,36,22,.14), inset 0 0 0 7px rgba(255,255,255,.7), inset 0 0 0 8px rgba(236,220,198,.9);
}
.alsafa-drawer__empty h3 { font-family: var(--font-head); font-size: 1.4rem; margin: 0 0 6px; color: var(--brown); }
.alsafa-drawer__empty p { color: var(--muted); margin: 0 0 18px; }

@media (prefers-reduced-motion: reduce) {
  .alsafa-drawer__panel, .alsafa-drawer__overlay { transition: none; }
}

/* =========================================================
   الفوتر والعناصر العائمة
   ========================================================= */
.alsafa-footer { background: var(--brown); color: #e8d6c3; padding: 48px 0 28px; }
.alsafa-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.alsafa-footer h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .8em; }
.alsafa-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.alsafa-footer a { color: #e8d6c3; }
.alsafa-footer a:hover { color: #fff; }
.alsafa-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.alsafa-footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.alsafa-footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.15rem; }
.alsafa-footer-social { display: flex; gap: 10px; margin-top: 12px; }
.alsafa-footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.alsafa-footer-social a:hover { background: var(--orange); }
.alsafa-footer-social svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .alsafa-footer-grid { grid-template-columns: 1fr; } }
.site-footer .ast-footer-copyright, .site-below-footer-wrap { background: #2c1810 !important; color: #cdb69f; }
.site-below-footer-wrap { border-top: 1px solid rgba(255,255,255,.08); }

.alsafa-fab {
  position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff !important; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,157,85,.4);
}
.alsafa-fab svg { width: 28px; height: 28px; }
.alsafa-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 160%); z-index: 9999;
  background: var(--brown); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow-lg); transition: transform .3s; max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center;
}
.alsafa-toast a { color: #ffb25e; text-decoration: underline; }
.alsafa-toast.show { transform: translate(-50%, 0); }
/* إخفاء زر "عرض السلة" الافتراضي بعد الإضافة لأن التنبيه يعرضه */
.alsafa-add .added_to_cart { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hs-plate, .hs-plate::before, .hs-float { animation: none; }
  .hs-content > *, .hs-art { transition: none; transform: none; }
  .hs-dot.is-active span { animation: none; width: 100%; }
}
