/* -------------------------------- */
/* 💠 أساسيات الصفحة */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: #fdfdfd;
    color: #333;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* 💎 الهيدر الفاخر */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-bold {
    color: #000;
    font-weight: 900;
}

.logo-light {
    color: #c2b280;
    margin-right: 5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-links li a:hover {
    background-color: #f2f2f2;
}
/* -------------------------------- */
/* 🌐 ميديا كويري */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo {
    font-size: 22px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .btn-hero {
    font-size: 15px;
    padding: 12px 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------- */
/* 🌟 منطقة البطل (Hero Section) */
.hero {
  background: linear-gradient(to left, #f5f5f5, #eaeaea);
  padding: 100px 20px 80px;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

.hero h2 {
  font-size: 36px;
  color: #000;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 18px;
  color: #666;
  margin-bottom: 25px;
}

.btn-hero {
  background-color: #000;
  color: #fff;
  padding: 14px 36px;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-hero:hover {
  background-color: #333;
  transform: scale(1.02);
}
/* -------------------------------- */
/* 🧴 بطاقات المنتجات */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  animation: slideIn 0.6s forwards;
  transition: transform 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

.product-card img {
  max-width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info h4 {
  font-size: 18px;
  margin: 10px 0 6px;
  color: #111;
}

.price {
  font-size: 17px;
  color: #000;
  font-weight: bold;
}

/* -------------------------------- */
/* 🎯 زر التفاصيل وغيره */
.btn-details,
.btn-add,
.btn-checkout,
.btn {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-details:hover,
.btn-add:hover,
.btn-checkout:hover,
.btn:hover {
  background-color: #222;
  transform: scale(1.02);
}
/* -------------------------------- */
/* 🌀 أنيميشن */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -------------------------------- */
/* 🛒 السلة والطلب */
.cart-table,
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.cart-table th,
.cart-table td,
.admin-table th,
.admin-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 15px;
}

.cart-summary {
  margin-top: 20px;
  text-align: left;
}

/* -------------------------------- */

/* -------------------------------- */
/* ✅ الرسائل */
.success {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.error {
  background-color: #f2dede;
  color: #a94442;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* -------------------------------- */
/* ⬆ زر الرجوع لأعلى */
.to-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  padding: 14px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease;
}

/* -------------------------------- */
/* 🧼 فوتر فاخر */
footer.footer {
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 35px 20px;
  margin-top: 80px;
  font-size: 14px;
  border-top: 1px solid #222;
}

.footer-content p {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
}

/* ✅ معرض الهيرو */
.hero-gallery {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-gallery img {
  height: 160px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.hero-gallery img:hover {
  transform: scale(1.05);
}
/* ✅ صفحة تفاصيل المنتج */
.product-details {
  margin-top: 60px;
  animation: fadeIn 1s ease-in-out;
}

.product-details-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.product-details-box .image img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  object-fit: cover;
}

.product-details-box .info {
  flex: 1;
  min-width: 300px;
}

.product-details-box .info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-details-box .info .price {
  font-size: 20px;
  color: #B89F6A;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-details-box .info .description {
  color: #444;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ✅ زر إضافة للسلة */
.btn-add-to-cart {
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 15px;
}

.btn-add-to-cart i {
  margin-left: 8px;
  font-size: 16px;
}

.btn-add-to-cart:hover {
  background-color: #333;
}

/* ✅ استجابة للموبايل */
@media (max-width: 768px) {
  .product-details-box {
    flex-direction: column;
    text-align: center;
  }

  .product-details-box .image img {
    max-width: 100%;
  }
}
/* ✅ زر القائمة (Menu Toggle) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

/* قائمة التنقل الرئيسية */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ميديا كويري للهيدر في الموبايل */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex !important;
  }
}

/* زر إضافة إلى السلة داخل الزر */
.btn-add-to-cart i {
  margin-left: 8px;
  font-size: 16px;
}
/* ✅ تنسيق صفحة الملف الشخصي */
.profile-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
}

.profile-box {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.profile-box h2 {
  text-align: center;
  margin-bottom: 25px;
}

.profile-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.image-box img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.details p {
  font-size: 16px;
  margin-bottom: 10px;
}

.change-password {
  margin-top: 30px;
}

.change-password h3 {
  margin-bottom: 15px;
  color: #444;
}

.change-password input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.change-password button,
.image-box button {
  background-color: #000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.change-password button:hover,
.image-box button:hover {
  background-color: #333;
}

.message-box {
  background: #e1f3e8;
  color: #155724;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

/* ✅ الصورة المصغرة للعميل */
.user-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}

.user-box img.profile-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ccc;
  display: inline-block;
  vertical-align: middle;
}

.user-box span {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  display: inline-block;
  vertical-align: middle;
}
/* ✅ جدول الطلبات */
.orders-table {
  overflow-x: auto;
  margin-top: 20px;
}

.orders-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.orders-table th,
.orders-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.orders-table th {
  background-color: #f5f5f5;
  font-weight: bold;
  color: #333;
}

.orders-table tr:hover {
  background-color: #fafafa;
}

/* ✅ صفحة الدفع (Checkout) */
/* ------------------------ */
/* 🛒 صفحة إتمام الطلب */
.checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.checkout-form {
  flex: 1 1 400px;
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.checkout-form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
  color: #333;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  border-color: #999;
  outline: none;
}

.checkout-form button {
  background-color: #000;
  color: white;
  padding: 12px 24px;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-form button:hover {
  background-color: #333;
}

/* ------------------------ */
/* ملخص الطلب */
.checkout-summary {
  flex: 1 1 300px;
  background-color: #fafafa;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.checkout-summary ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  color: #444;
}

.checkout-summary li {
  margin-bottom: 10px;
}

.btn-checkout {
  background-color: #000;
  color: white;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-checkout:hover {
  background-color: #333;
}

/* ------------------------ */
/* استجابة للموبايل */
@media (max-width: 768px) {
  .checkout {
    flex-direction: column;
  }

  .checkout-form {
    width: 100%;
  }

  .checkout-summary {
    width: 100%;
  }
}

/* -------------------------------- */
/* 🌟 الأساسيات المتبقية */

/* لتنسيق الأزرار التي تعمل على تحريك الصفحة (مثل زر الرجوع للأعلى) */
.to-top-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  padding: 14px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease;
}

/* ---------------------------- */
/* 💎 الفوتر */
footer.footer {
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 35px 20px;
  margin-top: 80px;
  font-size: 14px;
  border-top: 1px solid #222;
}

.footer-content p {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0.5px;
}

/* ---------------------------- */
/* 🌐 الهيرو - معرض الصور */
.hero-gallery {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-gallery img {
  height: 160px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.hero-gallery img:hover {
  transform: scale(1.05);
}

/* ---------------------------- */
/* 💠 صفحة تفاصيل المنتج */
.product-details-box {
  display: flex;
  gap: 30px;
  margin-top: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-details {
  margin-top: 60px;
  animation: fadeIn 1s ease-in-out;
}

.product-details-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.product-details-box .image img {
  width: 100%;
  max-width: 450px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  object-fit: cover;
}

.product-details-box .info {
  flex: 1;
  min-width: 300px;
}

.product-details-box .info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-details-box .info .price {
  font-size: 20px;
  color: #B89F6A;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-details-box .info .description {
  color: #444;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ✅ زر إضافة للسلة */
.btn-add-to-cart {
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 15px;
}

.btn-add-to-cart i {
  margin-left: 8px;
  font-size: 16px;
}

.btn-add-to-cart:hover {
  background-color: #333;
}

/* ✅ استجابة للموبايل */
@media (max-width: 768px) {
  .product-details-box {
    flex-direction: column;
    text-align: center;
  }

  .product-details-box .image img {
    max-width: 100%;
  }
}
