/* =====================================================================
   ALSHAM MARKET — التصميم المعتمد (الصورة المرجعية):
   أخضر زيتوني · تيراكوتا · كريمي دافئ · لمسات ذهبية
   الاتجاه (RTL/LTR) تلقائي: كل المسافات بخصائص منطقية (inline-start/end)
   ملاحظة: أسماء المتغيرات --teal-* محفوظة (مستخدمة بأقسام الصفحات) بس قيمها صارت زيتوني.
   ===================================================================== */

:root {
  --olive: #3D5A24;
  --olive-deep: #2E451A;
  --olive-ink: #22341A;
  --olive-600: #4E7130;
  --olive-50: #EEF2E3;
  --terra: #B5451B;
  --terra-deep: #923514;
  --terra-soft: #F7E2D6;
  --teal: var(--olive);
  --teal-deep: var(--olive-deep);
  --teal-ink: var(--olive-ink);
  --teal-600: var(--olive-600);
  --teal-50: var(--olive-50);
  --cream: #FBF6EC;
  --cream-2: #F4EBDA;
  --paper: #FFFFFF;
  --gold: #C9A04E;
  --gold-light: #E0C27E;
  --gold-soft: #F4E8CC;
  --gold-text: #7A5A1E;
  --ink: #2B2A22;
  --muted: #6B675A;
  --line: #E8DFCC;
  --sale: var(--terra);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(46,69,26,.06), 0 6px 16px rgba(46,69,26,.07);
  --shadow-hover: 0 2px 6px rgba(46,69,26,.08), 0 16px 34px rgba(46,69,26,.15);
  --wrap: 1400px;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --script: 'Kaushan Script', 'Brush Script MT', cursive;
  --header-h: 140px;
}
.lang-ar { --display: 'Cairo', system-ui, sans-serif; --script: 'Aref Ruqaa', 'Cairo', serif; }

/* ---------- الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { line-height: 1.18; color: var(--olive-deep); margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--olive); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[dir="rtl"] .ic-arrow, [dir="rtl"] .ic-chev, [dir="rtl"] .ic-chevl { transform: scaleX(-1); }
bdi { unicode-bidi: isolate; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 26px; border-radius: 999px; font-weight: 700; border: 1.5px solid transparent; transition: background .15s, color .15s, transform .15s; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn .ic { width: 20px; height: 20px; }
.btn--terra { background: var(--terra); color: #fff; box-shadow: 0 8px 18px rgba(146,53,20,.3); font-size: 18px; }
.btn--terra:hover { background: var(--terra-deep); color: #fff; transform: translateY(-1px); }
.btn--primary, .btn--dark { background: var(--olive); color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: var(--olive-600); color: #fff; }
.btn--gold { background: var(--gold); color: var(--olive-ink); }
.btn--outline { border-color: var(--olive); color: var(--olive); }
.btn--outline:hover { background: var(--olive); color: #fff; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-block-end: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--olive); }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--olive); color: #F1ECDD; font-size: 14px; }
.topbar a { color: #F1ECDD; }
.topbar a:hover { color: #fff; }
.topbar__inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar__info, .topbar__end { display: flex; gap: 18px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar__item .ic { width: 17px; height: 17px; }
.topbar__sep { width: 1px; height: 18px; background: rgba(241,236,221,.35); }
.topbar__lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.topbar__lang .ic { width: 17px; height: 17px; }
.topbar__lang a { opacity: .75; }
.topbar__lang a.is-active { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--cream); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(46,69,26,.12); }
.site-header::before, .site-header::after { content: ""; position: absolute; top: 4px; width: 90px; height: 120px; pointer-events: none; opacity: .55;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 120'%3E%3Cg fill='none' stroke='%23C9A04E' stroke-width='1.6'%3E%3Cpath d='M70 118C60 80 52 44 40 4'/%3E%3Cpath d='M58 70c-14-4-22-14-22-26 14 4 22 12 22 26ZM50 40c-12-4-18-12-18-22 12 4 18 12 18 22ZM62 92c12-6 18-16 16-28-12 6-18 16-16 28ZM54 58c12-6 16-14 14-26-10 6-16 14-14 26ZM45 22c8-4 12-10 10-18-8 4-12 10-10 18Z'/%3E%3C/g%3E%3C/svg%3E"); }
.site-header::before { inset-inline-start: 0; }
.site-header::after { inset-inline-end: 0; transform: scaleX(-1); }
.header__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 36px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--olive-deep); }
.brand:hover { color: var(--olive-deep); }
.brand__logo { width: 84px; height: 84px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__ar { font-weight: 800; color: var(--terra); font-size: 30px; font-family: 'Cairo', sans-serif; }
.brand__name { font-weight: 800; letter-spacing: .02em; font-size: 21px; color: var(--olive-deep); margin-top: 2px; }

.site-search { position: relative; flex: 1; display: flex; align-items: center; background: #fff; border: 1.5px solid #CFC6B2; border-radius: 12px; height: 50px; padding-inline-start: 16px; overflow: visible; max-width: 700px; transition: border-color .15s, box-shadow .15s; }
.site-search:focus-within { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(61,90,36,.12); }
.site-search__icon { color: var(--ink); display: grid; place-items: center; }
.site-search__icon .ic { width: 22px; height: 22px; }
.site-search input[type="search"] { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; padding-inline: 12px; font-size: 15.5px; height: 100%; }
.site-search input::placeholder { color: #7D786A; }
.site-search button { align-self: stretch; width: 70px; margin: -1.5px; margin-inline-start: 0; border-radius: 0 12px 12px 0; border: 0; background: var(--terra); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
[dir="rtl"] .site-search button { border-radius: 12px 0 0 12px; }
.site-search button:hover { background: var(--terra-deep); }
.site-search button .ic { width: 24px; height: 24px; }

.header__actions { display: flex; align-items: stretch; flex: none; margin-inline-start: auto; }
.hact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 26px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.15; text-align: center; border-inline-start: 1px solid var(--line); }
.hact:first-child { border-inline-start: 0; }
.hact:hover { color: var(--terra); }
.hact__icon { position: relative; display: grid; place-items: center; }
.hact__icon .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.hact--cart { padding-inline-end: 0; }
.hact--cart .hact__label { display: flex; flex-direction: column; align-items: center; font-weight: 700; }
.alsham-cart-total { font-weight: 800; color: var(--ink); }
.alsham-cart-total .woocommerce-Price-amount { font-weight: 800; }
.hact__count, .alsham-cart-count { position: absolute; top: -8px; inset-inline-end: -12px; min-width: 22px; height: 22px; padding-inline: 5px; border-radius: 11px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--cream); }
.hact__count[data-n="0"] { display: none !important; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--olive-deep); cursor: pointer; }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn .ic { width: 26px; height: 26px; }
.header__menu { display: none; }

/* شريط الأقسام */
.mainnav { background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
.mainnav__inner { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.mainnav__cats { position: relative; flex: none; }
.mainnav__catsbtn { display: inline-flex; align-items: center; gap: 12px; height: 46px; padding-inline: 22px 18px; border-radius: 8px; border: 0; background: var(--terra); color: #fff; font-weight: 700; font-size: 16.5px; cursor: pointer; box-shadow: 0 6px 14px rgba(146,53,20,.25); }
.mainnav__catsbtn:hover { background: var(--terra-deep); }
.mainnav__catsbtn .ic { width: 22px; height: 22px; }
.mainnav__catsbtn .ic-down { width: 18px; height: 18px; margin-inline-start: 20px; }
.mainnav__links { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-inline: 8px; }
.mainnav__links::-webkit-scrollbar { display: none; }
.mainnav__link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px; font-weight: 600; font-size: 15.5px; color: var(--ink); white-space: nowrap; border-radius: 8px; }
.mainnav__link .ic { width: 22px; height: 22px; color: var(--olive); stroke-width: 1.6; }
.mainnav__link:hover, .mainnav__link.is-active { color: var(--terra); }
.mainnav__offers { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px 8px 18px; padding-inline: 18px 4px; border-inline-start: 1px solid var(--line); font-weight: 800; font-size: 16px; color: var(--terra); white-space: nowrap; }
.mainnav__offers .ic { width: 22px; height: 22px; }
.mainnav__offers:hover { color: var(--terra-deep); }
.megamenu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; width: min(900px, calc(100vw - 56px)); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow-hover); border: 1px solid var(--line); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .16s; z-index: 70; }
.mainnav__cats.is-open .megamenu, .mainnav__cats:focus-within .megamenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .mainnav__cats:hover .megamenu { opacity: 1; visibility: visible; transform: none; } }
.megamenu__col { display: flex; flex-direction: column; gap: 2px; }
.megamenu__col a { padding: 4px 0; font-size: 14.5px; color: var(--muted); }
.megamenu__col a:hover { color: var(--terra); }
.megamenu__title { font-weight: 800; color: var(--olive-deep) !important; font-size: 16px !important; border-bottom: 1px solid var(--line); padding-bottom: 8px !important; margin-bottom: 6px; display: flex; justify-content: space-between; }
.megamenu__title small { color: var(--terra); font-weight: 700; }

/* القائمة الجانبية */
.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(34,52,26,.5); opacity: 0; transition: opacity .25s; }
.drawer.is-open { opacity: 1; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(360px, 88vw); background: var(--cream); padding: 16px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; gap: 2px; }
[dir="rtl"] .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.drawer__head img { border-radius: 50%; }
.drawer__head strong { flex: 1; color: var(--olive-deep); }
.drawer__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 10px; font-weight: 600; }
.drawer__link:hover { background: var(--cream-2); }
.drawer__ic { display: inline-flex; align-items: center; gap: 10px; }
.drawer__ic .ic { color: var(--olive); width: 22px; height: 22px; }
.drawer__offers { color: var(--terra); font-weight: 800; }
.drawer__offers .ic { color: var(--terra); }
.drawer__link--strong { background: var(--terra); color: #fff; font-weight: 800; }
.drawer__link--strong:hover { background: var(--terra-deep); color: #fff; }
.drawer__link .ic-chev { width: 18px; height: 18px; }
.drawer__lang { justify-content: flex-start; color: var(--olive); }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; width: 100%; }
.bottombar { display: none; }

/* ---------- البانر الرئيسي (سلايدر) ---------- */
.hero { position: relative; height: 470px; overflow: hidden; background: var(--olive-deep); }
.hero__track { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__photo { position: absolute; inset-block: 0; inset-inline-end: 0; width: 64%; height: 100%; object-fit: cover; }
.hero__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: 46%; color: #fff; z-index: 1; }
.hero__panel::before { content: ""; position: absolute; inset: 0; inset-inline-end: 22%; background: linear-gradient(100deg, #2B4219 0%, #34501F 60%, #3A5722 100%); }
.hero__curve { position: absolute; inset-block: 0; inset-inline-end: 0; width: 22.5%; height: 100%; color: #3A5722; }
[dir="rtl"] .hero__curve { transform: scaleX(-1); }
.hero__panel::after { content: ""; position: absolute; inset: 0; inset-inline-end: 22%; opacity: .14; pointer-events: none;
  background: no-repeat left -30px bottom -40px / 260px auto url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160'%3E%3Cg fill='%23C9A04E'%3E%3Cpath d='M10 158C30 110 52 60 92 6' stroke='%23C9A04E' stroke-width='2' fill='none'/%3E%3Cellipse cx='40' cy='108' rx='16' ry='6' transform='rotate(-40 40 108)'/%3E%3Cellipse cx='58' cy='76' rx='16' ry='6' transform='rotate(-50 58 76)'/%3E%3Cellipse cx='76' cy='44' rx='14' ry='5' transform='rotate(-55 76 44)'/%3E%3Cellipse cx='30' cy='84' rx='15' ry='5.5' transform='rotate(-80 30 84)'/%3E%3Cellipse cx='50' cy='54' rx='14' ry='5' transform='rotate(-85 50 54)'/%3E%3C/g%3E%3C/svg%3E"); }
[dir="rtl"] .hero__panel::after { background-position: right -30px bottom -40px; transform: scaleX(-1); }
.hero__text { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-inline: max(28px, calc((100vw - var(--wrap)) / 2 + 28px)) 22%; padding-block: 40px; padding-inline-start: max(140px, calc((100vw - var(--wrap)) / 2 + 120px)); }
.hero__kicker { color: var(--gold-light); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.lang-ar .hero__kicker { letter-spacing: 0; font-size: 17px; }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; color: #fff; margin: 0 0 14px; }
.hero__title em { color: var(--gold-light); font-style: italic; }
.lang-ar .hero__title { font-weight: 800; line-height: 1.3; }
.lang-ar .hero__title em { font-style: normal; }
.hero__sub { font-size: 19px; color: #F1ECDD; margin: 0 0 24px; max-width: 360px; line-height: 1.35; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.hero__nav:hover { background: #fff; color: var(--terra); }
.hero__nav .ic { width: 22px; height: 22px; }
.hero__prev { left: 66px; }
.hero__next { right: 54px; }
[dir="rtl"] .hero__nav .ic-chev, [dir="rtl"] .hero__nav .ic-chevl, [dir="rtl"] .rail__nav .ic-chev, [dir="rtl"] .rail__nav .ic-chevl { transform: none; }
.hero__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 15px; height: 15px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.hero__dots button.is-active { background: #fff; }

/* ---------- تسوّق حسب القسم ---------- */
.shopcats { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; padding-block: 16px 14px; }
.shopcats__title { font-family: var(--script); font-weight: 400; font-size: 40px; line-height: 1.02; color: var(--olive-deep); margin: 0; transform: rotate(-6deg); position: relative; }
.lang-ar .shopcats__title { font-weight: 700; font-size: 36px; line-height: 1.25; transform: rotate(-3deg); }
.shopcats__title svg { display: block; width: 130px; height: 14px; color: var(--terra); margin-top: 4px; }
.shopcats__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.ccard { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(46,69,26,.12); transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: inherit; }
.ccard__img { display: block; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--cream-2); }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ccard:hover .ccard__img img { transform: scale(1.06); }
.ccard__img--pack { background: radial-gradient(circle at 50% 60%, #fff 0%, var(--cream-2) 100%); }
.ccard__img--pack img { object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.ccard__name { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 6px; font-weight: 700; font-size: 15px; color: var(--ink); background: linear-gradient(180deg, #FFFDF8, var(--cream)); text-align: center; line-height: 1.2; min-height: 44px; }
.ccard__name .ic { width: 20px; height: 20px; color: var(--terra); flex: none; stroke-width: 1.6; }

/* ---------- العروض الأسبوعية ---------- */
.offers { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 12px; padding-block: 10px 14px; align-items: stretch; }
.offers__panel { position: relative; overflow: hidden; border-radius: 10px; color: #FFF5EA; padding: 26px 26px 30px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(ellipse 90% 80% at 30% 30%, #C7582A 0%, #A9401A 55%, #8C3414 100%); box-shadow: 0 6px 18px rgba(146,53,20,.25); isolation: isolate; }
.offers__badge { position: absolute; top: 46px; inset-inline-start: 18px; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #E8B06F; color: var(--terra-deep); transform: rotate(-12deg); box-shadow: 0 6px 12px rgba(0,0,0,.18); }
.offers__badge .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.offers__title { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.04; color: #fff; text-transform: uppercase; margin: 0 0 14px; padding-inline-start: 58px; letter-spacing: .01em; }
.lang-ar .offers__title { text-transform: none; font-weight: 800; font-size: 32px; line-height: 1.3; }
.offers__sub { font-size: 19px; line-height: 1.3; margin: 0; padding-inline-start: 58px; color: #FFF0E2; position: relative; z-index: 1; }
.offers__sub::after { content: ""; display: block; width: 130px; height: 10px; margin-top: 10px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 10'%3E%3Cpath d='M2 7C40 2 90 1 128 5' fill='none' stroke='%23E0C27E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.offers__leaf { position: absolute; bottom: -10px; inset-inline-start: -14px; width: 120px; height: 120px; color: #E0C27E; opacity: .5; z-index: -1; }
.offers__rail { position: relative; min-width: 0; }
.offers__note { position: absolute; top: -2px; inset-inline-end: 4px; margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; z-index: 1; }
.offers__rail .rail ul.products { padding: 14px 2px 6px; gap: 12px; grid-auto-columns: calc((100% - 48px) / 5); }
.rail__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--terra); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(146,53,20,.35); }
.rail__nav:hover { background: var(--terra-deep); }
.rail__nav .ic { width: 22px; height: 22px; }
.rail__next { right: -12px; }
.rail__prev { left: -12px; }

/* ---------- شريط الخدمات ---------- */
.services { position: relative; background: var(--cream); border-top: 1px solid var(--line); margin-top: 6px; }
.services::before, .services::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 90px; height: 54px; opacity: .45;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 54'%3E%3Cg fill='none' stroke='%23C9A04E' stroke-width='1.3'%3E%3Cpath d='M27 4l5 11 12-3-3 12 11 5-11 5 3 12-12-3-5 11-5-11-12 3 3-12L2 29l11-5-3-12 12 3z'/%3E%3Cpath d='M63 4l5 11 12-3-3 12 11 5-11 5 3 12-12-3-5 11-5-11-12 3 3-12-11-5 11-5-3-12 12 3z'/%3E%3C/g%3E%3C/svg%3E"); }
.services::before { inset-inline-start: 6px; }
.services::after { inset-inline-end: 6px; }
.services__inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 12px; }
.service { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 18px; border-inline-start: 1px solid #D9CDB5; color: var(--ink); }
.service:first-child { border-inline-start: 0; }
.service:hover { color: var(--terra); }
.service > .ic { width: 46px; height: 46px; color: var(--terra); stroke-width: 1.3; }
.service strong { display: block; font-size: 16.5px; font-weight: 800; color: var(--olive-deep); line-height: 1.2; }
.service small { display: block; font-size: 14px; color: var(--ink); }

/* ---------- أقسام عامة (صفحات أخرى) ---------- */
.section { padding-block: 48px 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-block-end: 22px; flex-wrap: wrap; }
.sec-title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); margin: 0; }
.offers-empty { display: flex; align-items: center; gap: 22px; padding: 28px; border-radius: var(--radius-lg); background: var(--olive); color: #F1ECDD; }
.offers-empty h3 { color: #fff; }

/* ---------- كروت المنتجات ---------- */
ul.products, .alsham-grid { list-style: none; margin: 0 !important; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
ul.products::before, ul.products::after { display: none !important; }
ul.products.alsham-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.woocommerce ul.products li.product, ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 12px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; text-align: start; }
ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.woocommerce ul.products li.product a img, ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 12px; margin: 0 0 10px !important; padding: 6px; }
.card__cat { display: block; font-size: 11.5px; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 4px; }
.lang-ar .card__cat { letter-spacing: 0; font-size: 12.5px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px !important; font-weight: 700; color: var(--ink); line-height: 1.35; padding: 0 4px !important; margin: 0 0 8px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.woocommerce ul.products li.product .price, ul.products li.product .price { margin-top: auto !important; color: var(--teal-deep) !important; font-weight: 800; font-size: 18px !important; display: block; margin-block-end: 10px !important; padding-inline: 4px; }
ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 13.5px; opacity: 1; }
ul.products li.product .price ins { text-decoration: none; color: var(--sale); }
.woocommerce ul.products li.product .button, ul.products li.product .button { margin: 0 !important; width: 100%; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; border-radius: 999px !important; background: var(--teal) !important; color: #fff !important; font-weight: 700 !important; padding: 0 14px !important; min-height: 42px; font-size: 14px !important; line-height: 1.2 !important; transition: background .15s; border: 0 !important; }
.woocommerce ul.products li.product .button:hover { background: var(--teal-600) !important; }
.woocommerce ul.products li.product .button .ic { width: 18px; height: 18px; }
.woocommerce ul.products li.product .button.loading { opacity: .7; }
.woocommerce ul.products li.product .button.added::after { margin-inline-start: 6px; }
ul.products li.product .added_to_cart { display: block; text-align: center; margin-block-start: 6px; font-size: 13px; font-weight: 700; color: var(--teal); }
.woocommerce span.onsale, ul.products li.product .onsale { position: absolute; top: 14px !important; inset-inline-end: 14px; inset-inline-start: auto; left: auto; right: auto; margin: 0 !important; background: var(--sale) !important; color: #fff; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 6px 10px !important; font-size: 12px; font-weight: 800; z-index: 2; }
[dir="rtl"] ul.products li.product .onsale { right: auto; left: auto; }
.woocommerce-placeholder { opacity: 1; }

/* اختيار الوزن بالكرت */
.card-buy { display: flex; flex-direction: column; gap: 8px; }
.wpick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.wpick__opt { position: relative; flex: 1 1 0; min-width: 0; cursor: pointer; }
.wpick__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wpick__opt span { display: block; text-align: center; padding: 5px 4px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; direction: ltr; transition: .12s; }
.wpick__opt:hover span { border-color: var(--teal); color: var(--teal); }
.wpick__opt input:checked + span { background: var(--teal-50); border-color: var(--teal); color: var(--teal-deep); }
.wpick__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.card-buy__btn.is-done { background: var(--gold) !important; color: var(--teal-ink) !important; }

/* المفضلة */
.wl-btn { position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.95); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: transform .15s, color .15s; padding: 0; }
.wl-btn .ic { width: 19px; height: 19px; }
.wl-btn:hover { color: var(--sale); transform: scale(1.08); }
.wl-btn.is-on { color: var(--sale); }
.wl-btn.is-on .ic { fill: var(--sale); }
.wl-empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.wl-empty .ic { width: 52px; height: 52px; color: var(--gold); }

/* سكة أفقية (العروض) */
.rail ul.products { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rail ul.products li.product { scroll-snap-align: start; }

/* سعر السوق (لحوم بالوزن) — من إضافة alsham-core */
.market-price { display: inline-flex; flex-direction: column; line-height: 1.15; color: var(--teal-deep); font-weight: 800; }
.market-price small { font-size: 12px; font-weight: 600; color: var(--gold-text); }
ul.products li.product .price .market-price { font-size: 17px; }
.single-product p.price .market-price { font-size: 26px; }
.single-product p.price .market-price small { font-size: 14px; }
.market-fields { width: 100%; margin: 6px 0 16px; padding: 16px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.market-fields__info { margin: 0 0 12px; font-size: 14.5px; color: var(--ink); }
.market-fields__weights { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.market-fields__weights legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.wchip { position: relative; cursor: pointer; }
.wchip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wchip > span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; direction: ltr; }
.wchip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.wchip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
/* لحوم بسعر ثابت للكيلو: سعر كل وزن تحت الوزن */
.market-fields--priced .wchip > span { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 8px 14px; border-radius: 14px; min-width: 76px; }
.wchip__price, .price-ltr { direction: ltr; unicode-bidi: isolate; }
.wchip__price { font-weight: 800; font-size: 13.5px; color: var(--terra); margin-top: 3px; }
.wchip input:checked + span .wchip__price { color: var(--gold-light); }
.weight-price { font-weight: 800; color: var(--teal-deep); }
.weight-price small { font-size: .62em; font-weight: 700; color: var(--gold-text); }
.single-product p.price .weight-price { font-size: 26px; }
.market-fields__note { display: grid; gap: 6px; font-weight: 700; }
.market-fields__note textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-weight: 400; background: #fff; resize: vertical; }

/* ---------- صفحة المتجر ---------- */
.shop-layout { padding-block: 22px 56px; }
.shop-layout--sidebar { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-layout--sidebar .breadcrumb { grid-column: 1 / -1; }
.breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 4px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.shop-sidebar { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.filter summary { list-style: none; cursor: pointer; font-weight: 800; padding: 12px 10px; font-size: 16px; color: var(--teal-deep); }
.filter summary::-webkit-details-marker { display: none; }
.filter__list, .filter__list ul { list-style: none; margin: 0; padding: 0; }
.filter__list a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.filter__list a small { color: var(--muted); font-weight: 400; }
.filter__list a:hover { background: var(--cream); color: var(--teal-deep); }
.filter__list a.is-active { background: var(--teal-50); color: var(--teal-deep); font-weight: 800; }
.filter__list ul { padding-inline-start: 10px; border-inline-start: 2px solid var(--gold-soft); margin-block: 4px 8px; margin-inline-start: 12px; }
.filter__list ul a { font-weight: 500; font-size: 14px; padding-block: 5px; }
.woocommerce-products-header { margin-block-end: 4px; }
.woocommerce-products-header__title, .shop-content h1.page-title { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; margin: 0 0 6px; }
.lang-ar .woocommerce-products-header__title, .lang-ar .shop-content h1.page-title { font-weight: 800; }
.term-description { color: var(--muted); }
.shop-content .woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 8px 0 16px; float: none; display: inline-block; }
.shop-content .woocommerce-ordering { float: none; display: inline-block; margin: 0 0 16px; margin-inline-start: 16px; }
.shop-content .woocommerce-ordering select { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; }
.shop-content ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce nav.woocommerce-pagination { margin-block-start: 32px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul.page-numbers { display: inline-flex !important; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; height: 42px; display: grid !important; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line) !important; font-weight: 700; padding: 0 10px !important; }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--cream) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: 14px; border-top-color: var(--teal) !important; background: var(--paper) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--teal) !important; }
.woocommerce-error { border-top-color: var(--sale) !important; }
.alsham-preview-notice { background: var(--gold-soft); border: 1.5px solid var(--gold); color: var(--teal-deep); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-weight: 700; }

/* ---------- صفحة المنتج ---------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.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 .woocommerce-product-gallery img { border-radius: 16px; background: #fff; }
.single-product div.product .product_title { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.lang-ar.single-product div.product .product_title { font-weight: 800; }
.single-product div.product p.price, .single-product div.product span.price { color: var(--teal-deep) !important; font-size: 28px !important; font-weight: 800; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.single-product div.product .related > h2, .single-product div.product .upsells > h2 { font-family: var(--display); font-weight: 600; }
.single-product form.cart { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.single-product .single_add_to_cart_button { background: var(--teal) !important; color: #fff !important; border-radius: 999px !important; padding: 14px 30px !important; font-weight: 800 !important; }
.single-product .single_add_to_cart_button:hover { background: var(--teal-600) !important; }
.single-product .single_add_to_cart_button.disabled { opacity: .45 !important; }
.single-product div.product form.cart .variations select { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; min-width: 180px; }
.single-product div.product form.cart .variations th, .single-product div.product form.cart .variations td { padding-block: 6px; }
.single-product .quantity .qty { height: 48px; border: 1.5px solid var(--line); border-radius: 12px; width: 76px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--cream) !important; border-color: var(--line) !important; border-radius: 12px 12px 0 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--paper) !important; }
.product_meta { font-size: 14px; color: var(--muted); display: grid; gap: 4px; margin-top: 16px; }
.wa-product { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--wa); color: var(--wa-dark); font-weight: 800; }
.wa-product:hover { background: var(--wa); color: #fff; }

/* ---------- صفحات عادية ---------- */
.page-wrap { padding-block: 32px 56px; }
.page-title { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
.lang-ar .page-title { font-weight: 800; }
.page-article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; max-width: 900px; margin-inline: auto; }
.page-content h2 { font-size: 22px; margin-top: 26px; }
.page-content h3 { font-size: 18px; margin: 22px 0 6px; color: var(--teal); }
.page-content a { color: var(--teal); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.page-content a.btn { text-decoration: none; }
.page-content a.btn--primary, .page-content a.btn--dark { color: #fff; }
.page-content a.btn--gold { color: var(--teal-ink); }
.page-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 10px; text-align: start; }
.page-content th { background: var(--cream); }
.draft-badge { background: var(--gold-soft); border: 2px dashed var(--gold); border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; color: var(--teal-deep); }
.draft-badge strong { background: var(--teal); color: #fff; padding: 2px 10px; border-radius: 6px; margin-inline-end: 4px; }
.store-info__photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.store-info__photos img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.store-info p { display: flex; align-items: center; gap: 8px; }
.store-info .ic { color: var(--teal); }

/* تقييم Google وخريطة (صفحة من نحن) */
.greviews { margin-top: 28px; }
.greviews h2 { font-size: 24px; }
.greviews__card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px; }
.greviews__score { display: grid; justify-items: center; text-align: center; gap: 2px; min-width: 190px; padding-inline-end: 28px; border-inline-end: 2px solid var(--line); }
.greviews__num { font-size: 56px; line-height: 1; font-weight: 800; color: var(--teal-deep); }
.greviews__stars { font-size: 26px; letter-spacing: 2px; direction: ltr; }
.gstar { background: linear-gradient(90deg, #F4B400 var(--f), #D9D2C5 var(--f)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greviews__count { font-weight: 700; color: var(--ink); }
.greviews__date { color: var(--muted); }
.greviews__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.greviews__actions .btn { padding: 12px 22px; text-decoration: none; }
.greviews__actions a.btn--primary, .greviews__actions a.btn--dark { color: #fff !important; }
.greviews__note { flex-basis: 100%; margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.gmap { margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); min-height: 320px; display: grid; }
.gmap__placeholder { display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; padding: 30px; color: var(--ink); }
.gmap__placeholder .ic { width: 42px; height: 42px; color: var(--teal); }
.gmap__placeholder p { max-width: 460px; margin: 0; font-size: 14.5px; }
.gmap iframe { width: 100%; height: 380px; border: 0; display: block; }
.about-reel { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: center; margin: 26px 0 8px; padding: 24px; border-radius: 22px; background: var(--cream); border: 1px solid var(--line); }
.about-reel h2 { margin-top: 0; font-size: 26px; }
.about-reel p { margin: 0; color: var(--ink); }
.about-reel__frame { border-radius: 28px; overflow: hidden; background: #111; padding: 8px; box-shadow: 0 20px 44px rgba(15,46,51,.3); }
.about-reel video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: #111; }

/* ---------- البحث المباشر ---------- */
.suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-hover); padding: 8px; z-index: 80; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest__item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.suggest__item img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.suggest__item:hover, .suggest__item.is-active { background: var(--cream); color: inherit; }
.suggest__name { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest__price { font-weight: 800; color: var(--teal-deep); white-space: nowrap; font-size: 14.5px; direction: ltr; unicode-bidi: isolate; }
.suggest__price del { color: var(--muted); font-weight: 400; }
.suggest__all { display: block; text-align: center; margin-top: 6px; padding: 12px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 700; }
.suggest__all:hover, .suggest__all.is-active { background: var(--teal-600); color: #fff; }
.suggest__msg { padding: 16px; color: var(--muted); text-align: center; }

/* ---------- واتساب ---------- */
:root { --wa: #25D366; --wa-dark: #128C4A; }
.ic-wa { width: 1.3em; height: 1.3em; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; background: var(--wa-dark); padding: 9px 16px; border-radius: 999px; margin-top: 14px; }
.footer__wa:hover { background: var(--wa); color: #fff !important; }
.wa-float { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; font-weight: 800; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 28px rgba(18,140,74,.4); }
.wa-float:hover { background: var(--wa-dark); color: #fff; }
.wa-float .ic-wa { width: 28px; height: 28px; }

/* ---------- حسابي ---------- */
.woocommerce-account .page-wrap { max-width: 1040px; }
.woocommerce-account .page-title { text-align: center; margin-block: 8px 24px; }
#customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#customer_login::before, #customer_login::after { display: none !important; }
#customer_login .u-column1, #customer_login .u-column2 { width: auto !important; float: none !important; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
#customer_login .u-column1 { border-top: 4px solid var(--teal); }
#customer_login .u-column2 { border-top: 4px solid var(--gold); }
#customer_login h2 { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.woocommerce form.login, .woocommerce form.register { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.woocommerce form .form-row { padding: 0; margin: 0 0 14px; }
.woocommerce form .form-row label { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; display: block; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-account input[type="email"], .woocommerce-account input[type="password"], .woocommerce-account input[type="text"], .woocommerce-account input[type="tel"] { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.woocommerce form .form-row .input-text:focus, .woocommerce-account input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,63,70,.12); }
.form-hint { display: block; color: var(--muted); margin-top: 4px; font-size: 13px; }
.woocommerce-account .woocommerce-Button, .woocommerce-account button.button, .woocommerce .track_order button.button { background: var(--teal) !important; color: #fff !important; border-radius: 999px !important; padding: 13px 26px !important; font-weight: 800 !important; border: 0 !important; }
.woocommerce-account .woocommerce-Button:hover, .woocommerce-account button.button:hover { background: var(--teal-600) !important; }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.woocommerce-LostPassword a { color: var(--teal); font-weight: 700; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.woocommerce-account .woocommerce:has(#customer_login) { display: block; }
.woocommerce-MyAccount-navigation { width: auto !important; float: none !important; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--teal-50); color: var(--teal-deep); }
.woocommerce-MyAccount-content { width: auto !important; float: none !important; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.woocommerce form.register .form-row-first, .woocommerce form.register .form-row-last { width: 100% !important; float: none !important; }
.woocommerce form .password-input { position: relative; display: block; }
.woocommerce form .show-password-input { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 12px; inset-inline-start: auto; left: auto; right: auto; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: var(--muted); cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/22px no-repeat; }
.woocommerce form .show-password-input::after { display: none !important; }
.woocommerce form .show-password-input.display-password { background: var(--teal); }
.woocommerce form .password-input .input-text { padding-inline-end: 48px; }

/* السلة وإتمام الطلب */
.woocommerce-cart .page-article, .woocommerce-checkout .page-article { max-width: 1100px; }
.woocommerce table.shop_table { border-radius: 16px; border-collapse: separate; overflow: hidden; background: #fff; border-color: var(--line); }
.woocommerce table.shop_table th { background: var(--cream); }
.woocommerce table.cart img { width: 64px; border-radius: 10px; }
.woocommerce .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 460px; margin-inline-start: auto; }
.woocommerce .cart-collaterals .cart_totals h2 { font-size: 22px; }
.woocommerce a.checkout-button, .woocommerce button.button.alt, .woocommerce #place_order { background: var(--teal) !important; color: #fff !important; border-radius: 999px !important; font-weight: 800 !important; }
.woocommerce a.checkout-button:hover, .woocommerce button.button.alt:hover { background: var(--teal-600) !important; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: 100%; }
.woocommerce dl.variation { margin: 6px 0 0; font-size: 13.5px; color: var(--ink); }
.woocommerce dl.variation dt { font-weight: 700; }
.woocommerce a.button, .woocommerce button.button { border-radius: 999px; }

/* أيقونة السلة على كل أزرار الكروت (نفس الشكل لكل المنتجات) */
.woocommerce ul.products li.product .button::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 1.9-1.4L21 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 10.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 1.9-1.4L21 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='17' cy='20' r='1.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.woocommerce ul.products li.product .button.added::after { display: none; }
.hact--cart { gap: 14px; }
.hact--cart .alsham-cart-count { top: -9px; inset-inline-end: -9px; box-shadow: 0 0 0 2px var(--teal); }

/* =====================================================================
   كروت المنتجات — تعديلات التصميم المرجعي (سعر تيراكوتا، عدّاد كمية، زر زيتوني)
   ===================================================================== */
.woocommerce ul.products li.product, ul.products li.product { border-radius: 10px; border-color: #E6DCC8; padding: 10px 12px 12px; box-shadow: 0 2px 8px rgba(46,69,26,.08); }
.woocommerce ul.products li.product .price, ul.products li.product .price { color: var(--terra) !important; font-size: 19px !important; }
ul.products li.product .price del { color: var(--ink); opacity: .8; }
ul.products li.product .price ins { color: var(--terra); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; color: var(--ink); }
.card__cat { color: var(--olive); }
.woocommerce ul.products li.product .button, ul.products li.product .button { background: var(--olive) !important; border-radius: 6px !important; min-height: 38px; font-size: 13.5px !important; padding: 0 10px !important; gap: 6px; }
.woocommerce ul.products li.product .button:hover { background: var(--olive-deep) !important; }
.woocommerce span.onsale, ul.products li.product .onsale { inset-inline-start: 14px; inset-inline-end: auto; background: var(--terra) !important; border-radius: 6px !important; font-size: 14px; padding: 5px 9px !important; }
.wl-btn { inset-inline-start: auto; inset-inline-end: 14px; border: 0; background: rgba(255,255,255,.9); }
.card-actions { display: flex; align-items: center; gap: 8px; }
.card-actions > .button, .card-actions > .card-buy__btn { flex: 1; min-width: 0; }
.card-actions .added_to_cart { display: none !important; }
.qty-step { display: inline-flex; align-items: center; flex: none; border: 1px solid #D9CDB5; border-radius: 6px; height: 38px; background: #fff; }
.qty-step__btn { width: 28px; height: 100%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; }
.qty-step__btn:hover { color: var(--terra); }
.qty-step__btn .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.qty-step__val { width: 28px; height: 100%; border: 0; text-align: center; font-weight: 800; font-size: 15px; background: none; padding: 0; -moz-appearance: textfield; }
.qty-step__val::-webkit-outer-spin-button, .qty-step__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wpick__opt input:checked + span { background: var(--olive-50); border-color: var(--olive); color: var(--olive-deep); }
.card-buy__btn.is-done { background: var(--terra) !important; color: #fff !important; }
.rail ul.products { scrollbar-width: none; }
.rail ul.products::-webkit-scrollbar { display: none; }
ul.products.alsham-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* =====================================================================
   الفوتر (حسب الصورة المرجعية)
   ===================================================================== */
.ft { position: relative; overflow: hidden; background: #3A5322; color: #EDE8D6; isolation: isolate; }
.ft a { color: #EDE8D6; }
.ft a:hover { color: var(--gold-light); }
.ft__branch { position: absolute; bottom: 30px; width: 80px; height: 150px; opacity: .35; z-index: -1; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 150'%3E%3Cg fill='%23C9A04E'%3E%3Cpath d='M60 148C50 100 40 56 24 4' stroke='%23C9A04E' stroke-width='2' fill='none'/%3E%3Cellipse cx='44' cy='100' rx='15' ry='5' transform='rotate(-60 44 100)'/%3E%3Cellipse cx='36' cy='66' rx='14' ry='5' transform='rotate(-70 36 66)'/%3E%3Cellipse cx='28' cy='34' rx='12' ry='4.5' transform='rotate(-75 28 34)'/%3E%3Cellipse cx='58' cy='84' rx='14' ry='5' transform='rotate(-120 58 84)'/%3E%3Cellipse cx='48' cy='50' rx='12' ry='4.5' transform='rotate(-115 48 50)'/%3E%3C/g%3E%3C/svg%3E"); }
.ft__branch--a { inset-inline-start: 0; }
.ft__branch--b { inset-inline-end: 0; transform: scaleX(-1); }
.ft__main { display: grid; grid-template-columns: 1.55fr 2.6fr 1.45fr; gap: 0; padding-block: 18px 16px; align-items: start; }
.ft__brandcol { padding-inline-end: 28px; border-inline-end: 1px solid rgba(237,232,214,.35); }
.ft__brand { display: flex; align-items: center; gap: 14px; }
.ft__brand img { width: 84px; height: 84px; border-radius: 50%; }
.ft__names { display: flex; flex-direction: column; line-height: 1.1; }
.ft__names strong { font-size: 25px; font-weight: 800; color: #fff; font-family: 'Cairo', sans-serif; }
.ft__names b { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.ft__about { font-size: 13.5px; margin: 0 0 10px; padding-inline-start: 98px; margin-top: -26px; line-height: 1.45; }
.ft__muted { font-size: 12.5px; color: #C9CDB3; margin: 0; }
.ft__brandcol .ft__muted, .ft__social { padding-inline-start: 98px; }
.ft__social { display: flex; gap: 10px; }
.soc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #EDE8D6; color: #3A5322 !important; }
.soc:hover { background: var(--gold-light); }
.soc .ic { width: 17px; height: 17px; }
.ft__cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.ft__col { padding-inline: 32px 12px; border-inline-end: 1px solid rgba(237,232,214,.35); }
.ft__head { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 6px; cursor: default; }
.ft__head::-webkit-details-marker { display: none; }
.ft__head > .ic-chev { display: none; margin-inline-start: auto; width: 18px; height: 18px; transition: transform .2s; }
.ft__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ft__col a { display: inline-block; padding: 1px 0; font-size: 14.5px; }
.ft__news { padding-inline-start: 34px; }
.ft__news p { margin: 0 0 10px; font-size: 14px; }
.ft__form { display: flex; max-width: 300px; height: 38px; margin-bottom: 6px; }
.ft__form input { flex: 1; min-width: 0; border: 0; border-radius: 4px 0 0 4px; padding-inline: 12px; background: #fff; color: var(--ink); font-size: 14px; }
.ft__form button { border: 0; border-radius: 0 4px 4px 0; padding-inline: 20px; background: var(--terra); color: #fff; font-weight: 800; font-size: 15px; }
[dir="rtl"] .ft__form input { border-radius: 0 4px 4px 0; }
[dir="rtl"] .ft__form button { border-radius: 4px 0 0 4px; }
.ft__form :disabled { opacity: .7; cursor: not-allowed; }
.ft__bar { border-top: 1px solid rgba(201,160,78,.55); }
.ft__bar-inner { display: flex; align-items: center; gap: 16px 28px; padding-block: 14px; flex-wrap: wrap; font-size: 13px; }
.ft__addr { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; margin-inline-end: auto; }
.ft__addr .ic { width: 20px; height: 20px; }
.ft__soon { margin: 0; color: #C9CDB3; font-style: italic; }
.ft__pay { display: flex; gap: 8px; }
.pay-chip { background: #fff; color: var(--ink); border-radius: 4px; padding: 3px 10px; font-weight: 800; font-size: 12.5px; }
.ft__legal { display: flex; gap: 0; flex-wrap: wrap; }
.ft__legal a { padding-inline: 14px; border-inline-start: 1px solid rgba(237,232,214,.4); }
.ft__copy { margin: 0; }
.footer__dev { color: var(--gold-light); font-style: italic; }

/* =====================================================================
   التجاوب
   ===================================================================== */
@media (max-width: 1320px) {
  .hact { padding-inline: 16px; }
  .header__inner { gap: 22px; }
  .mainnav__link { font-size: 14.5px; gap: 6px; }
  .mainnav__link .ic { width: 20px; height: 20px; }
  .mainnav__catsbtn .ic-down { margin-inline-start: 4px; }
  .shopcats__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 160px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .ccard { scroll-snap-align: start; }
  .offers__rail .rail ul.products { grid-auto-columns: calc((100% - 36px) / 4); }
  .hero__text { padding-inline-start: 120px; }
}
@media (max-width: 1100px) {
  .site-header::before, .site-header::after { display: none; }
  .brand__logo { width: 64px; height: 64px; }
  .brand__ar { font-size: 24px; }
  .brand__name { font-size: 16px; }
  .hact__label { font-size: 12.5px; }
  .mainnav__links { justify-content: flex-start; }
  .hero { height: 420px; }
  .hero__panel { width: 56%; }
  .hero__photo { width: 56%; }
  .hero__text { padding-inline-start: 96px; }
  .hero__sub { font-size: 17px; }
  .offers { grid-template-columns: 230px minmax(0, 1fr); }
  .offers__title { font-size: 28px; }
  .offers__sub { font-size: 16px; }
  .offers__rail .rail ul.products { grid-auto-columns: calc((100% - 24px) / 3); }
  .services__inner { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .service:nth-child(3) { border-inline-start: 0; }
  .services::before, .services::after { display: none; }
  .ft__main { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .ft__cols { grid-column: 1 / -1; order: 3; }
  .ft__col:first-child { padding-inline-start: 0; }
  .ft__news { padding-inline-start: 28px; }
  .shop-layout--sidebar { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .shop-content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  ul.products.alsham-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 116px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { padding-inline: 16px; }
  .topbar { font-size: 12.5px; }
  .topbar__hide-sm { display: none !important; }
  .topbar__inner { min-height: 34px; }
  .topbar__item .ic, .topbar__lang .ic { width: 15px; height: 15px; }
  .header__inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand cart" "search search search"; gap: 8px 10px; min-height: 0; padding-block: 8px 10px; }
  .header__menu { display: grid; grid-area: menu; }
  .brand { grid-area: brand; gap: 8px; }
  .brand__logo { width: 48px; height: 48px; }
  .brand__ar { font-size: 20px; }
  .brand__name { font-size: 13px; }
  .site-search { grid-area: search; height: 46px; max-width: none; width: 100%; }
  .site-search button { width: 56px; }
  .header__actions { grid-area: cart; }
  .hact:not(.hact--cart) { display: none; }
  .hact--cart { padding: 0 6px; border: 0; }
  .hact--cart .hact__label { display: none; }
  .hact__icon .ic { width: 28px; height: 28px; }
  .mainnav { display: none; }
  .site-header.is-stuck .brand__text { display: none; }

  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 90; background: rgba(251,246,236,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(46,69,26,.1); }
  .bottombar > a, .bottombar > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border: 0; background: none; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 6px 2px; }
  .bottombar .ic { width: 23px; height: 23px; }
  .bottombar .is-active { color: var(--terra); }
  .bottombar__icon { position: relative; display: grid; }
  .bottombar .alsham-cart-count { top: -6px; inset-inline-end: -12px; }
  .wa-float { inset-block-end: calc(78px + env(safe-area-inset-bottom)); inset-inline-end: 14px; padding: 13px; }
  .wa-float span { display: none; }
  /* نتائج البحث تحت الخانة مباشرة (كانت fixed وبتغطي الخانة نفسها) */
  .suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; margin-top: 0; max-height: 60vh; }

  /* السلة على الجوال: كل منتج كرت بدل جدول عريض (تنسيق smallscreen تبع ووكومرس مطفي) */
  .woocommerce table.shop_table_responsive { display: block; width: 100%; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tbody { display: block; }
  .woocommerce table.shop_table_responsive tr { display: block; }
  .woocommerce table.shop_table_responsive tbody th { display: none; }
  .woocommerce table.shop_table_responsive td { display: block; border: 0; padding: 6px 0; text-align: start; }
  .woocommerce table.shop_table_responsive td[data-title] { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .woocommerce table.shop_table_responsive td[data-title]::before { content: attr(data-title); font-weight: 700; color: var(--muted); font-size: 14px; }
  .woocommerce table.shop_table_responsive tr + tr td { border-top: 1px solid var(--line); }
  .woocommerce table.shop_table_responsive tr:not(.cart_item) td { padding: 12px 16px; }
  .woocommerce table.cart tr.cart_item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px; padding-inline-end: 46px; border-top: 1px solid var(--line); }
  .woocommerce table.cart tr.cart_item:first-child { border-top: 0; }
  .woocommerce table.cart tr.cart_item td { border-top: 0; }
  .woocommerce table.cart td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; padding: 0; }
  .woocommerce table.cart td.product-thumbnail img { width: 72px; height: auto; }
  .woocommerce table.cart td.product-name, .woocommerce table.cart td.product-price,
  .woocommerce table.cart td.product-quantity, .woocommerce table.cart td.product-subtotal { grid-column: 2; min-width: 0; }
  .woocommerce table.cart td.product-name { display: block; font-weight: 700; overflow-wrap: anywhere; padding-top: 0; }
  .woocommerce table.cart td.product-name::before { content: none; }
  .woocommerce table.cart td.product-remove { position: absolute; top: 10px; inset-inline-end: 10px; padding: 0; }
  .woocommerce table.cart td.product-quantity .qty { width: 72px; }
  .woocommerce table.cart td.actions { padding: 14px 16px; }
  .woocommerce table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .woocommerce table.cart td.actions .coupon .input-text { flex: 1 1 140px; min-width: 0; }
  .woocommerce table.cart td.actions > .button { width: 100%; }
  .woocommerce .cart-collaterals, .woocommerce .cart-collaterals .cart_totals { width: 100%; float: none; }

  /* البانر: الصورة فوق، اللوحة الخضرا تحت */
  .hero { height: auto; }
  .hero__track { position: relative; display: grid; }
  .hero__slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .hero__photo { position: relative; width: 100%; height: 210px; inset: auto; }
  .hero__panel { position: relative; width: 100%; inset: auto; flex: 1; background: linear-gradient(180deg, #34501F, #2B4219); }
  .hero__panel::before, .hero__curve { display: none; }
  .hero__panel::after { inset: 0; }
  .hero__text { padding: 22px 20px 50px; align-items: center; text-align: center; }
  .hero__kicker { font-size: 12px; }
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 16px; margin-bottom: 18px; }
  .btn--terra { font-size: 16px; }
  .hero__nav { top: 105px; width: 36px; height: 36px; }
  .hero__prev { left: 10px; }
  .hero__next { right: 10px; }
  .hero__dots { bottom: 16px; }

  .shopcats { grid-template-columns: 1fr; gap: 10px; padding-block: 22px 8px; }
  .shopcats__title { transform: none; font-size: 30px; display: flex; align-items: flex-end; gap: 10px; }
  .shopcats__title br { display: none; }
  .shopcats__title svg { width: 70px; margin: 0 0 8px; }
  .shopcats__list { grid-auto-columns: 132px; gap: 10px; }
  .ccard__name { font-size: 13.5px; }

  .offers { grid-template-columns: 1fr; gap: 6px; padding-block: 14px; }
  .offers__panel { padding: 20px 20px 22px; }
  .offers__badge { top: 22px; width: 44px; height: 44px; }
  .offers__title { font-size: 26px; padding-inline-start: 54px; }
  .offers__title br { display: none; }
  .offers__sub { font-size: 15px; padding-inline-start: 54px; }
  .offers__note { position: static; margin: 6px 0 0; }
  .offers__rail .rail ul.products { grid-auto-columns: 46%; padding-top: 8px; }
  .rail__nav { display: none; }

  .services__inner { gap: 0; }
  .service { flex-direction: column; text-align: center; gap: 6px; padding: 14px 8px; border-top: 1px solid var(--line); }
  .service:nth-child(-n+2) { border-top: 0; }
  .service > .ic { width: 38px; height: 38px; }
  .service strong { font-size: 14.5px; }
  .service small { font-size: 12.5px; }

  .section { padding-block: 36px 4px; }
  ul.products.alsham-grid--6, .shop-content ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-actions { flex-wrap: wrap; }
  .card-actions .qty-step { width: 100%; justify-content: space-between; }
  .card-actions .qty-step__val { flex: 1; }
  .qty-step__btn { width: 38px; }
  .shop-layout--sidebar { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; max-height: none; }
  .shop-content .woocommerce-ordering { margin-inline-start: 0; display: block; }
  .single-product div.product { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .page-article { padding: 22px; }
  .store-info__photos { grid-template-columns: 1fr; }
  .store-info__photos img { height: 200px; }
  #customer_login { grid-template-columns: 1fr; }
  #customer_login .u-column1, #customer_login .u-column2 { padding: 22px; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .about-reel { grid-template-columns: 1fr; }
  .about-reel__frame { max-width: 300px; margin-inline: auto; }
  .greviews__card { grid-template-columns: 1fr; padding: 20px; }
  .greviews__score { border: 0; padding: 0 0 14px; border-bottom: 2px solid var(--line); }

  .ft__main { grid-template-columns: 1fr; gap: 0; padding-block: 24px 8px; }
  .ft__brandcol { border: 0; padding: 0 0 18px; }
  .ft__about, .ft__brandcol .ft__muted, .ft__social { padding-inline-start: 0; margin-top: 10px; }
  .ft__cols { grid-template-columns: 1fr; order: 0; }
  .ft__col { padding: 0; border: 0; border-top: 1px solid rgba(237,232,214,.25); }
  .ft__col .ft__head { margin: 0; padding-block: 14px; cursor: pointer; }
  .ft__col .ft__head > .ic-chev { display: block; transform: rotate(90deg); }
  .ft__col[open] .ft__head > .ic-chev { transform: rotate(-90deg); }
  [dir="rtl"] .ft__col .ft__head > .ic-chev { transform: scaleX(-1) rotate(90deg); }
  [dir="rtl"] .ft__col[open] .ft__head > .ic-chev { transform: scaleX(-1) rotate(-90deg); }
  .ft__col ul { padding-bottom: 12px; gap: 4px; }
  .ft__news { padding: 18px 0 8px; border-top: 1px solid rgba(237,232,214,.25); }
  .ft__form { max-width: none; }
  .ft__bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ft__legal a:first-child { padding-inline-start: 0; border: 0; }
  .ft__branch { display: none; }
}
@media (max-width: 400px) {
  .brand__name { display: none; }
  .hero__title { font-size: 28px; }
  ul.products li.product { padding: 8px 8px 10px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px !important; }
  .wpick__opt span { font-size: 11.5px; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- تحسينات بعد المراجعة البصرية ---------- */
@media (min-width: 861px) {
  .hero__panel { width: 50%; }
  .hero__text { padding-inline-start: max(140px, calc((100vw - var(--wrap)) / 2 + 80px)); padding-inline-end: 15%; }
  .hero__photo { width: 60%; }
}
@media (min-width: 861px) and (max-width: 1100px) { .hero__panel { width: 58%; } .hero__photo { width: 52%; } .hero__text { padding-inline-start: 96px; padding-inline-end: 14%; } }
.offers__rail .card-actions { gap: 6px; }
.offers__rail .qty-step__btn { width: 24px; }
.offers__rail .qty-step__val { width: 22px; }
.woocommerce ul.products li.product .button { white-space: nowrap; }
.offers__rail .woocommerce ul.products li.product .button, .offers__rail ul.products li.product .button { font-size: 12.5px !important; padding: 0 8px !important; gap: 5px; }
.offers__rail ul.products li.product .button::before { width: 16px; height: 16px; }
.rail__nav[hidden] { display: none; }
.ft__about { margin-top: 8px; }
.ccard__img--pack img { padding: 4px; }
[dir="rtl"] .hero__panel::before { background: linear-gradient(260deg, #2B4219 0%, #34501F 60%, #3A5722 100%); }
@media (min-width: 861px) and (max-width: 1100px) { .hero__prev { left: 14px; } .hero__next { right: 14px; } }

/* ---------- متتبع التوصيل (حسابي / تتبّع الطلب) ---------- */
.alsham-track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 8px 0 22px; padding: 0; counter-reset: s; }
.alsham-track li { position: relative; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); padding-top: 34px; }
.alsham-track li span { position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
[dir="rtl"] .alsham-track li span { transform: translateX(50%); }
.alsham-track li::before { content: ""; position: absolute; top: 12px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); }
.alsham-track li:first-child::before { display: none; }
.alsham-track li.is-done, .alsham-track li.is-current { color: var(--olive-deep); }
.alsham-track li.is-done span { background: var(--olive); border-color: var(--olive); }
.alsham-track li.is-done::before, .alsham-track li.is-current::before { background: var(--olive); }
.alsham-track li.is-current span { background: var(--terra); border-color: var(--terra); box-shadow: 0 0 0 5px var(--terra-soft); }
.alsham-track--stop { display: block; padding: 12px 16px; border-radius: 10px; background: var(--terra-soft); color: var(--terra-deep); margin-bottom: 18px; }
@media (max-width: 560px) { .alsham-track li { font-size: 11.5px; } }

/* متتبع الطلب الحي */
.alsham-live { border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 12px; margin-bottom: 22px; background: #FFFDF8; transition: box-shadow .3s; }
.alsham-live.is-updated { box-shadow: 0 0 0 3px var(--terra); }
.alsham-live .alsham-track { margin-bottom: 12px; }
.alsham-live__info { display: grid; gap: 6px; }
.alsham-live__driver { margin: 0; font-weight: 800; color: var(--olive-deep); }
.alsham-live__log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.alsham-live__log time { display: inline-block; min-width: 46px; font-weight: 700; color: var(--muted); direction: ltr; }
.alsham-live__note { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.alsham-live__dot { width: 9px; height: 9px; border-radius: 50%; background: #3BA55C; animation: alsham-live 1.8s infinite; }
@keyframes alsham-live { 0% { box-shadow: 0 0 0 0 rgba(59,165,92,.6); } 70% { box-shadow: 0 0 0 8px rgba(59,165,92,0); } 100% { box-shadow: 0 0 0 0 rgba(59,165,92,0); } }

/* ---------- حسابي ---------- */
.woocommerce-account .page-article { max-width: 1100px; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; min-width: 0; }
.woocommerce-MyAccount-navigation a { text-decoration: none !important; color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 800; }
.acct-hello { font-size: 22px; font-weight: 800; color: var(--olive-deep); margin: 0 0 14px; }
.acct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.acct-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #FFFDF8; display: flex; flex-direction: column; gap: 6px; }
.acct-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.lang-ar .acct-card h3 { text-transform: none; letter-spacing: 0; }
.acct-card p { margin: 0; }
.acct-card .btn { margin-top: auto; align-self: flex-start; min-height: 38px; padding: 8px 16px; font-size: 14px; text-decoration: none !important; }
.acct-card .btn--primary { color: #fff !important; }
.acct-card .btn--outline { color: var(--olive) !important; }
.acct-card address { font-style: normal; unicode-bidi: plaintext; text-align: start; }
.acct-ltr { unicode-bidi: plaintext; text-align: start; }
.acct-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--olive-50); color: var(--olive-deep); font-weight: 800; font-size: 13px; }
.acct-cover { font-weight: 700; font-size: 14px; }
.acct-cover.is-ok { color: var(--olive); }
.acct-cover.is-no { color: var(--terra); }
.acct-links { margin-top: 16px; font-size: 14px; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.woocommerce-Addresses::before, .woocommerce-Addresses::after { display: none !important; }
.woocommerce-Addresses .woocommerce-Address { width: auto !important; float: none !important; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #FFFDF8; }
.woocommerce-Address address { font-style: normal; unicode-bidi: plaintext; text-align: start; }
.woocommerce-Address-title h2 { font-size: 18px; }
.woocommerce-EditAccountForm p:has(#account_display_name) { display: none; }
@media (max-width: 860px) { .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; } }
.woocommerce-account .woocommerce-Price-amount, .woocommerce-orders-table .woocommerce-Price-amount { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* بيانات الشركة القانونية بالفوتر (قانون الشركات البريطاني) */
.ft__contact { margin: 0; font-weight: 700; }
.ft__contact a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ft__legalline { margin: 0; font-size: 12px; line-height: 1.5; opacity: .75; flex-basis: 100%; }

/* المكوّنات والحساسية بصفحة المنتج */
.allergen-box { margin: 18px 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 14.5px; line-height: 1.6; }
.allergen-box__h { font-size: 17px; margin: 0 0 8px; color: var(--olive-deep); }
.allergen-box p { margin: 6px 0; }
.allergen-box__ing span, .allergen-box__row > span { font-weight: 800; color: var(--ink); margin-inline-end: 4px; }
.allergen-box__ing strong { font-weight: 900; text-decoration: underline; text-decoration-color: var(--terra); }
.allergen-tag { display: inline-block; margin: 2px 2px; padding: 2px 10px; border-radius: 999px; background: var(--terra-soft, #F7E2D6); color: var(--terra-deep, #923514); font-weight: 800; font-size: 13px; }
.allergen-tag--may { background: var(--gold-soft, #F4E8CC); color: var(--gold-text, #7A5A1E); }
.allergen-box__none { color: var(--olive); font-weight: 700; }
.allergen-box__missing { color: var(--ink); font-weight: 500; }
.allergen-box__missing strong { display: block; color: var(--olive-deep); font-weight: 800; }
.allergen-box__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.allergen-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--olive); color: var(--olive-deep); font-weight: 800; font-size: 14px; text-decoration: none; }
.allergen-btn--wa { background: var(--olive); color: #fff; }
.allergen-btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.allergen-box__note { font-size: 12.5px; color: var(--muted); }

/* صفحات المعلومات: فاحص الرمز البريدي، قوائم المناطق، الأسئلة الشائعة */
.pc-check { margin: 18px 0; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.pc-check__row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pc-check__row input { flex: 1 1 200px; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; text-transform: uppercase; }
.pc-check__out { margin: 10px 0 0; font-weight: 800; }
.pc-check__out--ok { color: var(--olive); }
.pc-check__out--no { color: var(--terra); }
.pc-list { line-height: 1.9; word-spacing: 2px; color: var(--ink); }
details.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.faq summary { font-weight: 800; cursor: pointer; }
details.faq > div { padding: 8px 0 4px; }
.page-updated { color: var(--muted); font-size: 13px; margin-top: 24px; }

/* الصفحات ثنائية اللغة: بيظهر قسم اللغة الحالية بس (القاعدة كانت ضايعة) */
.lang-ar .only-en, .lang-en .only-ar { display: none !important; }

/* رمز الاستلام بصفحة الطلب */
.alsham-pin { margin: 0 0 18px; padding: 14px 16px; border: 2px solid var(--olive); border-radius: 14px; background: #EEF2E3; text-align: center; }
.alsham-pin__h { margin: 0 0 4px; font-size: 16px; color: var(--olive-deep); }
.alsham-pin__code { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: 10px; color: var(--olive-ink); }
.alsham-pin__txt { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
