

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {

  --navy-950: #FFFDF7;
  --navy-800: #306699;
  --blue-700: #204d75;
  --blue-500: #306699;
  --blue-300: #5B93C4;
  --ice-100: #FFFDF7;
  --white: #FFFDF7;

  --bg-body: var(--white);
  --bg-panel: linear-gradient(160deg, #FFFDF7 0%, #FFFDF7 100%);
  --glass-fill: rgb(48, 102, 153);
  --glass-fill-strong: rgba(48, 102, 153);
  --glass-border: rgba(143, 160, 47, 0.161);
  --glow: 0 0 60px rgba(48, 102, 153);

  --text-primary: #FFFDF7;
  --text-secondary: rgb(255, 252, 245);
  --text-muted: rgba(23, 50, 75, 0.46);
  --text-replaced: rgb(255, 252, 245);

  --danger: #FF5C7A;
  --success: #4CE0A0;
  --brand-color: #306699;


  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --font-num: 'Poppins', 'IBM Plex Sans Arabic', sans-serif;


  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 50px -20px rgba(48, 102, 153, 0.65);
  --shadow-lift: 0 30px 70px -25px rgba(48, 102, 153, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --nav-clear: 240px;
}


[data-theme="light"] {
  --bg-body: #FFFDF7;
  --bg-panel: linear-gradient(160deg, #FFFDF7 0%, #FFFDF7 100%);
  --glass-fill: rgba(255, 253, 247, 0.65);
  --glass-fill-strong: rgba(255, 253, 247, 0.85);
  --glass-border: rgba(48, 102, 153, 0.14);
  --glow: 0 0 60px rgba(48, 102, 153, 0.12);

  --text-primary: #306699;
  --text-secondary: rgba(48, 102, 153, 0.68);
  --text-muted: rgba(48, 102, 153, 0.46);

  --shadow-soft: 0 20px 50px -20px rgba(48, 102, 153, 0.25);
  --shadow-lift: 0 30px 70px -25px rgba(48, 102, 153, 0.28);
}
html, body { transition: background-color 0.4s var(--ease, ease), color 0.4s var(--ease, ease); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; margin: 0; }
p { margin: 0; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--blue-500); color: var(--white); }


body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--navy-950);
}

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

:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 48px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 253, 247, 0.35);
  transform: scale(0);
  border-radius: inherit;
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
  z-index: -1;
}
.btn:active::after { transform: scale(2.4); opacity: 1; transition: 0s; }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); box-shadow: 0 15px 35px -12px rgba(48, 102, 153, 0.65); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 45px -12px rgba(48, 102, 153, 0.8); }
.btn-ghost { background: var(--glass-fill); color: var(--text-primary); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); }
.btn-ghost:hover { background: rgba(48, 102, 153, 0.16); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue-300); border: 1.5px solid var(--blue-700); }
.btn-outline:hover { background: rgba(48, 102, 153, 0.1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), height 0.4s var(--ease);
}
.site-header.is-scrolled {
  height: 64px;
  background: var(--glass-fill-strong);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 15px 40px -20px rgba(0,0,0,0.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.header-search { display: flex; align-items: center; }


.logo-emblem {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px; height: 124px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 520;
  transition: top 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease);
}
.logo-emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45)); }
.logo-emblem__mark { font-family: var(--font-num); font-weight: 700; font-size: 1.9rem; color: var(--white); line-height: 1; text-shadow: 0 6px 18px rgba(0,0,0,0.5); }
.logo-emblem__name { font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 3px; color: var(--blue-300); margin-top: 4px; }


.site-header.is-scrolled .logo-emblem { top: 3px; width: 60px; height: 60px; }
.site-header.is-scrolled .logo-emblem .logo-emblem__mark { font-size: 1.05rem; }
.site-header.is-scrolled .logo-emblem .logo-emblem__name { display: none; }


.brand-pill {
  position: fixed;
  top: 158px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 490;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 300px;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-soft);
  transition: top 0.45s var(--ease), padding 0.45s var(--ease);
}
.brand-pill a { flex: 1; text-align: center; padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.86rem; color: var(--text-secondary); transition: all 0.3s var(--ease); white-space: nowrap; }
.brand-pill a:hover { color: var(--text-primary); }
.brand-pill a.is-active { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #FFFDF7; box-shadow: 0 8px 20px -6px rgba(48, 102, 153, 0.6); }


.brand-pill--hero-linked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s, top 0.45s var(--ease), padding 0.45s var(--ease);
}
.brand-pill--hero-linked.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.site-header.is-scrolled + .brand-pill { top: 74px; padding: 6px; }
.site-header.is-scrolled + .brand-pill a { padding: 9px 18px; font-size: 0.8rem; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.5px; color: var(--white); }
.brand__mark {
  width: 38px; height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}
.main-nav a::before {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--blue-300);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:hover::before, .main-nav a.is-active::before { transform: scaleX(1); }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.icon-btn:hover { background: rgba(255, 253, 247, 0.08); border-color: var(--glass-border); transform: translateY(-2px) scale(1.05); }
.icon-btn.is-active { background: rgba(48, 102, 153, 0.18); border-color: rgba(48, 102, 153, 0.4); color: var(--blue-300); }
.icon-btn svg { width: 21px; height: 21px; }
body:has(.hero) .site-header:not(.is-scrolled) .icon-btn { color: var(--white); }
.search-close { color: var(--white); }
.icon-btn .badge {
  position: absolute; top: 2px; inset-inline-end: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--blue-500);
  color: var(--white);
  font-family: var(--font-num);
  font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--navy-950);
  transition: transform 0.3s var(--ease);
}
.icon-btn .badge.is-empty { opacity: 0; transform: scale(0.4); }
.icon-btn .badge.is-pop { animation: badge-pop 0.45s var(--ease); }
@keyframes badge-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.55); }
  60% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

.theme-toggle { position: relative; }
.theme-toggle svg.icon-sun, .theme-toggle svg.icon-moon {
  position: absolute; inset: 0; margin: auto; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.theme-toggle svg.icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle svg.icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); position: absolute; }
.theme-toggle.is-light svg.icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme-toggle.is-light svg.icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--glass-fill-strong);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column; padding: 24px;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 480;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a { padding: 16px 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; border-bottom: 1px solid var(--glass-border); color: var(--text-primary); }


.search-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(48, 102, 153, 0.82);
  backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-box { width: min(600px, 90vw); }
.search-box form { display: flex; align-items: center; gap: 12px; background: var(--glass-fill-strong); border: 1px solid var(--glass-border); border-radius: var(--radius-pill); padding: 8px 8px 8px 22px; }
.search-box input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 1.05rem; padding: 10px 0; }
.search-box input:focus { outline: none; }
.search-close { position: absolute; top: 26px; inset-inline-end: 26px; }
.search-clear { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; flex-shrink: 0; }
.search-clear:hover { color: var(--text-primary); }

.search-results { margin-top: 16px; max-height: 56vh; overflow-y: auto; }
.search-results:empty { margin-top: 0; }
.search-section-title { font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }
.search-recent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.search-recent-header .search-section-title { margin-bottom: 0; }
.search-clear-all { font-size: 0.78rem; color: var(--blue-300); background: none; border: none; cursor: pointer; padding: 2px 4px; }
.search-clear-all:hover { text-decoration: underline; }

.search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.search-chips:last-child { margin-bottom: 0; }
.search-chip { background: var(--glass-fill-strong); border: 1px solid var(--glass-border); color: var(--text-secondary); padding: 7px 16px; border-radius: var(--radius-pill); font-size: 0.85rem; cursor: pointer; transition: all 0.25s var(--ease); }
.search-chip:hover { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); border-color: transparent; transform: translateY(-1px); }

.search-result-list { display: flex; flex-direction: column; gap: 4px; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; cursor: pointer; transition: background 0.2s var(--ease); text-align: start; background: none; border: none; width: 100%; }
.search-result-item:hover, .search-result-item.is-active { background: rgba(48, 102, 153, 0.12); }
.search-result-thumb { width: 46px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--glass-fill-strong); }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { display: block; font-weight: 600; color: var(--text-primary); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-name mark { background: transparent; color: var(--blue-300); font-weight: 800; }
.search-result-meta { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.search-result-price { font-size: 0.85rem; font-weight: 700; color: var(--blue-300); white-space: nowrap; flex-shrink: 0; }

.search-view-all { display: block; text-align: center; margin-top: 12px; padding: 12px; border-radius: var(--radius-pill); background: var(--glass-fill-strong); border: 1px solid var(--glass-border); color: var(--blue-300); font-weight: 700; font-size: 0.86rem; text-decoration: none; transition: all 0.25s var(--ease); }
.search-view-all:hover { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); border-color: transparent; }

.search-empty { text-align: center; color: var(--text-muted); padding: 28px 12px; font-size: 0.9rem; line-height: 1.7; }


.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); will-change: transform, opacity, filter; }
[data-reveal="fade"] { transform: translateY(0); }
[data-reveal="slide"] { transform: translateY(46px); }
[data-reveal="slide-right"] { transform: translateX(-46px); }
[data-reveal="slide-left"] { transform: translateX(46px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
[data-reveal].is-revealed { opacity: 1; transform: none; filter: blur(0); }


.toast-host {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--glass-fill-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  transform: translateY(24px) scale(0.92);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.toast.is-visible { transform: translateY(0) scale(1); opacity: 1; }
.toast.is-leaving { transform: translateY(10px) scale(0.94); opacity: 0; }
.toast__icon { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--success), #1f9d6c); color: #04331f; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.toast__msg { flex: 1; }
.toast__action { background: none; border: none; color: var(--blue-300); font-weight: 700; padding: 4px 6px; white-space: nowrap; }
.toast__close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; line-height: 1; padding: 0 2px; }

.whatsapp-fab {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C4A);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(18, 140, 74, 0.75);
  animation: fab-bounce 3.2s ease-in-out infinite;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 18px 40px -8px rgba(18, 140, 74, 0.9); }
.whatsapp-fab svg { width: 30px; height: 30px; }
@keyframes fab-bounce { 0%, 82%, 100% { transform: translateY(0); } 88% { transform: translateY(-9px); } 94% { transform: translateY(0); } }

.site-footer {
  margin-top: 100px;
  padding: 70px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(48, 102, 153, 0.7) 30%, #306699 100%);
  border-top: 1px solid var(--glass-border);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: rgba(255, 253, 247, 0.68); margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: 1rem; color: #FFFDF7; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgb(48, 102, 153); font-size: 0.92rem; transition: color 0.3s, padding-inline-start 0.3s; }
.footer-col a:hover { color: var(--blue-300); padding-inline-start: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 253, 247, 0.06); border: 1px solid rgba(255, 253, 247, 0.18); }
.footer-social a:hover { background: var(--blue-700); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 253, 247, 0.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255, 253, 247, 0.42); font-size: 0.85rem; }
.dev-credit-link { color: rgba(255, 253, 247, 0.42); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s var(--ease); }
.dev-credit-link:hover { color: var(--blue-300); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .logo-emblem { width: 90px; height: 90px; top: 18px; }
  .logo-emblem__mark { font-size: 1.4rem; }
  .logo-emblem__name { font-size: 0.56rem; }
  .site-header.is-scrolled .logo-emblem { width: 70px; height: 60px; top: 1px; }
  .site-header.is-scrolled .logo-emblem .logo-emblem__mark { font-size: 0.9rem; }
  .brand-pill { top: 118px; padding: 6px; min-width: 0; }
  .brand-pill a { padding: 9px 13px; font-size: 0.76rem; }
  .site-header.is-scrolled + .brand-pill { top:69px; padding: 5px; }
  .site-header.is-scrolled + .brand-pill a { padding: 7px 11px; font-size: 0.72rem; }
  :root { --nav-clear: 190px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .whatsapp-fab { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
  .toast-host { inset-inline-end: 12px; bottom: 12px; }
}


.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 253, 247, 0.05), rgba(255, 253, 247, 0.02));
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 253, 247, 0.10) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }


.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 253, 247, 0.2); border-top-color: var(--blue-300); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; }
.tag-new { background: rgba(48, 102, 153, 0.18); color: var(--blue-300); border: 1px solid rgba(48, 102, 153, 0.35); }
.tag-sale { background: rgba(255,92,122,0.18); color: #ff9db0; border: 1px solid rgba(255,92,122,0.35); }
.tag-best { background: rgba(76,224,160,0.16); color: var(--success); border: 1px solid rgba(76,224,160,0.35); }


.section { padding-block: clamp(50px, 8vw, 100px); }
.section-eyebrow { display: inline-block; color: var(--blue-300); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px; margin-bottom: 10px; }
.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 1.02rem; }
.section-cta { text-align: center; margin-top: 44px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: rgba(48, 102, 153, 0.4); }

.product-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__media a { display: block; height: 100%; }

.product-card__tags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }

.fav-btn {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(48, 102, 153, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 253, 247, 0.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.fav-btn svg { width: 18px; height: 18px; stroke: #FFFDF7; fill: none; stroke-width: 2; transition: fill 0.3s, stroke 0.3s, transform 0.4s var(--ease); }
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.is-active svg { fill: var(--danger); stroke: var(--danger); animation: pop 0.4s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

.product-card__oos-overlay {
  position: absolute; inset: 0; background: rgba(48, 102, 153, 0.6);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.product-card__oos-overlay span {
  background: rgba(48, 102, 153, 0.85); border: 1px solid var(--glass-border);
  padding: 8px 18px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem;
}

.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.product-card__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.product-card__name a { color: var(--text-primary); }
.product-card__desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.product-card__meta-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.product-card__price { font-family: var(--font-num); font-weight: 700; font-size: 1.08rem; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.product-card__price .old { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; font-weight: 500; }
.product-card__rating { font-size: 0.75rem; color: var(--blue-300); display: flex; align-items: center; gap: 4px; }

.swatches { display: flex; gap: 6px; align-items: center; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255, 253, 247, 0.35); }

.product-card__add {
  margin-top: 8px; width: 100%; padding: 11px; border-radius: var(--radius-pill);
  background: rgba(255, 253, 247, 0.06); border: 1px solid var(--glass-border); color: var(--text-primary);
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.product-card__add:hover:not(:disabled) { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); border-color: transparent; }
.product-card__add:disabled { opacity: 0.4; cursor: not-allowed; }
.product-card__add.is-added { background: var(--success); color: #04331f; border-color: transparent; }

/* Skeleton card */
.product-card.is-skeleton .skeleton { border-radius: var(--radius-sm); }
.product-card.is-skeleton .sk-line { height: 12px; margin-bottom: 8px; border-radius: 6px; }

/* ---------------------------------------------------------------------- */
/* THEMED CUSTOM DROPDOWNS — replaces native <select> popups              */
/* ---------------------------------------------------------------------- */
.custom-select { position: relative; display: inline-block; }
.custom-select > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }

.custom-select__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--glass-fill); border: 1px solid var(--glass-border); color: var(--text-primary);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.86rem; text-align: start;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.custom-select__trigger:hover { border-color: rgba(48, 102, 153, 0.4); }
.custom-select__trigger svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-300); transition: transform 0.3s var(--ease); }
.custom-select.is-open .custom-select__trigger svg { transform: rotate(180deg); }
.custom-select.is-open .custom-select__trigger { border-color: var(--blue-500); }
.custom-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Selects that live inside a form field (governorate/city) look like inputs */
.field .custom-select { display: block; width: 100%; }
.field .custom-select__trigger {
  background: rgba(255, 253, 247, 0.04); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 0.95rem; width: 100%;
}

.custom-select.is-disabled .custom-select__trigger { opacity: 0.45; cursor: not-allowed; }

.custom-select__panel {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 100%;
  width: max-content; max-width: min(320px, 90vw);
  background: var(--glass-fill-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%); box-shadow: var(--shadow-soft);
  max-height: 280px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.custom-select.is-open .custom-select__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.custom-select__list { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; }
.custom-select__option {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-secondary);
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.custom-select__option:hover { background: rgba(48, 102, 153, 0.12); color: var(--white); }
.custom-select__option.is-selected { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: var(--white); font-weight: 700; }
.custom-select__option.is-disabled { display: none; }

.custom-select__list::-webkit-scrollbar { width: 6px; }
.custom-select__list::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
