/* ==========================================================================
   رؤية برنت — ستايل الثيم
   الألوان من اللوجو، والخطوط: Alexandria للعناوين وCairo للكلام.
   ========================================================================== */

:root {
    --blue: #0a2aa6;
    --blue-d: #071d78;
    --red: #e3161b;
    --green: #5db52e;
    --orange: #f39200;
    --yellow: #f5e400;
    --cyan: #12b5e8;
    --wa: #25d366;
    --wa-d: #1aa851;

    --ink: #111111;
    --ink-2: #191918;
    --text: #2b2b2b;
    --muted: #6b6b6b;
    --line: #e7e7e3;
    --soft: #f6f6f4;
    --white: #ffffff;
    --foot: #0c0c0c;

    --pink: #fde7ea;
    --cream: #fff4d6;
    --lav: #e8e9ff;

    --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue));

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);

    --f-body: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --f-head: "Alexandria", "Cairo", system-ui, sans-serif;

    --wrap: 1240px;
    --gut: 20px;
    --header-h: 76px;
}

/* ---------- أساسيات ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
h3, h4 { font-family: var(--f-body); font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
bdi { unicode-bidi: isolate; direction: ltr; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.show-sm { display: none !important; }

/* ---------- الخط الملون ---------- */
.rainbow { display: block; width: 88px; height: 5px; border-radius: 9px; background: var(--rainbow); margin: 10px 0 18px; }
.rainbow--lg { width: 140px; height: 6px; }
.rainbow--wide { width: 100%; max-width: 260px; height: 4px; margin: 0; }
.rainbow--top { position: absolute; inset: 0 0 auto; width: auto; height: 5px; margin: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ---------- أزرار ---------- */
.btn {
    --bg: var(--ink); --fg: #fff; --bd: var(--bg);
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 46px; padding: .55em 1.3em;
    background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: 999px;
    font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.2;
    cursor: pointer; text-align: center; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.btn:active { transform: none; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--primary { --bg: var(--blue); }
.btn--primary:hover { --bg: var(--blue-d); }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: #c50f14; }
.btn--dark { --bg: var(--ink); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--wa { --bg: var(--wa); --fg: #fff; }
.btn--wa:hover { --bg: var(--wa-d); }
.btn--wa-outline { --bg: transparent; --fg: var(--wa); --bd: var(--wa); }
.btn--wa-outline:hover { --bg: var(--wa); --fg: #fff; }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: #fff; }
.btn--ghost { --bg: var(--soft); --fg: var(--ink); --bd: var(--soft); }
.btn--ghost:hover { --bg: #ececE8; --bd: #ececE8; box-shadow: none; }
.btn--xs { min-height: 36px; padding: .35em .95em; font-size: 13.5px; }
.btn--sm { min-height: 40px; padding: .45em 1.1em; font-size: 14px; }
.btn--lg { min-height: 54px; padding: .65em 1.7em; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }
.icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn .ico { width: 22px; height: 22px; }

/* ---------- تاجز ---------- */
.tag { display: inline-flex; align-items: center; gap: .35em; padding: .25em .8em; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; margin: 0; }
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--blue { background: var(--blue); color: #fff; }
.tag--red { background: var(--red); color: #fff; }
.tag--green { background: #e6f5dd; color: #2f7a10; }
.pill { display: inline-flex; align-items: center; gap: .55em; padding: .4em 1em; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 18px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 22, 27, .15); }

/* ---------- البار اللي فوق ---------- */
.topbar { background: var(--ink); color: #e9e9e9; font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar__in > span { display: inline-flex; align-items: center; gap: .45em; }
.topbar .ico { width: 16px; height: 16px; color: var(--yellow); }
.topbar__phone { margin-inline-start: auto; color: #fff; display: inline-flex; align-items: center; gap: .45em; font-weight: 700; }
.topbar__phone:hover { color: var(--yellow); }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav-open .site-header { z-index: 90; }
.admin-bar .site-header { top: 32px; }
.header__in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; flex: none; }
.logo__img { height: 50px; width: auto; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav__list a { display: block; padding: .5em .85em; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav__list a:hover { background: var(--soft); }
.nav__list .current-menu-item > a, .nav__list .current-menu-ancestor > a, .nav__list .current_page_item > a { color: var(--blue); background: #eef1ff; }
.nav__list li { position: relative; }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { border-radius: var(--r-sm); }
.header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.header__actions .btn { margin-inline-start: 8px; }
.cart-btn__count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid #fff; }
.menu-btn { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-panel__form { display: flex; gap: 10px; }
.search-panel__form input { flex: 1; }

/* ---------- السكاشن ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 40px 0 80px; }
.section--soft { background: var(--soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head .rainbow { margin-bottom: 0; }
.kicker { color: var(--red); font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.sec-title { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.sec-title--xl { font-size: clamp(28px, 3.8vw, 44px); }
.sec-sub { color: var(--muted); font-size: 17px; margin: 14px 0 0; max-width: 56ch; }

/* ---------- الهيرو ---------- */
.hero { padding: 56px 0 0; background: radial-gradient(1200px 500px at 85% -10%, #f2f4ff 0%, transparent 60%), #fff; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__title { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.hero__lead { font-size: 18px; color: #4a4a4a; max-width: 54ch; margin: 0 0 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.hero__stats > div { margin: 0; }
.hero__stats dt { font-family: var(--f-head); font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1.3; }
.hero__stats dd { margin: 0; color: var(--muted); font-size: 14px; }
.hero__art { position: relative; aspect-ratio: 1 / .95; }
.hero__ribbon { position: absolute; inset: 8% -6% auto auto; width: 70%; height: 70%; border-radius: 40% 60% 55% 45%; background: var(--rainbow); filter: blur(60px); opacity: .22; }
.hero__ph { position: absolute; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.hero__ph--1 { inset: 0 auto auto 0; width: 58%; height: 56%; transform: rotate(-2deg); z-index: 2; }
.hero__ph--2 { inset: 4% 0 auto auto; width: 38%; height: 40%; transform: rotate(3deg); z-index: 1; }
.hero__ph--3 { inset: auto 0 6% auto; width: 46%; height: 44%; transform: rotate(-3deg); z-index: 3; }
.hero__ph--4 { inset: auto auto 0 6%; width: 40%; height: 38%; transform: rotate(2deg); z-index: 2; }
.hero__ph--5 { inset: 44% auto auto 40%; width: 26%; height: 24%; transform: rotate(-6deg); z-index: 4; border-width: 4px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; padding-bottom: 8px; position: relative; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { font-size: 16.5px; margin: 14px 0 4px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.65; }
.badge-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; }
.badge-ico .ico { width: 24px; height: 24px; }
.badge-ico--red { background: var(--red); }
.badge-ico--orange { background: var(--orange); }
.badge-ico--green { background: var(--green); }
.badge-ico--blue { background: var(--blue); }
.badge-ico--soft-blue { background: #e9edff; color: var(--blue); }
.badge-ico--soft-cyan { background: #e1f6fd; color: #0784ad; }
.badge-ico--soft-green { background: #e9f6e1; color: #3d8c18; }
.badge-ico--soft-yellow { background: #fff9c4; color: #8a7d00; }

/* ---------- الأقسام ---------- */
.bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 230px); gap: 16px; }
.cat-card {
    position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--r-lg);
    background: var(--ink-2) var(--img) center / cover no-repeat; color: #fff; min-height: 220px; isolation: isolate;
}
.cat-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 60%, transparent); z-index: -1; transition: .3s; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; z-index: -2; transition: transform .5s ease; }
.cat-card:hover { color: #fff; }
.cat-card:hover::after { transform: scale(1.05); }
.cat-card > .tag { position: absolute; top: 18px; inset-inline-start: 18px; }
.cat-card__body { display: flex; flex-direction: column; gap: 4px; padding: 22px; width: 100%; }
.cat-card__body strong { font-family: var(--f-head); font-weight: 800; font-size: 21px; line-height: 1.35; }
.cat-card__body small { font-size: 14px; opacity: .85; }
.cat-card .more, .cat-mini .more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; font-size: 13.5px; }
.cat-card .more .ico, .cat-mini .more .ico { width: 1em; height: 1em; }
.cat-card--big { grid-row: span 2; }
.cat-card--big .cat-card__body { padding: 32px; gap: 8px; }
.cat-card--big strong { font-size: clamp(26px, 3vw, 36px); }
.cat-card--big small { font-size: 15.5px; max-width: 46ch; }
.cat-card--big .btn { align-self: flex-start; margin-top: 10px; }
.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.cat-card--tall { min-height: 300px; }
.bar { display: block; width: 36px; height: 5px; border-radius: 9px; margin-bottom: 8px; }
.bar--yellow { background: var(--yellow); }
.bar--orange { background: var(--orange); }
.bar--red { background: var(--red); }
.bar--blue { background: var(--cyan); }
.cat-mini { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--soft); color: var(--ink); transition: .2s; border: 1px solid transparent; }
.cat-mini:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.cat-mini strong { font-size: 17px; margin-top: 8px; }
.cat-mini .more { color: var(--muted); }

/* ---------- حاسبة الملازم ---------- */
.calc-sec { background: var(--ink); color: #e8e8e8; padding: 80px 0; position: relative; overflow: hidden; }
.calc-sec::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 120%; background: var(--rainbow); filter: blur(120px); opacity: .12; pointer-events: none; }
.calc-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; position: relative; }
.calc-title { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0 0; }
.calc-pills { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.calc-pills li { display: inline-flex; align-items: center; gap: .45em; padding: .45em 1em; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; }
.calc-pills .ico { width: 16px; height: 16px; color: var(--yellow); }
.calc { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 16px; position: relative; }
.calc-card { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 24px; position: relative; display: flex; flex-direction: column; }
.calc-card__title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 18px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; flex: none; }
.num--yellow { background: var(--yellow); color: var(--ink); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 30px 16px; border: 2px dashed #cfd3e6; border-radius: var(--r); background: #f7f8fd; cursor: pointer; transition: .2s; flex: 1; min-height: 180px; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: #eef1ff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; margin-bottom: 6px; }
.drop__ico .ico { width: 28px; height: 28px; }
.drop strong { color: var(--ink); }
.drop small { color: var(--muted); font-size: 13px; }
.upfile { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; }
.upfile__type { display: grid; place-items: center; width: 44px; height: 50px; border-radius: 8px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.upfile__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.upfile__info strong { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.upfile__info small { font-size: 12.5px; color: var(--muted); }
.upfile__info small[data-kind="error"] { color: var(--red); }
.upfile__bar { display: block; height: 6px; border-radius: 9px; background: var(--soft); overflow: hidden; }
.upfile__bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 9px; transition: width .2s; }
.upfile__x { border: 0; background: var(--soft); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.upfile__x .ico { width: 16px; height: 16px; }
.pages { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: #eef8e8; }
.pages strong { display: block; color: var(--ink); font-size: 15px; }
.pages small { color: var(--muted); font-size: 12.5px; }
.pages b { font-family: var(--f-head); font-size: 30px; color: #2f7a10; }
.calc-label { font-weight: 700; font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; margin-bottom: 16px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .5em; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: .15s; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--cyan); }
.binds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.binds label { cursor: pointer; position: relative; }
.binds input { position: absolute; opacity: 0; pointer-events: none; }
.binds span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 2px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; text-align: center; transition: .15s; height: 100%; }
.binds .ico { width: 22px; height: 22px; color: var(--muted); }
.binds input:checked + span { border-color: var(--blue); background: #eef1ff; color: var(--blue); }
.binds input:checked + span .ico { color: var(--blue); }
.binds input:focus-visible + span { outline: 3px solid var(--cyan); }
.copies { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--ink); color: #fff; }
.stepper input { width: 52px; border: 0 !important; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-card--dark { background: var(--ink-2); color: #e6e6e6; border: 1px solid rgba(255, 255, 255, .08); gap: 12px; }
.calc-card--dark .calc-card__title { color: #fff; }
.calc-note { font-size: 14.5px; color: #bdbdbd; margin: 0; }
.calc-total { padding: 18px 0; border-top: 1px dashed rgba(255, 255, 255, .14); border-bottom: 1px dashed rgba(255, 255, 255, .14); margin: auto 0 6px; }
.calc-total small { display: block; color: #9a9a9a; font-size: 13px; }
.calc-total strong { display: block; font-family: var(--f-head); font-size: 44px; line-height: 1.2; color: var(--yellow); }
.calc-total span { display: block; font-size: 13.5px; color: #bdbdbd; min-height: 1.4em; }
.calc-fine { font-size: 12.5px; color: #8f8f8f; margin: 0; text-align: center; }

/* ---------- الخطوات ---------- */
.steps { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.checks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: .6em; font-weight: 600; color: var(--ink); }
.checks .ico { color: var(--green); width: 22px; height: 22px; }
.steps__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transform: translateY(calc(var(--shift) * 28px)); }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step__body { padding: 20px; flex: 1; }
.step--pink { background: var(--pink); }
.step--cream { background: var(--cream); }
.step--lav { background: var(--lav); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.step__num { font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--ink); opacity: .9; }
.step__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.step--pink .step__ico { color: var(--red); }
.step--cream .step__ico { color: var(--orange); }
.step--lav .step__ico { color: var(--blue); }
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { font-size: 14.5px; color: #4b4b4b; margin: 0; line-height: 1.65; }

/* ---------- كروت المنتجات ---------- */
.woocommerce ul.products, ul.products { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.columns-2 { grid-template-columns: repeat(2, 1fr); }
.woocommerce ul.products li.product, ul.products li.pcard { width: auto !important; margin: 0 !important; float: none !important; padding: 0; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.pcard__img { position: relative; display: block; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; margin: 0 !important; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__sale { position: absolute; top: 12px; inset-inline-start: 12px; }
.pcard__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__title { font-size: 16px; margin: 0; line-height: 1.5; font-weight: 700; }
.pcard__title a { color: var(--ink); }
.pcard__title a:hover { color: var(--blue); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.pcard__price { font-weight: 800; color: var(--ink); font-size: 17px; }
.pcard__price del { color: var(--muted); font-weight: 500; font-size: 14px; margin-inline-end: 4px; }
.pcard__price ins { text-decoration: none; color: var(--red); }
.pcard__quote { font-weight: 700; font-size: 14px; color: var(--blue); }
.pcard .added_to_cart { font-size: 13px; font-weight: 600; width: 100%; }
.pcard .btn.loading { opacity: .6; pointer-events: none; }
.pcard .btn.added::after { content: "✓"; }

/* ---------- المعرض ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: #fff; padding: .4em 1.1em; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.masonry { columns: 4 220px; column-gap: 16px; }
.masonry__item { display: block; break-inside: avoid; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; background: #e9e9e6; }
.masonry__item img { width: 100%; transition: transform .4s; }
.masonry__item:hover img { transform: scale(1.04); }

/* ---------- الآراء ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { margin: 0; padding: 26px; border-radius: var(--r-lg); background: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.review__q { width: 32px; height: 32px; color: var(--red); }
.review blockquote { margin: 0; color: var(--ink); font-size: 15.5px; flex: 1; }
.stars { display: flex; gap: 2px; color: #d5d5d0; }
.stars .on { color: var(--orange); }
.stars .ico { width: 18px; height: 18px; fill: currentColor; }
.review figcaption { font-weight: 700; font-size: 14px; color: var(--ink); }

/* ---------- شريط الواتساب ---------- */
.cta-band { display: flex; align-items: center; gap: 32px; padding: 36px 40px; border-radius: var(--r-lg); background: var(--ink); color: #ddd; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--rainbow); }
.cta-band .logo__img { height: 56px; }
.cta-band__text { flex: 1; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #bcbcbc; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--foot); color: #b8b8b8; padding: 64px 0 0; margin-top: 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand .logo__img { height: 54px; margin-bottom: 18px; }
.footer__brand p { max-width: 36ch; }
.footer__title { color: #fff; font-size: 16px; margin: 0 0 16px; font-family: var(--f-body); }
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #d8d8d8; }
.site-footer a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: flex-start; gap: .6em; }
.footer__contact .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--yellow); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: .15s; }
.socials a:hover { background: var(--blue); }
.socials .ico { width: 20px; height: 20px; }
.footer__map { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 16 / 10; border-radius: var(--r); background: linear-gradient(135deg, #1a1a1a, #262626); border: 1px solid rgba(255, 255, 255, .08); color: #fff !important; font-weight: 700; }
.footer__map .ico { width: 34px; height: 34px; color: var(--red); }
.footer__map:hover { background: linear-gradient(135deg, #222, #333); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer__bottom p { margin: 0; }

/* ---------- زرار الواتساب العايم ---------- */
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { color: #fff; transform: scale(1.07); }
.wa-float .ico { width: 30px; height: 30px; }

/* ---------- هيدر الصفحات الداخلية ---------- */
.page-hero { background: var(--soft); padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(28px, 3.6vw, 42px); margin: 0; }
.page-hero .rainbow { margin-bottom: 0; }
.page-sub { color: var(--muted); margin: 14px 0 0; font-size: 17px; max-width: 62ch; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { opacity: .5; }
.crumbs--product { margin: 24px 0 20px; }
.prose { padding-block: 48px 80px; max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose img { border-radius: var(--r); }
.wc-page { padding-block: 40px 80px; }
.wc-page--checkout { padding-top: 32px; }
.empty { text-align: center; padding: 48px 20px; }
.empty p { font-size: 18px; color: var(--muted); }

/* ---------- المتجر والفلاتر ---------- */
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-block: 40px 80px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.filter { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter:last-of-type { border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }
.filter h3 { font-size: 16px; margin: 0 0 12px; }
.filter__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 340px; overflow: auto; }
.filter__cats a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--text); font-size: 14.5px; }
.filter__cats a:hover { background: var(--soft); }
.filter__cats .box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cfcfca; flex: none; color: transparent; }
.filter__cats .box .ico { width: 13px; height: 13px; }
.filter__cats .is-on { color: var(--ink); font-weight: 700; }
.filter__cats .is-on .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter__cats .name { flex: 1; }
.filter__cats small { color: var(--muted); font-size: 12.5px; background: var(--soft); padding: 0 8px; border-radius: 99px; }
.range { position: relative; height: 26px; direction: ltr; }
.range__track { position: absolute; inset: 11px 0 auto; height: 5px; border-radius: 9px; background: var(--line); }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--blue); border-radius: 9px; left: var(--from, 0%); right: calc(100% - var(--to, 100%)); }
.range input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 26px; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab; box-shadow: var(--shadow); }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: grab; }
.range input[type=range]::-moz-range-track { background: none; }
.range__vals { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 8px; }
.range__vals b { color: var(--ink); }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14.5px; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.shop__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.shop__bar .woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.shop__bar .woocommerce-ordering { margin: 0; }
.shop__bar select { min-height: 42px; border-radius: 999px; padding-inline: 16px 36px; }
.shop__main ul.products { grid-template-columns: repeat(3, 1fr); }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; justify-content: center; padding: 0; margin: 0; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination .page-numbers { display: grid !important; place-items: center; min-width: 42px; height: 42px; padding: 0 10px !important; border-radius: 50%; background: var(--soft); color: var(--ink) !important; font-weight: 700; }
.woocommerce-pagination .page-numbers.current, .woocommerce-pagination a.page-numbers:hover { background: var(--ink) !important; color: #fff !important; }

/* ---------- فورمات ---------- */
#billing_country_field { display: none !important; } /* بنبيع في مصر بس */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=url], input:not([type]), select, textarea, .select2-container .select2-selection--single {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #dcdcd6; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center; padding-inline-end: 38px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 42, 166, .12); }
::placeholder { color: #a3a39d; }
.form-row { margin: 0 0 16px; padding: 0 !important; }
.form-row label, .woocommerce form .form-row label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
.form-row .required { color: var(--red); text-decoration: none; border: 0; }
.form-row .optional { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--red); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: #b7dca5; }
.co-fields, .woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.co-fields .form-row, .woocommerce-address-fields__field-wrapper .form-row { grid-column: 1 / -1; width: auto !important; float: none !important; }
.co-fields .form-row-first, .co-fields .form-row-last, .woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-last { grid-column: auto; }
.select2-container .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5; padding: 0; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; left: 8px; right: auto; }
.select2-dropdown { border-color: #dcdcd6; border-radius: 12px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- تنبيهات ووكومرس ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice {
    list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 20px; padding: 14px 18px !important;
    border-radius: var(--r); border: 0; background: #eef1ff; color: var(--ink); font-size: 15px; position: relative;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message { background: #eaf6e3; }
.woocommerce-error, .notice--err { background: #fdeaea; color: #8c0f12; flex-direction: column; align-items: flex-start; }
.woocommerce-error li { margin: 0; }
.notice--ok { background: #eaf6e3; color: #2a6a10; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-inline-start: auto; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .5em 1.3em; border-radius: 999px;
    background: var(--ink); color: #fff; border: 0; font-weight: 700; font-size: 14.5px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .button:hover { background: #333; color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--blue); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--blue-d); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; }
.woocommerce .blockUI.blockOverlay { background: rgba(255, 255, 255, .7) !important; border-radius: var(--r-lg); }

/* ---------- صفحة المنتج ---------- */
.single-product div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; position: relative; }
.single-product div.product > .woocommerce-product-gallery, .single-product div.product > .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product > .onsale { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 3; }
.onsale { background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: .25em .9em; border-radius: 999px; }
.woocommerce-product-gallery { position: relative; display: flex; flex-direction: column; gap: 12px; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery .flex-viewport, .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child { border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.woocommerce-product-gallery .flex-control-thumbs li { cursor: pointer; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: var(--r-sm); aspect-ratio: 1; object-fit: cover; opacity: .55; border: 2px solid transparent; transition: .15s; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ink); }
.woocommerce-product-gallery__trigger { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.p-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product_title { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.summary > .price, .woocommerce div.product .summary p.price { font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--ink); margin: 0 0 16px; }
.woocommerce div.product span.price, .woocommerce div.product p.price { color: var(--ink); }
.summary > .price del { font-size: 18px; color: var(--muted); font-weight: 500; }
.summary > .price ins { text-decoration: none; color: var(--red); }
.summary .woocommerce-product-details__short-description { color: #4a4a4a; font-size: 16px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; align-items: stretch; }
.summary form.cart > *:not(.quantity):not(.single_add_to_cart_button):not(.btn--wa) { flex-basis: 100%; }
.summary form.variations_form { display: block; }
.summary .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.summary .single_add_to_cart_button { flex: 1; min-height: 54px !important; font-size: 16px !important; background: var(--blue) !important; }
.summary .single_add_to_cart_button:hover { background: var(--blue-d) !important; }
.summary form.cart .btn--wa { flex: 1 1 100%; min-height: 50px; }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid #dcdcd6; border-radius: 999px; padding: 4px; background: #fff; }
.quantity .qty { width: 54px; min-height: 0; border: 0 !important; text-align: center; font-weight: 700; padding: 0; box-shadow: none !important; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--soft); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; }
.qty-btn:hover { background: var(--ink); color: #fff; }
table.variations { width: 100%; border: 0; margin: 0 0 8px; border-collapse: collapse; }
table.variations tr { display: block; margin-bottom: 14px; }
table.variations th, table.variations td { display: block; padding: 0; border: 0; text-align: start; }
table.variations th label { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 8px; display: block; }
table.variations .reset_variations { display: inline-block; font-size: 13px; margin-top: 8px; color: var(--muted); }
.vpills { display: flex; flex-wrap: wrap; gap: 8px; }
.vpill { border: 2px solid var(--line); background: #fff; padding: .45em 1.05em; border-radius: 999px; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .15s; }
.vpill:hover { border-color: #b9b9b3; }
.vpill.is-on { border-color: var(--blue); background: #eef1ff; color: var(--blue); }
.vpill[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.has-pills select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; min-height: 0 !important; }
.woocommerce-variation-price .price { font-family: var(--f-head); font-weight: 800; font-size: 26px; color: var(--ink); display: block; margin: 4px 0 12px; }
.woocommerce-variation-availability p { margin: 0 0 8px; font-size: 14px; }
.p-note { display: flex; align-items: flex-start; gap: .6em; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 14.5px; color: #444; margin: 0 0 18px; }
.p-note .ico { color: var(--blue); width: 22px; height: 22px; margin-top: 2px; }
.stock { font-weight: 700; font-size: 14px; }
.stock.in-stock { color: #2f7a10; }
.stock.out-of-stock { color: var(--red); }

/* الرفع والحاسبة بتوع الإضافة في صفحة المنتج */
.roya-upload { flex-basis: 100%; margin: 0 !important; padding: 20px !important; border: 2px dashed #cfd3e6 !important; border-radius: var(--r-lg) !important; background: #f7f8fd; display: grid; gap: 10px; }
.roya-upload__label { font-weight: 700 !important; color: var(--ink); margin: 0 !important; display: flex !important; align-items: center; gap: .5em; }
.roya-upload input[type=file] { padding: 10px; background: #fff; border: 1.5px solid #dcdcd6; border-radius: 12px; font-size: 14px; cursor: pointer; }
.roya-upload input[type=file]::file-selector-button { border: 0; background: var(--blue); color: #fff; padding: .5em 1.1em; border-radius: 999px; font-weight: 700; margin-inline-end: 12px; cursor: pointer; font-family: var(--f-body); }
.roya-upload__status { margin: 0 !important; font-size: 14px; font-weight: 600; min-height: 0 !important; }
.roya-upload__status:empty { display: none; }
.roya-upload__design { margin: 0 !important; padding: 12px 14px; background: #fff; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.roya-upload__design input { width: 18px; height: 18px; accent-color: var(--blue); }
.roya-upload__hint { margin: 0 !important; font-size: 13px !important; color: var(--muted); opacity: 1 !important; }
.roya-calc { flex-basis: 100%; margin: 0 !important; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; gap: 12px !important; }
.roya-calc__row { grid-template-columns: 9.5em 1fr !important; }
.roya-calc__row label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.roya-calc__row label:has(input[type=checkbox]) { display: flex; align-items: center; gap: .5em; grid-column: 1 / -1; }
.roya-calc__row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.roya-calc__price { margin: 4px 0 0 !important; padding: 14px 16px; border-radius: var(--r); background: var(--ink); color: #ddd; font-size: 15px !important; }
.roya-calc__price:empty { display: none; }
.roya-calc__price strong { color: var(--yellow); font-family: var(--f-head); font-size: 20px; }
.roya-calc__price[data-kind=hint] { background: var(--soft); color: var(--muted); opacity: 1 !important; }

/* التابات */
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; margin: 0 0 20px; padding: 0 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-Tabs-panel { max-width: 820px; font-size: 16px; }
.related, .upsells { grid-column: 1 / -1; margin-top: 48px; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-size: 28px; margin-bottom: 24px; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--soft); margin-bottom: 12px; }
#reviews .comment_container img.avatar { width: 44px; height: 44px; border-radius: 50%; }
.star-rating { color: var(--orange); }

/* ---------- السلة ---------- */
.woocommerce-cart-form { margin-bottom: 32px; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
table.shop_table th { background: var(--soft); font-weight: 700; color: var(--ink); text-align: start; padding: 14px 16px; font-size: 14px; }
table.shop_table td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; }
table.shop_table .product-thumbnail img { width: 72px; border-radius: 12px; }
table.shop_table .product-name a { color: var(--ink); font-weight: 700; }
table.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--muted) !important; font-size: 20px; }
table.shop_table .product-remove a:hover { background: var(--red); color: #fff !important; }
table.shop_table dl.variation { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 8px; }
table.shop_table dl.variation dt, table.shop_table dl.variation dd, table.shop_table dl.variation p { margin: 0; }
table.shop_table td.actions { background: var(--soft); }
.coupon { display: inline-flex; gap: 8px; align-items: center; }
.coupon input { width: 180px; min-height: 44px; }
.cart-collaterals .cart_totals { max-width: 460px; margin-inline-start: auto; }
.cart_totals h2 { font-size: 22px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px !important; font-size: 16px !important; background: var(--blue) !important; }

/* ---------- إتمام الطلب ---------- */
.co-head { margin-bottom: 24px; }
.co-head .page-sub { margin-top: 4px; }
form.co { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.co-main #customer_details { display: grid; gap: 20px; }
.co-main .col2-set, .co-main .col-1, .co-main .col-2 { width: auto; float: none; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.co-card + .co-card, .woocommerce-billing-fields .co-card + .co-card { margin-top: 20px; }
.co-card__title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 18px; font-family: var(--f-head); }
.co-hint { display: flex; gap: .5em; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--soft); padding: 10px 14px; border-radius: 12px; margin: -4px 0 18px; }
.co-hint .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }
.co-pay { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 2px solid var(--green); border-radius: var(--r); background: #f1f9ec; color: var(--ink); margin-bottom: 18px; }
.co-pay .ico { width: 26px; height: 26px; color: #2f7a10; }
.woocommerce-account-fields.co-card { margin-top: 20px; }
.create-account label.checkbox { display: flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 600 !important; }
.create-account input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.co-card--sticky { position: sticky; top: calc(var(--header-h) + 20px); }
#order_review table.shop_table { border: 0; border-radius: 0; }
#order_review table.shop_table th, #order_review table.shop_table td { padding: 12px 0; background: none; font-size: 14.5px; }
#order_review table.shop_table thead { display: none; }
#order_review table.shop_table tbody tr:first-child td { border-top: 0; }
#order_review .product-name { color: var(--ink); font-weight: 600; }
#order_review .product-total, #order_review tfoot td { text-align: end; font-weight: 700; color: var(--ink); }
#order_review tfoot th { font-weight: 600; color: var(--muted); }
#order_review .order-total th, #order_review .order-total td { font-size: 18px; color: var(--ink); padding-top: 16px; }
#order_review .order-total .amount { font-family: var(--f-head); font-size: 24px; }
#order_review .woocommerce-shipping-totals td { text-align: start; }
#shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#shipping_method li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; margin: 0; }
#shipping_method li:has(input:checked) { border-color: var(--blue); background: #eef1ff; }
#shipping_method input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
#shipping_method label { margin: 0; flex: 1; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
#order_review .woocommerce-shipping-totals th { display: block; padding-bottom: 4px; }
#order_review .woocommerce-shipping-totals td { display: block; padding-top: 0; }
#order_review .woocommerce-shipping-totals { display: block; }
#payment { background: none !important; border-radius: 0; margin-top: 8px; }
#payment ul.payment_methods { list-style: none; padding: 0 !important; margin: 0 0 12px; border: 0 !important; }
#payment ul.payment_methods li { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-weight: 600; }
#payment ul.payment_methods li input { accent-color: var(--blue); margin-inline-end: 8px; }
#payment div.payment_box { background: none !important; padding: 4px 0 0 !important; margin: 0 !important; font-size: 13.5px; color: var(--muted); font-weight: 400; }
#payment div.payment_box::before { display: none; }
#payment .place-order { padding: 0 !important; margin: 0; }
#payment #place_order { width: 100%; min-height: 56px; font-size: 16.5px; background: var(--red); border-radius: 999px; }
#payment #place_order:hover { background: #c50f14; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.woocommerce-privacy-policy-text p { margin: 0 0 10px; }
.co-assure { display: flex; align-items: center; justify-content: center; gap: .5em; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.co-assure .ico { color: var(--green); width: 18px; height: 18px; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { background: var(--soft); }
form.checkout_coupon, form.woocommerce-form-login { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 20px !important; margin: 0 0 20px !important; }

/* صفحة "تم استلام الطلب" */
.woocommerce-order { max-width: 860px; margin-inline: auto; }
.woocommerce-thankyou-order-received { font-family: var(--f-head); font-size: 24px; font-weight: 800; color: #2a6a10; background: #eaf6e3; padding: 20px 24px; border-radius: var(--r-lg); }
ul.woocommerce-order-overview { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
ul.woocommerce-order-overview li { padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 13.5px; color: var(--muted); border: 0 !important; margin: 0 !important; float: none !important; }
ul.woocommerce-order-overview li strong { display: block; color: var(--ink); font-size: 16px; margin-top: 2px; }

/* ---------- حسابي ---------- */
.woocommerce-account .wc-page > .woocommerce { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.woocommerce-account .wc-page > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* الـ clearfix بتاع ووكومرس بيبقى خانة في الجريد ويزق القايمة مكان المحتوى */
.woocommerce-account .wc-page > .woocommerce::before, .woocommerce-account .wc-page > .woocommerce::after { content: none; display: none; }
.woocommerce-MyAccount-navigation { width: auto !important; float: none !important; background: var(--soft); border-radius: var(--r-lg); padding: 10px; position: sticky; top: calc(var(--header-h) + 20px); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.woocommerce-MyAccount-navigation a:hover { background: #fff; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }
.woocommerce-MyAccount-content { width: auto !important; float: none !important; min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { font-size: 16px; }
.woocommerce-orders-table .button { min-height: 36px; padding: .35em 1em; font-size: 13px; margin: 2px; }
.woocommerce-orders-table mark, .woocommerce-MyAccount-content mark { background: #fff6c2; color: var(--ink); padding: 0 6px; border-radius: 6px; }
.woocommerce-customer-details address { font-style: normal; border: 1px solid var(--line) !important; border-radius: var(--r) !important; padding: 16px !important; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-Addresses .col-1, .woocommerce-Addresses .col-2, .woocommerce-Addresses .woocommerce-Address { width: auto !important; float: none !important; }
.woocommerce-Addresses::before, .woocommerce-Addresses::after, .u-columns::before, .u-columns::after { display: none; }
#customer_login.u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#customer_login .u-column1, #customer_login .u-column2 { width: auto !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
form.woocommerce-form-login, form.woocommerce-form-register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 600 !important; margin-inline-end: 16px; }
.woocommerce-LostPassword { margin-top: 12px; font-size: 14px; }

/* صندوق البروفة والملفات (من الإضافة) */
.roya-portal { display: grid; gap: 20px; margin: 0 0 28px; }
.roya-portal__box { background: #fff; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 24px !important; margin: 0 !important; }
.roya-portal__box h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.roya-portal__preview { border-radius: var(--r); border: 1px solid var(--line); max-height: 520px; width: auto; }
.roya-portal__reply .button, .roya-portal__upload .button { margin-top: 6px; }

/* ---------- تواصل معانا ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 40px 80px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.contact__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-lg); color: var(--ink); transition: .2s; }
.tile .ico { width: 30px; height: 30px; margin-bottom: 8px; }
.tile span { font-size: 14px; opacity: .8; }
.tile strong { font-family: var(--f-head); font-size: 20px; font-weight: 800; }
.tile--dark { background: var(--ink); color: #fff; }
.tile--dark .ico { color: var(--yellow); }
.tile--wa { background: var(--wa); color: #fff; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.tile--soft { flex-direction: row; align-items: flex-start; gap: 14px; background: var(--soft); }
.tile--soft .ico { color: var(--red); margin: 0; flex: none; }
.tile--soft strong { font-family: var(--f-body); font-size: 16.5px; font-weight: 700; display: block; }
.tile--soft small { color: var(--muted); font-size: 14px; }
.contact__map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--soft); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact__form .btn { margin-top: 4px; }

/* ==========================================================================
   الموبايل والتابلت
   ========================================================================== */
@media (max-width: 1400px) {
    .nav__list a { padding: .5em .6em; font-size: 14.5px; }
    .header__actions .btn--wa { display: none; }
}

/* المنيو أفقية على الكمبيوتر، وبتصغر شوية مع الشاشات الأصغر */
@media (max-width: 1280px) {
    .header__in { gap: 16px; }
    .nav__list a { padding: .5em .55em; font-size: 14px; }
}

@media (max-width: 1200px) {
    .logo__img { height: 42px; }
    .nav__list a { padding: .45em .42em; font-size: 13.5px; }
    .nav__list > .menu-item-home { display: none; }
}

/* تحت كده (تابلت وموبايل) القايمة الجانبية */
@media (max-width: 1060px) {
    .nav__list > .menu-item-home { display: list-item; }
    .menu-btn { display: inline-grid; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 80; background: #fff; padding: 84px 18px 24px;
        transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; box-shadow: var(--shadow-lg); flex: none;
    }
    [dir="rtl"] .nav { inset: 0 0 0 auto; }
    [dir="ltr"] .nav { inset: 0 auto 0 0; transform: translateX(-100%); }
    .nav-open .nav { transform: none; }
    .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 70; }
    .nav-open { overflow: hidden; }
    .nav-open .menu-btn { position: relative; z-index: 90; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__list a { padding: .8em 1em; font-size: 16px; border-radius: 12px; }
    .nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 12px 0 0; min-width: 0; }
    .header__actions { margin-inline-start: auto; }
}

@media (max-width: 1024px) {
    :root { --header-h: 68px; }
    .hero__in { grid-template-columns: 1fr; gap: 32px; }
    .hero__art { max-width: 560px; width: 100%; margin-inline: auto; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .calc { grid-template-columns: 1fr 1fr; }
    .calc-card--dark { grid-column: 1 / -1; }
    .steps { grid-template-columns: 1fr; gap: 36px; }
    .step { transform: none; }
    ul.products, .shop__main ul.products { grid-template-columns: repeat(3, 1fr); }
    .shop { grid-template-columns: 1fr; }
    .show-sm { display: inline-flex !important; }
    .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); z-index: 80; border-radius: 0; border: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; padding-top: 28px; }
    [dir="rtl"] .filters { inset: 0 0 0 auto; transform: translateX(100%); }
    .filters-open .filters, [dir="rtl"] .filters-open .filters { transform: none; }
    .filters-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 70; }
    .filters-open { overflow: hidden; }
    .single-product div.product { grid-template-columns: 1fr; gap: 28px; }
    .summary, .co-card--sticky, .woocommerce-MyAccount-navigation { position: static; }
    form.co { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .reviews { grid-template-columns: 1fr 1fr; }
    .woocommerce-account .wc-page > .woocommerce { grid-template-columns: 1fr; }
    .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; }
    .woocommerce-MyAccount-navigation a { white-space: nowrap; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
    .admin-bar .site-header { top: 0; }
}

@media (max-width: 720px) {
    :root { --gut: 16px; }
    body { font-size: 15.5px; }
    .hide-sm { display: none !important; }
    .topbar__in { gap: 16px; justify-content: space-between; font-size: 12.5px; }
    .logo__img { height: 42px; }
    .header__in { gap: 10px; }
    .icon-btn { width: 40px; height: 40px; }
    .section { padding: 56px 0; }
    .hero { padding-top: 32px; }
    .hero__lead { font-size: 16.5px; }
    .hero__btns .btn { flex: 1 1 100%; }
    .hero__stats { gap: 12px 24px; }
    .hero__stats dt { font-size: 20px; }
    .hero__ph { border-width: 4px; border-radius: var(--r); }
    .features { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
    .feature { padding: 16px; }
    .feature h3 { font-size: 15px; }
    .feature p { font-size: 13px; }
    .badge-ico { width: 42px; height: 42px; }
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .cat-card--big { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
    .cat-card { min-height: 180px; }
    .cat-card__body { padding: 16px; }
    .cat-card__body strong { font-size: 17px; }
    .cat-card--big .cat-card__body { padding: 22px; }
    .cat-row { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
    .bento { gap: 12px; }
    .cat-card--tall { min-height: 220px; }
    .cat-mini { padding: 16px; }
    .calc-sec { padding: 56px 0; }
    .calc { grid-template-columns: 1fr; }
    .calc-card { padding: 20px; }
    .binds span { font-size: 12.5px; padding: 10px 4px; }
    .steps__cards { grid-template-columns: 1fr; }
    .step { flex-direction: row; }
    .step img { width: 38%; aspect-ratio: auto; }
    .step__body { padding: 16px; }
    ul.products, .shop__main ul.products, ul.products.columns-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pcard { border-radius: var(--r); }
    .pcard__body { padding: 12px; gap: 10px; }
    .pcard__title { font-size: 14.5px; }
    .pcard__price { font-size: 15px; }
    .pcard__foot .btn { width: 100%; }
    .masonry { columns: 2; column-gap: 10px; }
    .masonry__item { margin-bottom: 10px; }
    .reviews { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; text-align: center; padding: 32px 22px; gap: 18px; }
    .cta-band .btn { width: 100%; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__map { aspect-ratio: 16 / 7; }
    .footer__bottom { justify-content: center; text-align: center; }
    .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
    .page-hero { padding: 22px 0 26px; }
    .shop { padding-top: 24px; }
    .shop__bar .woocommerce-ordering { width: 100%; }
    .shop__bar .woocommerce-result-count { order: 3; flex-basis: 100%; }
    .co-card { padding: 20px; }
    .co-fields, .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
    .co-fields .form-row-first, .co-fields .form-row-last { grid-column: 1 / -1; }
    .contact { grid-template-columns: 1fr; padding-top: 24px; }
    #customer_login.u-columns, .woocommerce-Addresses { grid-template-columns: 1fr; }
    table.shop_table_responsive thead { display: none; }
    table.shop_table_responsive tr { display: block; border-top: 1px solid var(--line); }
    table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; text-align: end !important; border: 0; padding: 8px 16px; }
    table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 700; color: var(--ink); text-align: start; }
    table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.product-thumbnail::before, table.shop_table_responsive tr td.actions::before { display: none; }
    table.shop_table_responsive tr td.actions { display: block; }
    .coupon { display: flex; width: 100%; margin-bottom: 10px; }
    .coupon input { flex: 1; width: auto; }
    .summary form.cart .quantity { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
