@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f8f8f8;
  --paper-deep: #eeece5;
  --ink: #222a26;
  --muted: #777a72;
  --line: #d9d8cf;
  --sage: #a8b59e;
  --sage-pale: #e6e9df;
  --coral: #d7846d;
  --white: #fffefa;
  --mono: 'DM Mono', monospace;
  --arabic: 'Noto Sans Arabic', 'Manrope', sans-serif;
  --latin: 'Manrope', sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--arabic); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #d8decf; color: var(--ink); }

.announcement { min-height: 32px; display: flex; justify-content: center; align-items: center; gap: 9px; padding: 6px 14px; background: var(--ink); color: #f8f6f1; font-size: 10px; letter-spacing: .025em; }
.announcement-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.announcement-en { color: #bac0b9; font: 9px var(--mono); letter-spacing: .11em; direction: ltr; }
.site-header { max-width: 1380px; margin: 0 auto; padding: 22px 5.2%; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; border-bottom: 1px solid var(--line); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ''; display: block; position: absolute; background: var(--ink); border-radius: 3px; }
.brand-mark::before { width: 1px; height: 21px; }
.brand-mark::after { width: 21px; height: 1px; }
.brand-mark span { width: 11px; height: 11px; transform: rotate(45deg); background: var(--sage); border: 1px solid var(--ink); }
.brand-name { font: 800 18px/1 var(--latin); letter-spacing: -.04em; white-space: nowrap; }
.brand-name > span, .footer-brand > span { color: var(--coral); }
.brand-name small { display: block; margin-top: 5px; color: var(--muted); font: 9px var(--arabic); letter-spacing: 0; direction: rtl; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: clamp(27px, 4.6vw, 72px); direction: ltr; }
.nav-link { position: relative; padding: 8px 1px; color: #74766f; font: 10px var(--mono); letter-spacing: .12em; transition: color .2s ease; }
.nav-link::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--coral); content: ''; transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.cart-trigger { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 0 9px 10px; border: 0; background: transparent; cursor: pointer; }
.cart-label { font-size: 11px; }
.cart-glyph { font-size: 20px; line-height: 15px; font-weight: 300; }
.cart-count { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--sage-pale); font: 10px var(--mono); }
.site-tools { display: flex; align-items: center; gap: 9px; }
.language-switch { display: flex; align-items: center; gap: 5px; }
.language-switch button { display: grid; place-items: center; width: 30px; height: 27px; padding: 3px; border: 1px solid transparent; border-radius: 3px; background: transparent; cursor: pointer; }
.language-switch button:hover, .language-switch button[aria-pressed="true"] { border-color: var(--coral); background: rgba(255,255,255,.45); }
.language-switch svg { display: block; width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(34,42,38,.12); }
.theme-toggle { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 18px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--coral); color: var(--coral); }

.hero { position: relative; max-width: 1380px; min-height: 545px; margin: 0 auto; padding: 42px 5.2% 66px; display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(36px, 7.3vw, 114px); align-items: center; direction: ltr; }
.hero-copy { position: relative; z-index: 1; max-width: 480px; direction: rtl; text-align: right; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: #73776e; font: 9px var(--mono); letter-spacing: .12em; }
.eyebrow-line { width: 25px; height: 1px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .about-copy h1 { margin-bottom: 19px; font-size: clamp(34px, 4.1vw, 58px); font-weight: 500; letter-spacing: -.065em; line-height: 1.46; }
.hero h1 em, .section-heading h2 em, .about-copy h1 em, .values-heading h2 em, .closing-note p em, .about-signoff p em { color: #647563; font-style: normal; }
.hero-description { max-width: 360px; margin: 0 0 25px; color: #72746d; font-size: 13px; line-height: 2.05; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; padding: 0 19px; border: 1px solid transparent; font-size: 11px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #415047; }
.button span { font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #575e56; font-size: 11px; cursor: pointer; transition: border-color .2s, color .2s; }
.text-link:hover { border-color: var(--coral); color: var(--ink); }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 39px; color: #88897f; font-size: 10px; line-height: 1.8; }
.hero-note b { color: var(--ink); font-weight: 500; }
.note-star { color: var(--coral); font-size: 22px; }
.hero-visual { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-image-wrap { position: relative; min-height: 385px; height: min(41vw, 465px); max-height: 465px; overflow: hidden; background: #edede7; }
.hero-image-wrap::after { position: absolute; inset: 0; border: 1px solid rgba(34,42,38,.05); content: ''; pointer-events: none; }
.hero-image-button { position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.hero-image-wrap:hover img { transform: scale(1.025); }
.hero-arrow { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 4px; border: 1px solid rgba(34,42,38,.28); border-radius: 50%; background: rgba(248,246,241,.9); color: var(--ink); font: 29px/1 var(--latin); cursor: pointer; opacity: .92; transform: translateY(-50%); transition: background .2s, color .2s, opacity .2s; }
.hero-arrow--previous { right: 17px; }
.hero-arrow--next { left: 17px; }
.hero-arrow:hover, .hero-arrow:focus-visible { background: var(--ink); color: var(--white); opacity: 1; }
.hero-arrow:focus-visible, .hero-image-button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.hero-stamp { position: absolute; z-index: 2; left: 18px; bottom: 17px; width: 75px; height: 75px; display: grid; place-content: center; border-radius: 50%; background: var(--sage-pale); color: var(--ink); text-align: center; pointer-events: none; transform: rotate(-10deg); }
.hero-stamp span { font-size: 10px; }
.hero-stamp b { margin-top: -2px; color: #65745e; font-size: 15px; }
.hero-stamp i { position: absolute; top: 7px; right: 9px; color: var(--coral); font-size: 12px; font-style: normal; }
.hero-caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; color: #8a8c82; font: 8px var(--mono); letter-spacing: .08em; }
.hero-caption span:last-child { font-family: var(--arabic); letter-spacing: 0; }
.hero-index { position: absolute; right: 5.2%; bottom: 27px; color: #888a81; font: 9px var(--mono); direction: ltr; }
.hero-index i { color: var(--coral); font-style: normal; }

.shop-section { max-width: 1380px; margin: 0 auto; padding: 51px 5.2% 86px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2, .values-heading h2 { margin-bottom: 0; font-size: clamp(27px, 3.2vw, 42px); font-weight: 500; letter-spacing: -.055em; }
.section-aside { margin: 0 0 4px; color: #7c7d75; font-size: 11px; line-height: 1.9; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.product-card { min-width: 0; scroll-margin-top: 100px; }
.product-card.is-highlighted .product-image { outline: 2px solid var(--coral); outline-offset: 3px; }
.product-image { position: relative; aspect-ratio: 1 / 1.12; overflow: hidden; background: #eeede7; }
.product-image-button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.product-image img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-image-button::after { position: absolute; bottom: 12px; left: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(34,42,38,.2); border-radius: 50%; background: rgba(248,246,241,.92); color: var(--ink); content: '＋'; font-size: 17px; opacity: 0; transition: opacity .2s, transform .2s; }
.product-card:hover .product-image-button::after, .product-image-button:focus-visible::after { opacity: 1; transform: scale(1.04); }
.product-image-button:focus-visible { outline: 2px solid var(--coral); outline-offset: -3px; }
.product-tag { position: absolute; top: 13px; right: 13px; padding: 6px 9px; background: rgba(248,246,241,.9); color: #656b60; font: 8px var(--mono); letter-spacing: .06em; }
.product-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-top: 13px; }
.product-title { margin: 0 0 5px; font-size: 13px; font-weight: 500; }
.product-subtitle { margin: 0; color: #898a81; font-size: 10px; }
.product-price { flex: 0 0 auto; padding-top: 2px; color: #39423c; font: 12px var(--mono); direction: rtl; }
.product-card-number { padding-top: 9px; color: #a1a196; font: 8px var(--mono); letter-spacing: .1em; }

.family-love { padding: 62px 5.2%; background: var(--paper-deep); }
.family-love-inner { max-width: 1235px; margin: 0 auto; }
.family-love-heading { max-width: 620px; margin: 0 auto 33px; text-align: center; }
.family-love-heading .eyebrow { justify-content: center; margin-bottom: 12px; }
.family-love-heading h2 { margin: 0 0 11px; font-size: clamp(27px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.055em; }
.family-love-heading h2 em { color: #647563; font-style: normal; }
.family-love-intro { max-width: 470px; margin: 0 auto; color: #72766e; font-size: 11px; line-height: 2; }
.family-love-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.family-love-card { min-height: 190px; padding: 22px 22px 20px; border: 1px solid rgba(34,42,38,.12); background: rgba(255,254,250,.72); }
.family-love-number { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 19px; border: 1px solid #c8cbbf; border-radius: 50%; color: #697566; font: 9px var(--mono); direction: ltr; }
.family-love-card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.family-love-card p { max-width: 330px; margin: 0; color: #74766e; font-size: 10px; line-height: 2; }

.family-video-section { padding: 69px 5.2%; }
.family-video-inner { max-width: 1235px; margin: 0 auto; display: grid; grid-template-columns: .68fr 1.32fr; align-items: center; gap: clamp(28px, 5vw, 70px); }
.family-video-copy { max-width: 355px; }
.family-video-copy .eyebrow { margin-bottom: 14px; }
.family-video-copy h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.05em; }
.family-video-copy h2 em { color: #647563; font-style: normal; }
.family-video-copy > p:last-child { margin: 0; color: #74766e; font-size: 11px; line-height: 2; }
.family-video-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #242a26; }
.family-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.family-video-caption { position: absolute; right: 15px; bottom: 13px; padding: 6px 9px; background: rgba(23,27,25,.62); color: #f4f3ec; font: 8px var(--mono); letter-spacing: .12em; direction: ltr; pointer-events: none; }

.closing-note { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; padding: 35px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.closing-mark { color: var(--coral); font-size: 21px; }
.closing-note p { margin: 7px 0 10px; font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -.04em; }
.closing-sub { color: #898a81; font: 8px var(--mono); letter-spacing: .14em; direction: ltr; }
.site-footer { max-width: 1380px; margin: 0 auto; min-height: 85px; padding: 22px 5.2%; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #7a7b73; font-size: 9px; }
.footer-brand { color: var(--ink); font: 800 17px var(--latin); letter-spacing: -.08em; direction: ltr; }
.footer-links { display: flex; gap: 17px; direction: ltr; color: var(--ink); font: 9px var(--mono); }
.footer-links a:hover { color: var(--coral); }
.site-footer small { color: #92938a; font: 8px var(--mono); direction: ltr; }

.about-page { max-width: 1380px; margin: 0 auto; padding: 0 5.2%; }
.about-hero { min-height: 550px; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(38px, 7vw, 105px); align-items: center; padding: 56px 0 62px; direction: ltr; }
.about-copy { max-width: 485px; direction: rtl; text-align: right; }
.about-copy .eyebrow { margin-bottom: 23px; }
.about-copy h1 { font-size: clamp(34px, 4vw, 55px); }
.about-lead { margin: 0 0 15px; color: #555f56; font-size: 15px; line-height: 2.05; }
.about-body { margin: 0 0 25px; color: #7b7e75; font-size: 12px; line-height: 2.1; }
.about-visual { position: relative; direction: ltr; }
.about-image-frame { height: min(43vw, 460px); min-height: 365px; overflow: hidden; background: #edede7; }
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.about-caption { display: flex; justify-content: space-between; padding-top: 10px; color: #898a81; font: 8px var(--mono); letter-spacing: .09em; }
.about-caption span:last-child { direction: rtl; font-family: var(--arabic); letter-spacing: 0; }
.about-side-note { position: absolute; top: 18px; right: -18px; width: 46px; color: #7c8075; font-size: 9px; line-height: 1.8; writing-mode: vertical-rl; }
.values-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 7%; padding: 66px 0 80px; border-top: 1px solid var(--line); }
.values-heading .eyebrow { margin-bottom: 15px; }
.values-heading h2 { line-height: 1.55; }
.value-list { border-top: 1px solid var(--line); }
.value-item { display: grid; grid-template-columns: 45px 1fr 30px; align-items: center; gap: 17px; min-height: 100px; border-bottom: 1px solid var(--line); }
.value-number { color: #9a9c92; font: 10px var(--mono); direction: ltr; }
.value-item h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.value-item p { max-width: 390px; margin: 0; color: #7d7e76; font-size: 10px; line-height: 1.9; }
.value-icon { color: var(--coral); font-size: 17px; text-align: left; }
.about-signoff { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 125px; border-top: 1px solid var(--line); }
.about-signoff > span { color: var(--coral); font-size: 20px; }
.about-signoff p { margin: 0; font-size: 20px; font-weight: 500; }

/* Details dialog */
.product-dialog { position: fixed; width: min(760px, calc(100% - 28px)); max-width: 760px; max-height: min(650px, calc(100dvh - 28px)); padding: 0; overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 24px 85px rgba(33,39,34,.25); }
.product-dialog::backdrop { background: rgba(27,33,29,.55); backdrop-filter: blur(3px); }
.dialog-close { position: sticky; z-index: 2; top: 12px; float: left; width: 34px; height: 34px; margin: 12px; border: 1px solid var(--line); border-radius: 50%; background: rgba(248,246,241,.93); font: 24px/1 var(--latin); cursor: pointer; }
.dialog-content { display: grid; grid-template-columns: 1fr 1fr; min-height: 390px; direction: ltr; }
.dialog-image { min-height: 390px; background: #eeede7; }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.dialog-copy { display: flex; flex-direction: column; justify-content: center; padding: 33px 30px; direction: rtl; text-align: right; }
.dialog-kicker { margin-bottom: 10px; color: #888a80; font: 9px var(--mono); letter-spacing: .1em; }
.dialog-copy h2 { margin: 0 0 9px; font-size: 22px; font-weight: 500; }
.dialog-price { margin: 0 0 13px; color: #47554a; font: 14px var(--mono); }
.dialog-description { margin: 0 0 20px; color: #74766e; font-size: 11px; line-height: 2; }
.size-label { display: block; margin-bottom: 8px; font-size: 10px; }
.size-select { width: 100%; min-height: 42px; margin-bottom: 12px; padding: 0 11px; border: 1px solid #c7c9c0; border-radius: 0; background: transparent; color: var(--ink); font-size: 11px; }
.dialog-actions { display: grid; gap: 9px; }
.dialog-add, .dialog-buy { width: 100%; }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--sage-pale); }
.dialog-size-error { min-height: 17px; margin: -4px 0 7px; color: #b45845; font-size: 10px; }

/* Checkout */
.checkout-back { justify-self: end; color: #687066; font-size: 10px; }
.checkout-back:hover { color: var(--coral); }
.checkout-page { max-width: 1160px; margin: 0 auto; padding: 49px 5.2% 82px; }
.checkout-heading { max-width: 690px; margin: 0 auto 34px; text-align: center; }
.checkout-heading .eyebrow { justify-content: center; margin-bottom: 13px; }
.checkout-heading h1 { margin: 0 0 9px; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -.055em; }
.checkout-heading h1 em { color: #647563; font-style: normal; }
.checkout-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.checkout-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 23px; align-items: start; }
.checkout-layout[hidden], .checkout-empty[hidden], .checkout-success[hidden] { display: none; }
.checkout-summary, .checkout-form-panel { padding: 27px; border: 1px solid var(--line); background: rgba(255,254,250,.68); }
.checkout-kicker { margin: 0 0 7px; color: #8b8d83; font: 8px var(--mono); letter-spacing: .12em; }
.checkout-summary h2, .checkout-form-panel h2 { margin: 0 0 22px; font-size: 19px; font-weight: 500; }
.checkout-items { display: grid; gap: 13px; }
.checkout-item { display: grid; grid-template-columns: 72px 1fr; gap: 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.checkout-item img { width: 72px; height: 82px; object-fit: cover; background: #eeede7; mix-blend-mode: multiply; }
.checkout-item-copy { min-width: 0; align-self: center; }
.checkout-item-copy h3 { margin: 0 0 6px; font-size: 11px; font-weight: 500; }
.checkout-item-copy p { margin: 0 0 7px; color: #81837a; font-size: 9px; }
.checkout-item-copy strong { color: #536455; font: 10px var(--mono); }
.checkout-totals { display: grid; gap: 11px; margin-top: 18px; font-size: 10px; }
.checkout-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.checkout-totals strong { font: 11px var(--mono); text-align: left; }
.checkout-grand-total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.checkout-grand-total strong { color: #536455; font-size: 13px; }
.shipping-note { min-height: 35px; margin: 13px 0 0; color: #85877e; font-size: 9px; line-height: 1.8; }
.order-form { display: grid; gap: 15px; }
.form-field { display: grid; gap: 7px; color: #50574f; font-size: 10px; }
.form-field input, .form-field select { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid #c7c9c0; border-radius: 0; background: var(--paper); color: var(--ink); font-size: 11px; }
.form-field input::placeholder { color: #9a9b92; }
.delivery-method { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 0; padding: 0; border: 0; }
.delivery-method legend { width: 100%; margin-bottom: 8px; color: #50574f; font-size: 10px; }
.delivery-method label { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 0 12px; border: 1px solid var(--line); color: #565d54; font-size: 10px; cursor: pointer; }
.delivery-method input { accent-color: #65745e; }
.checkout-submit { width: 100%; margin-top: 2px; }
.checkout-demo-note { margin: -4px 0 0; color: #878980; font-size: 9px; line-height: 1.8; }
.checkout-empty { max-width: 540px; margin: 0 auto; padding: 38px 24px; border: 1px solid var(--line); text-align: center; }
.checkout-empty > span { color: var(--coral); font-size: 24px; }
.checkout-empty h2 { margin: 10px 0 7px; font-size: 18px; font-weight: 500; }
.checkout-empty p { margin-bottom: 20px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.checkout-success { padding: 23px; border: 1px solid #b9c4b1; background: var(--sage-pale); }
.checkout-success h2 { margin: 0 0 11px; font-size: 17px; font-weight: 500; }
.checkout-success p { margin: 0 0 9px; color: #586253; font-size: 10px; line-height: 1.8; }
.checkout-success .checkout-demo-note { margin-top: 14px; }

/* Cart drawer */
.drawer-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(28,34,30,.48); backdrop-filter: blur(2px); }
.drawer-backdrop[hidden] { display: none; }
.cart-drawer { position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(405px, 100%); padding: 23px 22px 19px; background: var(--paper); box-shadow: -16px 0 60px rgba(25,30,27,.16); transform: translateX(105%); transition: transform .35s var(--ease); }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-kicker { margin: 0 0 6px; color: #898a81; font: 8px var(--mono); letter-spacing: .1em; direction: ltr; }
.drawer-header h2 { margin: 0; font-size: 20px; font-weight: 500; }
.drawer-header h2 span { color: #92948a; font: 10px var(--mono); }
.drawer-close { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font: 23px/1 var(--latin); cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-row { display: grid; grid-template-columns: 74px 1fr 22px; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 74px; height: 84px; object-fit: cover; background: #eeede7; mix-blend-mode: multiply; }
.cart-row-info { min-width: 0; }
.cart-row-info h3 { margin: 4px 0 5px; font-size: 11px; font-weight: 500; }
.cart-row-info p { margin: 0 0 9px; color: #82847b; font-size: 9px; }
.cart-row-price { color: #536455 !important; font: 10px var(--mono) !important; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.quantity-control button { width: 26px; height: 24px; border: 0; background: transparent; font-size: 13px; cursor: pointer; }
.quantity-control span { min-width: 19px; font: 9px var(--mono); text-align: center; }
.cart-remove { align-self: start; margin-top: 4px; border: 0; background: transparent; color: #919287; font-size: 16px; cursor: pointer; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #767970; }
.cart-empty[hidden] { display: none; }
.cart-empty > span { color: var(--coral); font-size: 26px; }
.cart-empty p { margin: 13px 0 12px; font-size: 13px; line-height: 1.9; }
.drawer-footer { padding-top: 15px; border-top: 1px solid var(--line); }
.drawer-footer[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; }
.cart-subtotal strong { font: 13px var(--mono); }
.cart-disclaimer { margin: 0 0 12px; color: #85867d; font-size: 9px; line-height: 1.7; }
.checkout-button { width: 100%; }
.toast { position: fixed; z-index: 30; right: 50%; bottom: 20px; max-width: calc(100% - 28px); padding: 12px 18px; background: var(--ink); color: white; font-size: 11px; opacity: 0; pointer-events: none; transform: translate(50%, 12px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
body.drawer-open { overflow: hidden; }

@media (max-width: 760px) {
  .site-header { padding: 17px 5%; grid-template-columns: 1fr auto; row-gap: 11px; }
  .brand { grid-column: 1; grid-row: 1; }
  .cart-trigger { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: center; gap: 55px; padding-top: 4px; }
  .site-tools { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 37px 5% 57px; }
  .hero-copy { max-width: none; }
  .hero h1, .about-copy h1 { font-size: clamp(35px, 9vw, 49px); }
  .hero-description { max-width: 430px; }
  .hero-note { margin-top: 24px; }
  .hero-visual { grid-row: 1; }
  .hero-image-wrap { height: 76vw; min-height: 295px; max-height: 440px; }
  .hero-index { right: 5%; bottom: 21px; }
  .shop-section { padding: 41px 5% 62px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 23px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 12px; }
  .family-love { padding: 46px 5%; }
  .family-love-heading { margin-bottom: 25px; }
  .family-love-grid { grid-template-columns: 1fr; gap: 10px; }
  .family-love-card { min-height: 0; padding: 18px; }
  .family-love-number { margin-bottom: 12px; }
  .family-video-section { padding: 46px 5%; }
  .family-video-inner { grid-template-columns: 1fr; gap: 22px; }
  .family-video-copy { max-width: 500px; }
  .product-image { aspect-ratio: 1 / 1.22; }
  .product-meta { flex-wrap: wrap; padding-top: 10px; }
  .product-title { font-size: 11px; }
  .product-price { font-size: 10px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding: 20px 5%; }
  .site-footer > span { order: 3; width: calc(100% - 95px); }
  .footer-links { order: 4; }
  .site-footer small { order: 5; }
  .about-page { padding: 0 5%; }
  .about-hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 34px 0 48px; }
  .about-visual { grid-row: 1; }
  .about-image-frame { height: 73vw; min-height: 290px; max-height: 430px; }
  .about-side-note { right: -13px; }
  .values-section { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 50px; }
  .value-item { grid-template-columns: 30px 1fr 22px; gap: 12px; min-height: 90px; }
  .about-signoff { min-height: 102px; }
  .about-signoff p { font-size: 16px; }
  .checkout-page { padding: 33px 5% 58px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-form-panel { order: 1; }
  .checkout-summary { order: 2; }
  .checkout-summary, .checkout-form-panel { padding: 21px 17px; }
  .checkout-heading { margin-bottom: 25px; }
}

@media (max-width: 390px) {
  .announcement { font-size: 9px; }
  .announcement-en { font-size: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  .main-nav { gap: 42px; }
  .product-grid { gap: 23px 9px; }
  .product-title { font-size: 10px; }
  .product-price { font-size: 9px; }
  .dialog-content { grid-template-columns: 1fr; }
  .dialog-image { min-height: 270px; height: 68vw; }
  .dialog-copy { padding: 23px 20px; }
}

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

/* ===== إعلان الواجهة المتحرك ===== */
.ad-hero { position: relative; max-width: 1380px; margin: 0 auto; height: clamp(540px, min(80vh, 47vw), 690px); overflow: hidden; background: var(--paper-deep); }
.ad-sc { position: absolute; inset: 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4vw; align-items: center; padding: 0 6% 24px; direction: ltr; background: var(--bg, var(--paper-deep)); opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; overflow: hidden; }
.ad-sc.on { opacity: 1; visibility: visible; }
.ad-tx { position: relative; z-index: 2; direction: rtl; text-align: right; max-width: 480px; }
.ad-n { display: block; direction: ltr; text-align: right; font: 10px var(--mono); letter-spacing: .12em; color: #6f7168; }
.ad-t { margin: 10px 0 12px; font-size: clamp(28px, 4vw, 54px); font-weight: 500; letter-spacing: -.05em; line-height: 1.42; }
.ad-t em { color: #647563; font-style: normal; }
.ad-d { margin: 0; max-width: 420px; color: #5f625a; font-size: 14px; line-height: 2.05; }
.ad-tag { display: inline-block; margin-top: 12px; padding: 7px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 12px; }
.ad-price { margin: 14px 0 18px; font-size: 26px; font-weight: 600; }
.ad-ph { position: relative; height: 100%; display: grid; place-items: center; }
.ad-ph::before { content: ''; position: absolute; width: min(70%, 440px); aspect-ratio: 1; border-radius: 50%; background: rgba(255,254,250,.7); }
.ad-ph img { position: relative; height: min(88%, 520px); width: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.ad-sc.on .ad-ph::before { animation: adGrow 1s var(--ease) both; }
.ad-sc.on .ad-ph img { animation: adImg 4.2s var(--ease) both; }
.ad-sc.on .ad-tx > * { animation: adUp .8s var(--ease) both; }
.ad-sc.on .ad-tx > :nth-child(2) { animation-delay: .15s; } .ad-sc.on .ad-tx > :nth-child(3) { animation-delay: .3s; }
.ad-sc.on .ad-tx > :nth-child(4) { animation-delay: .45s; } .ad-sc.on .ad-tx > :nth-child(5) { animation-delay: .6s; } .ad-sc.on .ad-tx > :nth-child(6) { animation-delay: .75s; }
@keyframes adGrow { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes adImg { 0% { transform: translateY(40px) scale(.85) rotate(-4deg); opacity: 0; } 16% { opacity: 1; transform: none; } 100% { transform: scale(1.06); } }
@keyframes adUp { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.ad-solo { grid-template-columns: 1fr; justify-items: center; }
.ad-solo .ad-tx { max-width: 720px; text-align: center; }
.ad-solo .ad-n { text-align: center; } .ad-solo .ad-d { margin: 0 auto 18px; }
.ad-bar { height: 10px; width: min(70vw, 380px); margin: 6px auto 18px; border-radius: 99px; background: var(--white); overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ink); }
.ad-sc.on .ad-bar i { animation: adFill 2.4s .7s var(--ease) forwards; }
@keyframes adFill { to { width: 88%; } }
.ad-drop { position: absolute; z-index: 1; top: -30px; width: 6px; height: 20px; border-radius: 50%; background: linear-gradient(#bcd6ea, #6f98b8); opacity: .75; animation: adRain 1.1s linear infinite; }
@keyframes adRain { to { transform: translateY(110vh); } }
.ad-prog { position: absolute; z-index: 5; left: 6%; right: 6%; bottom: 16px; display: flex; gap: 6px; direction: ltr; }
.ad-seg { position: relative; flex: 1; height: 3px; padding: 0; border: 0; background: rgba(34,42,38,.16); overflow: hidden; cursor: pointer; }
.ad-seg::after { content: ''; position: absolute; inset: -8px 0; }
.ad-seg i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.ad-seg.done i { transform: none; }
.ad-seg.on i { animation: adProg var(--d, 4200ms) linear forwards; }
@keyframes adProg { to { transform: scaleX(1); } }
.ad-hero:hover .ad-seg.on i, .ad-hero:hover .ad-drop, .ad-hero.is-paused .ad-seg.on i { animation-play-state: paused; }
@media (max-width: 860px) {
  .ad-hero { height: clamp(600px, 150vw, 720px); }
  .ad-sc { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; gap: 0; padding: 12px 6% 34px; align-items: start; }
  .ad-ph { grid-row: 1; } .ad-tx { grid-row: 2; max-width: none; text-align: center; padding-top: 6px; }
  .ad-n { text-align: center; } .ad-d { margin: 0 auto; font-size: 13px; line-height: 1.9; }
  .ad-price { margin: 8px 0 12px; font-size: 22px; } .ad-t { margin: 6px 0; font-size: clamp(24px, 7vw, 34px); }
  .ad-solo { grid-template-rows: 1fr; align-items: center; } .ad-solo .ad-tx { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .ad-sc.on .ad-ph::before, .ad-sc.on .ad-ph img, .ad-sc.on .ad-tx > *, .ad-drop { animation: none; } }

/* ===== نسخة أسرع وأنعم + مشهد الصور المتفرقة ===== */
.ad-sc { transition: opacity .45s ease, visibility .45s; will-change: opacity; }
.ad-ph img, .ad-sx { will-change: transform, opacity; backface-visibility: hidden; }
.ad-sc.on .ad-ph::before { animation: adGrow .6s cubic-bezier(.22,1,.36,1) both; }
.ad-sc.on .ad-ph img { animation: adImg2 2.4s cubic-bezier(.22,1,.36,1) both; }
.ad-sc.on .ad-tx > * { animation: adUp .55s cubic-bezier(.22,1,.36,1) both; }
.ad-sc.on .ad-tx > :nth-child(2) { animation-delay: .08s; } .ad-sc.on .ad-tx > :nth-child(3) { animation-delay: .16s; }
.ad-sc.on .ad-tx > :nth-child(4) { animation-delay: .24s; } .ad-sc.on .ad-tx > :nth-child(5) { animation-delay: .32s; } .ad-sc.on .ad-tx > :nth-child(6) { animation-delay: .4s; }
@keyframes adImg2 { 0% { transform: translateY(26px) scale(.9) rotate(-3deg); opacity: 0; } 30% { opacity: 1; transform: none; } 100% { transform: scale(1.04); } }
.ad-sc.on .ad-bar i { animation: adFill 1.1s .35s cubic-bezier(.22,1,.36,1) forwards; }
.ad-scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ad-sx { position: absolute; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transform: rotate(var(--r)); opacity: 0; }
.ad-sc.on .ad-sx { animation: adToss 1.1s var(--dl) cubic-bezier(.16,1,.3,1) both, adFloat 2.2s calc(var(--dl) + 1.1s) ease-in-out infinite alternate; }
@keyframes adToss { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * 3)) scale(.5); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes adFloat { from { opacity: 1; transform: rotate(var(--r)) translateY(0); } to { opacity: 1; transform: rotate(calc(var(--r) + 3deg)) translateY(-10px); } }
.ad-solo .ad-tx::before { content: ''; position: absolute; z-index: -1; inset: -16% -22%; background: radial-gradient(closest-side, var(--bg) 55%, transparent); }
@media (max-width: 860px) { .ad-sx { width: 30% !important; } }
@media (prefers-reduced-motion: reduce) { .ad-sc.on .ad-sx { animation: none; opacity: 1; } }

.ad-sc.on .ad-ph img { animation-duration: 3.2s; }

/* ===== الأسهم وزر المتابعة ===== */
.ad-arrow { position: absolute; z-index: 6; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px; border: 1px solid rgba(34,42,38,.28); border-radius: 50%; background: rgba(248,246,241,.92); color: var(--ink); font: 26px/1 var(--latin); cursor: pointer; transform: translateY(-50%); transition: background .2s, color .2s; }
.ad-arrow--prev { left: 14px; } .ad-arrow--next { right: 14px; }
.ad-arrow:hover, .ad-arrow:focus-visible { background: var(--ink); color: var(--white); }
.ad-resume { position: absolute; z-index: 6; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 11px 26px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper); font: 500 14px var(--arabic); cursor: pointer; box-shadow: 0 8px 22px rgba(34,42,38,.25); animation: adUp .35s cubic-bezier(.22,1,.36,1) both; }
.ad-resume[hidden] { display: none; }
@media (max-width: 860px) { .ad-sc { padding-bottom: 76px; } .ad-arrow { top: 23%; width: 38px; height: 38px; } .ad-arrow--prev { left: 8px; } .ad-arrow--next { right: 8px; } .ad-resume { bottom: 30px; } }

/* ===== أزرار السلة ===== */
.checkout-button { position: relative; overflow: hidden; gap: 10px; min-height: 52px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #2fbf6c, #1e9e55); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 0 0 0 rgba(47,191,108,.55), 0 8px 20px rgba(30,158,85,.35); animation: adPulse 1.8s ease-in-out infinite; }
.checkout-button:hover { background: linear-gradient(135deg, #36cc77, #22a85b); transform: translateY(-1px); }
.checkout-button::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: adShine 2.4s ease-in-out infinite; }
@keyframes adShine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes adPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,191,108,.5), 0 8px 20px rgba(30,158,85,.35); } 50% { box-shadow: 0 0 0 9px rgba(47,191,108,0), 0 8px 24px rgba(30,158,85,.5); } }
.continue-button { width: 100%; min-height: 46px; margin-top: 10px; border-radius: 12px; background: #f6e7b9; color: #5e4710; box-shadow: inset 0 0 0 1px rgba(94,71,16,.18); font-size: 14px; font-weight: 600; }
.continue-button:hover { background: #f0dba0; }
@media (prefers-reduced-motion: reduce) { .checkout-button, .checkout-button::after { animation: none; } }

/* ===== زر تأكيد الطلب العائم ===== */
.cart-float { position: fixed; z-index: 19; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; overflow: hidden; border-radius: 999px; background: linear-gradient(135deg, #2fbf6c, #1e9e55); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(30,158,85,.4); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px) scale(.92); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.cart-float.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; animation: adPulse 1.8s ease-in-out infinite; }
.cart-float::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: adShine 2.4s ease-in-out infinite; }
.cart-float:hover { background: linear-gradient(135deg, #36cc77, #22a85b); }
@media (prefers-reduced-motion: reduce) { .cart-float, .cart-float::after { animation: none; } }

.ad-sc.on .ad-ph img { animation-duration: 2.4s; }

/* ===== صفحة الطلب بنمط بطاقة عصرية ===== */
.checkout-layout { grid-template-columns: 1.15fr .85fr; gap: 26px; }
.checkout-form-panel { max-width: 560px; width: 100%; margin: 0 auto; padding: 32px 28px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 20px 50px rgba(34,42,38,.1); }
.co-head { margin-bottom: 22px; text-align: center; }
.co-emoji { display: block; font-size: 40px; line-height: 1.2; }
.co-head h2 { margin: 4px 0 6px; font-size: 26px; font-weight: 800; }
.co-head p { margin: 0; color: #6a6d64; font-size: 12px; line-height: 1.8; }
.checkout-form-panel .order-form { gap: 17px; }
.checkout-form-panel .form-field { gap: 8px; color: #2b332e; font-size: 12px; font-weight: 700; }
.req { color: #e0443e; font-style: normal; }
.checkout-form-panel .form-field input, .checkout-form-panel .form-field select { min-height: 50px; padding: 0 14px; border: 1.5px solid #d9d8cf; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.checkout-form-panel .form-field input:focus, .checkout-form-panel .form-field select:focus { outline: 0; border-color: #2fbf6c; box-shadow: 0 0 0 4px rgba(47,191,108,.18); }
.checkout-form-panel .form-field select:disabled { background: #f3f2ed; color: #9a9b92; }
.dm { margin: 0; padding: 0; border: 0; min-width: 0; }
.dm legend { margin-bottom: 8px; padding: 0; color: #2b332e; font-size: 12px; font-weight: 700; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-card { position: relative; cursor: pointer; }
.dm-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dm-body { display: grid; gap: 4px; justify-items: center; align-content: center; min-height: 66px; padding: 10px 8px; border: 1.5px solid #d9d8cf; border-radius: 14px; background: #fff; font-size: 13px; text-align: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.dm-body small { color: #8a8c82; font-size: 10px; }
.dm-card input:checked + .dm-body { border-color: #2fbf6c; background: #eaf8f0; box-shadow: 0 0 0 4px rgba(47,191,108,.15); }
.dm-card input:focus-visible + .dm-body { outline: 2px solid var(--ink); outline-offset: 2px; }
.co-sum { display: grid; gap: 11px; padding: 16px; border: 1.5px solid #e6e4dc; border-radius: 14px; background: #fbfaf6; font-size: 13px; }
.co-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.co-sum strong { font: 600 13px var(--arabic); }
.co-sum .tot { padding-top: 11px; border-top: 1px dashed #d4d3ca; font-weight: 800; font-size: 15px; }
.co-sum .tot strong { color: #1e9e55; font-size: 20px; font-weight: 800; }
.checkout-form-panel .shipping-note { margin: -6px 0 0; color: #878980; font-size: 10px; text-align: center; }
.checkout-submit { position: relative; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 58px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #1fa65a, #0f8a47); color: #fff; font: 800 16px var(--arabic); cursor: pointer; box-shadow: 0 10px 24px rgba(30,158,85,.35); transition: transform .2s, filter .2s; }
.checkout-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.checkout-submit::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); animation: adShine 2.6s ease-in-out infinite; }
.co-trust { margin: 0; color: #5f645b; font-size: 12px; text-align: center; }
.checkout-summary { position: sticky; top: 20px; padding: 24px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 20px 50px rgba(34,42,38,.08); }
.checkout-item { grid-template-columns: 104px 1fr; gap: 15px; }
.checkout-item img { width: 104px; height: 118px; border-radius: 14px; object-fit: contain; background: #f6f4ee; }
.checkout-item-copy h3 { font-size: 14px; font-weight: 600; }
.checkout-item-copy p { font-size: 11px; }
.checkout-item-copy strong { font: 600 13px var(--arabic); color: #1e9e55; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { position: static; order: -1; } .checkout-form-panel { padding: 26px 18px; } }
@media (prefers-reduced-motion: reduce) { .checkout-submit::after { animation: none; } }

/* ===== حذف قطعة من صفحة الطلب ===== */
.checkout-item { position: relative; transition: opacity .22s, transform .22s; }
.checkout-item.is-removing { opacity: 0; transform: translateX(-16px); }
.checkout-item-remove { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #f0c9c6; border-radius: 50%; background: #fff5f4; font-size: 15px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s, border-color .2s; }
.checkout-item-remove:hover, .checkout-item-remove:focus-visible { border-color: #e0443e; background: #ffe3e1; transform: scale(1.1); }


html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171b19;
  --paper-deep: #202622;
  --ink: #edf0e9;
  --muted: #b3b8af;
  --line: #38413b;
  --sage: #a8b59e;
  --sage-pale: #303a32;
  --coral: #e39b84;
  --white: #242a26;
}
html[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .announcement { background: #0e1110; color: #f1f1eb; }
html[data-theme="dark"] .announcement-en { color: #aeb5ad; }
html[data-theme="dark"] .ad-sc { background: var(--paper-deep) !important; color: var(--ink); }
html[data-theme="dark"] .ad-n, html[data-theme="dark"] .ad-d { color: #b3b8af; }
html[data-theme="dark"] .ad-t em { color: var(--sage); }
html[data-theme="dark"] .ad-ph::before { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .product-image, html[data-theme="dark"] .hero-image-wrap, html[data-theme="dark"] .about-image-frame, html[data-theme="dark"] .dialog-image { background: #242a26; }
html[data-theme="dark"] .product-image img, html[data-theme="dark"] .hero-image-wrap img, html[data-theme="dark"] .about-image-frame img, html[data-theme="dark"] .dialog-image img { mix-blend-mode: normal; }
html[data-theme="dark"] .family-love-card, html[data-theme="dark"] .checkout-summary, html[data-theme="dark"] .checkout-form-panel { background: #202622; }
html[data-theme="dark"] .product-tag { background: rgba(23,27,25,.9); color: #d5d9d0; }
html[data-theme="dark"] .button-dark { background: #d58d76; color: #1b211d; }
html[data-theme="dark"] .button-dark:hover { background: #e5a18a; }
html[data-theme="dark"] .button-outline { color: var(--ink); }
html[data-theme="dark"] .cart-drawer { background: #1c221e; }
html[data-theme="dark"] .product-dialog { background: #1c221e; color: var(--ink); }
html[data-theme="dark"] .dialog-close, html[data-theme="dark"] .hero-arrow { background: rgba(30,36,32,.95); color: var(--ink); }
html[data-theme="dark"] .dialog-close:hover, html[data-theme="dark"] .hero-arrow:hover { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background-color: #1c221e; color: var(--ink); border-color: #566158; }
html[data-theme="dark"] input::placeholder { color: #9ba39a; }
html[data-theme="dark"] .checkout-submit { background: #d58d76; color: #1b211d; }
html[data-theme="dark"] .toast { background: #edf0e9; color: #171b19; }
html[data-theme="dark"] .language-switch button:hover, html[data-theme="dark"] .language-switch button[aria-pressed="true"] { background: #303a32; }

/* ===== التصنيفات ===== */
.cat-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

/* ===== الأدمن ===== */
.admin-btn { margin-inline-start: 14px; padding: 2px 9px; border: 1px solid #5a625d; border-radius: 99px; background: transparent; color: #bac0b9; font: 9px var(--mono); cursor: pointer; }
.admin-btn:hover { color: #fff; border-color: #fff; }
.admin-dialog { width: min(460px, 92vw); max-height: 90vh; padding: 28px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.admin-dialog::backdrop { background: rgba(20, 24, 22, .55); }
.admin-form { display: grid; gap: 12px; }
.admin-form h2 { margin: 0 0 4px; font-size: 20px; }
.admin-form label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.admin-form input, .admin-form select, .admin-form textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); font: 14px var(--arabic); }
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-preview { width: 90px; height: 100px; object-fit: cover; border-radius: 3px; }
.admin-msg { margin: 0; min-height: 1em; color: var(--coral); font-size: 12px; }
.admin-list { display: grid; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-list h3 { margin: 0; font-size: 14px; }
.admin-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.admin-item img { width: 38px; height: 44px; object-fit: cover; border-radius: 3px; }
.admin-item span { flex: 1; }
.admin-item button { border: 0; background: none; color: var(--coral); cursor: pointer; font: 12px var(--arabic); }
@media (max-width: 560px) { .cat-tiles { gap: 10px; } .cat-tile { min-height: 92px; padding: 14px 16px; } .cat-tile strong { font-size: 21px; } .announcement { flex-wrap: wrap; } }

.product-cat { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 3px 9px; border-radius: 99px; background: var(--white); color: var(--ink); font: 600 10px var(--latin); direction: ltr; }
.admin-item select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--ink); font: 12px var(--arabic); }

/* روابط Girls / Boys لافتة للعين */
.nav-link[href="/girls.html"], .nav-link[href="/boys.html"] { padding: 8px 20px; border-radius: 99px; color: #1d2a33; font: 800 13px var(--latin); letter-spacing: .06em; box-shadow: 0 2px 0 rgba(0,0,0,.12); transition: transform .2s var(--ease), box-shadow .2s; }
.nav-link[href="/girls.html"] { background: #f7a8c8; }
.nav-link[href="/boys.html"] { background: #8fc4f2; }
.nav-link[href="/girls.html"]::after, .nav-link[href="/boys.html"]::after { display: none; }
.nav-link[href="/girls.html"]:hover, .nav-link[href="/boys.html"]:hover { color: #1d2a33; transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.nav-link[href="/girls.html"].active { background: #ee86b0; box-shadow: 0 0 0 2px #1d2a33; }
.nav-link[href="/boys.html"].active { background: #66aef0; box-shadow: 0 0 0 2px #1d2a33; }
@media (max-width: 560px) { .nav-link[href="/girls.html"], .nav-link[href="/boys.html"] { padding: 7px 16px; font-size: 12px; } }

/* رابط Shop بالأخضر */
.nav-link[href="/#products"] { padding: 8px 20px; border-radius: 99px; background: #a9d9a0; color: #1d2a33; font: 800 13px var(--latin); letter-spacing: .06em; box-shadow: 0 2px 0 rgba(0,0,0,.12); transition: transform .2s var(--ease), box-shadow .2s; }
.nav-link[href="/#products"]::after { display: none; }
.nav-link[href="/#products"]:hover { color: #1d2a33; transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.nav-link[href="/#products"].active { background: #7fc673; box-shadow: 0 0 0 2px #1d2a33; }
@media (max-width: 560px) { .nav-link[href="/#products"] { padding: 7px 16px; font-size: 12px; } }

/* رابط About Us بالأصفر الدافئ */
.nav-link[href="/about.html"] { padding: 8px 20px; border-radius: 99px; background: #f8d98a; color: #1d2a33; font: 800 13px var(--latin); letter-spacing: .06em; box-shadow: 0 2px 0 rgba(0,0,0,.12); transition: transform .2s var(--ease), box-shadow .2s; }
.nav-link[href="/about.html"]::after { display: none; }
.nav-link[href="/about.html"]:hover { color: #1d2a33; transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.nav-link[href="/about.html"].active { background: #f3c85c; box-shadow: 0 0 0 2px #1d2a33; }
@media (max-width: 560px) { .nav-link[href="/about.html"] { padding: 7px 16px; font-size: 12px; } }

/* منع التفاف نص روابط القائمة إلى سطرين */
.nav-link { white-space: nowrap; }

/* تصنيفات الأقسام الفرعية (ملابس / أحذية ...) */
.type-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.type-tab { padding: 10px 24px; border: 1px solid var(--line, #d9d6cc); border-radius: 99px; background: var(--white, #fff); color: var(--ink, #222); font: 600 15px var(--arabic); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.type-tab:hover { border-color: var(--ink, #222); }
.type-tab.is-on { background: var(--ink, #222); color: var(--white, #fff); border-color: var(--ink, #222); }

/* ===== ترويسة موحّدة واحترافية ===== */
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
.site-header { grid-template-columns: auto 1fr auto; column-gap: 24px; padding: 16px 5.2%; }
.main-nav { justify-self: center; gap: 10px; }
.main-nav .nav-link { min-width: 96px; padding: 9px 18px; text-align: center; font-size: 12.5px; }
.cart-trigger { grid-column: 3; padding: 9px 4px; }
.site-tools { grid-column: 3; grid-row: 1; justify-self: end; margin-inline-end: 0; gap: 8px; }
.language-switch { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.5); }
.language-switch button { width: 32px; height: 28px; border: 0; border-radius: 99px; }
.language-switch button:hover, .language-switch button[aria-pressed="true"] { background: var(--white); box-shadow: 0 0 0 1.5px var(--coral); }
.language-switch svg { width: 20px; height: 14px; }
.theme-toggle { width: 34px; height: 34px; }
@media (min-width: 761px) {
  .site-header { grid-template-columns: auto 1fr auto auto; }
  .cart-trigger { grid-column: 4; }
  .site-tools { grid-column: 3; }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto auto; padding: 12px 4%; row-gap: 12px; column-gap: 10px; }
  .brand { grid-column: 1; grid-row: 1; }
  .site-tools { grid-column: 2; grid-row: 1; justify-self: end; }
  .cart-trigger { grid-column: 3; grid-row: 1; }
  .cart-label { display: none; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding-top: 0; justify-self: stretch; }
  .main-nav .nav-link { min-width: 0; padding: 9px 4px; font-size: 11.5px; letter-spacing: .02em; }
  .brand-name small { display: none; }
}
@media (max-width: 400px) {
  .language-switch button { width: 27px; } .language-switch svg { width: 17px; height: 12px; }
  .theme-toggle { width: 30px; height: 30px; font-size: 16px; }
  .brand-mark { display: none; }
}

/* ===== ظهور تدريجي عند التمرير ===== */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-d, 0ms); }
.rv.rv-fade { transform: none; }
.rv.is-in { opacity: 1; transform: none; }
.rv .product-image img { transform: scale(1.1); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-d, 0ms); }
.rv.is-in .product-image img { transform: none; }
.site-header { animation: hdr-in .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hdr-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv, .rv .product-image img, .site-header { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; } }

/* ---- Maria & Mira For Kids logo ---- */
.brand-logo { display: block; height: 54px; width: auto; max-width: none; }
.footer-logo { display: block; height: 40px; width: auto; max-width: none; }
@media (max-width: 760px) { .brand-logo { height: 46px; } }
@media (max-width: 390px) { .brand-logo { height: 42px; } }

/* العروض الخاصة */
.deal-badge { position: absolute; top: 13px; left: 13px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--coral); color: #fff; font: 700 10px var(--arabic); letter-spacing: .01em; box-shadow: 0 3px 10px rgba(215,132,109,.45); pointer-events: none; }
.deal-badge b { font: 800 11px var(--mono); direction: ltr; }
.deal-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #fdeee8; color: #a8452e; font-size: 12px; font-weight: 600; line-height: 1.6; }
.cart-row-info p.cart-row-deal { margin: 0 0 9px; color: #b5532f; font-size: 9.5px; font-weight: 600; line-height: 1.5; }
.cart-row-info p.cart-row-deal.is-applied { color: #1e7a4a; }
.cart-deal-lines { display: grid; gap: 5px; margin-bottom: 7px; padding-bottom: 7px; border-bottom: 1px dashed var(--line); font-size: 10px; color: #666b62; }
.cart-deal-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.cart-deal-lines strong { font: 11px var(--mono); direction: rtl; }
.cart-deal-lines .is-deal { color: #1e7a4a; font-weight: 600; }
.cart-deal-lines[hidden] { display: none; }
.co-sum .co-disc { color: #1e7a4a; }
.co-sum .co-disc[hidden] { display: none; }
.checkout-item-copy .checkout-item-deal { margin: 4px 0 0; color: #b5532f; font-size: 12px; font-weight: 600; }
.checkout-item-copy .checkout-item-deal.is-applied { color: #1e7a4a; }
html[data-theme="dark"] .deal-note { background: #3a2a25; color: #f0b8a6; }
html[data-theme="dark"] .cart-deal-lines { color: #b9beb4; }

/* ===== المخزون: غير متوفر ===== */
.product-card.is-soldout .product-image img { filter: grayscale(.85); opacity: .55; }
.soldout-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; padding: 9px 20px; border-radius: 99px; background: rgba(20, 24, 22, .85); color: #fff; font: 700 13px var(--arabic); white-space: nowrap; pointer-events: none; }
.dialog-soldout { margin: 0 0 12px; color: #b5472f; font-weight: 700; }
.dialog-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.size-select option:disabled { color: #9a9d95; }
.checkout-stock-error { margin: 0 0 14px; padding: 11px 14px; border-radius: 8px; background: #fbe9e5; color: #9a3a24; font-size: 13px; line-height: 1.6; }
