@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/packages/shared_core/assets/fonts/Cairo-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/packages/shared_core/assets/fonts/Cairo-Bold.ttf") format("truetype");
}

:root {
  --gold: #d4af37;
  --gold-light: #e8d48a;
  --gold-dark: #b8860b;
  --ink: #0d0d0d;
  --muted: #6b6b6b;
  --page: #ffffff;
  --ink-soft: rgba(13, 13, 13, 0.8);
  --ink-faint: rgba(13, 13, 13, 0.2);
  --ink-wash: rgba(13, 13, 13, 0.05);
  --shipping-bar: #f9f4e3;
  --glass-border: rgba(13, 13, 13, 0.18);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 18px 42px rgba(0, 0, 0, 0.14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: "Cairo", "Inter", "Roboto", system-ui, sans-serif;
}

button { font: inherit; }
body { overflow: hidden; }

.landing-shell,
.legacy-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.landing-shell {
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior-y: contain;
  background: var(--page);
  color: var(--ink);
  opacity: 1;
  transition: opacity 220ms ease, visibility 220ms ease;
  -webkit-overflow-scrolling: touch;
}

html[data-glint-shell="off"] .landing-shell,
html[data-glint-shell="on"] .legacy-splash,
.landing-shell.is-hidden,
.legacy-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-glint-shell="off"] .legacy-splash { display: flex; }

.shell-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
}

/* Mirrors Flutter's FreeShippingBar: it takes the status-bar inset and
   stays on top while the page scrolls under it. */
.shell-shipping-bar {
  position: sticky;
  top: 0;
  z-index: 21;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  background: var(--shipping-bar);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.4px;
  text-align: center;
  cursor: pointer;
}

html[lang="ar"] .shell-shipping-bar {
  line-height: 1.8;
  letter-spacing: 0;
}

.has-shipping-bar .shell-topbar {
  top: var(--shell-bar-height, 39px);
  min-height: 64px;
  padding-top: 8px;
}

.shell-icon-button,
.shell-link-button {
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.shell-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.shell-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: calc(92px + var(--safe-bottom));
}

.shell-logo-section {
  display: grid;
  place-items: center;
  padding: 4px 20px 24px;
}

.shell-logo {
  width: auto;
  height: 100px;
  max-width: min(78vw, 420px);
  object-fit: contain;
}

/* Mirrors Flutter's GoogleRatingBadge under the home logo. */
.shell-rating {
  max-width: 100%;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  background: var(--ink-wash);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.shell-rating[hidden] { display: none; }

.shell-rating svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.shell-rating-star { fill: var(--gold); }

.shell-rating-value {
  margin-inline-start: 6px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.shell-rating-divider {
  width: 1px;
  height: 14px;
  margin: 0 10px;
  flex: none;
  background: var(--ink-faint);
}

.shell-rating-count {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shell-rating-chevron {
  margin-inline-start: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[dir="rtl"] .shell-rating-chevron { transform: scaleX(-1); }

.shell-announcement {
  width: 100%;
  margin: 20px 0 10px;
  padding: 10px 0;
  min-height: 44px;
  overflow: hidden;
  color: #fff;
  background: #1a1a2e;
}

.announcement-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: announcement-scroll 16s linear infinite;
}

.announcement-text {
  padding-inline: 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
}

.shell-banners { padding: 16px 20px 4px; }

.banner-frame {
  max-width: 1200px;
  height: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  background: #ececec;
}

.banner-track {
  height: 100%;
  display: flex;
  direction: ltr;
  transition: transform 600ms ease-in-out;
}

.banner-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #ececec;
  cursor: pointer;
}

.banner-slide img,
.brand-card img,
.product-image img {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 280ms ease;
}

.banner-slide img { object-fit: cover; }
.image-ready { opacity: 1 !important; }

.banner-dots {
  min-height: 22px;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.18);
  transition: width 220ms ease, background 220ms ease;
}

.banner-dot.is-active {
  width: 24px;
  background: var(--gold);
}

.shell-section { padding: 40px 0 0; }

.shell-section-header {
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shell-section h2,
.welcome-card h1 {
  margin: 0;
  color: var(--ink);
}

.shell-section h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
}

.gold-rule {
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
}

.shell-link-button {
  min-height: 40px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

/* Brands mirror Flutter's BrandsSection: 16px sliver gap + 40px section
   padding, a 36px title centred against "View all", then a 220px row. */
#shell-brands { padding: 56px 0 44px; }

#shell-brands .shell-section-header { align-items: center; }

#shell-brands h2 {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 1.5px;
}

html[lang="ar"] #shell-brands h2 { line-height: 1.32; }

.brand-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 220px;
  margin-top: 32px;
  padding: 20px 24px;
  scroll-snap-type: x proximity;
  /* Without this, snapping the first card in RTL eats the side padding. */
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}

.brand-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .brand-list { min-height: 260px; padding-block: 0; }
}

.brand-card {
  color: inherit;
  text-decoration: none;
  width: 140px;
  height: 180px;
  flex: 0 0 140px;
  border: 1px solid rgba(13, 13, 13, 0.05);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.brand-card:hover {
  transform: scale(1.04);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 18px 38px rgba(212, 175, 55, 0.16);
}

.brand-card img { object-fit: contain; }

.brand-placeholder,
.product-placeholder,
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(212, 175, 55, 0.45);
  background: rgba(13, 13, 13, 0.04);
}

.welcome-card,
.product-card {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
