/* ==========================================================
   دار فاطمة — واجهة المتجر
   الألوان مأخوذة من الشعار: أخضر زمرّدي + ذهبي على خلفية كريمية
   ========================================================== */

:root {
    --teal-900: #08393a;
    --teal-800: #0b4a4a;
    --teal-700: #0f5b5a;
    --teal-500: #1b827e;
    --teal-100: #dceeeb;
    --teal-50: #eef7f5;
    --gold: #c8a04a;
    --gold-light: #ecd9a4;
    --gold-deep: #9c7628;
    --cream: #fbf7ee;
    --paper: #fffdf8;
    --ink: #1c2a29;
    --muted: #6d7b78;
    --line: #ebe1cc;
    --wa: #1fa855;
    --radius: 20px;
    --shadow: 0 14px 40px -18px rgba(8, 57, 58, .35);
    --ease: cubic-bezier(.22, .8, .26, 1);
    --tabbar-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    animation: pageIn .5s var(--ease) both;
}

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { font-family: 'El Messiri', 'Tajawal', serif; line-height: 1.35; margin: 0; color: var(--teal-900); }
p { margin: 0; }
::selection { background: var(--gold-light); color: var(--teal-900); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- شريط الإعلان ---------- */
.announce {
    background: var(--teal-900);
    color: var(--gold-light);
    text-align: center;
    font-size: .86rem;
    padding: 7px 16px;
    letter-spacing: .2px;
}

/* ---------- الشريط العلوي ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 247, 238, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.topbar.stuck { border-color: var(--line); box-shadow: 0 8px 26px -20px rgba(8, 57, 58, .5); }
.topbar-in { display: flex; align-items: center; gap: 22px; height: 74px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 52px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand strong { display: block; font-family: 'El Messiri', serif; font-size: 1.32rem; color: var(--teal-800); line-height: 1.2; }
.brand small { display: block; font-size: .72rem; color: var(--gold-deep); letter-spacing: .3px; }

.mainnav { display: flex; gap: 4px; margin-inline: auto; }
.mainnav a {
    position: relative;
    padding: 8px 13px;
    font-weight: 500;
    font-size: .96rem;
    color: var(--teal-900);
    border-radius: 999px;
    transition: color .2s, background .2s;
}
.mainnav a::after {
    content: '';
    position: absolute;
    inset-inline: 14px;
    bottom: 3px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}
.mainnav a:hover::after, .mainnav a.on::after { transform: scaleX(1); }
.mainnav a.on { color: var(--teal-700); }

.topbar-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.iconbtn {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--teal-800);
    transition: background .2s, transform .2s;
}
.iconbtn:hover { background: var(--teal-100); }
.iconbtn:active { transform: scale(.92); }

.wa-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--teal-700);
    color: #fff;
    font-weight: 500;
    font-size: .92rem;
    transition: background .25s, transform .25s;
}
.wa-pill:hover { background: var(--teal-900); transform: translateY(-1px); }

.searchbar {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease);
    background: var(--paper);
}
.searchbar > .wrap { overflow: hidden; display: flex; align-items: center; gap: 10px; min-height: 0; color: var(--muted); }
.searchbar.open { grid-template-rows: 1fr; border-top: 1px solid var(--line); }
.searchbar input {
    flex: 1; min-width: 0;
    border: 0; background: none; outline: none;
    font: inherit; color: var(--ink);
    padding: 15px 0;
}
.searchbar button { color: var(--teal-700); font-weight: 700; padding: 8px 4px; }

/* ---------- الأزرار ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, #dcbb6c, var(--gold) 55%, #b58a35); color: var(--teal-900); box-shadow: 0 12px 26px -12px rgba(200, 160, 74, .9); }
.btn-gold::before {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 40%;
    inset-inline-start: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { inset-inline-start: -60%; } 100% { inset-inline-start: 130%; } }
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold .ic { transition: transform .3s var(--ease); }
.btn-gold:hover .ic { transform: translateX(-4px); }
.btn-line { border: 1.5px solid currentColor; color: inherit; }
.btn-line:hover { background: rgba(255, 255, 255, .12); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal:hover { background: var(--teal-900); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 28px -14px rgba(31, 168, 85, .9); }
.btn-wa:hover { background: #17924a; transform: translateY(-2px); }
.btn-big { padding: 16px 28px; font-size: 1.06rem; }

/* ---------- الواجهة الرئيسية ---------- */
.hero {
    position: relative;
    color: #f4efe2;
    background:
        radial-gradient(900px 480px at 12% 8%, rgba(236, 217, 164, .16), transparent 62%),
        radial-gradient(700px 520px at 92% 100%, rgba(27, 130, 126, .55), transparent 60%),
        linear-gradient(160deg, var(--teal-800), var(--teal-900));
    overflow: hidden;
}
.hero::before {
    /* زخرفة خفيفة مستوحاة من بتلات الشعار */
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 12c10 16 10 32 0 48-10-16-10-32 0-48zM60 60c16-10 32-10 48 0-16 10-32 10-48 0zM60 60c-16-10-32-10-48 0 16 10 32 10 48 0zM60 60c10 16 10 32 0 48-10-16-10-32 0-48z' fill='none' stroke='%23ecd9a4' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 120px;
    mask-image: linear-gradient(to left, transparent, #000 55%);
    -webkit-mask-image: linear-gradient(to left, transparent, #000 55%);
}
.hero-in {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    padding-block: 70px 120px;
}
.eyebrow, .kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .9rem; font-weight: 500;
    color: var(--gold);
}
.eyebrow::before, .kicker::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow { color: var(--gold-light); animation: rise .8s var(--ease) both; }
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.3;
    margin: 14px 0 16px;
    animation: rise .9s .08s var(--ease) both;
}
.hero-text > p { max-width: 520px; font-size: 1.1rem; color: rgba(244, 239, 226, .82); animation: rise .9s .16s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: rise .9s .24s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; animation: rise 1.1s .2s var(--ease) both; }
.arch {
    position: relative;
    width: min(340px, 78%);
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 26px 26px;
    background: linear-gradient(180deg, #fffdf6, #f6ecd4);
    display: grid; place-items: center;
    box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 11px rgba(236, 217, 164, .13), 0 40px 60px -30px rgba(0, 0, 0, .6);
    overflow: hidden;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch .arch-logo { width: 82%; height: auto; object-fit: contain; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }
.ring {
    position: absolute;
    width: min(460px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(236, 217, 164, .35);
    animation: spin 60s linear infinite;
}
.ring::before, .ring::after {
    content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 14px var(--gold);
}
.ring::before { top: -5px; left: 50%; }
.ring::after { bottom: 14%; left: 6%; width: 6px; height: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.petal {
    position: absolute;
    width: 16px; height: 26px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(140deg, var(--gold-light), var(--gold));
    opacity: .75;
    animation: drift 9s ease-in-out infinite;
}
.petal.p1 { top: 8%; right: 10%; }
.petal.p2 { top: 62%; right: 2%; width: 11px; height: 18px; animation-delay: -3s; background: linear-gradient(140deg, #6fc3bd, var(--teal-500)); }
.petal.p3 { top: 20%; left: 6%; width: 12px; height: 20px; animation-delay: -5s; }
.petal.p4 { bottom: 6%; left: 16%; animation-delay: -7s; background: linear-gradient(140deg, #6fc3bd, var(--teal-500)); }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-14px, 22px) rotate(50deg); }
}
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--cream); }

/* ---------- الأقسام (دوائر) ---------- */
.section { padding-block: 56px; }
.section-tight { padding-top: 26px; }
.section-cats { padding-block: 0 10px; margin-top: -34px; position: relative; z-index: 2; }
.cats-row {
    display: flex; gap: 18px;
    justify-content: center;
    overflow-x: auto;
    padding: 6px 4px 14px;
    scrollbar-width: none;
}
.cats-row::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 104px; text-align: center; }
.cat-pic {
    display: grid; place-items: center;
    width: 92px; height: 112px;
    margin-inline: auto;
    border-radius: 999px 999px 18px 18px;
    background: var(--paper);
    box-shadow: 0 0 0 1.5px var(--gold-light), var(--shadow);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s;
}
.cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-pic .cat-ic { width: 46px; height: 46px; color: var(--teal-700); transition: transform .5s var(--ease), color .3s; }
.cat-pic:has(.cat-ic) { background: linear-gradient(180deg, var(--paper), #f6edd8); }
.cat:hover .cat-ic { transform: scale(1.12) rotate(-4deg); color: var(--gold-deep); }
.cat:hover .cat-pic { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.cat-name { display: block; margin-top: 10px; font-weight: 500; font-size: .94rem; color: var(--teal-900); }

/* ---------- عناوين الأقسام ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center .kicker::after { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.section-head .sub { color: var(--muted); margin-top: 6px; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-700); font-weight: 700; font-size: .95rem; white-space: nowrap; padding-bottom: 6px; }
.more .ic { transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(-5px); }

/* ---------- شبكة المنتجات ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }

.card { display: block; }
.card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f3ecdc;
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.card-media .alt { opacity: 0; }
.card-media .noimg { position: absolute; inset: 0; display: grid; place-items: center; }
.card-media .noimg img { position: static; width: 46%; height: auto; opacity: .35; }
.card:hover .card-media { box-shadow: var(--shadow); transform: translateY(-5px); }
.card:hover .card-media > img { transform: scale(1.06); }
.card:hover .card-media.has-alt .alt { opacity: 1; }

.badge {
    position: absolute; top: 12px; inset-inline-start: 12px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: .76rem; font-weight: 700;
    backdrop-filter: blur(6px);
}
.badge-new { background: rgba(255, 253, 248, .92); color: var(--teal-700); }
.badge-sale { background: var(--gold); color: var(--teal-900); }
.badge-out { background: rgba(28, 42, 41, .78); color: #fff; }

.card-body { padding: 12px 4px 0; }
.card-cat { font-size: .78rem; color: var(--gold-deep); }
.card-body h3 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem; font-weight: 500;
    color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.5;
}
.card-price { display: flex; align-items: baseline; gap: 9px; margin-top: 4px; }
.card-price strong { color: var(--teal-700); font-size: 1.12rem; }
.card-price del { color: #a9a08c; font-size: .88rem; }

/* ---------- الظهور عند التمرير ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- المميّزات ---------- */
.perks { padding-block: 10px 6px; }
.perks-in {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 8px;
}
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; }
.perk + .perk { border-inline-start: 1px dashed var(--line); }
.perk > span {
    flex: none; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--teal-50); color: var(--teal-700);
    font-size: 1.15rem;
}
.perk strong { display: block; font-family: 'El Messiri', serif; font-size: 1.1rem; color: var(--teal-900); }
.perk p { font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* ---------- حكايتنا ---------- */
.about { padding-block: 30px; }
.about-in {
    display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center;
    background: linear-gradient(135deg, var(--teal-50), #f7efdc);
    border-radius: 34px;
    padding: 46px 54px;
    position: relative;
    overflow: hidden;
}
.about-in::after {
    content: '';
    position: absolute; inset-inline-end: -70px; top: -70px;
    width: 220px; height: 220px; border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: .5;
}
.about-art img { width: 100%; filter: drop-shadow(0 20px 26px rgba(8, 57, 58, .22)); }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 4px 0 12px; }
.about-text p { color: #3c4c4a; font-size: 1.05rem; max-width: 620px; }

/* ---------- تواصلي معنا ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
    padding: 30px 20px 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 26px;
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.c-ic {
    width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.6rem; color: #fff;
    margin-bottom: 10px;
    transition: transform .5s var(--ease);
}
.contact-card:hover .c-ic { transform: rotate(-8deg) scale(1.08); }
.c-wa .c-ic { background: var(--wa); }
.c-ig .c-ic { background: linear-gradient(45deg, #f6b14a, #e0457b 55%, #8a3ab9); }
.c-fb .c-ic { background: #1b74e4; }
.contact-card strong { font-family: 'El Messiri', serif; font-size: 1.2rem; color: var(--teal-900); }
.contact-card bdi { color: var(--teal-700); font-weight: 700; }
.contact-card em { font-style: normal; color: var(--muted); font-size: .9rem; }

/* ---------- حالة الفراغ ---------- */
.empty { text-align: center; padding: 50px 20px; max-width: 460px; margin-inline: auto; }
.empty img { width: 120px; margin: 0 auto 14px; opacity: .85; animation: float 6s ease-in-out infinite; }
.empty h3 { font-size: 1.5rem; }
.empty p { color: var(--muted); margin: 8px 0 20px; }

/* ---------- رأس الصفحات الداخلية ---------- */
.pagehead { padding: 34px 0 6px; }
.pagehead h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.pagehead p { color: var(--muted); font-size: .95rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--teal-700); }
.crumbs b { font-weight: 500; color: var(--teal-700); }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-weight: 500; font-size: .93rem;
    transition: all .25s;
}
.chip:hover { border-color: var(--gold); }
.chip.on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.sortbox { flex: none; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sortbox select {
    font: inherit; color: var(--ink);
    padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--paper);
}
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-weight: 700; }
.pager a.on { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }

/* ---------- صفحة المنتج ---------- */
.pdp { padding-top: 30px; }
.pdp-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

.gallery { position: sticky; top: 96px; }
.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 28px;
    background: #f3ecdc;
    aspect-ratio: 4 / 5;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; height: 100%; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-empty { display: grid; place-items: center; cursor: default; }
.slide-empty img { width: 45%; height: auto; opacity: .35; object-fit: contain; }
.gallery-dots { display: none; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 74px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; opacity: .6; transition: opacity .25s, box-shadow .25s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on, .thumb:hover { opacity: 1; }
.thumb.on { box-shadow: 0 0 0 2px var(--gold); }
.back-fab, .share-fab { display: none; }

.pdp-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 4px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.pdp-price strong { font-size: 2rem; color: var(--teal-700); font-family: 'El Messiri', serif; }
.pdp-price del { color: #a9a08c; font-size: 1.1rem; }
.save { background: #f6ebcd; color: var(--gold-deep); font-weight: 700; font-size: .85rem; padding: 3px 12px; border-radius: 999px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-top: 6px; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.stock.in { color: #24804a; }
.stock.in::before { background: #2fae63; box-shadow: 0 0 0 4px rgba(47, 174, 99, .18); }
.stock.out { color: #a2552f; }
.stock.out::before { background: #cf7a4c; }

.opt { margin-top: 22px; }
.opt-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 9px; font-weight: 700; color: var(--teal-900); }
.opt-hint { font-style: normal; font-weight: 400; font-size: .85rem; color: var(--muted); }
.opt.picked .opt-hint { color: var(--teal-700); }
.opt.need .opt-hint { color: #c2502c; font-weight: 700; }
.opt.need .opt-list { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(6px); } 40%, 80% { transform: translateX(-6px); } }
.opt-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
    min-width: 50px;
    padding: 9px 17px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    font-weight: 500;
    transition: all .2s;
}
.pill:hover { border-color: var(--gold); }
.pill.on { background: var(--teal-700); border-color: var(--teal-700); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 18px -12px var(--teal-900); }

.pdp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pdp-cta .btn-wa { flex: 1; min-width: 240px; }
.pdp-cta .btn-line { color: var(--teal-700); }
.pdp-cta .btn-line:hover { background: var(--teal-50); }

.pdp-desc { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.pdp-desc h2 { font-size: 1.25rem; margin-bottom: 8px; }
.pdp-desc p { color: #3c4c4a; font-size: 1.03rem; }
.pdp-notes { list-style: none; margin: 26px 0 0; padding: 18px 20px; background: var(--teal-50); border-radius: 18px; display: grid; gap: 10px; }
.pdp-notes li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: #33514f; }
.pdp-notes .ic { color: var(--teal-700); margin-top: 4px; }

.buybar { display: none; }

/* ---------- تكبير الصور ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6, 30, 31, .94);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox > img { max-width: 94vw; max-height: 88vh; border-radius: 14px; transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.open > img { transform: none; }
.lb-close, .lb-nav {
    position: absolute;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem;
    transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { right: 18px; top: 50%; margin-top: -23px; }
.lb-next { left: 18px; top: 50%; margin-top: -23px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .9rem; direction: ltr; }

.toast {
    position: fixed; z-index: 300;
    bottom: 100px; left: 50%;
    transform: translate(-50%, 20px);
    background: var(--teal-900); color: #fff;
    padding: 10px 20px; border-radius: 999px;
    font-size: .92rem;
    opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- التذييل ---------- */
.footer { margin-top: 50px; background: var(--teal-900); color: rgba(244, 239, 226, .78); }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 50px 34px; }
.footer-brand img { width: 84px; margin-bottom: 8px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.footer-brand strong { display: block; font-family: 'El Messiri', serif; font-size: 1.5rem; color: #fff; }
.footer-brand p { color: var(--gold-light); font-size: .92rem; }
.footer-col h4 { color: var(--gold-light); font-size: 1.05rem; margin-bottom: 10px; }
.footer-col a, .footer-col p { display: block; padding-block: 3px; font-size: .95rem; }
.footer-col a { transition: color .2s, padding .25s; }
.footer-col a:hover { color: #fff; padding-inline-start: 6px; }
.footer-bottom { border-top: 1px solid rgba(236, 217, 164, .16); text-align: center; padding: 16px; font-size: .84rem; color: rgba(244, 239, 226, .55); }

/* ---------- زر واتساب العائم (كمبيوتر) ---------- */
.wa-float {
    position: fixed; z-index: 60;
    bottom: 26px; left: 26px;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--wa); color: #fff; font-size: 1.6rem;
    box-shadow: 0 16px 30px -12px rgba(31, 168, 85, .9);
    transition: transform .3s var(--ease);
}
.wa-float::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--wa);
    animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.has-buybar .wa-float { display: none; }

/* ---------- شريط التنقّل السفلي + لائحة الأقسام ---------- */
.tabbar { display: none; }

.sheet { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-back { position: absolute; inset: 0; background: rgba(6, 30, 31, .5); opacity: 0; transition: opacity .35s; }
.sheet.open .sheet-back { opacity: 1; }
.sheet-panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    max-height: 78vh; overflow-y: auto;
    background: var(--paper);
    border-radius: 28px 28px 0 0;
    padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translateY(102%);
    transition: transform .45s var(--ease);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-grip { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 0 auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h3 { font-size: 1.3rem; }
.sheet-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 500; font-size: 1.05rem;
}
.sheet-list a:last-child { border: 0; }
.sheet-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-700); }
.sheet-ic .cat-ic { width: 24px; height: 24px; }
.sheet-list .ic { margin-inline-start: auto; color: var(--muted); }

/* ==========================================================
   شاشات متوسطة
   ========================================================== */
@media (max-width: 1020px) {
    .mainnav a:nth-child(n+5):not(:last-child) { display: none; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .about-in { grid-template-columns: 220px 1fr; padding: 36px; gap: 30px; }
}

/* ==========================================================
   الموبايل — إحساس تطبيق
   ========================================================== */
@media (max-width: 760px) {
    body { font-size: 15px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
    .wrap { width: calc(100% - 32px); }

    .mainnav, .wa-pill, .wa-float { display: none; }
    .topbar-in { height: 62px; justify-content: space-between; }
    .brand img { width: 44px; }
    .brand strong { font-size: 1.18rem; }
    .brand small { font-size: .68rem; }

    .hero-in { grid-template-columns: 1fr; gap: 10px; padding-block: 30px 86px; text-align: center; }
    .hero-art { order: -1; min-height: 250px; }
    .arch { width: 172px; }
    .ring { width: 250px; }
    .hero-text > p { margin-inline: auto; font-size: 1rem; }
    .eyebrow::after { content: ''; width: 28px; height: 1.5px; background: currentColor; }
    .hero-actions { justify-content: center; margin-top: 22px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-wave { height: 34px; }

    .section { padding-block: 34px; }
    .section-cats { margin-top: -30px; padding-bottom: 0; }
    .cats-row { justify-content: flex-start; gap: 12px; margin-inline: -16px; padding-inline: 16px; }
    .cat { width: 84px; }
    .cat-pic { width: 76px; height: 92px; }
    .cat-name { font-size: .86rem; }
    .cat-pic .cat-ic { width: 38px; height: 38px; }

    .section-head { margin-bottom: 18px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
    .card-media { border-radius: 16px; }
    .card-body { padding-top: 9px; }
    .card-body h3 { font-size: .93rem; }
    .card-price strong { font-size: 1.02rem; }
    .badge { top: 8px; inset-inline-start: 8px; font-size: .7rem; padding: 2px 9px; }

    .perks-in { grid-template-columns: 1fr; border-radius: 22px; }
    .perk { padding: 16px 14px; }
    .perk + .perk { border-inline-start: 0; border-top: 1px dashed var(--line); }

    .about-in { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; border-radius: 26px; }
    .about-art img { width: 150px; margin-inline: auto; }
    .about-text .kicker::after { content: ''; width: 28px; height: 1.5px; background: currentColor; }

    .contact-grid { grid-template-columns: 1fr; gap: 12px; }
    .contact-card {
        display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: start; align-items: center; justify-items: start;
        padding: 16px 18px; border-radius: 20px;
    }
    .contact-card .c-ic { grid-row: span 3; margin: 0; width: 54px; height: 54px; }

    .filters { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 18px; }
    .chips { margin-inline: -16px; padding-inline: 16px; }
    .sortbox { justify-content: space-between; }
    .pagehead { padding-top: 20px; }

    .footer { margin-top: 30px; }
    .footer-in { grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 34px 22px; }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
    .footer-brand img { margin-inline: auto; }

    /* شريط التنقّل السفلي */
    .tabbar {
        position: fixed; z-index: 90;
        bottom: 0; left: 0; right: 0;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid; grid-template-columns: repeat(4, 1fr);
        background: rgba(255, 253, 248, .96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -12px 30px -22px rgba(8, 57, 58, .6);
    }
    .tabbar a, .tabbar button {
        position: relative;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        font-size: .72rem; font-weight: 500;
        color: #8a9794;
        transition: color .25s;
    }
    .tabbar .ic { width: 23px; height: 23px; transition: transform .35s var(--ease); }
    .tabbar .on { color: var(--teal-700); }
    .tabbar .on .ic { transform: translateY(-2px) scale(1.08); }
    .tabbar .on::before {
        content: ''; position: absolute; top: 0;
        width: 30px; height: 3px; border-radius: 0 0 4px 4px;
        background: var(--gold);
    }
    .tabbar a:active .ic, .tabbar button:active .ic { transform: scale(.86); }
    .tabbar .tab-wa { color: var(--wa); }

    /* صفحة المنتج: الصور بعرض الشاشة والمعلومات كبطاقة فوقها */
    .has-buybar .tabbar { display: none; }
    .has-buybar .topbar, .has-buybar .announce { display: none; }
    .pdp { padding-top: 0; }
    .pdp-in { grid-template-columns: 1fr; gap: 0; width: 100%; }
    .gallery { position: relative; top: 0; }
    .gallery-track { border-radius: 0; aspect-ratio: 4 / 5; }
    .thumbs { display: none; }
    .gallery-dots {
        position: absolute; bottom: 40px; left: 0; right: 0;
        display: flex; justify-content: center; gap: 6px;
        direction: ltr;
    }
    .gallery-dots i { width: 7px; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: width .3s var(--ease), background .3s; }
    .gallery-dots i.on { width: 22px; background: #fff; }
    .back-fab, .share-fab {
        position: absolute; z-index: 3; top: calc(14px + env(safe-area-inset-top));
        width: 42px; height: 42px; border-radius: 50%;
        display: grid; place-items: center;
        background: rgba(255, 253, 248, .92); color: var(--teal-900);
        box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
    }
    .back-fab { right: 14px; }
    .share-fab { left: 14px; }
    .pdp-info {
        position: relative; z-index: 2;
        margin-top: -26px;
        background: var(--cream);
        border-radius: 28px 28px 0 0;
        padding: 24px 18px 10px;
    }
    .pdp-price strong { font-size: 1.7rem; }
    .pdp-cta { display: none; }
    .buybar {
        position: fixed; z-index: 90;
        bottom: 0; left: 0; right: 0;
        display: flex; align-items: center; gap: 14px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 253, 248, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -12px 30px -22px rgba(8, 57, 58, .6);
    }
    .buybar-price { min-width: 0; flex: 1; line-height: 1.3; }
    .buybar-price small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buybar-price strong { font-size: 1.25rem; color: var(--teal-700); font-family: 'El Messiri', serif; }
    .buybar .btn { flex: none; padding: 13px 22px; }
    .has-buybar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .lb-nav { display: none; }
}

@media (max-width: 380px) {
    .brand small { display: none; }
    .hero h1 { font-size: 1.85rem; }
}

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