/* ==========================================================================
   Storefront — skincare theme. Works right-to-left (Arabic) and left-to-right (French):
   only logical properties (inline-start / inline-end) are used for sides.
   Colours come from the admin (الواجهة والمظهر) as --accent / --dark / --soft.
   ========================================================================== */
:root {
  --accent: #c0396b;
  --dark: #151a21;
  --soft: #f6efe8;
  --ink: #1d2129;
  --gray: #6b7079;
  --line: #e9e6e2;
  --bg2: #f7f6f4;
  --sale: #d0213b;
  --badge-sale: #e45a72;
  --new: #4a9a52;
  --star: #f2a91d;
  --shadow: 0 10px 28px rgba(21, 26, 33, .08);
  --radius: 8px;
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'El Messiri', 'Cairo', serif;
  --latin-display: 'Playfair Display', Georgia, serif;
}
html[lang="fr"] { --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Playfair Display', Georgia, serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body, main { overflow-x: clip; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 780px; }
.muted { color: var(--gray); }
.small { font-size: 13px; }
.center { text-align: center; }
.ic { flex-shrink: 0; }
.flip { display: inline-flex; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: .2s; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #2a313c; }
.btn-gold, .btn-accent { background: var(--accent); color: #fff; }
.btn-gold:hover:not(:disabled), .btn-accent:hover:not(:disabled) { filter: brightness(1.08); }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: var(--ink); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 8px; }
.btn-pill { border-radius: 30px; padding: 9px 24px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: .2s; }
.icon-btn:hover { background: var(--bg2); }
.badge { position: absolute; top: -6px; inset-inline-end: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 10px; background: var(--dark); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; line-height: 1; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #e9eaec; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 34px; }
.tb-items { display: flex; align-items: center; gap: 34px; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; }
.tb-item .ic { opacity: .9; }
.lang-switch { position: relative; }
.ls-btn { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 12.5px; padding: 6px 2px; }
.ls-menu { position: absolute; top: 100%; inset-inline-end: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; min-width: 130px; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(4px); transition: .18s; }
.ls-menu a { display: block; padding: 7px 12px; border-radius: 6px; font-size: 13.5px; }
.ls-menu a:hover, .ls-menu a.on { background: var(--bg2); font-weight: 600; }
.lang-switch:hover .ls-menu, .lang-switch.open .ls-menu { opacity: 1; visibility: visible; transform: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 28px; min-height: 86px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.logo img { height: 74px; width: 74px; object-fit: contain; }
.logo-icon { color: var(--ink); display: inline-flex; }
.logo-icon .ic { width: 58px; height: 58px; stroke-width: 1.1; }
.logo-words { display: flex; flex-direction: column; line-height: 1; direction: ltr; text-align: left; }
.logo-text { font-family: var(--latin-display); font-size: 31px; font-weight: 500; letter-spacing: .4px; color: var(--ink); }
.logo-tag { font-size: 9px; letter-spacing: .26em; color: #4c525c; margin-top: 7px; text-transform: uppercase; font-family: 'DM Sans', 'Cairo', sans-serif; }
.search-box { flex: 1; max-width: 476px; margin-inline: auto; display: flex; align-items: center; border: 1px solid #d9d6d2; border-radius: 6px; overflow: hidden; height: 42px; background: #fff; }
.search-box input { flex: 1; border: 0; background: transparent; padding: 0 16px; outline: none; font-size: 13.5px; min-width: 0; height: 100%; }
.search-box input::placeholder { color: #8b9098; }
.search-box button { background: var(--dark); color: #fff; width: 46px; height: 100%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 30px; }
.ha-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); white-space: nowrap; }
.ha-link .ic { stroke-width: 1.5; }
.ha-link:hover { color: var(--accent); }
.ha-ic { position: relative; display: inline-flex; }

/* ---------- Navigation ---------- */
.nav-row { border-top: 1px solid var(--line); }
.main-nav { display: flex; align-items: stretch; justify-content: space-between; gap: 6px; min-height: 46px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; padding: 0 14px; white-space: nowrap; transition: color .2s; }
.nav-link .ic { opacity: .7; }
.nav-link:hover { color: var(--accent); }
.nav-link.active::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--ink); }
.nav-promo { color: var(--accent); background: #fce8ee; border-radius: 6px; margin: 7px 0; padding: 0 16px; font-weight: 600; }
.nav-promo:hover { background: #f9d9e3; }
.nav-promo.active::after { display: none; }
.has-drop { position: relative; display: flex; }
.dropdown { position: absolute; top: 100%; inset-inline-start: 0; background: #fff; min-width: 220px; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 60; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.dropdown a:hover { background: var(--bg2); color: var(--accent); }
.dropdown .drop-all { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-head, .only-mobile, .main-nav > a.only-mobile, .menu-toggle, .search-toggle { display: none; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.nav-overlay.show { opacity: 1; visibility: visible; }
.nav-open .site-header { z-index: 95; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 500; z-index: 400; opacity: 0; visibility: hidden; transition: .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { background: var(--sale); }
.toast a { color: #fff; text-decoration: underline; margin-inline-start: 10px; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 405px; overflow: hidden; background: linear-gradient(100deg, #fbe4ea 0%, #fdeff2 45%, #fbe6ec 100%); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; display: flex; align-items: center; }
.slide.active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 56%; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
[dir="rtl"] .slide-img { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 38%); mask-image: linear-gradient(to left, transparent 0, #000 38%); }
.slide.img-only .slide-img { width: 100%; -webkit-mask-image: none; mask-image: none; }
.slide-content { position: relative; z-index: 2; width: 100%; }
.slide-box { max-width: 640px; padding-inline-start: 72px; padding-block: 18px; }
.slide-kicker { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #3b3f46; margin-bottom: 12px; font-weight: 500; }
html[lang="ar"] .slide-kicker { letter-spacing: 0; font-size: 14px; text-transform: none; font-weight: 600; }
.slide-title { font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1.17; color: var(--ink); margin-bottom: 16px; }
html[lang="ar"] .slide-title { font-size: 38px; line-height: 1.5; font-weight: 600; }
.slide-text { font-size: 14.5px; color: #3d424a; line-height: 1.75; margin-bottom: 22px; max-width: 470px; }
.btn-hero { background: var(--dark); color: #fff; height: 44px; padding: 0 22px; border-radius: 12px; font-size: 14.5px; font-weight: 600; gap: 12px; }
.btn-hero:hover { background: #2a313c; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 30px; }
.hero-pill { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.hero-pill .ic { stroke-width: 1.3; }
.hero-pill > span { display: flex; flex-direction: column; line-height: 1.4; }
.hero-pill b { font-size: 12px; font-weight: 600; }
.hero-pill small { font-size: 11.5px; color: #4a4f57; }
.slide.active .slide-box > * { animation: rise .8s both; }
.slide.active .slide-box > *:nth-child(2) { animation-delay: .08s; }
.slide.active .slide-box > *:nth-child(3) { animation-delay: .16s; }
.slide.active .slide-box > *:nth-child(4) { animation-delay: .24s; }
.slide.active .slide-box > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: .25s; }
.hero-dots button.active { background: var(--ink); }
.hero-arrows { position: absolute; bottom: 14px; inset-inline-end: 44px; display: flex; gap: 10px; z-index: 3; }
.hero-nav { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: .2s; }
.hero-nav.prev { border: 1.5px solid rgba(29, 33, 41, .55); color: var(--ink); background: rgba(255,255,255,.25); }
.hero-nav.next { width: 50px; height: 38px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.hero-nav:hover { transform: translateY(-1px); }

/* ---------- Section heads ---------- */
.section { padding: 26px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1.25; color: var(--ink); }
html[lang="ar"] .sec-head h2 { font-size: 25px; font-weight: 600; }
.sec-head p { font-size: 13.5px; color: var(--gray); margin-top: 2px; }
.see-all { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3d424a; padding-bottom: 4px; }
.see-all:hover { color: var(--accent); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-head h2 small { font-size: 14px; font-weight: 500; color: var(--gray); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Category circles ---------- */
.cats-section { padding: 26px 0 8px; }
.cat-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-circle { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cc-disc { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.cc-disc .ic { stroke-width: 1.15; width: 36px; height: 36px; }
.cc-disc img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .cc-disc { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-circle strong { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.cc-more { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--gray); }
.cat-circle:hover .cc-more { color: var(--accent); }
.tone-0 .cc-disc { background: #fbe1e6; color: #6e2c3c; }
.tone-1 .cc-disc { background: #fde6dc; color: #6e3a28; }
.tone-2 .cc-disc { background: #dcf1e5; color: #285a40; }
.tone-3 .cc-disc { background: #ebe1f7; color: #4c3672; }
.tone-4 .cc-disc { background: #e0eefb; color: #2b4e72; }
.tone-5 .cc-disc { background: #e3f2df; color: #355a2e; }
.tone-6 .cc-disc { background: #fdebd8; color: #74502a; }
.tone-7 .cc-disc { background: #e1eff9; color: #2a5574; }

/* ---------- Product cards ---------- */
.products-section { padding-top: 22px; }
.products-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.products-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.p-img { position: relative; display: block; aspect-ratio: 1 / .93; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: #fff; }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 6% 8% 2%; transition: transform .45s; }
.product-card:hover .p-img img { transform: scale(1.04); }
.p-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--badge-sale); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; line-height: 1.5; }
.p-badge.new { background: var(--new); }
.p-badge.out { background: #8a8d93; }
.wish-btn { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.85); transition: .2s; }
.wish-btn:hover { color: var(--sale); }
.wish-btn.active, .wish-btn-lg.active { color: var(--sale); }
.wish-btn.active svg, .wish-btn-lg.active svg { fill: currentColor; }
.p-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.p-brand { font-size: 11.5px; font-weight: 600; color: #3d424a; }
.p-name { font-size: 13px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-name:hover { color: var(--accent); }
.p-rating { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gray); }
.stars { display: inline-flex; gap: 1px; color: var(--star); vertical-align: middle; }
.star { fill: currentColor; }
.star.empty { fill: #dedede; }
.star.half { fill: url(#hs); }
.p-price { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.p-price .is-sale { color: var(--sale); }
.p-price del { font-size: 11.5px; color: #9a9da3; font-weight: 400; }
.btn-add { display: flex; align-items: center; justify-content: center; width: 100%; height: 34px; margin-top: 10px; border-radius: 6px; background: var(--dark); color: #fff; font-size: 12.5px; font-weight: 600; transition: .2s; }
.btn-add:hover:not(:disabled) { background: #2a313c; }
.btn-add:disabled { background: #c9cbcf; cursor: not-allowed; }
.p-cat { font-size: 12px; color: var(--gray); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 2px #fff; vertical-align: middle; }

/* ---------- Promo banners ---------- */
.banners-section { padding-top: 10px; }
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.banners.n1 { grid-template-columns: 1fr; }
.banners.n2 { grid-template-columns: 1fr 1fr; }
.banner { position: relative; display: flex; align-items: center; min-height: 138px; border-radius: var(--radius); overflow: hidden; padding: 20px 24px; transition: transform .3s, box-shadow .3s; }
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.banner-img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 52%; background-size: cover; background-position: center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
[dir="rtl"] .banner-img { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 30%); mask-image: linear-gradient(to left, transparent 0, #000 30%); }
.banner-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 58%; }
.banner-text strong { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.25; }
html[lang="ar"] .banner-text strong { font-weight: 600; }
.banner-text > span:not(.banner-btn) { font-size: 13px; line-height: 1.5; opacity: .9; }
.banner-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; color: #fff; }
.bn-pink { background: linear-gradient(90deg, #f8e2e2, #f5dada); color: #4a1f2a; }
.bn-pink .banner-btn { background: #7a2232; }
.bn-green { background: linear-gradient(90deg, #eef2e5, #e5ecdb); color: #233a26; }
.bn-green .banner-btn { background: #2f5b37; }
.bn-blue { background: linear-gradient(90deg, #e7f1fb, #dceafa); color: #183252; }
.bn-blue .banner-btn { background: #1b3c6d; }
.bn-dark { background: var(--dark); color: #fff; }
.bn-dark .banner-btn { background: var(--accent); }
.bn-light { background: var(--soft); color: var(--ink); }
.bn-light .banner-btn { background: var(--dark); }

/* ---------- Brands strip ---------- */
.brands-strip { background: #f6f6f7; padding: 14px 0 18px; margin-top: 20px; }
.brands-strip h2 { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-family: var(--font); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 26px; flex-wrap: wrap; }
.brand-mark { color: #22262d; opacity: .82; transition: opacity .2s; white-space: nowrap; font-size: 17px; line-height: 1.2; padding: 6px 0; }
.brand-mark:hover { opacity: 1; color: var(--accent); }
.bm-0 { font-family: 'DM Sans', 'Cairo', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.bm-1 { font-family: var(--latin-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 18px; }
.bm-2 { font-family: 'DM Sans', 'Cairo', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.bm-3 { font-family: var(--latin-display); text-transform: uppercase; letter-spacing: .14em; font-size: 15px; }
.bm-4 { font-family: 'DM Sans', 'Cairo', sans-serif; font-weight: 600; font-size: 17px; }
.bm-5 { font-family: 'DM Sans', 'Cairo', sans-serif; text-transform: uppercase; letter-spacing: .24em; font-size: 15px; font-weight: 500; }
.bm-6 { font-family: var(--latin-display); font-style: italic; font-weight: 600; font-size: 20px; }
.bm-7 { font-family: var(--latin-display); text-transform: uppercase; letter-spacing: .1em; font-size: 16px; }

/* ---------- Optional sections ---------- */
.quote-band { position: relative; background-color: var(--dark); background-size: cover; background-position: center; color: #fff; min-height: 120px; display: flex; align-items: center; margin: 20px 0; }
.quote-band::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.qb-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 16px; text-align: center; }
.qb-title { font-family: var(--display); font-size: 28px; font-weight: 500; }
.qb-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.qb-points li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.promo-pill { display: inline-block; background: var(--accent); color: #fff; border-radius: 20px; padding: 4px 16px; font-size: 13px; font-weight: 700; }
.trust-strip { background: var(--soft); }
.trust-strip h2 { text-align: center; font-size: 19px; padding-top: 20px; font-family: var(--display); }
.trust-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); padding: 26px 0; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 16px; }
.trust-item + .trust-item { border-inline-start: 1px solid #ddd6cf; }
.ti-icon .ic { stroke-width: 1.3; }
.ti-text { display: flex; flex-direction: column; line-height: 1.5; }
.ti-text strong { font-size: 14px; }
.ti-text span { font-size: 12px; color: var(--gray); }
.why-dark { background: var(--dark); color: #fff; padding: 48px 0; }
.why-dark h2 { text-align: center; font-size: 26px; margin: 0 0 28px; font-family: var(--display); font-weight: 500; }
.why-dark-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 26px; }
.wd-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wd-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.35); margin-bottom: 6px; }
.wd-item > span:last-child { font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.reviews-section { background: var(--soft); padding: 34px 0; margin-top: 20px; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.testi { margin: 0; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.testi blockquote { margin: 0; font-size: 14.5px; line-height: 1.85; color: #3d3d3d; }
.testi figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: #fce8ee; color: var(--accent); font-weight: 800; font-size: 17px; }
.testi-who { display: flex; flex-direction: column; line-height: 1.4; }
.testi-who strong { font-size: 14px; }
.testi-who span { font-size: 12px; color: var(--gray); }

/* ---------- Newsletter + footer ---------- */
.news-strip { background: var(--soft); border-top: 1px solid var(--line); }
.news-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 16px; }
.news-copy { display: flex; flex-direction: column; gap: 3px; }
.news-copy strong { font-size: 19px; font-family: var(--display); font-weight: 500; }
.news-copy span { font-size: 13.5px; color: var(--gray); }
.news-form { display: flex; background: #fff; border-radius: 8px; overflow: hidden; flex: 1; min-width: 280px; max-width: 520px; border: 1px solid var(--line); }
.news-form input { flex: 1; border: 0; padding: 12px 18px; outline: none; min-width: 0; }
.news-form button { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; font-weight: 600; background: var(--dark); color: #fff; }
.site-footer { background: var(--dark); color: #c4c7cd; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding: 44px 16px 30px; }
.f-col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.f-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.f-col a:hover { color: #fff; }
.f-col p { line-height: 1.8; }
.f-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.f-logo img { height: 110px; width: 110px; object-fit: contain; }
.f-lotus .ic { stroke-width: 1.2; }
.f-words { display: flex; flex-direction: column; direction: ltr; text-align: left; line-height: 1; }
.f-words b { font-family: var(--latin-display); font-size: 25px; font-weight: 500; }
.f-words small { font-size: 8.5px; letter-spacing: .24em; margin-top: 6px; color: #b9bcc2; font-family: 'DM Sans', 'Cairo', sans-serif; }
.f-social { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.f-social a { width: 36px; height: 36px; border: 1px solid #3a404a; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.f-social a:hover { border-color: #fff; }
.f-line { display: inline-flex; align-items: center; gap: 8px; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pay { background: rgba(255,255,255,.08); color: #fff; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; font-size: 13px; color: #959aa3; }
.fb-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fb-tag { display: inline-flex; align-items: center; gap: 6px; }
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; }
.float-cta { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 30px; background: var(--dark); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
body.nav-open .float-cta { display: none; }

/* ---------- Page head ---------- */
.page-head { background: var(--soft); padding: 26px 0; }
.page-head.slim { padding: 14px 0; }
.page-head h1 { font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.3; }
html[lang="ar"] .page-head h1 { font-weight: 600; }
.breadcrumb { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.breadcrumb a:hover { color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { padding: 6px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chip.active, .chip:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.page-content p { margin-bottom: 16px; font-size: 16px; color: #3a3c42; line-height: 1.9; }
.page-content .owner { color: var(--ink); }

/* ---------- Forms ---------- */
select, input[type=text], input[type=tel], input[type=number], input[type=email], input[type=search], input[type=password], textarea { width: 100%; border: 1px solid #dcd9d5; border-radius: 6px; padding: 10px 12px; background: #fff; outline: none; transition: border .2s; }
select:focus, input:focus, textarea:focus { border-color: var(--ink); }
.search-box input, .search-box input:focus { border: 0; }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow-y: auto; background: #fff; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.filters form { display: flex; flex-direction: column; gap: 10px; }
.f-group { border-bottom: 1px solid var(--line); padding-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.f-group h4 { font-size: 14px; margin-bottom: 2px; }
.f-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.f-group label.sub { padding-inline-start: 22px; font-size: 13.5px; color: var(--gray); }
.f-group input[type=radio], .f-group input[type=checkbox] { accent-color: var(--dark); width: 16px; height: 16px; }
.price-range { display: flex; gap: 8px; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sort-form select { width: auto; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; }
.pagination a.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.empty-state { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gray); }
.empty-state h3 { color: var(--ink); font-size: 20px; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-layout > * { min-width: 0; }
.gallery { position: sticky; top: 150px; }
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 1; overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-main .p-badge { top: 14px; inset-inline-start: 14px; font-size: 12.5px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 74px; height: 74px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; padding: 0; background: #fff; }
.gallery-thumbs button.active { border-color: var(--dark); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pi-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pi-brand { font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; }
.pi-cat { color: var(--gray); font-size: 13px; }
.pi-cat:hover, .pi-brand:hover { color: var(--accent); }
.product-info h1 { font-family: var(--display); font-size: 32px; font-weight: 500; line-height: 1.3; margin: 6px 0 8px; }
html[lang="ar"] .product-info h1 { font-weight: 600; }
.pi-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray); }
.pi-rating b { color: var(--ink); }
.pi-price { font-size: 28px; font-weight: 700; margin: 12px 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pi-price .is-sale { color: var(--sale); }
.pi-price del { font-size: 17px; color: #999; font-weight: 400; }
.pi-off { background: var(--badge-sale); color: #fff; font-size: 12.5px; padding: 2px 8px; border-radius: 4px; }
.pi-stock { color: var(--new); font-weight: 600; font-size: 14px; }
.pi-stock.out { color: var(--sale); }
.pi-form { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.pi-colors .lbl { display: block; margin-bottom: 8px; font-size: 14px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 3px #fff; outline: 2px solid transparent; outline-offset: 2px; transition: .15s; }
.swatch input:checked + span { outline-color: var(--dark); }
.pi-actions { display: flex; gap: 10px; align-items: center; }
.pi-actions .btn-lg { flex: 1; }
.wish-btn-lg { border: 1px solid var(--line); width: 50px; height: 50px; border-radius: 8px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 50px; background: #fff; }
.qty button { width: 38px; height: 100%; font-size: 20px; }
.qty button:hover { background: var(--bg2); }
.qty input { width: 44px; border: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 38px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 36px; }
.form-error { background: #fdecec; color: var(--sale); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.pi-perks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: var(--soft); border-radius: 10px; }
.pi-perks li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.pi-desc { margin-top: 22px; }
.pi-desc h3 { font-size: 17px; margin-bottom: 6px; }
.pi-desc p { color: #444; line-height: 1.9; }
.reviews-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.review p { color: #444; }
.review-form { position: relative; display: flex; flex-direction: column; gap: 12px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.star-input { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: #d6d6d6; cursor: pointer; transition: .15s; }
.star-input label svg { fill: currentColor; stroke: none; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }

/* ---------- Cart & checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cart-item { width: 100%; display: grid; grid-template-columns: 90px 1fr auto auto auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.ci-img img { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; background: #fff; }
.ci-info { display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-weight: 600; }
.ci-color { font-size: 13px; color: var(--gray); display: inline-flex; gap: 6px; align-items: center; }
.ci-price { font-size: 14px; color: var(--gray); }
.ci-total { min-width: 100px; text-align: end; }
.ci-remove:hover { color: var(--sale); }
.summary { border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 150px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.summary h3 { font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; }
.free-note { background: #fff8e8; color: #8a5a00; padding: 9px 12px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.free-note.ok { background: #e8f7ef; color: var(--new); }
.sum-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sum-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.sum-item div { display: flex; flex-direction: column; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }
.card + .card { margin-top: 18px; }
.checkout-form, .contact-form, .track-form { position: relative; display: flex; flex-direction: column; gap: 14px; }
.checkout-form h3 { font-size: 20px; font-family: var(--display); font-weight: 500; }
.checkout-form label, .contact-form label, .track-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.delivery-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dt { cursor: pointer; }
.dt input { position: absolute; opacity: 0; }
.dt span { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; flex-wrap: wrap; }
.dt b { margin-inline-start: auto; color: var(--ink); }
.dt input:checked + span { border-color: var(--dark); background: var(--bg2); }
.gift-box { background: var(--soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gift-box h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.checkout-form label.check-line { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--dark); }
.check-line b { margin-inline-start: auto; }
.gift-msg { color: var(--gray); font-style: italic; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
.alert-error { background: #fdecec; color: #a61b1b; }
.alert-success { background: #e8f7ef; color: #13693a; }
.success-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #e8f7ef; color: var(--new); display: flex; align-items: center; justify-content: center; }
.success-card h1 { font-size: 26px; font-family: var(--display); font-weight: 500; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: start; }
.order-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.order-table td:last-child { text-align: end; white-space: nowrap; }
.order-table td.gift-msg { text-align: start; white-space: normal; }
.order-table tr.total td { font-weight: 800; font-size: 16px; border-bottom: 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.status-pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #eee; vertical-align: middle; margin-inline-start: 8px; }
.st-new { background: #e8f0fe; color: #1a56db; }
.st-confirmed { background: #fff4d6; color: #8a5a00; }
.st-shipped { background: #efe8fe; color: #6b3fd4; }
.st-delivered { background: #e8f7ef; color: var(--new); }
.st-cancelled, .st-returned { background: #fdecec; color: var(--sale); }
.steps { list-style: none; display: flex; margin: 20px 0; }
.steps li { flex: 1; text-align: center; font-size: 13px; color: var(--gray); position: relative; padding-top: 38px; counter-increment: s; }
.steps { counter-reset: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1; }
.steps li + li::after { content: ''; position: absolute; top: 14px; inset-inline-end: 50%; width: 100%; height: 2px; background: #eee; }
.steps li.done { color: var(--ink); font-weight: 700; }
.steps li.done::before { background: var(--dark); color: #fff; }
.steps li.done + li.done::after { background: var(--dark); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact-info h2 { font-size: 26px; font-family: var(--display); font-weight: 500; }
.ci-line { display: flex; gap: 10px; align-items: center; font-size: 16px; }

/* ---------- Order popup ("اطلب الآن") ---------- */
.om { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.om-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 5, .55); opacity: 0; transition: opacity .2s; }
.om-dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .2s, transform .2s; }
.om.show .om-backdrop { opacity: 1; }
.om.show .om-dialog { opacity: 1; transform: none; }
.om-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--soft); }
.om-head h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.om-x { width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; color: #555; }
.om-x:hover { background: var(--bg2); color: #000; }
.om-body { overflow-y: auto; padding: 18px 20px 20px; gap: 12px; overscroll-behavior: contain; }
.om-product { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.om-product img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; }
.om-pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-pinfo strong { font-size: 15px; line-height: 1.4; }
.om-unit { font-weight: 800; font-size: 14px; }
.om-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.om-clabel { font-size: 12.5px; color: var(--gray); flex-basis: 100%; }
.om-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; outline: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.om-sw.active { outline-color: #111; }
.om-sec { font-size: 15px; margin-top: 4px; }
.om-summary { display: flex; flex-direction: column; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.om-summary .sum-row { font-size: 14px; }
.om-summary .sum-row.total { font-size: 16px; padding-top: 8px; }
.om .delivery-types { grid-template-columns: 1fr 1fr; gap: 10px; }
.om .dt span { padding: 11px 12px; font-size: 13.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .header-actions { gap: 18px; }
  .nav-link { padding: 0 9px; font-size: 13.5px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .slide-box { padding-inline-start: 24px; }
}
@media (max-width: 1024px) {
  .menu-toggle, .search-toggle { display: inline-flex; }
  .header-main { min-height: 66px; gap: 6px; position: relative; }
  .logo { margin-inline-end: auto; }
  .logo-icon .ic { width: 42px; height: 42px; }
  .logo-text { font-size: 24px; }
  .logo-tag { font-size: 7.5px; margin-top: 5px; }
  .logo img { height: 56px; width: 56px; }
  .header-actions { gap: 4px; }
  .ha-link > span:last-child { display: none; }
  .ha-link { width: 40px; height: 40px; justify-content: center; }
  .search-box { display: none; position: absolute; top: 100%; inset-inline: 0; max-width: none; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; height: auto; background: #fff; z-index: 4; }
  .search-box.open { display: flex; }
  .search-box input { border: 1px solid #d9d6d2 !important; border-inline-end: 0 !important; border-radius: 6px 0 0 6px; height: 42px; }
  [dir="rtl"] .search-box input { border-radius: 0 6px 6px 0; }
  .search-box button { height: 42px; border-radius: 0 6px 6px 0; }
  [dir="rtl"] .search-box button { border-radius: 6px 0 0 6px; }
  .nav-row { border: 0; }
  .main-nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 300px; max-width: 85%; min-height: 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0 0 20px; z-index: 100; transform: translateX(-100%); transition: transform .3s; overflow-y: auto; }
  [dir="rtl"] .main-nav { transform: translateX(100%); }
  .main-nav.open, [dir="rtl"] .main-nav.open { transform: none; }
  .nav-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .nav-link { padding: 14px 18px; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--bg2); }
  .nav-promo { margin: 10px 18px; width: auto; border-radius: 8px; border: 0; }
  .has-drop { display: block; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 8px; display: none; min-width: 0; background: var(--bg2); border-radius: 0; }
  .has-drop.open .dropdown { display: block; }
  .only-mobile, .main-nav > a.only-mobile { display: flex; }
  .nav-langs { display: flex; gap: 8px; padding: 14px 18px; }
  .nav-langs a { flex: 1; text-align: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
  .nav-langs a.on { background: var(--dark); color: #fff; border-color: var(--dark); }
  .tb-items { gap: 18px; }
  .hero { height: 420px; }
  .slide-img { width: 64%; opacity: .95; }
  .slide-box { max-width: 460px; }
  .slide-title { font-size: 34px; }
  html[lang="ar"] .slide-title { font-size: 32px; }
  .hero-pills { gap: 12px 24px; margin-top: 24px; }
  .cat-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .cat-row::-webkit-scrollbar { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .banners { grid-template-columns: 1fr; }
  .banners.n2 { grid-template-columns: 1fr; }
  .banner { min-height: 140px; }
  .banner-img { width: 46%; }
  .brand-row { justify-content: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 300px; max-width: 88%; max-height: none; z-index: 100; border-radius: 0; transform: translateX(-100%); transition: transform .3s; }
  [dir="rtl"] .filters { transform: translateX(100%); }
  .filters.open, [dir="rtl"] .filters.open { transform: none; }
  .product-layout, .cart-layout, .checkout-layout, .contact-layout, .reviews-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .trust-item:nth-child(odd) { border-inline-start: 0; }
}
@media (max-width: 768px) {
  .hide-sm { display: none !important; }
  .hide-xs { display: none !important; }
  .topbar-inner { min-height: 32px; }
  .tb-item { font-size: 12px; }
  /* Hero: photo on top, text under it */
  .hero { height: 560px; background: linear-gradient(180deg, #fbe4ea, #fdf0f3 60%); }
  .slide { align-items: flex-end; }
  .slide-img { inset-inline: 0; width: 100%; height: 250px; bottom: auto; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%) !important; mask-image: linear-gradient(to bottom, #000 72%, transparent 100%) !important; }
  .slide.img-only .slide-img { height: 100%; }
  .slide-content { padding-bottom: 44px; }
  .slide-box { padding: 0; max-width: none; }
  .slide-kicker { font-size: 11px; margin-bottom: 6px; }
  .slide-title, html[lang="ar"] .slide-title { font-size: 27px; margin-bottom: 8px; }
  .slide-text { font-size: 13.5px; margin-bottom: 16px; }
  .slide-text br { display: none; }
  .btn-hero { height: 42px; }
  .hero-pills { gap: 10px 18px; margin-top: 18px; }
  .hero-pill .ic { width: 24px; height: 24px; }
  .hero-pill b { font-size: 11.5px; }
  .hero-pill small { font-size: 10.5px; }
  .hero-arrows { display: none; }
  .hero-dots { bottom: 16px; }
  .sec-head h2, html[lang="ar"] .sec-head h2 { font-size: 21px; }
  .products-grid, .products-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p-info { padding: 8px 10px 10px; }
  .p-name { font-size: 12.5px; }
  .btn-add { height: 34px; font-size: 12px; }
  .banner { min-height: 130px; padding: 18px; }
  .banner-text strong { font-size: 20px; }
  .brand-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 26px; }
  .brand-row::-webkit-scrollbar { display: none; }
  .cart-item { grid-template-columns: 76px 1fr auto; grid-template-areas: 'img info rm' 'img qty total'; gap: 8px 12px; }
  .ci-img { grid-area: img; } .ci-img img { width: 76px; height: 76px; }
  .ci-info { grid-area: info; } .qty-sm { grid-area: qty; justify-self: start; }
  .ci-total { grid-area: total; } .ci-remove { grid-area: rm; }
  .form-row, .delivery-types { grid-template-columns: 1fr; }
  .pi-perks { grid-template-columns: 1fr; }
  .pi-actions { flex-wrap: wrap; }
  .pi-actions .btn-lg { flex: 1 1 100%; order: 3; padding: 13px 16px; }
  .product-info h1, html[lang="ar"] .product-info h1 { font-size: 25px; }
  .page-head h1 { font-size: 24px; }
  .toast { bottom: 90px; }
}
@media (max-width: 560px) {
  .om { padding: 0; align-items: flex-end; }
  .om-dialog { max-width: none; max-height: 94dvh; border-radius: 16px 16px 0 0; transform: translateY(40px); }
  .om-body { padding: 14px 16px 18px; }
  .om-product { grid-template-columns: 60px 1fr; }
  .om-product img { width: 60px; height: 60px; }
  .om-qty { grid-column: 1 / -1; justify-self: start; }
  .om .delivery-types { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .logo-icon .ic { width: 36px; height: 36px; }
  .logo-text { font-size: 21px; }
  .logo-tag { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .ha-link { width: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .banner-text { max-width: 62%; }
}
