@charset "UTF-8";
/* =============================================================
   شهبند - نظام التصميم
   -------------------------------------------------------------
   الفكرة: العباية بتتحكم عليها من انسدالتها ومن حركة الضوء على
   القماش. فالتصميم كله رأسي: شبكة طولية، وخط "درزة" رفيع بيقرأ
   كفتحة العباية الأمامية بيثبّت العناوين والكروت.

   الملف ده بيحل محل style.css و media.css بتوع التمبليت.
   ============================================================= */

/* ---------- 1. التوكنز ---------- */
:root {
    /* اللون */
    --ink:        #16151B;   /* حبر بنفسجي غامق - لون الكريب المصبوغ */
    --ink-soft:   #3B3945;
    --slate:      #6A6875;
    --sage:       #7C806F;   /* زيتي مكتوم - للبيانات الثانوية */
    --stone:      #E7E6E1;   /* أساس الصفحة */
    --stone-deep: #D9D7D0;
    --linen:      #F7F6F3;   /* سطح الكروت */
    --white:      #FFFFFF;
    --burgundy:   #6E2233;   /* الأكسنت - نادر الاستخدام */
    --burgundy-d: #551927;
    --success:    #4A6B4F;
    --danger:     #8C2F2F;

    /* المسافات - سلم واحد */
    --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
    --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4.5rem;
    --s9: 7rem;

    /* الخطوط */
    --font-display: "Noto Kufi Arabic", system-ui, sans-serif;
    --font-body:    "IBM Plex Sans Arabic", system-ui, sans-serif;

    /* الحواف والظلال - محدودة عن قصد */
    --r-sm: 2px;
    --r-md: 4px;
    --hairline: 1px solid var(--stone-deep);
    --shadow: 0 1px 2px rgba(22,21,27,.04), 0 8px 24px rgba(22,21,27,.06);

    --wrap: 1240px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. الأساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--burgundy); }

ul, ol { list-style: none; margin: 0; padding: 0; }

h1,h2,h3,h4,h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

p { margin: 0 0 var(--s4); }

button { font: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--s5);
}

.section { padding-block: var(--s8); }
.section--tight { padding-block: var(--s7); }
@media (max-width: 767px) {
    /* مساحات أقل بين الأقسام على الموبايل عشان الإيقاع يبقى مضبوط */
    .section { padding-block: var(--s6); }
    .section--tight { padding-block: var(--s5); }
}

/* الأرقام دايمًا لاتينية عشان الأسعار تبقى مقروءة */
.num, .price, .sh-qty__value, input[type="number"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ---------- 3. التوقيع: الدرزة ---------- */
/* خط رأسي رفيع بيقرأ كفتحة العباية الأمامية */
.seam {
    position: relative;
    padding-inline-start: var(--s5);
}
.seam::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .35em;
    bottom: .35em;
    width: 1px;
    background: var(--ink);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s5);
    margin-bottom: var(--s6);
}
.section-head__title {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}
.section-head__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--sage);
    margin-bottom: var(--s2);
}
.section-head__link {
    font-size: .9rem;
    color: var(--slate);
    white-space: nowrap;
    border-bottom: 1px solid var(--stone-deep);
    padding-bottom: 2px;
}
.section-head__link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 4. الأزرار ---------- */
.btn-sh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    padding: .8rem 1.75rem;
    border: 1px solid var(--ink);
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--linen);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn-sh:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }

.btn-sh--ghost { background: transparent; color: var(--ink); }
.btn-sh--ghost:hover { background: var(--ink); color: var(--linen); }

.btn-sh--wide { width: 100%; }

.btn-sh:disabled, .btn-sh[disabled] {
    opacity: .45; cursor: not-allowed; background: var(--slate); border-color: var(--slate);
}

/* ---------- 5. الهيدر ---------- */
.sh-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(231,230,225,.92);
    backdrop-filter: blur(10px);
    border-bottom: var(--hairline);
}

.sh-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--s5);
    min-height: 74px;
}

.sh-logo { display: flex; align-items: center; gap: var(--s3); }
.sh-logo img { max-height: 44px; width: auto; }
.sh-logo__text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.sh-nav { display: flex; gap: var(--s6); justify-content: center; }
.sh-nav a {
    position: relative;
    font-size: .95rem;
    color: var(--ink-soft);
    padding-block: var(--s2);
}
.sh-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform .28s var(--ease);
    transform-origin: inline-end;
}
.sh-nav a:hover::after, .sh-nav a.is-active::after { transform: scaleX(1); }
.sh-nav a.is-active { color: var(--ink); }

.sh-actions { display: flex; align-items: center; gap: var(--s2); }

.sh-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    font-size: 1.05rem;
}
.sh-iconbtn:hover { border-color: var(--stone-deep); background: var(--linen); }

.sh-badge {
    position: absolute;
    top: 4px; inset-inline-start: 4px;
    min-width: 18px; height: 18px;
    padding-inline: 4px;
    border-radius: 9px;
    background: var(--burgundy);
    color: var(--white);
    font-size: .68rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.sh-burger { display: none; }

/* التنقل على الموبايل */
@media (max-width: 991px) {
    .sh-header__bar { grid-template-columns: auto 1fr auto; min-height: 62px; }
    .sh-burger {
        display: inline-flex;
        border: 1px solid var(--stone-deep);
    }
    .sh-nav {
        position: fixed;
        inset: 62px 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: var(--stone);
        border-bottom: var(--hairline);
        padding: var(--s3) var(--s5) var(--s5);
        transform: translateY(-120%);
        transition: transform .3s var(--ease);
        box-shadow: var(--shadow);
    }
    .sh-nav.is-open { transform: translateY(0); }
    .sh-nav a { padding-block: var(--s3); border-bottom: var(--hairline); }
    .sh-nav a::after { display: none; }
}

/* ---------- 6. الهيرو ---------- */
.sh-hero { position: relative; background: var(--ink); overflow: hidden; }
.sh-hero__slide { position: relative; }
.sh-hero__media {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center 25%;
    opacity: 1;
}
/* تدرّج غامق من جهة النص عشان النص يفضل واضح على أي صورة */
.sh-hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        270deg,
        rgba(22,21,27,.88) 0%,
        rgba(22,21,27,.70) 32%,
        rgba(22,21,27,.35) 58%,
        rgba(22,21,27,.12) 80%,
        transparent 100%
    );
    z-index: 1;
}
.sh-hero__copy {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-inline: clamp(var(--s5), 6vw, var(--s9));
    color: var(--linen);
}
.sh-hero__eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: #e8c9d0;
    margin-bottom: var(--s3);
}
.sh-hero__title {
    font-size: clamp(2.1rem, 1.1rem + 4vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    max-width: 15ch;
    margin-bottom: var(--s4);
    text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.sh-hero__text {
    max-width: 40ch;
    font-size: 1.1rem;
    color: rgba(255,255,255,.9);
    line-height: 1.8;
    margin-bottom: var(--s5);
    text-shadow: 0 1px 12px rgba(0,0,0,.3);
}
.sh-hero__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.sh-hero .btn-sh {
    background: #fff;
    color: var(--ink);
    border: none;
    padding: 15px 42px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: .3s var(--ease);
}
.sh-hero .btn-sh:hover { background: var(--burgundy); color: #fff; }
.sh-hero .btn-sh--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.65);
}
.sh-hero .btn-sh--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
@media (max-width: 767px) {
    /* الموبايل: ارتفاع ثابت مريح، الصورة فوق والنص متمركز تحتها بوضوح */
    .sh-hero__slide { min-height: 82vh; }
    .sh-hero__media {
        aspect-ratio: auto;
        height: 82vh;
        min-height: 520px;
        object-position: center 18%;
    }
    /* تدرّج من تحت لفوق عشان النص يقعد في النص السفلي الواضح */
    .sh-hero__slide::after {
        background: linear-gradient(
            0deg,
            rgba(22,21,27,.95) 0%,
            rgba(22,21,27,.85) 28%,
            rgba(22,21,27,.5) 52%,
            rgba(22,21,27,.2) 72%,
            rgba(22,21,27,.1) 100%
        );
    }
    .sh-hero__copy {
        justify-content: flex-end;
        padding-bottom: var(--s7);
        padding-inline: var(--s5);
        text-align: center;
        align-items: center;
    }
    .sh-hero__eyebrow { font-size: .72rem; letter-spacing: .18em; margin-bottom: var(--s2); }
    .sh-hero__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        max-width: 100%;
        margin-bottom: var(--s3);
    }
    .sh-hero__text {
        font-size: .98rem;
        max-width: 34ch;
        margin-inline: auto;
        margin-bottom: var(--s5);
    }
    /* الأزرار: عرض كامل ومكدّسة عشان يسهل الضغط بالإصبع */
    .sh-hero__actions { flex-direction: column; width: 100%; gap: 10px; }
    .sh-hero .btn-sh {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1rem;
    }
}
@media (max-width: 767px) and (min-height: 800px) {
    /* شاشات موبايل طويلة: نكبّر الصورة شوية */
    .sh-hero__media { height: 75vh; }
    .sh-hero__slide { min-height: 75vh; }
}

/* ---------- 7. كارت المنتج ---------- */
.sh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s5) var(--s4);
}
@media (max-width: 1100px) { .sh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .sh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .sh-grid { gap: var(--s4) var(--s3); } }

.sh-card { position: relative; display: flex; flex-direction: column; }

.sh-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;          /* طولي - العباية بتتحكم عليها من انسدالتها */
    overflow: hidden;
    background: var(--linen);
    border-radius: var(--r-sm);
}
.sh-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease), opacity .3s var(--ease);
}
.sh-card:hover .sh-card__media img { transform: scale(1.04); }

.sh-card__tag {
    position: absolute;
    top: var(--s3); inset-inline-start: var(--s3);
    padding: .25rem .6rem;
    background: var(--burgundy);
    color: var(--white);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    border-radius: var(--r-sm);
}

.sh-card__fav {
    position: absolute;
    top: var(--s3); inset-inline-end: var(--s3);
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(247,246,243,.9);
    color: var(--ink);
    font-size: .9rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), color .2s;
}
.sh-card:hover .sh-card__fav, .sh-card__fav:focus-visible { opacity: 1; transform: none; }
.sh-card__fav:hover, .sh-card__fav.added { color: var(--burgundy); }
@media (hover: none) { .sh-card__fav { opacity: 1; transform: none; } }

.sh-card__body { padding-top: var(--s3); }

.sh-card__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: var(--s1);
}

.sh-card__price { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.sh-card__price b { font-weight: 600; font-size: 1rem; }
.sh-card__price del { color: var(--slate); font-size: .85rem; }
.sh-card__cur { font-size: .78rem; color: var(--sage); }

/* شرائح الألوان جوه الكارت */
.sh-swatches { display: flex; gap: var(--s2); margin-top: var(--s3); }
.sh-swatch {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(22,21,27,.18);
}

/* ---------- 8. أقسام الصفحة الرئيسية ---------- */
.sh-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 820px) { .sh-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sh-cats { grid-template-columns: 1fr; } }

.sh-cat {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--ink);
}
.sh-cat img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .82;
    transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.sh-cat:hover img { transform: scale(1.05); opacity: .68; }
.sh-cat__label {
    position: absolute;
    inset-inline: var(--s4);
    bottom: var(--s4);
    color: var(--linen);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}
.sh-cat__count { display: block; font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: rgba(247,246,243,.7); }

/* شريط المزايا */
.sh-promise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
    padding-block: var(--s7);
    border-block: var(--hairline);
}
@media (max-width: 820px) { .sh-promise { grid-template-columns: 1fr; gap: var(--s5); } }
.sh-promise__item h4 { font-size: 1rem; margin-bottom: var(--s1); }
.sh-promise__item p { color: var(--slate); font-size: .9rem; margin: 0; }

/* آراء العملاء */
.sh-quote { max-width: 62ch; margin-inline: auto; text-align: center; }
.sh-quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, .95rem + .7vw, 1.5rem);
    line-height: 1.7;
    margin-bottom: var(--s4);
}
.sh-quote__who { font-size: .9rem; color: var(--sage); }
.sh-quote__dots { display: flex; gap: var(--s2); justify-content: center; margin-top: var(--s5); }
.sh-quote__dots button {
    width: 7px; height: 7px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--stone-deep);
    transition: background .2s;
}
.sh-quote__dots button[aria-current="true"] { background: var(--ink); }

/* ---------- 9. صفحة التسوق ---------- */
.sh-shop { display: grid; grid-template-columns: 260px 1fr; gap: var(--s7); align-items: start; }

/* عناصر الموبايل مخفية على الديسكتوب */
.sh-filter-toggle, .sh-filter-backdrop, .sh-filters__head, .sh-filters__apply { display: none; }

@media (max-width: 991px) {
    /* الفلاتر بقت درج ثابت (fixed) فمش بتاخد مكان في التخطيط،
       نخلي الشوب بلوك عادي عشان المنتجات تاخد العرض كامل. */
    .sh-shop { display: block; }
    .sh-shop > div:last-child { width: 100%; }
    .sh-shop .sh-grid { width: 100%; }

    /* نقلّل المساحة الفاضية فوق صفحة التسوق على الموبايل */
    .section--tight .section-head { padding-block: var(--s3) var(--s4); }

    /* زرار الفلترة: ظاهر وواضح فوق المنتجات */
    .sh-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px;
        background: var(--ink);
        color: #fff;
        border: none;
        border-radius: 3px;
        font-size: 1rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        margin-bottom: var(--s4);
    }
    .sh-filter-toggle i { color: #e8c9d0; }

    /* الفلاتر تبقى درج منزلق من جنب الشاشة */
    .sh-filters {
        position: fixed;
        top: 0;
        right: -400px;              /* مخفي بالكامل برّه اليمين (أكبر من أقصى عرض) */
        left: auto;
        width: 84%;
        max-width: 360px;
        height: 100vh;
        background: var(--linen);
        z-index: 200;
        padding: var(--s5);
        overflow-y: auto;
        transform: none;
        transition: right .32s var(--ease);
        box-shadow: -8px 0 30px rgba(0,0,0,.15);
    }
    .sh-filters.is-open { right: 0; }

    /* رأس الدرج: عنوان + زرار قفل */
    .sh-filters__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--ink);
        padding-bottom: var(--s4);
        margin-bottom: var(--s4);
        border-bottom: var(--hairline);
    }
    .sh-filters__close {
        background: none;
        border: none;
        font-size: 1.4rem;
        color: var(--ink);
        cursor: pointer;
        line-height: 1;
    }

    /* زرار عرض النتائج تحت الدرج */
    .sh-filters__apply {
        display: block;
        width: 100%;
        padding: 15px;
        margin-top: var(--s5);
        background: var(--burgundy);
        color: #fff;
        border: none;
        border-radius: 3px;
        font-size: 1.05rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        position: sticky;
        bottom: 0;
    }

    /* الخلفية المعتمة ورا الدرج */
    .sh-filter-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(22,21,27,.5);
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s;
    }
    .sh-filter-backdrop.is-open { display: block; opacity: 1; visibility: visible; }

    /* الفلتر الفردي: نشيل الـ max-height عشان الدرج يستوعبهم */
    .sh-filter { max-height: none; }
}

.sh-filter { border-bottom: var(--hairline); padding-block: var(--s4); }
.sh-filter:first-child { padding-top: 0; }
.sh-filter__title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: var(--s3);
}
.sh-check { display: flex; align-items: center; gap: var(--s3); padding-block: var(--s1); cursor: pointer; }
.sh-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.sh-check span { font-size: .92rem; color: var(--ink-soft); }

.sh-empty { padding: var(--s8) 0; text-align: center; color: var(--slate); grid-column: 1 / -1; }

/* ---------- 10. صفحة المنتج ---------- */
.sh-pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s8); align-items: start; }
@media (max-width: 991px) { .sh-pd { grid-template-columns: 1fr; gap: var(--s6); } }

/* المعرض: شريط رأسي - العباية لازم تتشاف بطولها كامل */
.sh-gallery { display: grid; grid-template-columns: 84px 1fr; gap: var(--s3); align-items: stretch; }
.sh-gallery__thumbs, .sh-gallery__main { min-height: 0; }
@media (max-width: 560px) { .sh-gallery { grid-template-columns: 1fr; } }

.sh-gallery__main {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--linen);
}
.sh-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.sh-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    height: 100%;
    /* لما المنتج ليه صور كتير (زي 9)، العمود بيطول أطول من الصورة الكبيرة.
       نحدّده بارتفاع الصورة ونخلّيه يتمرّر بدل ما يكسر الشبكة. */
    overflow-y: auto;
    padding-inline-end: 2px;
    scrollbar-width: thin;
}
.sh-gallery__thumbs::-webkit-scrollbar { width: 4px; }
.sh-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--stone-deep); border-radius: 4px; }
@media (max-width: 560px) {
    .sh-gallery__thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none; }
}
.sh-thumb {
    flex: 0 0 auto;
    width: 84px;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--linen);
}
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-thumb.is-active { border-color: var(--ink); }

.sh-pd__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: var(--s3); }
.sh-pd__price { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s5); }
.sh-pd__price b { font-size: 1.6rem; font-weight: 600; }
.sh-pd__price del { color: var(--slate); }
.sh-pd__desc { color: var(--ink-soft); border-bottom: var(--hairline); padding-bottom: var(--s5); margin-bottom: var(--s5); }

.sh-opt { margin-bottom: var(--s5); }
.sh-opt__label {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: var(--s3);
}
.sh-opt__list { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* شريحة اللون - كبيرة عن قصد، دي أهم قرار في الصفحة */
/* شريحة اللون: دايرة قماش والاسم تحتها.
   الاسم مهم - "بيج" و"زيتي" بيتلخبطوا على الشاشات الصغيرة من غير عنوان. */
.sh-opt__color {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 46px;
    max-width: 84px;
    color: var(--ink);
}
.sh-opt__dot {
    position: relative;
    display: block;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(22,21,27,.16);
    background-color: var(--stone-deep);
    box-shadow: inset 0 -6px 12px rgba(0,0,0,.08);
    overflow: hidden;
    flex: 0 0 auto;
    transition: box-shadow .2s var(--ease);
}
.sh-opt__dot img { width: 100%; height: 100%; object-fit: cover; }

.sh-opt__color.active .sh-opt__dot {
    box-shadow: inset 0 -6px 12px rgba(0,0,0,.08), 0 0 0 2px var(--stone), 0 0 0 3px var(--ink);
}
.sh-opt__color .fa-check {
    position: absolute;
    top: 15px; left: 50%;
    transform: translateX(-50%);
    font-size: .85rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
    pointer-events: none;
}
.sh-opt__color-name {
    font-size: .78rem;
    color: var(--slate);
    text-align: center;
    line-height: 1.35;
    white-space: nowrap;
}
.sh-opt__color.active .sh-opt__color-name { color: var(--ink); font-weight: 500; }
.sh-opt__list { gap: var(--s4); }

.sh-opt__chip {
    min-width: 52px;
    padding: .55rem .9rem;
    border: 1px solid var(--stone-deep);
    border-radius: var(--r-sm);
    background: var(--linen);
    font-size: .9rem;
    text-align: center;
}
.sh-opt__chip:hover { border-color: var(--ink); }
.sh-opt__chip.active { background: var(--ink); border-color: var(--ink); color: var(--linen); }

.sh-stock { font-size: .9rem; margin-bottom: var(--s4); min-height: 1.5em; }
.sh-stock.text-success { color: var(--success) !important; }
.sh-stock.text-danger  { color: var(--danger) !important; }

.sh-buy { display: flex; gap: var(--s3); flex-wrap: wrap; }
.sh-buy .btn-sh { flex: 1 1 200px; }

.sh-qty { display: flex; align-items: center; border: 1px solid var(--stone-deep); border-radius: var(--r-sm); background: var(--linen); }
.sh-qty button { width: 40px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.1rem; }
.sh-qty select, .sh-qty input { width: 62px; height: 44px; border: 0; background: none; text-align: center; }

/* ---------- 11. السلة ---------- */
.sh-cart { display: grid; grid-template-columns: 1fr 340px; gap: var(--s7); align-items: start; }
@media (max-width: 991px) { .sh-cart { grid-template-columns: 1fr; } }

.sh-line {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: var(--s4);
    padding-block: var(--s4);
    border-bottom: var(--hairline);
    align-items: center;
}
.sh-line__img { width: 92px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-sm); background: var(--linen); }
.sh-line__name { font-family: var(--font-display); font-weight: 500; margin-bottom: var(--s1); }
.sh-line__meta { font-size: .85rem; color: var(--sage); }
.sh-line__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.sh-line__remove { border: 0; background: none; color: var(--slate); font-size: .85rem; }
.sh-line__remove:hover { color: var(--danger); }
@media (max-width: 560px) {
    .sh-line { grid-template-columns: 72px 1fr; }
    .sh-line__img { width: 72px; }
    .sh-line__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

.sh-summary {
    position: sticky;
    top: 96px;
    background: var(--linen);
    border: var(--hairline);
    border-radius: var(--r-md);
    padding: var(--s5);
}
@media (max-width: 991px) { .sh-summary { position: static; } }
.sh-summary__row { display: flex; justify-content: space-between; gap: var(--s3); padding-block: var(--s2); font-size: .95rem; }
.sh-summary__row--total {
    border-top: 1px solid var(--ink);
    margin-top: var(--s3);
    padding-top: var(--s3);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ---------- 12. الفورم ---------- */
.sh-field { margin-bottom: var(--s4); }
.sh-field label { display: block; font-size: .88rem; color: var(--ink-soft); margin-bottom: var(--s2); }
.sh-field label .opt { color: var(--sage); }
.sh-input, .sh-select {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--stone-deep);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s var(--ease);
}
.sh-input:focus, .sh-select:focus { border-color: var(--ink); outline: none; }
.sh-input::placeholder { color: #A9A6A0; }

/* ---------- 13. الفوتر ---------- */
.sh-footer { background: var(--ink); color: rgba(247,246,243,.78); margin-top: var(--s8); }
.sh-footer a { color: rgba(247,246,243,.78); }
.sh-footer a:hover { color: var(--white); }
.sh-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--s6);
    padding-block: var(--s8) var(--s6);
}
@media (max-width: 900px) { .sh-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
@media (max-width: 520px) { .sh-footer__grid { grid-template-columns: 1fr; } }
.sh-footer h5 {
    color: var(--linen);
    font-size: .95rem;
    margin-bottom: var(--s3);
}
.sh-footer li { padding-block: 3px; font-size: .92rem; }
.sh-footer__social { display: flex; gap: var(--s2); margin-top: var(--s3); }
.sh-footer__social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid rgba(247,246,243,.22);
    border-radius: var(--r-sm);
}
.sh-footer__social a:hover { background: rgba(247,246,243,.1); }
.sh-footer__bottom {
    border-top: 1px solid rgba(247,246,243,.14);
    padding-block: var(--s4);
    font-size: .85rem;
    display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
}

/* ---------- 14. المسار ---------- */
.sh-crumbs { display: flex; gap: var(--s2); font-size: .85rem; color: var(--sage); padding-block: var(--s4); flex-wrap: wrap; }
.sh-crumbs li::after { content: "/"; margin-inline-start: var(--s2); color: var(--stone-deep); }
.sh-crumbs li:last-child::after { content: ""; }
.sh-crumbs li:last-child { color: var(--ink); }

/* ---------- 15. تفاصيل ---------- */
.sh-note { background: var(--linen); border: var(--hairline); border-radius: var(--r-md); padding: var(--s4); font-size: .9rem; color: var(--ink-soft); }

.skip-link {
    position: absolute; inset-inline-start: -9999px;
    background: var(--ink); color: var(--linen);
    padding: var(--s3) var(--s4); z-index: 1000;
}
.skip-link:focus { inset-inline-start: var(--s4); top: var(--s3); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 16. تعديلات المودال (بوتستراب LTR) ---------- */
.modal-header, .modal-footer { padding: var(--s4) var(--s5); }
.modal-body { padding: var(--s5); }
.modal-footer { justify-content: flex-start; }
.modal-title { font-family: var(--font-display); }
.modal-content { background: var(--linen); }

/* شريحة لون داخل سطر السلة */
.sh-swatch {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(22,21,27,.18);
}

/* أزرار الكمية داخل .sh-qty لما تكون input[type=button] */
.sh-qty input[type="button"] {
    width: 38px; height: 42px;
    border: 0; background: none;
    color: var(--ink); font-size: 1rem;
}
.sh-qty input[type="text"] {
    width: 48px; height: 42px;
    border: 0; background: none; text-align: center;
}

/* رسائل sweetalert بالخط الصح */
.swal-modal, .swal-title, .swal-text, .swal-button { font-family: var(--font-body) !important; }
.swal-title { font-family: var(--font-display) !important; }

/* قائمة الكمية */
.sh-select--qty { max-width: 160px; }

/* ملخص الاختيار الحالي */
.dynamic-property { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.sh-picked {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: .3rem .7rem;
    border: var(--hairline);
    border-radius: 999px;
    background: var(--linen);
    font-size: .85rem;
}
.sh-picked em { font-style: normal; color: var(--sage); }
.sh-picked b { font-weight: 600; }

/* زرار مسح الفلاتر */
.sh-clear {
    border: 0;
    background: none;
    color: var(--burgundy);
    font-size: .85rem;
    padding: .3rem .4rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sh-clear:hover { color: var(--ink); }

/* الفلاتر: قائمة طويلة تبقى قابلة للتمرير بدل ما تمد الصفحة */
.sh-filter { max-height: 340px; overflow-y: auto; }

/* ---------- التوست ---------- */
.sh-toast {
    position: fixed;
    inset-inline-start: var(--s5);
    bottom: var(--s5);
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: var(--s3);
    max-width: min(420px, calc(100vw - 2rem));
    padding: var(--s3) var(--s4);
    background: var(--ink);
    color: var(--linen);
    border-radius: var(--r-md);
    box-shadow: 0 12px 32px rgba(22,21,27,.28);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.sh-toast.is-open { opacity: 1; transform: none; pointer-events: auto; }
.sh-toast__icon {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(247,246,243,.16);
    font-size: .7rem;
    flex: 0 0 auto;
}
.sh-toast__text {
    font-size: .9rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sh-toast__action {
    margin-inline-start: auto;
    flex: 0 0 auto;
    color: var(--linen);
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 1px solid rgba(247,246,243,.5);
    padding-bottom: 1px;
}
.sh-toast__action:hover { color: var(--white); border-color: var(--white); }

@media (max-width: 560px) {
    .sh-toast { inset-inline: var(--s4); bottom: var(--s4); max-width: none; }
}

/* نبضة عداد العربة */
.cart-count.is-bumped { animation: sh-bump .45s var(--ease); }
@keyframes sh-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
}

/* صفحة منتج من غير خصائص (لون/مقاس): قايمة الكمية لوحدها
   محتاجة مسافة فوقها عشان متبقاش ملزوقة في الوصف */
.sh-opt:first-of-type { margin-top: var(--s2); }

/* ---------- كارت المنتج: مقاسات + ألوان + شراء سريع (زي topshoes) ---------- */

/* زرار الشراء السريع - بيطلع من تحت الصورة عند الهوفر */
.sh-card__quick {
    position: absolute;
    inset-inline: 10px;
    bottom: 10px;
    display: flex;
    gap: var(--s2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.sh-card:hover .sh-card__quick { opacity: 1; transform: none; }
.sh-card__quick button {
    flex: 1;
    padding: .6rem;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: var(--linen);
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s var(--ease);
}
.sh-card__quick button:hover { background: var(--burgundy); }

/* على اللمس (موبايل) الزرار ظاهر دايمًا */
@media (hover: none) {
    .sh-card__quick { opacity: 1; transform: none; }
}

/* شرائح الألوان الصغيرة على الكارت */
.sh-card__colors { display: flex; gap: 6px; margin-top: var(--s3); }
.sh-card__color {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(22,21,27,.18);
    cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.sh-card__color[data-color-img]:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--linen), 0 0 0 3px var(--ink);
}

/* المقاسات على الكارت - الخلصان بيتشطب */
.sh-card__sizes { display: flex; gap: 5px; margin-top: var(--s2); flex-wrap: wrap; }
.sh-card__size {
    min-width: 30px; height: 28px;
    display: grid; place-items: center;
    border: 1px solid var(--stone-deep);
    border-radius: var(--r-sm);
    background: var(--linen);
    font-size: .78rem;
    color: var(--ink-soft);
}
.sh-card__size--out {
    color: #B0ADA6;
    text-decoration: line-through;
    background: transparent;
}

/* ---------- معرض المنتج: صورة كبيرة بأسهم + شبكة تحتها ---------- */
.sh-gallery2 { display: flex; flex-direction: column; gap: var(--s3); }

.sh-gallery2__stage {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--linen);
}
.sh-gallery2__stage img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .25s var(--ease);
}
.sh-gallery2__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(247,246,243,.94);
    color: var(--ink);
    font-size: 1.05rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.sh-gallery2__arrow:hover { background: #fff; }
.sh-gallery2__prev { inset-inline-end: 14px; }
.sh-gallery2__next { inset-inline-start: 14px; }
.sh-gallery2__count {
    position: absolute;
    bottom: 14px; inset-inline-start: 50%;
    transform: translateX(50%);
    background: rgba(22,21,27,.72);
    color: var(--linen);
    font-size: .82rem;
    padding: .25rem .8rem;
    border-radius: 999px;
    z-index: 2;
}

.sh-gallery2__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s2);
}
@media (max-width: 560px) { .sh-gallery2__grid { grid-template-columns: repeat(4, 1fr); } }
.sh-gallery2__grid .sh-thumb {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--linen);
    cursor: pointer;
}
.sh-gallery2__grid .sh-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    /* لو الصورة وقعت، منمنع نص alt إنه يطفح بحجم كبير */
    font-size: 0;
    color: transparent;
}
.sh-gallery2__grid .sh-thumb.is-active { border-color: var(--ink); }

/* بديل الصورة المكسورة/الفاضية في معرض المنتج (بدل ما تظهر بيضا) */
.sh-gallery2__stage.sh-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stone);
}
.sh-gallery2__stage.sh-noimg::after {
    content: "\f03e"; /* أيقونة صورة (Font Awesome) */
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 3rem;
    color: var(--stone-deep);
}
