/*
Theme Name: Aya Elshafeey Store
Theme URI: https://ayaelshafeey.com
Author: Aya Elshafeey
Author URI: https://ayaelshafeey.com
Description: ثيم متجر إلكتروني عربي أنيق للأزياء المحتشمة بهوية وردية ناعمة. يدعم RTL ومتوافق مع WooCommerce، مع صفحة رئيسية قابلة للتعديل بالكامل من خلال مربعات الميتا.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aya-elshafeey
Tags: e-commerce, rtl-language-support, custom-colors, custom-menu, featured-images, woocommerce
*/

/* ==========================================================================
   1. متغيرات الهوية (Design Tokens)
   ========================================================================== */
:root {
    /* الألوان الأساسية */
    --aya-rose:        #c97b8e;   /* الوردي الأساسي - الأزرار والشعار */
    --aya-rose-deep:   #a85a6e;   /* وردي غامق - التحويم والتأكيد */
    --aya-rose-soft:   #fadde4;   /* وردي فاتح - الخلفيات */
    --aya-rose-pale:   #fdeef2;   /* وردي شاحب جداً - أقسام */
    --aya-cream:       #fffafc;   /* كريمي / أبيض دافئ */
    --aya-text:        #5d3a44;   /* نص غامق بنفسجي مائل للوردي */
    --aya-text-soft:   #8a6b72;   /* نص ثانوي */
    --aya-border:      #f3d8e0;   /* حدود ناعمة */
    --aya-gold:        #d9b48a;   /* لمسة ذهبية اختيارية */

    /* الخطوط */
    --aya-font-script: 'Great Vibes', cursive;          /* شعار لاتيني انسيابي */
    --aya-font-head:   'Cairo', 'Tajawal', sans-serif;  /* عناوين عربية */
    --aya-font-body:   'Tajawal', 'Cairo', sans-serif;  /* النص */

    /* القياسات */
    --aya-radius:      18px;
    --aya-radius-pill: 999px;
    --aya-shadow:      0 10px 30px rgba(168, 90, 110, 0.12);
    --aya-shadow-soft: 0 4px 18px rgba(168, 90, 110, 0.08);
    --aya-container:   1180px;
}

/* ==========================================================================
   2. أساسيات
   ========================================================================== */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--aya-font-body);
    color: var(--aya-text);
    background: var(--aya-cream);
    line-height: 1.8;
    font-size: 16px;
    direction: rtl;
    text-align: right;
}

a { color: var(--aya-rose-deep); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--aya-rose); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--aya-font-head);
    color: var(--aya-text);
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

.aya-container {
    max-width: var(--aya-container);
    margin-inline: auto;
    padding-inline: 24px;
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* أزرار */
.aya-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--aya-rose), var(--aya-rose-deep));
    color: #fff;
    border: none;
    padding: 14px 34px;
    border-radius: var(--aya-radius-pill);
    font-family: var(--aya-font-head);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--aya-shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.aya-btn:hover { transform: translateY(-2px); box-shadow: var(--aya-shadow); color: #fff; filter: brightness(1.04); }
.aya-btn--ghost {
    background: transparent;
    color: var(--aya-rose-deep);
    border: 1.5px solid var(--aya-rose);
    box-shadow: none;
}
.aya-btn--ghost:hover { background: var(--aya-rose); color: #fff; }

/* عنوان قسم */
.aya-section-title {
    text-align: center;
    font-size: clamp(24px, 3.4vw, 34px);
    position: relative;
    display: inline-block;
    margin-inline: auto;
}
.aya-section-head {
    text-align: center;
    margin-bottom: 40px;
}
.aya-section-head .aya-section-title::before,
.aya-section-head .aya-section-title::after {
    content: "❀";
    color: var(--aya-rose);
    font-size: .7em;
    margin-inline: 14px;
    vertical-align: middle;
    opacity: .8;
}
.aya-section-sub {
    color: var(--aya-text-soft);
    margin-top: 6px;
}

/* ==========================================================================
   3. الهيدر
   ========================================================================== */
.aya-topbar {
    background: var(--aya-rose);
    color: #fff;
    font-size: 13px;
    text-align: center;
    padding: 7px 0;
}
.aya-topbar a { color: #fff; opacity: .9; }

.aya-header {
    background: var(--aya-rose-pale);
    border-bottom: 1px solid var(--aya-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
}
.aya-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 14px;
}
.aya-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: center;
}
.aya-logo__name {
    font-family: var(--aya-font-script);
    font-size: 38px;
    color: var(--aya-rose-deep);
}
.aya-logo__sub {
    font-family: var(--aya-font-head);
    letter-spacing: 6px;
    font-size: 12px;
    color: var(--aya-text-soft);
    text-transform: uppercase;
}
.aya-logo img { max-height: 56px; width: auto; }

.aya-nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    font-family: var(--aya-font-head);
    font-weight: 600;
}
.aya-nav a { color: var(--aya-text); position: relative; }
.aya-nav a:hover,
.aya-nav .current-menu-item > a { color: var(--aya-rose-deep); }
.aya-nav a::after {
    content: "";
    position: absolute;
    right: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--aya-rose);
    transition: width .25s ease;
}
.aya-nav a:hover::after { width: 100%; }

.aya-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.aya-icon-btn {
    color: var(--aya-text);
    position: relative;
    display: inline-flex;
}
.aya-icon-btn:hover { color: var(--aya-rose-deep); }
.aya-cart-count {
    position: absolute;
    top: -8px; left: -10px;
    background: var(--aya-rose-deep);
    color: #fff;
    font-size: 11px;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--aya-font-head);
}
.aya-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--aya-text);
}

/* ==========================================================================
   4. الهيرو
   ========================================================================== */
.aya-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.aya-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* التعتيم أقوى على جهة النص (اليمين في RTL) ليبقى مقروءاً */
    background: linear-gradient(90deg, transparent var(--aya-hero-ov-start, 18%), var(--aya-hero-overlay, rgba(253,238,242,.9)) var(--aya-hero-ov-end, 66%));
}
.aya-hero__content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}
.aya-hero__script {
    font-family: var(--aya-font-script);
    color: #fff;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.05;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(168,90,110,.35);
}
.aya-hero__title {
    font-size: clamp(24px, 3.6vw, 38px);
    color: var(--aya-text);
    margin-bottom: 18px;
}
.aya-hero__text {
    color: var(--aya-text-soft);
    font-size: 18px;
    margin-bottom: 28px;
}
/* تموج وردي أسفل الهيرو */
.aya-hero__wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    width: 100%;
    z-index: 3;
    color: var(--aya-cream);
}

/* ==========================================================================
   5. شبكة المنتجات / البطاقات
   ========================================================================== */
.aya-section { padding-block: 70px; }
.aya-section--soft { background: var(--aya-rose-pale); }

.aya-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

/* شبكة من 5 أعمدة (الصف الإضافي) */
.aya-products-grid--5 { grid-template-columns: repeat(5, 1fr); }

/* ===================== سلايدر المنتجات ===================== */
.aya-slider { position: relative; }
.aya-slider__track {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.aya-slider__track::-webkit-scrollbar { display: none; }
.aya-slider__track > .aya-card {
    flex: 0 0 calc((100% - 4 * 26px) / 5); /* 5 منتجات في الصف */
    scroll-snap-align: start;
}
.aya-slider__nav {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--aya-border);
    box-shadow: var(--aya-shadow);
    color: var(--aya-rose-deep);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    transition: background .2s ease, transform .2s ease;
}
.aya-slider__nav:hover { background: var(--aya-rose); color: #fff; }
.aya-slider__nav svg { width: 22px; height: 22px; }
.aya-slider__nav--prev { right: -10px; }   /* RTL: السابق على اليمين */
.aya-slider__nav--next { left: -10px; }     /* RTL: التالي على اليسار */

/* زر عرض باقي المنتجات */
.aya-viewmore { text-align: center; margin-top: 34px; }
.aya-card {
    background: #fff;
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius);
    overflow: hidden;
    box-shadow: var(--aya-shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.aya-card:hover { transform: translateY(-6px); box-shadow: var(--aya-shadow); }
.aya-card__media {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--aya-rose-soft);
}
.aya-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.aya-card:hover .aya-card__media img { transform: scale(1.06); }
.aya-card__body { padding: 16px 18px 20px; text-align: center; }
.aya-card__title { font-size: 17px; margin-bottom: 6px; }
.aya-card__title a { color: var(--aya-text); }
.aya-card__price {
    font-family: var(--aya-font-head);
    font-weight: 700;
    color: var(--aya-rose-deep);
    font-size: 18px;
    margin-bottom: 12px;
}
.aya-card__price .aya-currency { font-size: 13px; font-weight: 600; color: var(--aya-text-soft); }
.aya-card .aya-btn { width: 100%; padding-block: 11px; font-size: 14px; }

/* ==========================================================================
   6. أقسام التصنيفات (شريط الفئات)
   ========================================================================== */
.aya-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}
.aya-cat {
    border-radius: var(--aya-radius);
    min-height: 150px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--aya-font-head);
    font-weight: 700;
    font-size: 23px;
    background: var(--aya-rose);
    position: relative;
    overflow: hidden;
    box-shadow: var(--aya-shadow-soft);
    transition: transform .25s ease;
}
.aya-cat:hover { transform: translateY(-4px); color: #fff; }
/* تدوير الألوان لأي عدد من التصنيفات */
.aya-cat:nth-child(4n+2) { background: var(--aya-rose-deep); }
.aya-cat:nth-child(4n+3) { background: var(--aya-gold); }
.aya-cat:nth-child(4n+4) { background: #b07f8c; }

/* كرت تصنيف بصورة خلفية */
.aya-cat--img { color: #fff; }
.aya-cat--img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(93,58,68,.55), rgba(93,58,68,.15));
    z-index: 1;
}
.aya-cat__bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.aya-cat__label { position: relative; z-index: 2; text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* لوجو الفوتر */
.aya-footer__logo img { max-height: 60px; width: auto; }

/* ==========================================================================
   7. قسم العروض (فيديو/صور)
   ========================================================================== */
.aya-offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.aya-offer-card {
    position: relative;
    border-radius: var(--aya-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--aya-shadow-soft);
}
.aya-offer-card img { width: 100%; height: 100%; object-fit: cover; }
.aya-offer-card__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(93,58,68,.18);
    color: #fff;
}
.aya-offer-card__play svg { width: 64px; height: 64px; opacity: .95; }
.aya-offer-card__badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--aya-rose-deep);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--aya-radius-pill);
    font-family: var(--aya-font-head);
    font-weight: 700;
    font-size: 14px;
}

/* النشرة البريدية */
.aya-offers-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    align-items: stretch;
}
.aya-newsletter {
    background: #fff;
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius);
    padding: 28px;
    box-shadow: var(--aya-shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.aya-newsletter h3 { color: var(--aya-rose-deep); }
.aya-newsletter__form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-direction: column;
}
.aya-newsletter input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius-pill);
    font-family: var(--aya-font-body);
    background: var(--aya-rose-pale);
}
.aya-newsletter input[type="email"]:focus { outline: 2px solid var(--aya-rose); }

/* ==========================================================================
   8. الفوتر
   ========================================================================== */
.aya-footer {
    background: var(--aya-rose-soft);
    padding-block: 56px 0;
    margin-top: 40px;
    border-top: 1px solid var(--aya-border);
}
.aya-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
}
.aya-footer h4 { color: var(--aya-rose-deep); margin-bottom: 16px; }
.aya-footer ul { list-style: none; margin: 0; padding: 0; }
.aya-footer li { margin-bottom: 8px; }
.aya-footer a { color: var(--aya-text); }
.aya-footer a:hover { color: var(--aya-rose-deep); }
.aya-social { display: flex; gap: 12px; margin-top: 14px; }
.aya-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--aya-rose);
    color: #fff;
    display: grid; place-items: center;
}
.aya-social a:hover { background: var(--aya-rose-deep); color: #fff; }
.aya-footer__bottom {
    text-align: center;
    margin-top: 40px;
    padding: 18px 0;
    border-top: 1px solid var(--aya-border);
    color: var(--aya-text-soft);
    font-size: 14px;
}

/* ==========================================================================
   9. صفحات داخلية عامة
   ========================================================================== */
.aya-page { padding-block: 60px; }
.aya-page__title { text-align: center; margin-bottom: 30px; font-size: 32px; }
.aya-entry { max-width: 800px; margin-inline: auto; }
.aya-entry img { border-radius: var(--aya-radius); margin-block: 14px; }

/* ==========================================================================
   10. الاستجابة (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
    .aya-products-grid { grid-template-columns: repeat(2, 1fr); }
    .aya-products-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .aya-slider__track > .aya-card { flex-basis: calc((100% - 26px) / 2); }
    .aya-slider__nav { top: 32%; }
    .aya-cats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .aya-footer__grid { grid-template-columns: 1fr 1fr; }
    .aya-offers-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .aya-nav {
        position: absolute;
        top: 100%; right: 0; left: 0;
        background: var(--aya-rose-pale);
        border-bottom: 1px solid var(--aya-border);
        display: none;
    }
    .aya-nav.is-open { display: block; }
    .aya-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
    .aya-nav li { padding-block: 10px; border-bottom: 1px solid var(--aya-border); }
    .aya-menu-toggle { display: inline-flex; }
    .aya-hero::before { background: linear-gradient(0deg, var(--aya-hero-overlay, rgba(253,238,242,.96)) 38%, transparent); }
    .aya-hero__content { max-width: 100%; text-align: center; }
    .aya-offers { grid-template-columns: 1fr; }
    .aya-footer__grid { grid-template-columns: 1fr; text-align: center; }
    .aya-social { justify-content: center; }
}
@media (max-width: 520px) {
    .aya-products-grid { grid-template-columns: 1fr; }
    .aya-products-grid--5 { grid-template-columns: 1fr; }
    .aya-slider__track > .aya-card { flex-basis: 82%; }
    .aya-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .aya-cat { min-height: 110px; font-size: 18px; }
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   إضافات الإصدار 1.5
   ========================================================================== */

/* ---------- الهيدر: لوجو وسط + شريط قائمة ---------- */
.aya-header__main { background: var(--aya-rose-pale); }
.aya-header__row {
    display: flex;
    align-items: center;
    padding-block: 14px;
    gap: 16px;
}
.aya-header__zone {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.aya-header__zone--start  { flex: 0 0 auto; justify-content: flex-start; }
.aya-header__zone--center { flex: 1 1 auto; justify-content: center; } /* يملأ المسافة بين الجانبين ويتوسّط داخلها → مسافتان متساويتان */
.aya-header__zone--end    { flex: 0 0 auto; justify-content: flex-end; }
/* القائمة الرئيسية داخل الهيدر العلوي */
.aya-header__menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-family: var(--aya-font-head);
    font-weight: 600;
}
.aya-header__menu a { color: var(--aya-rose-deep); position: relative; }
.aya-header__menu a:hover { color: var(--aya-rose); }
.aya-header__wish {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--aya-rose-soft);
    color: var(--aya-rose-deep);
    padding: 7px 14px;
    border-radius: var(--aya-radius-pill);
    font-family: var(--aya-font-head);
    font-weight: 600;
    font-size: 13px;
}
.aya-header__wish:hover { background: var(--aya-rose); color: #fff; }

/* شريط القائمة الوردي */
.aya-navbar {
    background: linear-gradient(90deg, var(--aya-rose), var(--aya-rose-deep));
    box-shadow: var(--aya-shadow-soft);
}
.aya-navbar ul {
    list-style: none;
    display: flex;
    justify-content: safe center;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    font-family: var(--aya-font-head);
    font-weight: 600;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.5) transparent;
    -webkit-overflow-scrolling: touch;
}
.aya-navbar ul::-webkit-scrollbar { height: 5px; }
.aya-navbar ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,.5); border-radius: 4px; }
.aya-navbar > .aya-container { overflow: visible; }
.aya-navbar li {
    position: relative;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 13px 16px;
}
/* فواصل رأسية بين العناصر */
.aya-navbar li + li::before {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 18px;
    background: rgba(255,255,255,.4);
}
.aya-navbar a { color: #fff; position: relative; opacity: .95; white-space: nowrap; }
.aya-navbar a:hover,
.aya-navbar .current-menu-item > a { opacity: 1; color: #fff; }
.aya-navbar a::after {
    content: "";
    position: absolute;
    right: 0; bottom: -6px;
    width: 0; height: 2px;
    background: #fff;
    transition: width .25s ease;
}
.aya-navbar a:hover::after { width: 100%; }

/* ---------- نافذة البحث المنسدلة ---------- */
.aya-search-overlay {
    background: var(--aya-rose-pale);
    border-top: 1px solid var(--aya-border);
    border-bottom: 1px solid var(--aya-border);
    box-shadow: var(--aya-shadow-soft);
    animation: ayaDrop .25s ease;
}
.aya-search-overlay[hidden] { display: none; }
@keyframes ayaDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.aya-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-block: 18px;
    position: relative;
}
.aya-search-form__icon { color: var(--aya-rose-deep); flex: 0 0 auto; }
.aya-search-form input[type="search"] {
    flex: 1;
    border: 1px solid var(--aya-border);
    background: #fff;
    border-radius: var(--aya-radius-pill);
    padding: 14px 22px;
    font-family: var(--aya-font-body);
    font-size: 16px;
    color: var(--aya-text);
}
.aya-search-form input[type="search"]:focus { outline: 2px solid var(--aya-rose); }
.aya-search-close {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: var(--aya-text-soft);
    cursor: pointer;
    flex: 0 0 auto;
}
.aya-search-close:hover { color: var(--aya-rose-deep); }

/* ---------- محاذاة محتوى الهيرو + الموجة ---------- */
.aya-hero .aya-container { display: flex; width: 100%; }
.aya-hero--right  .aya-container { justify-content: flex-start; } /* RTL: يمين */
.aya-hero--center .aya-container { justify-content: center; }
.aya-hero--left   .aya-container { justify-content: flex-end; }   /* RTL: يسار */
.aya-hero--center .aya-hero__content { text-align: center; }

/* تعتيم حسب جهة النص */
.aya-hero--right::before  { background: linear-gradient(90deg, transparent var(--aya-hero-ov-start, 18%), var(--aya-hero-overlay, rgba(253,238,242,.9)) var(--aya-hero-ov-end, 66%)); }
.aya-hero--left::before   { background: linear-gradient(270deg, transparent var(--aya-hero-ov-start, 18%), var(--aya-hero-overlay, rgba(253,238,242,.9)) var(--aya-hero-ov-end, 66%)); }
.aya-hero--center::before { background: radial-gradient(ellipse at center, var(--aya-hero-overlay, rgba(253,238,242,.9)) 35%, transparent 80%); }

/* الموجة البيضاء السفلية (ارتفاع متغيّر) */
.aya-hero__wave { width: 100%; height: 70px; }

/* ---------- سكشن Call to Action ---------- */
.aya-cta-section { padding-block: 50px; }
.aya-cta {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 28px;
    background: var(--aya-rose-pale);
    border: 1px solid var(--aya-border);
    border-radius: calc(var(--aya-radius) + 6px);
    padding: 26px 32px;
    box-shadow: var(--aya-shadow-soft);
    position: relative;
    overflow: hidden;
}
.aya-cta__img {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--aya-shadow-soft);
    justify-self: center;
}
/* طبقة لون فوق صورة خلفية الـ CTA */
.aya-cta--img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--aya-cta-overlay, transparent);
    z-index: 0;
}
.aya-cta > * { position: relative; z-index: 1; }
.aya-cta__text { font-family: var(--aya-font-head); font-size: clamp(18px,2.4vw,24px); color: var(--aya-text); line-height: 1.7; }
.aya-cta__title { color: var(--aya-rose-deep); margin-bottom: 6px; font-size: 22px; }

/* ---------- صفحة المتجر بفلاتر جانبية ---------- */
.aya-shop-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 34px;
    align-items: start;
}
.aya-shop-sidebar {
    background: var(--aya-rose-pale);
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius);
    padding: 22px;
    position: sticky;
    top: 90px;
}
.aya-shop-sidebar h3 {
    font-family: var(--aya-font-head);
    color: var(--aya-rose-deep);
    margin: 0 0 16px;
    font-size: 19px;
    text-align: center;
}
.aya-shop-sidebar .aya-widget { margin-bottom: 22px; }
.aya-shop-sidebar .aya-widget__title,
.aya-shop-sidebar .widget-title,
.aya-shop-sidebar .widgettitle {
    font-family: var(--aya-font-head);
    color: var(--aya-text);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}
.aya-shop-sidebar select,
.aya-shop-sidebar .dropdown_product_cat {
    width: 100%;
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius-pill);
    padding: 11px 16px;
    background: #fff;
    color: var(--aya-text);
    font-family: var(--aya-font-body);
    margin-bottom: 10px;
}
.aya-shop-sidebar ul { list-style: none; padding: 0; margin: 0; }
.aya-shop-sidebar ul li { padding: 6px 0; border-bottom: 1px dashed var(--aya-border); }
.aya-shop-sidebar ul li a { color: var(--aya-text); }
.aya-shop-sidebar ul li a:hover { color: var(--aya-rose-deep); }

/* ---------- استجابة 1.5 ---------- */
@media (max-width: 900px) {
    .aya-shop-layout { grid-template-columns: 1fr; }
    .aya-shop-sidebar { position: static; }
    .aya-cta { grid-template-columns: 1fr; text-align: center; }
    .aya-cta__img { width: 110px; height: 110px; }
}
@media (max-width: 768px) {
    .aya-header__row { grid-template-columns: auto auto auto; }
    .aya-header__spacer { display: none; }
    .aya-navbar { display: none; }
    .aya-navbar.is-open { display: block; }
    .aya-navbar ul { flex-direction: column; gap: 0; padding: 6px 24px; }
    .aya-navbar li { padding-block: 10px; border-bottom: 1px solid rgba(255,255,255,.25); width: 100%; text-align: center; }
    .aya-menu-toggle { display: inline-flex; }
    .aya-search-form { flex-wrap: wrap; }
}

/* ==========================================================================
   إضافات الإصدار 1.7 — تخطيط الهيدر
   ========================================================================== */

/* تثبيت الهيدر (افتراضي) وإلغاؤه */
.aya-header { position: sticky; top: 0; z-index: 100; }
.aya-header--static { position: static; }

/* الشريط العلوي بثلاثة أقسام */
.aya-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.aya-topbar__text { flex: 1; text-align: center; }
.aya-topbar__side { display: inline-flex; align-items: center; gap: 10px; min-width: 40px; font-size: 12px; }
.aya-topbar__social a { color: inherit; display: inline-flex; }

/* مكان اللوجو (متروك للتوافق — التخطيط الآن بنظام المناطق أعلاه) */

/* سوشيال داخل الهيدر */
.aya-header__social { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 6px; }
.aya-header__social a { color: var(--aya-rose-deep); display: inline-flex; }
.aya-header__social a:hover { color: var(--aya-rose); }

/* محاذاة روابط القائمة */
.aya-navbar--center ul { justify-content: safe center; }
.aya-navbar--right ul { justify-content: flex-start; } /* RTL: يمين */
.aya-navbar--left ul { justify-content: flex-end; }    /* RTL: يسار */

@media (max-width: 768px) {
    .aya-topbar__side { display: none; }
    .aya-header__row--right,
    .aya-header__row--left,
    .aya-header__row--center { grid-template-columns: auto auto auto; }
}

/* ==========================================================================
   إضافات الإصدار 1.8 — تخطيط الفوتر
   ========================================================================== */
.aya-footer__grid--cols-1 { grid-template-columns: 1fr; }
.aya-footer__grid--cols-2 { grid-template-columns: 1fr 1fr; }
.aya-footer__grid--cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.aya-footer__grid--cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

.aya-footer--align-center { text-align: center; }
.aya-footer--align-center .aya-social { justify-content: center; }

@media (max-width: 1024px) {
    .aya-footer__grid--cols-3,
    .aya-footer__grid--cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .aya-footer__grid--cols-1,
    .aya-footer__grid--cols-2,
    .aya-footer__grid--cols-3,
    .aya-footer__grid--cols-4 { grid-template-columns: 1fr; text-align: center; }
    .aya-footer .aya-social { justify-content: center; }
}

/* ==========================================================================
   إضافات الإصدار 1.9 — سيرش جديد + قائمة تصنيفات + استجابة أوسع
   ========================================================================== */

/* ---------- شريط البحث الجديد داخل الهيدر ---------- */
.aya-header__search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius-pill);
    padding: 7px 8px 7px 16px;
    box-shadow: 0 2px 10px rgba(168,90,110,.08);
    min-width: 230px;
    max-width: 320px;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.aya-header__search:focus-within {
    border-color: var(--aya-rose);
    box-shadow: 0 2px 14px rgba(201,123,142,.25);
}
.aya-header__search-icon { color: var(--aya-rose-deep); flex: 0 0 auto; }
.aya-header__search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--aya-font-body);
    font-size: 15px;
    color: var(--aya-text);
}
.aya-header__search input[type="search"]::placeholder { color: var(--aya-text-soft); }
.aya-header__search-submit {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, var(--aya-rose), var(--aya-rose-deep));
    color: #fff;
    font-family: var(--aya-font-head);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--aya-radius-pill);
    transition: opacity .2s ease;
}
.aya-header__search-submit:hover { opacity: .9; }

/* زر بحث صغير يظهر على الموبايل فقط */
.aya-icon-btn--search-mobile { display: none; }

/* ---------- التصنيفات في الهيدر + دروب داون للفرعية ---------- */
.aya-cat-item__link { display: inline-flex; align-items: center; gap: 4px; }
.aya-cat-item__caret { transition: transform .25s ease; opacity: .85; }
.aya-cat-item--has-sub:hover .aya-cat-item__caret,
.aya-cat-item.is-open .aya-cat-item__caret { transform: rotate(180deg); }
/* زر فتح الفرعية (للجوال فقط) */
.aya-cat-item__toggle { display: none; }

.aya-subcats {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: fixed;
    top: 0; right: 0;
    z-index: 1000;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--aya-border);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(93,58,68,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.aya-cat-item--has-sub:hover > .aya-subcats,
.aya-cat-item.is-open > .aya-subcats {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.aya-navbar .aya-subcats { display: block; }
.aya-navbar .aya-subcats li { padding: 0; width: 100%; text-align: center; }
.aya-navbar .aya-subcats li + li::before { display: none; }
.aya-navbar .aya-subcats a {
    display: block;
    padding: 9px 14px;
    border-radius: 9px;
    color: var(--aya-text) !important;
    font-size: 14.5px;
    font-weight: 600;
    opacity: 1;
    white-space: nowrap;
}
.aya-navbar .aya-subcats a::after { display: none; }
.aya-navbar .aya-subcats a:hover { background: var(--aya-rose-pale); color: var(--aya-rose-deep) !important; }

/* ---------- استجابة الإصدار 1.9 ---------- */
@media (max-width: 1024px) {
    .aya-header__search { min-width: 180px; }
}
@media (max-width: 768px) {
    /* السيرش: نخفي الشريط ونعرض زر صغير يفتح نافذة البحث */
    .aya-header__search { display: none; }
    .aya-icon-btn--search-mobile { display: inline-flex; }
    /* القائمة العلوية الأفقية تُخفى على الجوال (الهامبرجر يعرض القائمة السفلية) */
    .aya-header__menu { display: none; }
    /* ترتيب أنظف للهيدر على الجوال */
    .aya-header__row { gap: 8px; }
    .aya-header__zone { gap: 10px; }
    .aya-header__wish > span:not(.aya-wish-count) { display: none; } /* نخفي كلمة قائمتك، نسيب القلب */
    .aya-header__wish { padding: 6px 8px; gap: 2px; }
    .aya-logo__name { font-size: 24px; }
    .aya-logo__sub { font-size: 10px; }

    /* القائمة عمودية داخل قائمة الموبايل */
    .aya-navbar ul { flex-direction: column; flex-wrap: nowrap; overflow: visible; padding: 6px 0; }
    .aya-navbar li { width: 100%; text-align: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.22); }
    .aya-navbar li + li::before { display: none; }

    /* التصنيفات الفرعية تتحول لقائمة تنفتح بالضغط على السهم */
    .aya-cat-item--has-sub { position: relative; }
    .aya-cat-item__toggle {
        display: block;
        position: absolute;
        top: 0; left: 0;
        width: 56px; height: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .aya-subcats {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,.95);
    }
    .aya-cat-item.is-open > .aya-subcats { display: block; }
}

/* ضمان التجاوب العام: لا فيض أفقي + صور مرنة */
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.aya-container { width: 100%; box-sizing: border-box; }

@media (max-width: 480px) {
    .aya-logo__name { font-size: 30px; }
    .aya-header__actions { gap: 12px; }
    .aya-section-title { font-size: 24px; }
}

/* ==========================================================================
   الإصدار 2.0 — سلايدر التصنيفات
   ========================================================================== */
.aya-slider--cats .aya-slider__track > .aya-slide-cat {
    flex: 0 0 calc((100% - 4 * 26px) / 5); /* 5 تصنيفات في الصف */
    scroll-snap-align: start;
}
.aya-slide-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 210px;
    padding: 18px;
    border-radius: var(--aya-radius);
    overflow: hidden;
    text-align: center;
    color: #fff !important;
    background: linear-gradient(150deg, var(--aya-rose), var(--aya-rose-deep));
    box-shadow: var(--aya-shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}
.aya-slide-cat:nth-child(4n+2) { background: linear-gradient(150deg, var(--aya-rose-deep), #8f5566); }
.aya-slide-cat:nth-child(4n+3) { background: linear-gradient(150deg, var(--aya-gold), #c79a5a); }
.aya-slide-cat:nth-child(4n+4) { background: linear-gradient(150deg, #b07f8c, #8f5566); }
.aya-slide-cat:hover { transform: translateY(-5px); box-shadow: var(--aya-shadow); color: #fff !important; }
.aya-slide-cat__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.aya-slide-cat--img::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(93,58,68,.78) 0%, rgba(93,58,68,.25) 55%, rgba(93,58,68,.1) 100%);
}
.aya-slide-cat__label {
    position: relative;
    z-index: 2;
    font-family: var(--aya-font-head);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.aya-slide-cat__count {
    position: relative;
    z-index: 2;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    opacity: .92;
}

@media (max-width: 1024px) {
    .aya-slider--cats .aya-slider__track > .aya-slide-cat { flex-basis: calc((100% - 2 * 26px) / 3); }
}
@media (max-width: 600px) {
    .aya-slider--cats .aya-slider__track > .aya-slide-cat { flex-basis: calc((100% - 16px) / 2); min-height: 170px; }
    .aya-slide-cat__label { font-size: 17px; }
}

/* ==========================================================================
   الإصدار 2.1 — المفضلة (Wishlist)
   ========================================================================== */
/* زر القلب فوق صورة المنتج في القوائم */
.woocommerce ul.products li.product { position: relative; }
.aya-wish-wrap { position: absolute; top: 12px; left: 12px; z-index: 4; }
.aya-wish-btn--loop {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--aya-border);
    box-shadow: 0 4px 12px rgba(93,58,68,.14);
    display: grid; place-items: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.aya-wish-btn--loop .aya-wish-btn__label { display: none; }
.aya-wish-btn--loop svg { width: 20px; height: 20px; }
.aya-wish-btn svg { fill: none; stroke: var(--aya-rose-deep); stroke-width: 2; transition: fill .2s ease, stroke .2s ease; }
.aya-wish-btn:hover { transform: scale(1.08); }
.aya-wish-btn.is-active svg { fill: var(--aya-rose); stroke: var(--aya-rose); }

/* زر القلب في صفحة المنتج المفرد (بجانب أضف للسلة) */
.aya-wish-btn--single {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: 10px;
    margin-top: 6px;
    padding: 12px 20px;
    border-radius: var(--aya-radius-pill);
    background: #fff;
    border: 1.5px solid var(--aya-rose);
    color: var(--aya-rose-deep);
    font-family: var(--aya-font-head);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    vertical-align: middle;
    transition: background .2s ease, color .2s ease;
}
.aya-wish-btn--single svg { width: 18px; height: 18px; }
.aya-wish-btn--single:hover { background: var(--aya-rose-pale); }
.aya-wish-btn--single.is-active { background: var(--aya-rose); color: #fff; }
.aya-wish-btn--single.is-active svg { fill: #fff; stroke: #fff; }

/* عدّاد المفضلة في الهيدر */
.aya-header__wish { position: relative; }
.aya-wish-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    margin-inline-start: 4px;
    border-radius: 9px;
    background: var(--aya-rose-deep);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* صفحة المفضلة */
.aya-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 26px;
}
.aya-wishlist-empty { text-align: center; color: var(--aya-text-soft); padding: 40px 0; font-size: 17px; }
.aya-wish-card__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aya-wish-remove {
    background: transparent;
    border: none;
    color: var(--aya-text-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 4px;
}
.aya-wish-remove:hover { color: var(--aya-rose-deep); }

/* ==========================================================================
   الإصدار 2.4 — صفحة تواصل معنا
   ========================================================================== */
.aya-contact { max-width: 1000px; margin: 0 auto; }
.aya-contact__alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 600;
    font-family: var(--aya-font-head);
}
.aya-contact__alert--ok  { background: #e8f6ec; color: #1f7a45; border: 1px solid #bfe6cd; }
.aya-contact__alert--err { background: #fcecef; color: #a83251; border: 1px solid #f3c9d4; }

.aya-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 30px;
    align-items: start;
}
.aya-contact__info {
    background: var(--aya-rose-pale);
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius);
    padding: 26px;
}
.aya-contact__info h3,
.aya-contact__form-wrap h3 {
    font-family: var(--aya-font-head);
    color: var(--aya-rose-deep);
    font-size: 22px;
    margin: 0 0 18px;
}
.aya-contact__block { margin-bottom: 18px; }
.aya-contact__label { display: block; font-weight: 700; color: var(--aya-text); margin-bottom: 6px; }
.aya-contact__block ul { list-style: none; margin: 0; padding: 0; }
.aya-contact__block ul li { margin-bottom: 4px; }
.aya-contact__info a { color: var(--aya-rose-deep); text-decoration: none; }
.aya-contact__info a:hover { color: var(--aya-rose); }
.aya-contact__info .aya-social a { color: #fff; }

.aya-contact__form-wrap {
    background: #fff;
    border: 1px solid var(--aya-border);
    border-radius: var(--aya-radius);
    padding: 26px;
    box-shadow: var(--aya-shadow-soft);
}
.aya-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aya-contact__form label { display: block; margin-bottom: 16px; }
.aya-contact__form label > span { display: block; font-weight: 600; color: var(--aya-text); margin-bottom: 6px; font-size: 14px; }
.aya-contact__form input,
.aya-contact__form select,
.aya-contact__form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--aya-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--aya-font-body);
    font-size: 15px;
    color: var(--aya-text);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.aya-contact__form input:focus,
.aya-contact__form select:focus,
.aya-contact__form textarea:focus {
    outline: none;
    border-color: var(--aya-rose);
    box-shadow: 0 0 0 3px rgba(201,123,142,.16);
}
.aya-contact__form textarea { resize: vertical; }
.aya-contact__submit { border: none; cursor: pointer; margin-top: 4px; }
/* مصيدة السبام مخفية */
.aya-contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 782px) {
    .aya-contact__grid { grid-template-columns: 1fr; }
    .aya-contact__row { grid-template-columns: 1fr; }
}

/* قائمة روابط إضافية في عمود اللوجو بالفوتر */
.aya-footer__mini { margin: 14px 0; }
.aya-footer__mini h4 { margin: 0 0 8px; }
.aya-footer__mini ul { list-style: none; margin: 0; padding: 0; }
.aya-footer__mini ul li { margin-bottom: 6px; }
