/* ============================================================
   MARYNATY — Premium UI layer
   هيرو سلايدر + هيدر زجاجي + كروت وصفحة منتج فخمة
   ============================================================ */

/* ==========================================================
   1) هيدر شفاف بتأثير زجاجي (glassmorphism) على الصفحة الرئيسية
   ========================================================== */
.marynaty-transparent-header #main-container > header,
.marynaty-transparent-header header#header {
  position: absolute !important;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent !important;
}
/* اجعل الهيدر يطفو فوق الهيرو */
.marynaty-transparent-header [data-row="middle"],
.marynaty-transparent-header .ct-header {
  background: transparent !important;
}
/* نص/أيقونات الهيدر بيضاء فوق الهيرو الداكن */
.marynaty-transparent-header:not(.my-scrolled) header#header a,
.marynaty-transparent-header:not(.my-scrolled) header#header .ct-icon-container,
.marynaty-transparent-header:not(.my-scrolled) header#header button {
  color: #fff !important;
}
.marynaty-transparent-header:not(.my-scrolled) header#header svg { fill: #fff !important; }

/* الحالة بعد التمرير: هيدر زجاجي ثابت */
.marynaty-transparent-header.my-scrolled header#header {
  position: fixed !important;
  background: rgba(22, 22, 22, 0.72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  animation: mySlideDown .4s var(--my-ease);
}
.marynaty-transparent-header.my-scrolled header#header a,
.marynaty-transparent-header.my-scrolled header#header .ct-icon-container { color: #fff !important; }
.marynaty-transparent-header.my-scrolled header#header svg { fill: #fff !important; }
.marynaty-transparent-header.my-scrolled header#header a:hover { color: var(--my-gold) !important; }

/* هيدر زجاجي ثابت لباقي الصفحات كمان (اختياري - لمسة فخامة) */
body:not(.marynaty-transparent-header).my-scrolled header#header {
  position: fixed !important;
  inset-inline: 0; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--my-shadow-md);
}

@keyframes mySlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ---------- تقليل ارتفاع الهيدر (كان 120px عالي جداً) ---------- */
header#header [data-row="middle"] { --height: 84px; }

/* ---------- كبسولة المنيو الزجاجية (pill مدمج ومحاذى بالمنتصف) ---------- */
header#header .header-menu-1 > ul.menu {
  height: 50px;
  align-self: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--my-radius-pill);
  padding: 0 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}
header#header .header-menu-1 > ul.menu > li { display: flex; align-items: center; }
header#header .header-menu-1 > ul.menu > li > a { height: 38px; display: inline-flex; align-items: center; }
/* على الصفحات ذات الهيدر الفاتح: كبسولة داكنة خفيفة */
body:not(.marynaty-transparent-header) header#header .header-menu-1 > ul.menu {
  background: rgba(36, 36, 36, 0.04);
  border-color: rgba(36, 36, 36, 0.09);
  box-shadow: 0 3px 14px rgba(22, 22, 22, 0.05);
}

/* ---------- توحيد أيقونات الهيدر (بحث + حساب + سلة) في كتلة واحدة ---------- */
header#header .ct-header-search {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; align-self: center; padding: 0;
}
header#header .ct-header-search svg,
header#header .ct-header-search .ct-icon { width: 19px; height: 19px; }

.my-header-actions { display: flex; align-items: center; gap: 4px; align-self: center; }
.my-hicon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: inherit;
  transition: all var(--my-duration) var(--my-ease);
}
.my-hicon svg { width: 19px; height: 19px; }
/* الأيقونات outline (stroke) — امنع تعبئتها بالأبيض (specificity أعلى من قاعدة svg{fill}) */
body header#header .my-header-actions svg,
body.marynaty-transparent-header header#header .my-header-actions svg { fill: none !important; }
body.marynaty-transparent-header header#header .my-header-actions svg { stroke: #fff !important; }
body:not(.marynaty-transparent-header) header#header .my-header-actions svg { stroke: var(--my-charcoal) !important; }
.marynaty-transparent-header .my-hicon { color: #fff; }
body:not(.marynaty-transparent-header) .my-hicon { color: var(--my-charcoal); }
.my-hicon:hover {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--my-gold);
}
body:not(.marynaty-transparent-header) .my-hicon:hover { background: rgba(36, 36, 36, 0.06); }
.my-cart-count {
  position: absolute; top: 2px; inset-inline-end: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--my-gold); color: var(--my-charcoal);
  font-size: 11px; font-weight: 700; line-height: 1; border-radius: var(--my-radius-pill);
}

/* ---------- تأثير زجاجي على عناصر المنيو (طبقة ::before بارتفاع ثابت) ---------- */
header#header .menu > .menu-item > a { position: relative; }
header#header .menu > .menu-item > a > * { position: relative; z-index: 2; }
header#header .menu > .menu-item > a::before {
  content: ""; position: absolute; z-index: 1;
  left: 5px; right: 5px; top: 50%; transform: translateY(-50%);
  height: 38px; border-radius: var(--my-radius-pill);
  background: transparent; transition: all var(--my-duration) var(--my-ease);
}
header#header .menu > .menu-item > a:hover::before,
header#header .menu > .menu-item.current-menu-item > a::before {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
/* في الهيدر الأبيض (صفحات داخلية) الزجاج داكن خفيف */
body:not(.marynaty-transparent-header) header#header .menu > .menu-item > a:hover::before,
body:not(.marynaty-transparent-header) header#header .menu > .menu-item.current-menu-item > a::before {
  background: rgba(36, 36, 36, 0.06);
  box-shadow: inset 0 0 0 1px rgba(36, 36, 36, 0.10);
}
/* أزرار الأيقونات (بحث / حساب / سلة) بزجاج دائري عند المرور */
header#header .ct-icon-container { border-radius: 50%; transition: all var(--my-duration) var(--my-ease); }
header#header .ct-icon-container:hover {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body:not(.marynaty-transparent-header) header#header .ct-icon-container:hover {
  background: rgba(36, 36, 36, 0.06);
}

/* حجم اللوجو */
header#header .site-logo-container img,
header#header .ct-logo-container img { max-height: 52px; width: auto; }

/* ---------- لوجو أبيض (خلفية شفافة) على الهيدر الداكن/الشفاف بالرئيسية ---------- */
.marynaty-transparent-header .site-logo-container {
  background-image: url('assets/logo-white.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.marynaty-transparent-header .site-logo-container img {
  opacity: 0; /* نخفي اللوجو الداكن ونظهر الأبيض كخلفية — نحافظ على الأبعاد */
}

/* إخفاء اسم الموقع النصي (عندنا لوجو صورة) */
.site-branding .site-title-container,
header#header .site-title-container { display: none !important; }

/* مساحة علوية عند القفز للتابات/الروابط (بسبب الهيدر الثابت) */
html { scroll-padding-top: 96px; }
.woocommerce-tabs .woocommerce-Tabs-panel { scroll-margin-top: 96px; }

/* ==========================================================
   2) هيرو سلايدر فخم (Swiper)
   ========================================================== */
.my-hero-slider { position: relative; }
.my-hero-swiper {
  height: min(94vh, 860px);
  min-height: 620px;
}
.my-hero-slide { position: relative; overflow: hidden; }
.my-hero-slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.12);
  transition: transform 7s ease-out;
}
/* Ken Burns: زووم بطيء للسلايد النشط */
.swiper-slide-active .my-hero-slide__bg { transform: scale(1); }
.my-hero-slide__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15,15,15,0.92) 0%, rgba(20,20,20,0.72) 42%, rgba(20,20,20,0.30) 100%),
    linear-gradient(0deg, rgba(15,15,15,0.55) 0%, rgba(15,15,15,0) 45%);
}
.my-hero-slide__content {
  position: relative; z-index: 2;
  max-width: var(--my-container);
  margin: 0 auto;
  padding: 96px var(--my-space-5) 40px; /* مساحة علوية تحت الهيدر */
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
/* النص مرئي دائمًا (opacity:1 ثابت) — ضمان مطلق ألا يختفي أبدًا مهما حصل للأنيميشن.
   السبب الجذري للاختفاء: الأنيميشن كان بيحرّك الـ opacity، ولو تعطّل/تجمّد (بسبب إعادة Swiper
   ترتيب عناصر DOM في وضع loop) النص بيفضل عند opacity:0. الحل: نحرّك الـ transform فقط. */
.my-hero-slide__content > * { opacity: 1; will-change: transform; }
/* الأنيميشن يُشغّل عبر JS بإضافة .my-anim للشريحة النشطة (إعادة تشغيل موثوقة مع loop) */
.my-hero-slide.my-anim .my-hero-slide__content > * {
  animation: myHeroIn .5s var(--my-ease) both;
}
.my-hero-slide.my-anim .my-hero-slide__content > *:nth-child(1) { animation-delay: .04s; }
.my-hero-slide.my-anim .my-hero-slide__content > *:nth-child(2) { animation-delay: .11s; }
.my-hero-slide.my-anim .my-hero-slide__content > *:nth-child(3) { animation-delay: .18s; }
.my-hero-slide.my-anim .my-hero-slide__content > *:nth-child(4) { animation-delay: .25s; }
/* transform فقط — حتى لو تجمّد الأنيميشن عند "from" يفضل النص ظاهر (بس مُزاح 18px) */
@keyframes myHeroIn { from { transform: translateY(18px); } to { transform: translateY(0); } }

.my-hero-slide__content .my-hero__eyebrow {
  display: inline-block; color: var(--my-gold);
  font-size: var(--my-text-sm); font-weight: var(--my-weight-semibold);
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--my-space-4);
}
.my-hero-slide__content .my-hero__title {
  font-family: var(--my-font-heading); font-weight: var(--my-weight-black);
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.06; text-transform: uppercase;
  color: #fff; margin: 0 0 var(--my-space-4); max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.my-hero-slide__content .my-hero__title em { color: var(--my-gold); font-style: normal; }
.my-hero-slide__content .my-hero__sub {
  color: rgba(255,255,255,.82); max-width: 480px; font-size: var(--my-text-lg);
  line-height: var(--my-leading-normal); margin-bottom: var(--my-space-6);
}
.my-hero__cta { display: flex; gap: var(--my-space-4); flex-wrap: wrap; align-items: center; }
.my-hero__cta .button {
  box-shadow: var(--my-shadow-gold);
}

/* شريط مميزات زجاجي أسفل الهيرو */
.my-hero-slider .my-hero__badges {
  position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  display: flex; gap: var(--my-space-5); flex-wrap: wrap; justify-content: center;
  list-style: none; margin: 0; padding: var(--my-space-4) var(--my-space-6);
  background: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--my-radius-pill);
  box-shadow: var(--my-shadow-lg);
  width: max-content; max-width: 94vw;
}
.my-hero-slider .my-hero__badges li {
  font-size: var(--my-text-sm); font-weight: var(--my-weight-semibold);
  color: var(--my-charcoal); white-space: nowrap;
}

/* pagination + أسهم */
.my-hero-pagination { bottom: 92px !important; }
.my-hero-swiper .swiper-pagination-bullet {
  width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); opacity: 1;
  transition: background .3s, width .3s;
}
.my-hero-swiper .swiper-pagination-bullet-active { background: var(--my-gold); width: 44px; }
.my-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; cursor: pointer; user-select: none;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: all var(--my-duration) var(--my-ease);
}
.my-hero-nav:hover { background: var(--my-gold); color: var(--my-charcoal); border-color: var(--my-gold); }
.my-hero-nav--prev { inset-inline-start: 24px; }
.my-hero-nav--next { inset-inline-end: 24px; }

@media (max-width: 768px) {
  .my-hero-swiper { height: 82vh; min-height: 500px; }
  .my-hero-nav { display: none; }
  .my-hero-slider .my-hero__badges { gap: var(--my-space-3); padding: var(--my-space-3) var(--my-space-4); }
  .my-hero-slider .my-hero__badges li { font-size: var(--my-text-xs); }
  .my-hero__cta .button, .my-hero__cta .my-btn-ghost { width: auto; }
}

/* هامش علوي للقسم اللي بعد الهيرو (بسبب شريط المميزات الطافي) */
.my-hero-slider + .my-section { padding-top: calc(var(--my-space-7) + 28px); }

/* تقليل المسافات الرأسية بين الأقسام (كانت 96px عالية) */
#marynaty-home .my-section { padding-top: var(--my-space-7); padding-bottom: var(--my-space-7); }
#marynaty-home .my-why { padding-top: var(--my-space-6); }
#marynaty-home .my-section--alt { padding-top: var(--my-space-6); }

/* ==========================================================
   3) بطاقة منتج فخمة (شوب + كاروسيلات)
   ========================================================== */
[data-products] .product,
ul.products li.product {
  position: relative;
  border-radius: var(--my-radius-lg) !important;
  overflow: hidden;
  background: var(--my-white);
  border: 1px solid var(--my-gray-200);
  transition: transform .35s var(--my-ease), box-shadow .35s var(--my-ease), border-color .35s var(--my-ease);
}
[data-products] .product:hover,
ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(22,22,22,.14);
  border-color: transparent;
}
/* الصورة داخل الكارت */
[data-products] .product .ct-media-container,
ul.products li.product a img,
ul.products li.product img {
  border-radius: 0 !important;
}
ul.products li.product a img {
  transition: transform .6s var(--my-ease);
  aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
}
ul.products li.product:hover a img { transform: scale(1.06); }

/* شارة "Gotowe w 10 minut" فخمة */
.my-card-badges {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.my-badge {
  font-size: var(--my-text-xs); font-weight: var(--my-weight-semibold);
  padding: 6px 12px; border-radius: var(--my-radius-pill);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: var(--my-shadow-sm); letter-spacing: .01em;
}
.my-badge-quick { background: rgba(252, 200, 0, 0.95); color: var(--my-charcoal); }

/* ---------- تخطيط الكارت: أعمدة مرتبة + زر full-width بالأسفل ---------- */
ul.products li.product,
[data-products] .product { display: flex; flex-direction: column; padding-bottom: 18px; }
ul.products li.product figure { order: 1; margin: 0 0 14px; }
ul.products li.product .entry-meta { order: 2; margin: 0 18px 4px; padding: 0; }
ul.products li.product .woocommerce-loop-product__title { order: 3; padding: 0 18px; min-height: 2.6em; margin-bottom: 8px; font-size: 1.05rem !important; }
ul.products li.product .price { order: 4; padding: 0 18px; }
ul.products li.product .ct-woo-card-actions { order: 5; margin-top: auto; padding: 14px 18px 0; }
/* التصنيفات كـ eyebrow صغير فوق الاسم */
ul.products li.product .entry-meta .meta-categories { display: block; }
ul.products li.product .entry-meta .meta-categories a {
  font-size: 11px !important; color: var(--my-gold-text) !important;
  text-transform: uppercase; letter-spacing: .06em; font-weight: var(--my-weight-semibold);
}
/* زر الكارت full-width */
ul.products li.product .ct-woo-card-actions .button,
ul.products li.product .ct-woo-card-actions .add_to_cart_button {
  width: 100% !important; justify-content: center; text-align: center;
}

/* السعر بالهوية */
ul.products li.product .price,
[data-products] .product .price { color: var(--my-charcoal) !important; font-weight: var(--my-weight-bold) !important; font-size: 1.15rem !important; }
ul.products li.product .price bdi { color: var(--my-charcoal); }

/* زر الكارت */
ul.products li.product .button,
ul.products li.product .add_to_cart_button,
[data-products] .ct-woo-card-actions a {
  border-radius: var(--my-radius-md) !important;
  font-weight: var(--my-weight-semibold) !important;
  letter-spacing: var(--my-tracking-wide);
  text-transform: uppercase;
  transition: all var(--my-duration) var(--my-ease);
}
ul.products li.product .button:hover { box-shadow: var(--my-shadow-gold); transform: translateY(-1px); }

/* ==========================================================
   4) صفحة المنتج فخمة
   ========================================================== */
.single-product .entry-summary .price {
  color: var(--my-charcoal); font-family: var(--my-font-heading);
}

/* محتوى التابات (تحضير / مكونات / تخزين) */
.my-tab h4 {
  font-family: var(--my-font-heading); font-size: 1rem; font-weight: var(--my-weight-bold);
  color: var(--my-charcoal); margin: var(--my-space-4) 0 var(--my-space-1);
}
.my-tab p { color: var(--my-gray-700); line-height: var(--my-leading-normal); margin: 0 0 var(--my-space-3); }
.my-prep__row {
  padding: var(--my-space-3) 0; border-bottom: 1px solid var(--my-gray-200);
}
.my-prep__row:last-of-type { border-bottom: 0; }
.my-prep__row h4 {
  margin: 0 0 4px; padding-inline-start: var(--my-space-3);
  border-inline-start: 3px solid var(--my-gold);
}
.my-prep__row p { margin: 0; }
.my-prep__note {
  margin-top: var(--my-space-4); padding: var(--my-space-3) var(--my-space-4);
  background: var(--my-gold-tint); border-radius: var(--my-radius-sm);
  font-size: var(--my-text-sm); color: var(--my-gray-800);
}
/* صورة المنتج بإطار ناعم */
.single-product .woocommerce-product-gallery {
  border-radius: var(--my-radius-lg); overflow: hidden; box-shadow: var(--my-shadow-md);
}
/* زر الإضافة للسلة كبير وذهبي */
.single-product .single_add_to_cart_button {
  background: var(--my-gold) !important; color: var(--my-charcoal) !important;
  border-radius: var(--my-radius-md) !important; font-weight: var(--my-weight-bold) !important;
  text-transform: uppercase; letter-spacing: var(--my-tracking-wide);
  min-height: 56px; transition: all var(--my-duration) var(--my-ease);
}
.single-product .single_add_to_cart_button:hover {
  background: var(--my-gold-hover) !important; box-shadow: var(--my-shadow-gold); transform: translateY(-2px);
}
/* ---------- التابات: حدود + ألوان متناسقة مختلفة لكل تاب + إيموجي ---------- */
.woocommerce-tabs .tabs {
  display: flex; flex-wrap: wrap; gap: 10px; border: 0 !important; margin-bottom: var(--my-space-5) !important;
}
.woocommerce-tabs .tabs::before,
.woocommerce-tabs .tabs::after { display: none !important; }
.woocommerce-tabs .tabs li {
  margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important;
}
.woocommerce-tabs .tabs li::before,
.woocommerce-tabs .tabs li::after { display: none !important; }
.woocommerce-tabs .tabs li a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px !important; border-radius: var(--my-radius-pill);
  border: 1.5px solid var(--my-gray-300); background: var(--my-white);
  font-family: var(--my-font-heading); font-weight: var(--my-weight-semibold) !important;
  font-size: var(--my-text-sm) !important; text-transform: none !important; color: var(--my-gray-700) !important;
  transition: all var(--my-duration) var(--my-ease);
}
.woocommerce-tabs .tabs li a:hover { transform: translateY(-2px); }
/* ألوان متناسقة مختلفة لكل تاب (active) */
.woocommerce-tabs .tabs li:nth-child(1) a { --tc: #F5B41A; --tcb: #FFF7DB; }
.woocommerce-tabs .tabs li:nth-child(2) a { --tc: #CC3B2E; --tcb: #FCEBE9; }
.woocommerce-tabs .tabs li:nth-child(3) a { --tc: #1E8A4C; --tcb: #E6F5EC; }
.woocommerce-tabs .tabs li:nth-child(4) a { --tc: #1F6FB2; --tcb: #E8F1F9; }
.woocommerce-tabs .tabs li:nth-child(5) a { --tc: #8A5B43; --tcb: #F3EBE5; }
.woocommerce-tabs .tabs li:nth-child(6) a { --tc: #7A4FB2; --tcb: #F0EAF8; }
.woocommerce-tabs .tabs li a:hover { border-color: var(--tc); color: var(--my-charcoal) !important; }
.woocommerce-tabs .tabs li.active a {
  background: var(--tcb) !important; border-color: var(--tc) !important; color: var(--my-charcoal) !important;
  box-shadow: inset 0 -3px 0 var(--tc);
}
.woocommerce-tabs .tabs li.active::after,
.woocommerce-tabs .tabs li::after { background: transparent !important; }
/* لوحة محتوى التاب بحدود ناعمة */
.woocommerce-tabs .woocommerce-Tabs-panel {
  border: 1px solid var(--my-gray-200); border-radius: var(--my-radius-md);
  padding: var(--my-space-6); background: var(--my-white);
}

/* اختيار الوزن (variations) أوضح */
.single-product table.variations select {
  min-height: 50px; border-radius: var(--my-radius-sm); border: 1.5px solid var(--my-gray-300);
}
.single-product table.variations label { font-weight: var(--my-weight-semibold); }

/* عناوين الأقسام داخل الوصف (طرق الطبخ) */
.woocommerce-Tabs-panel--description h3 {
  font-family: var(--my-font-heading); color: var(--my-charcoal);
  margin-top: var(--my-space-5); padding-inline-start: var(--my-space-3);
  border-inline-start: 3px solid var(--my-gold);
}

/* ==========================================================
   6) سيكشن "Why Marynaty" — ميديا + أنيميشن
   ========================================================== */
.my-eyebrow {
  display: inline-block; color: var(--my-gold-text); font-size: var(--my-text-sm);
  font-weight: var(--my-weight-semibold); letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: var(--my-space-2);
}
.my-why__head { text-align: center; max-width: 640px; margin: 0 auto var(--my-space-8); }
.my-why__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--my-space-8); align-items: center;
}
.my-why__media { position: relative; border-radius: var(--my-radius-lg); overflow: hidden; box-shadow: var(--my-shadow-lg); }
.my-why__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.my-why__clock {
  position: absolute; inset-inline-start: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 12px 18px; border-radius: var(--my-radius-md); box-shadow: var(--my-shadow-md);
  color: var(--my-charcoal); max-width: 80%;
}
.my-why__clock svg { color: var(--my-gold-text); flex-shrink: 0; }
.my-why__clock strong { display: block; font-family: var(--my-font-heading); font-size: 1.25rem; line-height: 1; }
.my-why__clock span { font-size: var(--my-text-xs); color: var(--my-gray-700); }
/* عقارب ثابتة (بدون أنيميشن لانهائي — يحافظ على استقرار المعاينة) */
.my-clock-hand, .my-clock-hand2 { transform-origin: 12px 12px; }

.my-why__features { display: flex; flex-direction: column; gap: var(--my-space-5); }
.my-why__feat { display: flex; gap: var(--my-space-4); align-items: flex-start; }
.my-why__icon {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: var(--my-radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--my-gold-tint); color: var(--my-gold-text);
  transition: all var(--my-duration) var(--my-ease);
}
.my-why__icon svg { width: 26px; height: 26px; }
.my-why__feat:hover .my-why__icon { background: var(--my-gold); color: var(--my-charcoal); transform: translateY(-3px); }
.my-why__feat h3 { font-family: var(--my-font-heading); font-size: var(--my-text-h4); font-weight: var(--my-weight-bold); margin-bottom: 4px; }
.my-why__feat p { color: var(--my-gray-700); font-size: var(--my-text-sm); line-height: var(--my-leading-normal); }

/* شريط أرقام فخم بخلفية داكنة وأرقام ذهبية وفواصل */
.my-why__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: var(--my-space-8); text-align: center;
  background: linear-gradient(135deg, var(--my-charcoal-deep), #2c2c2c);
  border-radius: var(--my-radius-lg); padding: var(--my-space-7) var(--my-space-4);
  box-shadow: var(--my-shadow-md); overflow: hidden;
}
.my-stat { position: relative; padding: var(--my-space-2) var(--my-space-4); }
.my-stat + .my-stat::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  height: 62%; width: 1px; background: rgba(255, 255, 255, 0.12);
}
.my-stat__num {
  display: block; font-family: var(--my-font-heading); font-weight: var(--my-weight-black);
  font-size: clamp(2.2rem, 4.4vw, 3.1rem); color: var(--my-gold); line-height: 1;
}
.my-stat__label { display: block; margin-top: var(--my-space-3); color: var(--my-gray-400); font-size: var(--my-text-sm); line-height: 1.4; }
@media (max-width: 900px) { .my-stat:nth-child(3)::before { display: none; } }

@media (max-width: 900px) {
  .my-why__grid { grid-template-columns: 1fr; }
  .my-why__stats { grid-template-columns: repeat(2, 1fr); gap: var(--my-space-6) var(--my-space-4); }
}

/* أنيميشن الظهور عند التمرير */
.my-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--my-ease), transform .7s var(--my-ease); }
.my-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .my-reveal { opacity: 1; transform: none; }
  .my-clock-hand, .my-clock-hand2 { animation: none; }
}

/* ==========================================================
   8) الفوتر الاحترافي المخصّص
   ========================================================== */
/* إخفاء فوتر Blocksy الافتراضي */
footer#footer.ct-footer { display: none !important; }

.my-footer { background: var(--my-charcoal-deep); color: var(--my-gray-400); }
.my-footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--my-space-7);
  padding: var(--my-space-9) var(--my-space-5) var(--my-space-7);
}
.my-footer__logo { height: 42px; width: auto; margin-bottom: var(--my-space-4); }
.my-footer__desc { line-height: var(--my-leading-normal); font-size: var(--my-text-sm); max-width: 340px; }
.my-footer__social { display: flex; gap: var(--my-space-3); margin-top: var(--my-space-5); }
.my-footer__social a {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); color: var(--my-gray-300);
  transition: all var(--my-duration) var(--my-ease);
}
.my-footer__social a:hover { background: var(--my-gold); color: var(--my-charcoal); transform: translateY(-3px); }

.my-footer__col h4 {
  color: var(--my-white); font-family: var(--my-font-heading); font-size: var(--my-text-sm);
  font-weight: var(--my-weight-bold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--my-space-4);
}
.my-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.my-footer__col a { color: var(--my-gray-400); text-decoration: none; font-size: var(--my-text-sm); transition: color var(--my-duration) var(--my-ease); }
.my-footer__col a:hover { color: var(--my-gold); }
.my-footer__contact li { font-size: var(--my-text-sm); }

.my-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.my-footer__bottom-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--my-space-4);
  padding: var(--my-space-4) var(--my-space-5);
}
.my-footer__copy { font-size: var(--my-text-xs); color: var(--my-gray-500); }
.my-pay { display: flex; gap: 8px; align-items: center; }
.my-pay__badge { display: inline-flex; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.my-pay__badge svg { display: block; }

@media (max-width: 900px) {
  .my-footer__top { grid-template-columns: 1fr 1fr; gap: var(--my-space-6); }
}
@media (max-width: 560px) {
  .my-footer__top { grid-template-columns: 1fr; }
  .my-footer__bottom-row { justify-content: center; text-align: center; }
}

/* ==========================================================
   9) صفحات المحتوى (سياسات / من نحن / تواصل) — هيرو + تايبوغرافي
   ========================================================== */
.my-content-page .entry-header {
  position: relative; padding: var(--my-space-9) var(--my-space-5) !important;
  text-align: center; overflow: hidden; margin-bottom: var(--my-space-8);
  background:
    linear-gradient(rgba(15,15,15,0.82), rgba(20,20,20,0.86)),
    var(--my-charcoal-deep);
  background-size: cover; background-position: center;
}
/* صورة خلفية لكل صفحة */
.my-page-o-nas .entry-header { background-image: linear-gradient(rgba(15,15,15,0.78), rgba(20,20,20,0.86)), url(assets/hero-about.png); }
.my-page-kontakt .entry-header { background-image: linear-gradient(rgba(15,15,15,0.78), rgba(20,20,20,0.86)), url(assets/hero-contact.png); }
.my-page-dostawa .entry-header { background-image: linear-gradient(rgba(15,15,15,0.78), rgba(20,20,20,0.86)), url(assets/hero-delivery.png); }
.my-page-faq .entry-header,
.my-page-regulamin .entry-header,
.my-page-polityka-prywatnosci .entry-header,
.my-page-zwroty-i-reklamacje .entry-header { background-image: linear-gradient(rgba(15,15,15,0.80), rgba(20,20,20,0.88)), url(assets/hero-legal.png); }

.my-content-page .entry-header .page-title {
  color: var(--my-white); font-family: var(--my-font-heading); font-weight: var(--my-weight-black);
  font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; letter-spacing: .01em; margin: 0;
}
.my-content-page .entry-header::before {
  content: "Marynaty"; display: block; color: var(--my-gold);
  font-size: var(--my-text-sm); font-weight: var(--my-weight-semibold);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: var(--my-space-3);
}

/* حاوية المحتوى */
.my-content-page .entry-content {
  max-width: 860px; margin: 0 auto var(--my-space-9); padding: 0 var(--my-space-5);
  font-size: var(--my-text-base); line-height: 1.75; color: var(--my-gray-800);
}
.my-content-page .entry-content h2,
.my-content-page .entry-content h3 {
  font-family: var(--my-font-heading); color: var(--my-charcoal);
  margin: var(--my-space-6) 0 var(--my-space-3); padding-inline-start: var(--my-space-4);
  border-inline-start: 4px solid var(--my-gold); line-height: 1.25;
}
.my-content-page .entry-content h2 { font-size: var(--my-text-h3); }
.my-content-page .entry-content h3 { font-size: var(--my-text-h4); }
.my-content-page .entry-content p { margin-bottom: var(--my-space-4); }
.my-content-page .entry-content ul { margin: 0 0 var(--my-space-4); padding-inline-start: var(--my-space-5); }
.my-content-page .entry-content li { margin-bottom: 8px; }
.my-content-page .entry-content a { color: var(--my-gold-text); text-decoration: underline; }

/* FAQ أكورديون */
.my-faq-item {
  border: 1px solid var(--my-gray-200); border-radius: var(--my-radius-md);
  margin-bottom: var(--my-space-3); overflow: hidden; background: var(--my-white);
}
.my-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--my-space-4);
  padding: var(--my-space-4) var(--my-space-5); cursor: pointer; font-weight: var(--my-weight-semibold);
  font-family: var(--my-font-heading); color: var(--my-charcoal); list-style: none;
}
.my-faq-q::-webkit-details-marker { display: none; }
.my-faq-q::after { content: "+"; font-size: 1.5rem; color: var(--my-gold-text); transition: transform var(--my-duration); }
.my-faq-item[open] .my-faq-q::after { content: "–"; }
.my-faq-item[open] .my-faq-q { color: var(--my-gold-text); }
.my-faq-a { padding: 0 var(--my-space-5) var(--my-space-4); color: var(--my-gray-700); line-height: var(--my-leading-normal); }

/* ==========================================================
   11) مميزات: شريط إعلاني · موبايل نav · واتساب · لغة
   ========================================================== */
:root { --my-annbar-h: 42px; }

/* شريط إعلاني متحرك */
.my-annbar {
  height: var(--my-annbar-h); overflow: hidden; position: relative; z-index: 200;
  background: linear-gradient(90deg, var(--my-charcoal-deep), #2e2e2e);
  color: #fff; display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.my-annbar__track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: myMarquee 38s linear infinite; }
.my-annbar:hover .my-annbar__track { animation-play-state: paused; }
.my-annbar__item { padding: 0 16px; font-size: 13px; font-weight: var(--my-weight-medium); letter-spacing: .01em; }
.my-annbar__dot { color: var(--my-gold); font-size: 9px; }
@keyframes myMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .my-annbar__track { animation: none; } }

/* إزاحة الهيدر الشفاف تحت الشريط (الصفحة الرئيسية)
   ملاحظة: الشريط الإعلاني في التدفق العادي ويدفع #main-container لأسفل بمقدار ارتفاعه،
   والهيدر absolute داخل #main-container — لذلك top:0 يضعه مباشرة تحت الشريط بلا فجوة مضاعفة. */
.marynaty-transparent-header:not(.my-scrolled) header#header { top: 0 !important; }

/* مبدّل اللغة في الهيدر */
.my-lang { font-family: var(--my-font-heading); font-weight: var(--my-weight-bold); font-size: 13px; letter-spacing: .04em; }

/* زر واتساب عائم */
.my-wa {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 190;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); animation: myWaPulse 2.6s ease-in-out infinite;
  transition: transform var(--my-duration) var(--my-ease);
}
.my-wa:hover { transform: scale(1.08); color: #fff; }
@keyframes myWaPulse { 0%,100% { box-shadow: 0 6px 20px rgba(37,211,102,.45); } 50% { box-shadow: 0 8px 30px rgba(37,211,102,.75); } }
@media (prefers-reduced-motion: reduce) { .my-wa { animation: none; } }

/* قائمة موبايل سفلية (زي تطبيق) */
.my-mobilenav { display: none; }
@media (max-width: 768px) {
  .my-mobilenav {
    display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 185;
    background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--my-gray-200); box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    justify-content: space-around; padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  }
  .my-mobilenav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--my-gray-700); text-decoration: none; font-size: 10.5px; font-weight: var(--my-weight-medium);
  }
  .my-mobilenav svg { width: 22px; height: 22px; }
  .my-mobilenav a:active, .my-mobilenav a:hover { color: var(--my-gold-text); }
  body { padding-bottom: 66px; }
  .my-wa { bottom: 84px; width: 50px; height: 50px; }
  .my-annbar__item { font-size: 12px; }
}

/* ==========================================================
   12) سيكشن الوصفات/المقالات + CTA وشريط الثقة
   ========================================================== */
.my-recipes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--my-space-6); }
.my-recipe-card {
  display: flex; flex-direction: column; background: var(--my-white);
  border: 1px solid var(--my-gray-200); border-radius: var(--my-radius-lg); overflow: hidden;
  text-decoration: none; color: inherit; transition: all .35s var(--my-ease);
}
.my-recipe-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(22,22,22,.14); border-color: transparent; }
.my-recipe-card__img { position: relative; display: block; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.my-recipe-card__tag {
  position: absolute; top: 12px; inset-inline-start: 12px; background: var(--my-gold); color: var(--my-charcoal);
  font-size: 11px; font-weight: var(--my-weight-semibold); text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 12px; border-radius: var(--my-radius-pill);
}
.my-recipe-card__body { padding: var(--my-space-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.my-recipe-card__body h3 { font-family: var(--my-font-heading); font-size: 1.1rem; font-weight: var(--my-weight-bold); line-height: 1.3; color: var(--my-charcoal); }
.my-recipe-card__ex { color: var(--my-gray-700); font-size: var(--my-text-sm); line-height: 1.6; flex: 1; }
.my-recipe-card__more { color: var(--my-gold-text); font-weight: var(--my-weight-semibold); font-size: var(--my-text-sm); }

.my-eyebrow--gold { color: var(--my-gold) !important; }
.my-cta__inner { text-align: center; }
.my-cta__trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--my-space-4);
  margin-top: var(--my-space-8); padding-top: var(--my-space-6); border-top: 1px solid rgba(255,255,255,0.1);
}
.my-trustitem {
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--my-gray-300);
  font-size: var(--my-text-sm); font-weight: var(--my-weight-medium);
}
.my-trustitem svg { width: 26px; height: 26px; color: var(--my-gold); }

@media (max-width: 768px) {
  .my-recipes__grid { grid-template-columns: 1fr; }
  .my-cta__trust { grid-template-columns: repeat(2, 1fr); gap: var(--my-space-5); }
}

/* ==========================================================
   13) تحسينات الموبايل
   ========================================================== */
@media (max-width: 768px) {
  /* الهيرو: ارتفاع أكبر عشان النصوص ما تتقصّش */
  .my-hero-swiper { height: 90vh; min-height: 640px; }
  .my-hero-slide__content { padding-top: 84px !important; padding-bottom: 84px !important; justify-content: center !important; }
  .my-hero-slide__content .my-hero__eyebrow { margin-bottom: 10px; font-size: 12px; }
  .my-hero-slide__content .my-hero__title { font-size: clamp(1.9rem, 8.5vw, 2.4rem) !important; margin-bottom: 14px; }
  .my-hero-slide__content .my-hero__sub { font-size: 1rem; margin-bottom: 20px; }

  /* تقليل الفراغ بين الهيرو والقسم اللي تحته */
  .my-hero-slider + .my-section { padding-top: calc(var(--my-space-6) + 24px); }

  /* المنتجات: منتجين جنب بعض في كل صف */
  #marynaty-home ul.products,
  #marynaty-home [data-products],
  ul.products {
    --shop-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  ul.products li.product { padding-bottom: 14px; }
  ul.products li.product figure { margin-bottom: 10px; }
  ul.products li.product .entry-meta { margin: 0 12px 2px; }
  ul.products li.product .entry-meta .meta-categories a { font-size: 9.5px !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: .9rem !important; min-height: 2.4em; padding: 0 12px; margin-bottom: 5px; }
  ul.products li.product .price { padding: 0 12px; font-size: 1rem !important; }
  ul.products li.product .ct-woo-card-actions { padding: 10px 12px 0; }
  ul.products li.product .ct-woo-card-actions .button { font-size: 11px !important; padding: 0 8px !important; }
  ul.products li.product .my-card-badges .my-badge,
  ul.products li.product .my-badge-quick { font-size: 9px; padding: 3px 8px; }
}

/* ==========================================================
   14) لمسات فخامة عامة
   ========================================================== */
.button, .single_add_to_cart_button, ul.products li.product .button {
  --theme-button-shadow: none;
}
html { scroll-behavior: smooth; }
