:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #d4af37;
  --accent-light: #f5f5f5;
  --secondary-text: #666666;
  --border-color: #e5e5e5;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --container-width: 1200px;
  --font-primary: 'Tajawal', sans-serif;
  --font-secondary: 'Cairo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 32px; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 16px; color: var(--secondary-text); }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
}

.btn-primary:hover {
  background-color: #333;
  border-color: #333;
}

.btn-secondary {
  background-color: transparent;
  color: #000;
  border: 1px solid #000;
}

.btn-secondary:hover {
  background-color: #000;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: #000;
  border: 1px solid #e5e5e5;
}

.btn-outline:hover {
  border-color: #000;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-whatsapp {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 2;
  max-width: 450px;
  width: 40%;
  background: rgba(255,255,255,0.85);
  padding: 32px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.5);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: #000;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: #444;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-bg {
  background-color: #f9f9f9;
}

/* ===== PRODUCT GRID (Best Sellers) ===== */
.product-grid {
  text-align: center;
  font-size: 0;
}

.product-card {
  display: inline-block;
  vertical-align: top;
  width: 280px;
  margin: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 250px;
  background-color: #f5f5f5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 10px;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
  font-size: 1.1rem;
  color: #000;
}

.product-benefit {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 12px;
  display: block;
}

.product-price {
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  font-size: 1.1rem;
  display: block;
}

/* ===== COLLECTIONS GRID ===== */
.collections-grid {
  text-align: center;
  font-size: 0;
}

.collection-card {
  display: inline-block;
  vertical-align: top;
  position: relative;
  width: 280px;
  height: 350px;
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #eee;
  font-size: 16px;
}

.collection-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.collection-overlay h3 {
  color: #fff;
  margin: 0;
  font-size: 1.4rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ===== WHY BE BEAUTY ===== */
.features-grid {
  text-align: center;
  font-size: 0;
}

.feature-card {
  display: inline-block;
  vertical-align: top;
  width: 300px;
  margin: 10px;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 16px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--accent-color);
}

/* ===== REVIEWS ===== */
.reviews-scroller {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding-bottom: 32px;
  scroll-snap-type: x mandatory;
}

.review-card {
  flex: 0 0 300px;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: center;
  border: 1px solid #eee;
  text-align: right;
}

.stars {
  color: #ffd700;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  color: #555;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-question {
  width: 100%;
  padding: 32px 0;
  text-align: right;
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #666;
  text-align: right;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 32px;
}

/* ===== FOOTER ===== */
footer {
  background-color: #111;
  color: #fff;
  padding: 80px 0 32px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.copyright {
  color: #666;
  font-size: 0.85rem;
}

/* ===== REACT GRID OVERRIDES ===== */
.bb-products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, 280px) !important;
  justify-content: center !important;
  gap: 20px !important;
}

.bb-collections-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, 280px) !important;
  justify-content: center !important;
  gap: 20px !important;
}

.bb-product-img-wrap {
  height: 250px !important;
}

.bb-product-img-wrap img {
  height: 250px !important;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .bb-products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .bb-collections-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .bb-product-img-wrap {
    height: 160px !important;
  }

  .bb-product-img-wrap img {
    height: 160px !important;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; margin-bottom: 20px; }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 50vh;
  }

  .hero-content {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 90%;
    max-width: none;
    margin: 30px auto;
    padding: 24px;
    background: rgba(255,255,255,0.92);
    z-index: 2;
  }

  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; margin-bottom: 16px; }

  .hero-image {
    opacity: 0.35;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .hero-buttons .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .trust-badges {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
  }

  .section {
    padding: 40px 0;
  }

  .product-card {
    width: calc(50% - 24px);
    min-width: 140px;
    margin: 5px;
  }

  .product-image {
    height: 160px;
  }

  .product-image img {
    height: 160px;
    padding: 5px;
  }

  .product-info {
    padding: 10px;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-benefit {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .btn-outline {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .collection-card {
    width: calc(50% - 24px);
    min-width: 140px;
    height: 220px;
    margin: 5px;
  }

  .collection-card img {
    height: 220px;
  }

  .collection-overlay h3 {
    font-size: 1rem;
  }

  .collection-overlay {
    padding: 10px;
  }

  .feature-card {
    width: calc(100% - 24px);
    margin: 10px;
  }

  .review-card {
    flex: 0 0 260px;
  }

  .container {
    padding: 0 12px;
  }
}
