:root {
  --alabaster: #F9F4F0;
  --charcoal: #1A1A1A;
  --black: #000000;
  --white: #FFFFFF;
  --gold: #C8A45C;
  --terracotta: #D97757;
  --border: #E5E0DA;
  --muted: #6B6560;
  --font-display: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--alabaster);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.68;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }

.bidi {
  display: inline-block;
  unicode-bidi: isolate;
}

/* Top Alabaster Announcement Bar */
.sb-announce {
  height: 40px;
  background: var(--alabaster);
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 12.5px;
  font-weight: 500;
  position: relative;
  z-index: 60;
}

.sb-ann-arrow {
  background: none;
  border: 0;
  font-size: 14px;
  padding: 2px 6px;
  color: var(--muted);
}

/* Overlaid Header */
.sb-header {
  position: absolute;
  top: 40px;
  inset-inline: 0;
  z-index: 55;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
}

.sb-header.dark-ink {
  position: sticky;
  top: 0;
  background: rgba(249, 244, 240, 0.94);
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.sb-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.sb-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.sb-links a {
  position: relative;
  padding-bottom: 3px;
}

.sb-links a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.sb-links a:hover::after,
.sb-links a.active::after { transform: scaleX(1); }

.sb-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.sb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 0;
  transition: transform 0.22s var(--ease), opacity 0.22s;
  white-space: nowrap;
}

.sb-pill:hover { transform: translateY(-2px); }
.sb-pill-white { background: var(--white); color: var(--charcoal); }
.sb-pill-dark { background: var(--charcoal); color: var(--white); }
.sb-pill-sm { padding: 7px 15px; font-size: 12.5px; }

/* SPA Views */
.sb-view { display: none; }
.sb-view.active { display: block; }

/* 1. Full-Viewport 50/50 Split Hero */
.sb-hero {
  min-height: calc(100svh - 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sb-panel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px;
}

.sb-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s;
}

.sb-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.34) 100%);
}

.sb-hero-copy {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 520px;
}

.sb-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.3vw, 4rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 8px;
}

.sb-wave-svg {
  width: 210px;
  height: 16px;
  display: block;
  margin-bottom: 14px;
}

.sb-slide-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.sb-dots {
  display: flex;
  gap: 8px;
}

.sb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  padding: 0;
}

.sb-dot.active { background: var(--white); transform: scale(1.2); }

/* 2. Best Sellers / Refill Sets Border-Collapsed 4-Up Grid */
.sb-sellers {
  padding: 72px 40px;
  background: var(--alabaster);
}

.sb-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 34px;
}

.sb-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

.sb-tab-btn {
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  color: rgba(26, 26, 26, 0.36);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.sb-tab-btn.active {
  color: var(--charcoal);
}

.sb-tab-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--charcoal);
  opacity: 0;
  transition: opacity 0.25s;
}

.sb-tab-btn.active .sb-tab-dot { opacity: 1; }

.sb-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-inline-start: 1px solid var(--border);
}

.sb-pcard {
  border-inline-end: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background: var(--alabaster);
}

.sb-pkicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.sb-pwell {
  aspect-ratio: 3 / 3.4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #EFE9E2;
}

.sb-pwell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.sb-pcard:hover .sb-pwell img { transform: scale(1.05); }

/* 3. Pure Black 3-Column Categories Showcase */
.sb-cats {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 640px;
}

.sb-cat-tile {
  position: relative;
  overflow: hidden;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.14);
}

.sb-cat-tile:last-child { border-inline-end: 0; }

.sb-cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}

.sb-cat-tile:hover img {
  transform: scale(1.04);
  opacity: 0.72;
}

.sb-cat-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 600;
  line-height: 1.25;
}

.sb-cat-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Minimal Showcase Rail */
.sb-showcase-bar {
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .sb-links { display: none; }
  .sb-hero,
  .sb-cards-4,
  .sb-cats { grid-template-columns: 1fr; }
  .sb-sellers { padding: 48px 20px; }
}
