/* General Styles */
:root {
  --primary-color: #4a2c2a;
  --secondary-color: #8c5e58;
  --accent-color: #d4a373;
  --gold-color: #d4af37;
  --cream-color: #f8edeb;
  --dark-chocolate: #3c1518;
  --milk-chocolate: #864d36;
  --white-chocolate: #f0e6d8;
  --caramel-color: #c68e17;
  --chocolate-gradient: linear-gradient(135deg, #3c1518 0%, #864d36 50%, #b17f65 100%);
  --chocolate-light-gradient: linear-gradient(135deg, #864d36 0%, #b17f65 50%, #d4a373 100%);
}

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: linear-gradient(135deg, var(--cream-color) 0%, #fff8f0 100%);
  color: #333;
}

/* Navbar Styles */
.navbar {
  background: var(--chocolate-gradient);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 15px 0;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--chocolate-gradient);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-color) !important;
}

.navbar-brand i {
  color: var(--gold-color);
}

.nav-link {
  color: var(--cream-color) !important;
  font-weight: 500;
  margin: 0 5px;
  padding: 8px 15px !important;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-color) !important;
}

.navbar .btn-outline-light {
  border-color: var(--gold-color);
  color: var(--gold-color);
  transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
  background-color: var(--gold-color);
  color: var(--primary-color);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Hero Section */
.hero-section {
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 21, 24, 0.7); /* لون بني مع شفافية */
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* جعل المحتوى فوق طبقة الشفافية */
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--cream-color);
}

.btn-hero {
  background-color: var(--gold-color);
  color: var(--dark-chocolate);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--gold-color);
}

.btn-hero:hover {
  background-color: transparent;
  color: var(--gold-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  margin-bottom: 30px;
}

.chocolate-icons {
  margin-top: 30px;
}

.chocolate-icons i {
  font-size: 2rem;
  margin: 0 15px;
  color: var(--gold-color);
  opacity: 0.8;
}

.hero-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.hero-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--gold-color) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.2;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: #fff;
}

.feature-card {
  background-color: var(--white-chocolate);
  border-radius: 15px;
  padding: 40px 20px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 2.5rem;
  color: var(--gold-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: #666;
  font-size: 1rem;
}

/* Sections Styling */
section {
  padding: 5rem 0;
}

section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--dark-chocolate);
  font-weight: 700;
}

section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--gold-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Offers Section */
.offers-section {
  background-color: var(--white-chocolate);
  position: relative;
  overflow: hidden;
}

.offers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.offers-slider {
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

/* Products Section */
.products-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--dark-chocolate);
}

.categories-filter {
  margin-bottom: 3rem;
}

.filter-button {
  border: none;
  background: none;
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
}

.filter-button::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-color);
  transition: width 0.3s ease;
}

.filter-button:hover::after,
.filter-button.active::after {
  width: 100%;
}

.filter-button.active {
  color: var(--gold-color);
  font-weight: 700;
}

/* Product Card */
.product-card {
  transition: transform 0.3s;
  height: 100%;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* تنسيقات خاصة بعرض المنتجات في الوضع الثنائي على الهواتف النقالة */
@media (max-width: 767.98px) {
  /* عندما يكون نمط العرض ثنائي */
  .dual-mode .col-6 .product-card {
    font-size: 0.9rem;
  }
  
  .dual-mode .col-6 .product-card .product-image-container {
    height: 120px;
  }
  
  .dual-mode .col-6 .product-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .dual-mode .col-6 .product-card .card-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .dual-mode .col-6 .product-card .price-section {
    font-size: 0.85rem;
  }
  
  .dual-mode .col-6 .product-card .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* عندما يكون نمط العرض أحادي */
  .single-mode .col-12 .product-card {
    font-size: 1rem;
  }
  
  .single-mode .col-12 .product-card .product-image-container {
    height: 180px;
  }
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* نسبة 4:3 */
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* تغيير من cover إلى contain */
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  background-color: #f8f9fa; /* خلفية فاتحة للصور */
  padding: 0.5rem; /* مساحة داخلية للصورة */
}

.card-body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background-color: white;
}

.price-section {
  margin-top: auto;
}

.product-details {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-chocolate);
}

.product-description {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-chocolate);
  margin-bottom: 1rem;
}

.btn-cart {
  background-color: var(--dark-chocolate);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-cart:hover {
  background-color: #382424;
  transform: translateY(-2px);
}

/* About Section */
.about-section img {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form .form-control {
  border: 2px solid #ddd;
  padding: 0.75rem;
  font-size: 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--gold-color);
  box-shadow: none;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  background-color: var(--dark-chocolate);
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gold-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-color);
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--gold-color);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  z-index: 1050;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-right: 4px solid var(--gold-color);
}

.toast.error {
  border-right: 4px solid var(--dark-chocolate);
}

.toast-content {
  display: flex;
  align-items: center;
}

.toast-content i {
  margin-left: 0.75rem;
  font-size: 1.25rem;
}

.toast-content i.fa-check-circle {
  color: var(--gold-color);
}

.toast-content i.fa-exclamation-circle {
  color: var(--dark-chocolate);
}

/* تنسيقات الإشعارات */
.toast-container {
    z-index: 1050;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    min-width: 300px;
}

.toast.success .toast-header {
    background-color: #198754;
    color: white;
}

.toast.error .toast-header {
    background-color: #dc3545;
    color: white;
}

.toast-header {
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    align-items: center;
}

.toast-header i {
    font-size: 1.2rem;
    margin-left: 8px;
}

.toast-body {
    padding: 0.8rem 1rem;
    color: #333;
}

.btn-close {
    font-size: 0.8rem;
    opacity: 0.8;
}

.toast.animate__animated {
    --animate-duration: 0.5s;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .lead {
    font-size: 1.25rem;
  }
  
  .filter-button {
    margin-bottom: 1rem;
  }
  
  .product-card {
    margin-bottom: 2rem;
  }
  
  .product-image-container {
    padding-top: 100%; /* نسبة 1:1 على الشاشات الصغيرة */
  }
  
  .card-body {
    padding: 1rem;
  }
  
  /* تحسينات لعرض البطاقات في الشاشات الصغيرة */
  .col-6 .product-card .card-body {
    padding: 0.75rem;
  }
  
  .col-6 .product-card .card-title {
    font-size: 0.9rem;
  }
  
  .col-6 .product-card .card-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .col-6 .product-card .price-section {
    font-size: 0.9rem;
  }
  
  .col-6 .product-card .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  /* أنماط أزرار تبديل طريقة العرض */
  .display-mode-toggle {
    position: sticky;
    top: 10px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
}

/* Offers Slider Styles */
.offers-section {
    background-color: var(--white-chocolate);
    padding: 60px 0;
}

.offers-slider {
    width: 100%;
    height: auto;
    margin: 20px auto;
    padding-bottom: 40px;
}

.swiper-slide {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible !important;
    display: block !important;
    height: auto !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

.offer-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    display: block !important;
    height: auto !important;
    width: 100% !important;
    position: relative;
    margin-bottom: 20px !important;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.offer-image {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    display: block !important;
}

.offer-image img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: all 0.5s ease;
}

.offer-image img:hover {
    transform: scale(1.05);
}

.offer-content {
    position: relative !important;
    padding: 10px !important;
    background-color: #3D2314 !important;
    color: white !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 0 8px 8px !important;
    z-index: 5 !important;
    display: block !important;
    min-height: 150px !important;
}

.offer-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.offer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: normal;
    color: #ffffff;
    opacity: 0.9;
    max-height: 60px;
    overflow: hidden;
}

.offer-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 10px !important;
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 10px !important;
}

.offer-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff !important;
}

.offer-price span {
    color: #ffffff !important;
}

.original-price {
    color: #ffcccc !important;
    text-decoration: line-through;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.final-price {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
}

.add-offer-to-cart {
    background-color: #D4AC0D !important;
    border: none !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    display: block !important;
    z-index: 10 !important;
    position: relative !important;
    font-size: 0.9rem !important;
    margin-left: auto !important;
    min-width: 120px !important;
}

.add-offer-to-cart:hover {
    background-color: #F1C40F !important;
    transform: translateY(-2px) !important;
}

.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #D4AC0D;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.5);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .offers-slider .swiper-slide {
        height: 300px;
    }
    
    .offer-content {
        padding: 1rem;
    }
    
    .offer-content h3 {
        font-size: 1.2rem;
    }
    
    .offer-content p {
        font-size: 0.9rem;
    }
}

/* رسالة عدم وجود عروض */
.no-offers {
    background: linear-gradient(45deg, var(--white-chocolate), var(--cream-color));
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--dark-chocolate);
}

.no-offers .offer-content {
    padding: 30px;
}

.no-offers i {
    color: var(--dark-chocolate);
    margin-bottom: 20px;
}

.no-offers h3 {
    color: var(--dark-chocolate);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-offers p {
    color: #666;
    font-size: 1.1rem;
}

/* تنسيقات لوحة التحكم */
.admin-body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--white-chocolate);
}

/* القائمة الجانبية */
.sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: calc(100vh - 2rem);
    position: sticky;
    top: 1rem;
}

.sidebar .nav-link {
    color: var(--dark-chocolate);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: var(--cream-color);
    color: var(--dark-chocolate);
}

.sidebar .nav-link i {
    width: 25px;
}

/* البطاقات والإحصائيات */
.stat-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* الجداول والقوائم */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.table-container .table {
    margin-bottom: 0;
}

.admin-table th {
    font-weight: 600;
    border-bottom-width: 1px;
}

.admin-table td {
    vertical-align: middle;
}

/* الأزرار في لوحة التحكم */
.admin-btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* النماذج في لوحة التحكم */
.admin-form .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    font-size: 1rem;
}

.admin-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.admin-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* البطاقات في لوحة التحكم */
.admin-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-card .card-header {
    background-color: var(--white-chocolate);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* التنبيهات في لوحة التحكم */
.admin-alert {
    border-radius: 10px;
    border: none;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* الشارات في لوحة التحكم */
.admin-badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* شريط التنقل في لوحة التحكم */
.admin-navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.admin-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* القائمة المنسدلة في لوحة التحكم */
.admin-dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.admin-dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

.admin-dropdown-item:hover {
    background-color: var(--cream-color);
}

/* تنسيقات الجدول في لوحة التحكم */
.admin-table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* تنسيقات المدخلات المجمعة في لوحة التحكم */
.admin-input-group {
    border-radius: 10px;
    overflow: hidden;
}

.admin-input-group-text {
    background-color: var(--white-chocolate);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

/* تنسيقات القوائم في لوحة التحكم */
.admin-list-group {
    border-radius: 10px;
    overflow: hidden;
}

.admin-list-group-item {
    border: none;
    padding: 1rem;
    margin-bottom: 0.25rem;
    background-color: var(--white-chocolate);
    transition: all 0.3s ease;
}

.admin-list-group-item:hover {
    background-color: var(--cream-color);
}

/* تنسيقات التحميل في لوحة التحكم */
.admin-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--cream-color);
  padding: 80px 0;
  position: relative;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  color: var(--white-chocolate);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--gold-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-stars {
  margin-bottom: 15px;
}

.testimonial-stars i {
  color: var(--gold-color);
  font-size: 1.2rem;
  margin-right: 3px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.testimonial-name {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: #fff;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--gold-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.social-media {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--gold-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-form {
  background-color: var(--white-chocolate);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.contact-form .form-control:focus {
  border-color: var(--gold-color);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.contact-form button {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
  color: var(--primary-color);
}

/* Footer Styles */
footer {
  background-color: var(--dark-chocolate);
  color: var(--cream-color);
  padding-top: 60px;
}

.footer-title {
  color: var(--gold-color);
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--gold-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--gold-color);
  color: var(--dark-chocolate);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--cream-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.footer-links a:hover {
  color: var(--gold-color);
  transform: translateX(-5px);
}

.subscribe-form .input-group {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.subscribe-form .form-control {
  background-color: transparent;
  border: none;
  color: #fff;
  padding: 15px 20px;
}

.subscribe-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.subscribe-form .form-control:focus {
  box-shadow: none;
}

.subscribe-form .btn {
  background-color: var(--gold-color);
  color: var(--dark-chocolate);
  border: none;
  padding: 0 20px;
  border-radius: 0 50px 50px 0;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Products Section */
.products-section {
  padding: 80px 0;
  background-color: #fff;
}

.categories-filter {
  margin-bottom: 40px;
}

.filter-button {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  margin: 0 5px 10px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-button:hover, .filter-button.active {
  background-color: var(--primary-color);
  color: #fff;
}

.product-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  background-color: #fff;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--gold-color);
  color: var(--dark-chocolate);
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.product-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
  height: 40px;
  overflow: hidden;
}

.product-price {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.final-price, .price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.add-to-cart-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  width: 100%;
  font-weight: 600;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: var(--gold-color);
  color: var(--dark-chocolate);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.toast.success {
  background-color: #d4edda;
  border-left: 5px solid #28a745;
}

.toast.error {
  background-color: #f8d7da;
  border-left: 5px solid #dc3545;
}

.toast.info {
  background-color: #d1ecf1;
  border-left: 5px solid #17a2b8;
}

.toast-content {
  display: flex;
  align-items: center;
}

.toast-content i {
  font-size: 1.5rem;
  margin-right: 15px;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 10px;
  color: #666;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .feature-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-hero {
    padding: 10px 25px;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
  }
  
  .feature-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .chocolate-icons i {
    font-size: 1.5rem;
    margin: 0 10px;
  }
  
  .testimonial-card {
    padding: 20px;
  }
}

/* أنماط قسم البحث المتقدم والفلترة */
.advanced-search .card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    background-color: #f9f5ef;
}

.advanced-search .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    padding: 15px 20px;
}

.advanced-search .card-header h5 {
    font-weight: 600;
}

.advanced-search .card-header .btn-link {
    color: #8b4513;
    text-decoration: none;
    font-weight: 600;
}

.advanced-search .card-body {
    padding: 20px;
}

.advanced-search .form-label {
    font-weight: 500;
    color: #5a3921;
}

.advanced-search .form-control,
.advanced-search .form-select {
    border-radius: 8px;
    border: 1px solid #d9c8b4;
    background-color: #fff;
    padding: 10px 15px;
}

.advanced-search .form-control:focus,
.advanced-search .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.25);
    border-color: #8b4513;
}

.advanced-search .btn-primary {
    background-color: #8b4513;
    border-color: #8b4513;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
}

.advanced-search .btn-primary:hover {
    background-color: #6d370f;
    border-color: #6d370f;
}

.advanced-search .btn-outline-secondary {
    color: #5a3921;
    border-color: #d9c8b4;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
}

.advanced-search .btn-outline-secondary:hover {
    background-color: #f0e6d8;
    color: #5a3921;
}

/* أنماط نتائج البحث */
#search-results-summary {
    padding: 10px 0;
    margin-bottom: 20px;
}

#filter-tags .badge {
    font-size: 0.85rem;
    padding: 8px 12px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    background-color: #8b4513;
}

#filter-tags .btn-close {
    width: 0.5em;
    height: 0.5em;
    margin-right: 0;
    margin-left: 8px;
}

/* تحسين مظهر بطاقة المنتج */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* أنماط التبديل بين طرق العرض */
.display-mode-toggle {
    margin-bottom: 1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(139, 69, 19, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    background-color: white;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #5a3921;
}

.product-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
    flex-grow: 1;
}

.product-price {
    margin-bottom: 15px;
    font-weight: 600;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 0.9rem;
}

.final-price, .price {
    color: #e74c3c;
    font-size: 1.1rem;
}

.add-to-cart-btn {
    background-color: #8b4513;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    width: 100%;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #6d370f;
}

/* رسالة عدم وجود منتجات */
#no-results {
    padding: 40px 0;
    background-color: #f9f5ef;
    border-radius: 15px;
}

#no-results i {
    color: #d9c8b4;
    margin-bottom: 20px;
}

#no-results h3 {
    color: #5a3921;
    margin-bottom: 15px;
}

#no-results p {
    color: #8a8a8a;
    max-width: 500px;
    margin: 0 auto;
}

/* تنسيقات قسم آراء العملاء */
.testimonials {
    background-color: #f8f9fa;
}

.testimonial-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    height: 100%;
}

.testimonial-rating {
    color: #ffc107;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.testimonial-user img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.testimonial-user h5 {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.testimonial-user small {
    font-size: 0.85rem;
}

/* تنسيق بطاقات آراء العملاء */
.testimonials {
    background-color: #f8f9fa;
    padding-top: 60px;
    padding-bottom: 60px;
}

.testimonial-card {
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card .hover-effect {
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover .hover-effect {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    overflow: hidden;
    max-height: 120px;
}

/* تنسيق النافذة المنبثقة لآراء العملاء */
.testimonial-quote {
    position: relative;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    height: 100%;
}

.testimonial-quote i {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e9ecef;
    z-index: 0;
}

.testimonial-quote p {
    position: relative;
    z-index: 1;
    font-size: 1.1em;
}

.testimonial-large-image {
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.testimonial-large-image:hover {
    transform: scale(1.05);
}

/* تأثيرات انتقالية للنافذة المنبثقة */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* تنسيق عام للمحتوى */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header.bg-dark {
    border-bottom: 4px solid #ffc107;
}

.modal-body {
    padding: 25px;
}
