:root {
  --primary-color: #0D47A1;
  --secondary-color: #1976D2;
  --accent-color: #f79525;    /* أصفر ذهبي للأزرار */
  --bg-color: #F5F5F5;
  --text-color: #212121;
  --text-muted: #757575;
  --navbar-height: 80px;
}

/* ===== Body ===== */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  margin: 0;
  padding: 0;
}

/* ===== Navbar ===== */
.navbar-scroll {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 999;
  padding: 0.8rem 1rem;
}

.navbar-scroll.scrolled {
  background-color: rgba(245,245,245,0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-scroll .navbar-brand,
.navbar-scroll .nav-link,
.navbar-scroll .nav-username,
.navbar-scroll .nav-logout-btn {
  transition: all 0.3s ease;
}

.navbar-scroll .navbar-brand { font-weight: 700; color: white; }
.navbar-scroll.scrolled .navbar-brand { color: var(--primary-color); }

.navbar-scroll .nav-link { color: white; font-weight: 500; }
.navbar-scroll .nav-link.active { color: var(--accent-color); font-weight: 600; }
.navbar-scroll .nav-link:hover { color: var(--accent-color); }
.navbar-scroll.scrolled .nav-link { color: var(--text-color); }
.navbar-scroll.scrolled .nav-link.active { color: var(--accent-color); }

.navbar-scroll .nav-username { color: white; cursor: default; }
.navbar-scroll.scrolled .nav-username { color: var(--text-color); }
.navbar-scroll .nav-username:hover { color: var(--accent-color); }

.navbar-scroll .nav-logout-btn {
  color: white;
  border: 2px solid white;
  border-radius: 8px;
}
.navbar-scroll .nav-logout-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}
.navbar-scroll.scrolled .nav-logout-btn {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.navbar-scroll.scrolled .nav-logout-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 25px 35px;
  background-color: rgba(0,0,0,0.35);
  border-radius: 14px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  line-height: 1.5;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}

.hero-content .btn {
  font-size: 1.1rem;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--text-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.hero-content .btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* ===== Card Container ===== */
.card-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== Common Card Style ===== */
.card {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img { transform: scale(1.05); }

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title { color: var(--primary-color); font-weight: 600; font-size: 1.1rem; }
.card-price { font-weight: 600; font-size: 1.1rem; color: var(--accent-color); margin-bottom: 10px; }

.card .btn {
  width: 100%;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  background-color: var(--secondary-color);
  color: white;
}

/* ===== Footer ===== */
footer, .footer-modern {
  font-size: 0.95rem;
  text-align: center;
}

footer { background-color: #212529; color: white; padding: 20px 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent-color); }
footer h5, footer h6 { color: var(--accent-color); }
footer p { color: #ccc; font-size: 0.95rem; }
footer hr { border-color: rgba(255,255,255,0.2); }

/* Footer Modern */
.footer-modern {
  background: linear-gradient(180deg, #0b132b 0%, #1c2541 100%);
  color: #f5f5f5;
}
.footer-modern a { color: #b0bec5; transition: color 0.3s ease; }
.footer-modern a:hover { color: #81d4fa; }
.footer-modern .social-links a {
  color: #81d4fa;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}
.footer-modern .social-links a:hover { color: #fff; transform: translateY(-2px); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 576px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-content { padding: 20px 25px; }
  .card img { height: 150px; }
}
#logo-img {
  transition: opacity 0.3s ease;
}
.buy-btn {
  background-color: var(--accent-color);
  color: white; /* نص أبيض ليكون واضح */
  border-radius: 8px;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  background-color: var(--secondary-color); /* أزرق أفتح على البرتقالي */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.btn-accent {
  background-color: var(--accent-color);
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-accent:hover {
  background-color: var(--secondary-color); /* أزرق للـ hover */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.btn-accent {
  background-color: var(--accent-color);
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background-color: #e6851f; /* أغمق شوي عند hover */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.btn-accent-pill {
  background-color: var(--accent-color);
  color: white;
  border-radius: 50px; /* نفس تأثير rounded-pill */
  padding-left: 1rem;  /* يعادل px-3 */
  padding-right: 1rem;
  transition: all 0.3s ease;
}

.btn-accent-pill:hover {
  background-color: #e6851f; /* أغمق شوي عند hover */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

