@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/tajawal-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/tajawal-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/tajawal-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/tajawal-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/tajawal-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/tajawal-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/tajawal-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-display: swap; font-weight: 800; src: url(/fonts/tajawal-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #111414;
  --ink-2: #5f6666;
  --gray: #8a8a8a;
  --line: #e4e7e7;
  --bg: #f5f6f6;
  --card: #ffffff;
  --accent: #13797e;
  --accent-ink: #0f5c60;
  --accent-soft: #e7f3f3;
  --danger: #b3261e;
  --radius: 18px;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px clamp(14px, 4vw, 40px); background: #ffffffeb; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; }
.brand > img { height: 34px; width: auto; }
.top-links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; font-weight: 500; }
.top-links a { color: var(--ink-2); }
.top-links a:hover { color: var(--accent); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 500; }
.cart-btn:hover { background: var(--accent-ink); }
.cart-btn b { background: #fff; color: var(--accent-ink); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; }
@media (max-width: 640px) {
  .top-links { display: none; } .brand > img { height: 28px; }
  /* بالموبايل زر السلة ينزل جوا يم الإبهام */
  /* الـ blur يخلي الزر الثابت يلزق بالهيدر بدل أسفل الشاشة، فنشيله بالموبايل */
  .top { justify-content: space-between; gap: 10px; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  :root[data-theme="dark"] .top { background: var(--bg); }
  .cart-btn { position: fixed; z-index: 30; inset-inline: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); justify-content: center; padding: 14px 20px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 24px #0b2e3040, 0 2px 6px #0000001f; }
  body[data-page="cart"] .cart-btn, body[data-page="checkout"] .cart-btn { display: none; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

main { max-width: 1200px; margin: 0 auto; padding: clamp(14px, 3vw, 28px) clamp(14px, 4vw, 40px) 60px; min-height: 70vh; }

/* hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--accent); color: #fff; border-radius: 28px; padding: clamp(26px, 6vw, 56px); margin-bottom: 24px; display: grid; gap: 12px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%237fd3d6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-20 330 C 180 180, 320 420, 520 250 S 760 60, 840 120'/%3E%3Cpath d='M-20 350 C 180 200, 320 440, 520 270 S 760 80, 840 140'/%3E%3Cpath d='M-20 370 C 180 220, 320 460, 520 290 S 760 100, 840 160'/%3E%3Cpath d='M-20 390 C 180 240, 320 480, 520 310 S 760 120, 840 180'/%3E%3Cpath d='M-20 410 C 180 260, 320 500, 520 330 S 760 140, 840 200'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.hero-in { position: relative; display: grid; gap: 12px; justify-items: start; }
.hero .kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #bfe9ea; direction: ltr; text-align: end; }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 54px); line-height: 1.15; font-weight: 800; }
.hero p { margin: 0; color: #e2f4f4; max-width: 46ch; font-size: 17px; }
.hero .perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero .perks span { background: #ffffff1f; border: 1px solid #ffffff38; border-radius: 999px; padding: 5px 14px; font-size: 14px; }

.hero.media { min-height: clamp(380px, 62vh, 620px); align-content: end; background: var(--ink); }
.hero.media::after { opacity: 1; background: linear-gradient(to top, #0b0d0dcc 0%, #0b0d0d55 45%, #0b0d0d10 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg video { opacity: 0; transition: opacity .6s; }
.hero-bg video.on { opacity: 1; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; margin-top: 4px; }
.btn.light:hover { background: #e7f3f3; }

.hero.split { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 48px); background: var(--accent); }
.hero.split::after { opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%237fd3d6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-20 330 C 180 180, 320 420, 520 250 S 760 60, 840 120'/%3E%3Cpath d='M-20 350 C 180 200, 320 440, 520 270 S 760 80, 840 140'/%3E%3Cpath d='M-20 370 C 180 220, 320 460, 520 290 S 760 100, 840 160'/%3E%3Cpath d='M-20 390 C 180 240, 320 480, 520 310 S 760 120, 840 180'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }
.hero.split .hero-bg { position: relative; inset: auto; z-index: 0; width: min(300px, 30vw); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px #00000040; grid-column: 2; grid-row: 1; }
.hero.split .hero-in { grid-column: 1; grid-row: 1; }
@media (max-width: 760px) {
  .hero.split { grid-template-columns: 1fr; min-height: 560px; align-content: end; background: var(--ink); }
  .hero.split::after { opacity: 1; background: linear-gradient(to top, #0b0d0dd9 0%, #0b0d0d55 50%, #0b0d0d10 100%); }
  .hero.split .hero-bg { position: absolute; inset: 0; z-index: -2; width: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; grid-column: auto; grid-row: auto; }
}

/* design your own */
.design-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 40px); margin-bottom: 26px; overflow: hidden; }
.design-cta .kicker { color: #7fd3d6; font-weight: 700; font-size: 14px; }
.design-cta h2 { margin: 6px 0 8px; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.3; }
.design-cta p { margin: 0 0 14px; color: #c3cbcb; max-width: 44ch; }
.design-cta img { width: clamp(140px, 22vw, 240px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
@media (max-width: 560px) { .design-cta { grid-template-columns: 1fr; } .design-cta img { display: none; } }

/* product options */
.styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.style { padding: 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 700; display: grid; gap: 2px; }
.style small { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.style[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.size.age { direction: rtl; min-width: 0; }
.size-help { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
.size-help:hover { background: #d8eded; }
.design-mini { display: block; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.design-mini b { color: var(--accent-ink); }
.stars { color: #f2b01e; letter-spacing: 2px; }
.reviews-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; padding: 16px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.reviews-strip:hover { border-color: var(--accent); }
.reviews-strip em { font-style: normal; color: var(--accent-ink); font-weight: 700; margin-inline-start: auto; }
.reviews-mini { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }

/* collection banners */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(10px, 2vw, 16px); margin-bottom: 26px; }
.banner { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: var(--radius); aspect-ratio: 3 / 4; background: #dfe3e3; text-align: start; color: #fff; }
.banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.banner:hover img { transform: scale(1.04); }
.banner-txt { position: absolute; inset: auto 0 0 0; padding: 18px; display: grid; gap: 2px; background: linear-gradient(to top, #0b0d0dd9, #0b0d0d00); }
.banner-txt b { font-size: 22px; font-weight: 800; }
.banner-txt small { font-size: 14px; opacity: .85; }
.banner-txt em { font-style: normal; font-size: 14px; color: #9fe0e2; margin-top: 6px; }
@media (max-width: 640px) { .banners { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; } .banner { scroll-snap-align: start; } }

/* filters */
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.search { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip:hover { border-color: var(--accent); }
.chip small { opacity: .55; margin-inline-start: 4px; }
.count { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(10px, 2vw, 18px); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #13797e1f; border-color: #13797e55; }
.card .ph { aspect-ratio: 1; background: #eceeee; }
.card .ph { position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
@media (hover: hover) { .card:hover .ph img.alt { opacity: 1; } }
.card .info { padding: 10px 12px 12px; display: grid; gap: 4px; }
.card .t { font-size: 15px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.price { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: .78em; }
.badge { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; background: var(--accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.more { display: block; margin: 24px auto 0; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); padding: 50px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.btn:hover { background: #232828; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; }

/* product page */
.back { display: inline-block; margin-bottom: 14px; color: var(--ink-2); font-size: 14px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 40px); align-items: start; }
@media (max-width: 760px) { .pdp { grid-template-columns: 1fr; } }
.pdp .gallery img { width: 100%; border-radius: var(--radius); background: #eceeee; aspect-ratio: 1; object-fit: cover; }
.pdp .thumbs { display: flex; gap: 8px; margin-top: 8px; }
.pdp .thumbs img { width: 64px; height: 64px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.pdp .thumbs img.on { border-color: var(--accent); }
.pdp h1 { font-size: clamp(20px, 3vw, 28px); margin: 0 0 6px; line-height: 1.4; }
.pdp .price { font-size: 22px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.size { min-width: 52px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 600; direction: ltr; }
.size[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.label { font-size: 13px; color: var(--ink-2); margin-top: 16px; display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.desc { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }

/* cart & checkout */
.h { font-size: 24px; margin: 0 0 16px; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #eceeee; }
.line .t { font-size: 14px; font-weight: 500; }
.line .m { font-size: 13px; color: var(--ink-2); }
.sum { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; }
.sum .tot { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.hint { font-size: 14px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
form .f { display: grid; gap: 6px; margin-bottom: 14px; }
form label { font-size: 14px; font-weight: 500; }
form input, form select, form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
form textarea { min-height: 70px; resize: vertical; }
.pay { display: grid; gap: 8px; }
.pay label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-weight: 400; }
.pay label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay input { width: auto; margin-top: 5px; }
.pay small { display: block; color: var(--ink-2); }
.err { color: var(--danger); font-size: 14px; min-height: 1.4em; margin: 6px 0; }

/* status */
.center { max-width: 560px; margin: 30px auto; text-align: center; }
.center .ref { font-size: 30px; font-weight: 700; letter-spacing: .06em; direction: ltr; color: var(--accent-ink); }
.steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.steps span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); background: var(--card); }
.steps span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.prose { max-width: 680px; }
.prose li { margin-bottom: 6px; }

/* footer */
.foot { background: var(--ink); color: #b9c1c1; padding: 34px clamp(14px, 4vw, 40px) 20px; font-size: 14px; }
.foot-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.foot-logo { height: 30px; width: auto; }
.slogan { color: #7fd3d6; font-weight: 700; letter-spacing: .08em; margin-top: 10px !important; }
.foot h4 { color: #fff; margin: 0 0 8px; font-size: 15px; }
.foot p { margin: 6px 0 0; }
.foot a:hover { color: #fff; }
.copy { max-width: 1200px; margin: 24px auto 0; border-top: 1px solid #ffffff1f; padding-top: 14px; font-size: 12px; opacity: .7; direction: ltr; text-align: start; }

#toast { position: fixed; inset-inline: 0; bottom: 22px; margin: auto; width: max-content; max-width: 90vw; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; z-index: 50; }
#toast.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ================= الحركة ================= */
/* علاگة اللوگو */
.logo { position: relative; display: block; }
.logo img { height: 34px; width: auto; display: block; }
.logo .hanger { position: absolute; inset: 0; transform-origin: 49.7% 1.2%; }
.brand:hover .hanger, .logo.swing .hanger { animation: hang 1.6s cubic-bezier(.36,.07,.19,.97); }
@keyframes hang { 0%{transform:rotate(0)} 15%{transform:rotate(14deg)} 32%{transform:rotate(-10deg)} 48%{transform:rotate(7deg)} 64%{transform:rotate(-4deg)} 80%{transform:rotate(2deg)} 100%{transform:rotate(0)} }
@media (max-width: 640px) { .logo img { height: 28px; } }

/* خطوط الشريط تتحرك */
.ribbon { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .55; overflow: hidden; }
.ribbon svg { position: absolute; left: 0; top: 0; width: 200%; height: 100%; animation: wave 26s linear infinite; }
.ribbon path { fill: none; stroke: #7fd3d6; stroke-width: 2; vector-effect: non-scaling-stroke; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero:not(.media)::after, .hero.split::after { background: none; }
.hero.media:not(.split) .ribbon { display: none; }
@media (max-width: 760px) {
  .hero.split .ribbon { display: none; }
  .hero.split::after { background: linear-gradient(to top, #0b0d0dd9 0%, #0b0d0d55 50%, #0b0d0d10 100%); }
}

/* ظهور تدريجي عند النزول */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* انتقال بين الصفحات */
#app.enter { animation: pageIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* هياكل التحميل */
.sk { position: relative; overflow: hidden; background: #e7eaea; border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, #ffffffa6, transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(-100%); } }
.card.skel { pointer-events: none; }
.card.skel .ph { background: none; }
.card.skel .ph .sk { position: absolute; inset: 0; border-radius: 0; }
.sk.line { height: 12px; margin: 4px 0; }
.sk.line.short { width: 45%; }
.pdp-skel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 40px); }
.pdp-skel .sk.big { aspect-ratio: 1; border-radius: var(--radius); }
@media (max-width: 760px) { .pdp-skel { grid-template-columns: 1fr; } }

/* أضف للسلة: الصورة تطير والرقم ينط */
.fly { position: fixed; z-index: 60; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px #0003; }
.cart-btn b.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* علامة الصح */
.check { width: 88px; height: 88px; margin: 0 auto 6px; display: block; }
.check circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 252; stroke-dashoffset: 252; animation: draw .7s ease-out forwards; }
.check path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .brand:hover .hanger, .logo.swing .hanger, .ribbon svg, #app.enter, .sk::after, .cart-btn b.bump { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .check circle, .check path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- الوضع الليلي ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef1f1; --ink-2: #a9b2b2; --gray: #8d9696; --line: #2b3333;
  --bg: #0e1212; --card: #171c1c;
  --accent: #1a979d; --accent-ink: #13797e; --accent-soft: #15302f;
  --surface-dark: #1b2222;
}
:root[data-theme="dark"] .top { background: #0e1212eb; }
:root[data-theme="dark"] .btn { background: var(--ink); color: #0e1212; }
:root[data-theme="dark"] .btn.accent { color: #fff; }
:root[data-theme="dark"] .btn.ghost { background: transparent; color: var(--ink); }
:root[data-theme="dark"] .btn.light { background: #fff; color: #111414; }
:root[data-theme="dark"] .design-cta,
:root[data-theme="dark"] .foot,
:root[data-theme="dark"] #toast { background: var(--surface-dark); color: #dfe5e5; }
:root[data-theme="dark"] .foot { color: #a9b2b2; border-top: 1px solid var(--line); }
:root[data-theme="dark"] .hero.media,
:root[data-theme="dark"] .hero.split { background: #000; }
:root[data-theme="dark"] .card .ph, :root[data-theme="dark"] .pdp .gallery img,
:root[data-theme="dark"] .line img, :root[data-theme="dark"] .banner { background: #222929; }
:root[data-theme="dark"] .sk { background: #1f2626; }
:root[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, #ffffff14, transparent); }
:root[data-theme="dark"] form input, :root[data-theme="dark"] form select, :root[data-theme="dark"] form textarea { background: var(--card); }
:root[data-theme="dark"] .logo img:not(.hanger), :root[data-theme="dark"] .brand > img { filter: brightness(1.35); }

/* أزرار اللغة والوضع */
.prefs { display: flex; align-items: center; gap: 6px; }
.prefs button, .prefs select { height: 34px; min-width: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; }
.prefs button { display: grid; place-items: center; padding: 0; }
.prefs svg { width: 17px; height: 17px; }
[dir="ltr"] .size.age { direction: ltr; }
.prefs select { appearance: none; -webkit-appearance: none; text-align: center; cursor: pointer; }
@media (min-width: 641px) { .prefs { margin-inline-start: 4px; } }

/* التخفيضات */
.badge.sale { background: #b3261e; }
.badge.sale.inline { position: static; display: inline-block; vertical-align: middle; font-size: 12px; }
s.was { color: var(--gray); font-weight: 400; font-size: .85em; text-decoration-thickness: 1.5px; }
.sum .disc span:last-child { color: #17803d; font-weight: 600; }
:root[data-theme="dark"] .sum .disc span:last-child { color: #5fd48a; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; text-transform: uppercase; }
.promo-row .btn { padding: 10px 16px; }

/* الهيدر بالموبايل بالوضع الليلي: لون ثابت (ماكو blur بالموبايل) */
@media (max-width: 640px) { :root[data-theme="dark"] .top { background: var(--bg); } }
