:root {
  --sand: #EDEAE4;
  --card: #FDFCFA;
  --card-alt: #FAF6F1;
  --ink: #4A2E1F;
  --ink-soft: #6b5445;
  --ink-muted: #8a6a54;
  --gold: rgba(201, 162, 75, 0.5);
  --gold-soft: rgba(201, 168, 104, 0.16);
  --gold-solid: #C9A24B;
  --terracotta: #C1633A;
  --terracotta-tint: rgba(193, 99, 58, 0.12);
  --terracotta-dark: #96482A;
  --terracotta-deep: #8f4626;
  --green: #1F5C4E;
  --hairline: rgba(74, 46, 31, 0.1);
  --icon-inactive: #CFC0AC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sand);
  font-family: 'Jost', sans-serif;
  color: var(--ink);
  padding-bottom: 84px;
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-deep); }

button { font-family: inherit; }

/* ---------- Site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(237, 234, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__brand {
  display: flex;
  align-items: center;
}

.site-header__logo {
  display: block;
  height: 52px;
  width: auto;
}

.site-header__nav {
  display: none;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-header__nav a.is-active {
  color: var(--terracotta);
}

@media (min-width: 720px) {
  .site-header__nav { display: flex; }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.site-header__icon-btn {
  background: none;
  border: none;
  padding: 4px;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  position: relative;
}

.site-header__icon-btn:hover { color: var(--terracotta); }

.site-header__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--terracotta);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------- Bottom tab bar (mobile) ---------- */

.bottom-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #FFFFFF;
  border-radius: 100px;
  box-shadow: 0 16px 32px -14px rgba(74, 46, 31, 0.4), 0 4px 10px rgba(74, 46, 31, 0.08);
  padding: 10px 6px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bottom-nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 720px) {
  .bottom-nav { display: none; }
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--icon-inactive);
  padding: 5px 12px;
  border-radius: 14px;
}

.bottom-nav__item span {
  font-size: 9px;
}

.bottom-nav__item.is-active {
  color: var(--terracotta);
  background: var(--terracotta-tint);
}

.bottom-nav__item.is-active span {
  font-weight: 700;
}

/* ---------- Reusable product card ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__image {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
}

.product-card__badge--new { background: var(--gold-solid); }
.product-card__badge--promo { background: var(--terracotta-dark); }

.product-card__name {
  font-size: 12px;
  color: var(--ink);
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-card__price {
  font-size: 12.5px;
  color: var(--terracotta);
  font-weight: 600;
}

.product-card__rating {
  font-size: 10px;
  color: var(--ink-muted);
}

/* ---------- Site footer ---------- */

.site-footer {
  margin-top: 48px;
  background: var(--card-alt);
  border-top: 1px solid var(--hairline);
  padding: 44px 24px 24px;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .site-footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__logo { height: 46px; width: auto; }

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-footer__brand-fr {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.3px;
}

.site-footer__brand-ar {
  font-family: 'Amiri', serif;
  font-size: 13px;
  color: var(--terracotta);
}

.site-footer__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  max-width: 240px;
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.site-footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-footer__social-link:hover { border-color: var(--terracotta); color: var(--terracotta); }

.site-footer__social-note {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-style: italic;
}

.site-footer__col { display: flex; flex-direction: column; }

.site-footer__col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}

.site-footer__col a {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.site-footer__col a:hover { color: var(--terracotta); }

.site-footer__disabled {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  padding: 5px 0;
  cursor: not-allowed;
}
.site-footer__disabled em { font-style: italic; opacity: 0.8; }

.site-footer__bottom {
  max-width: 1080px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.site-footer__bottom-note { font-style: italic; }
