/* 
   تصميم متجر كنوز الوادي للتمور (konoozalwadi.store)
   النمط: دافئ، فخم، ذهبي وبني، يدعم الاستجابة بالكامل والتأثيرات الحركية
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-gold: #c5a059;
  --gold-hover: #b08c46;
  --gold-light: #f7f1e3;
  --gold-glow: rgba(197, 160, 89, 0.25);
  
  --dark-brown: #251b14;
  --mid-brown: #453224;
  --light-brown: #765a44;
  
  --sand-bg: #FAF6F0;
  --card-bg: #FFFFFF;
  --text-dark: #1f1710;
  --text-muted: #6e5f53;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(197, 160, 89, 0.15);
  --shadow-premium: 0 12px 40px rgba(37, 27, 20, 0.05);
  --shadow-hover: 0 20px 48px rgba(37, 27, 20, 0.12);
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--sand-bg);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   تنسيق شريط التنقل (Header / Navbar)
   ------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--dark-brown);
}

.logo-text span {
  color: var(--primary-gold);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--mid-brown);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-smooth);
}

nav a:hover, nav a.active {
  color: var(--primary-gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-brown);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.cart-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background-color: var(--primary-gold);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.admin-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.admin-link:hover {
  background-color: var(--gold-light);
  color: var(--primary-gold);
}

/* -------------------------------------------------------------
   قسم الترحيب والـ Hero Section
   ------------------------------------------------------------- */
.hero-section {
  padding: 160px 8% 80px 8%;
  background: radial-gradient(circle at 10% 20%, rgba(250, 246, 240, 1) 0%, rgba(243, 235, 221, 0.7) 90%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-subtitle {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 2px solid var(--primary-gold);
  padding-bottom: 4px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary-gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 35px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: white;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 25px var(--gold-glow);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--mid-brown);
  border: 2px solid var(--primary-gold);
  padding: 12px 26px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background-color: var(--gold-light);
  transform: translateY(-3px);
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-bg {
  position: absolute;
  width: 80%;
  height: 80%;
  background-color: var(--gold-light);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  opacity: 0.6;
}

.hero-image {
  width: 90%;
  max-width: 480px;
  height: auto;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-premium);
  z-index: 2;
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.02);
}

/* -------------------------------------------------------------
   قسم الميزات والوعود التجارية (Features Section)
   ------------------------------------------------------------- */
.features-section {
  padding: 60px 8%;
  background-color: white;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.01);
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(0,0,0,0.03);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   قسم المتجر ومعرض المنتجات (Products Grid Section)
   ------------------------------------------------------------- */
.products-section {
  padding: 80px 8%;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-brown);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(197, 160, 89, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-gold);
}

.product-image-container {
  height: 240px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--sand-bg);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-gold);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-brown);
}

.product-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.product-restrictions-info {
  font-size: 0.8rem;
  color: var(--primary-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn-add-cart {
  flex: 1;
  background-color: var(--dark-brown);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-add-cart:hover {
  background-color: var(--primary-gold);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-details {
  background-color: var(--gold-light);
  color: var(--primary-gold);
  border: none;
  width: 45px;
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-details:hover {
  background-color: var(--primary-gold);
  color: white;
}

/* -------------------------------------------------------------
   قسم قصة المزرعة / التعريف بالمنتج
   ------------------------------------------------------------- */
.story-section {
  padding: 80px 8%;
  background-color: white;
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.story-image-container {
  flex: 1;
  min-width: 320px;
}

.story-image-container img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
}

.story-content {
  flex: 1.2;
  min-width: 320px;
}

.story-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark-brown);
  margin-bottom: 20px;
}

.story-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.8;
}

/* -------------------------------------------------------------
   لوحة سلة التسوق المنزلقة (Cart Drawer)
   ------------------------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0;
  left: -400px; /* مخفي جهة اليسار */
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background-color: var(--card-bg);
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.open {
  left: 0;
}

.cart-header {
  padding: 25px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-brown);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-cart:hover {
  color: var(--primary-gold);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-empty-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 50px;
  font-size: 1rem;
}

.cart-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  padding-bottom: 15px;
  align-items: center;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  background-color: var(--sand-bg);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-brown);
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: bold;
  color: var(--primary-gold);
  font-size: 0.9rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  background-color: var(--sand-bg);
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--primary-gold);
  color: white;
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  transition: var(--transition-smooth);
}

.cart-item-remove:hover {
  transform: scale(1.1);
}

.cart-summary {
  padding: 25px;
  background-color: var(--sand-bg);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--mid-brown);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-brown);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 12px;
  margin-top: 10px;
}

.btn-checkout {
  width: 100%;
  margin-top: 15px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(37, 27, 20, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: none;
}

.cart-overlay.show {
  display: block;
}

/* -------------------------------------------------------------
   نافذة الدفع وتأكيد الطلب (Checkout Modal)
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(37, 27, 20, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1300;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.checkout-modal {
  background-color: white;
  width: 100%;
  max-width: 600px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 22px 30px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-brown);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-modal:hover {
  color: var(--primary-gold);
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mid-brown);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0,0,0,0.1);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
  background-color: var(--sand-bg);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-gold);
  background-color: white;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.phone-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.restriction-alert {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  padding: 12px 15px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
}

.checkout-summary-box {
  background-color: var(--sand-bg);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 25px;
  border: 1px dashed var(--primary-gold);
}

.checkout-summary-box h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--dark-brown);
}



/* -------------------------------------------------------------
   قسم ضمانات الشراء والاقناع (Trust & Marketing Section)
   ------------------------------------------------------------- */
.trust-section {
  padding: 80px 8%;
  background-color: var(--sand-bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  margin-top: 40px;
}

.trust-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.trust-card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
}

.trust-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.trust-card-body {
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.trust-icon {
  position: absolute;
  top: -25px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-gold);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.4);
  border: 3px solid white;
}

.trust-card-body h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-brown);
  margin-top: 5px;
  transition: var(--transition-smooth);
}

.trust-card-body p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 0;
}

/* التفاعلات والأنيميشن للكرت */
.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(44, 34, 27, 0.12);
  border-color: rgba(197, 160, 89, 0.3);
}

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

.trust-card:hover .trust-card-body h3 {
  color: var(--primary-gold);
}

/* -------------------------------------------------------------
   قسم التواصل والاستفسار (Contact Section)
   ------------------------------------------------------------- */
.contact-section {
  padding: 80px 8%;
  background-color: var(--sand-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(0,0,0,0.03);
}

.contact-info {
  position: relative;
  background: linear-gradient(135deg, rgba(44, 34, 27, 0.92) 0%, rgba(26, 19, 14, 0.96) 100%), url('../assets/3.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 15px;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item-box {
  display: flex;
  gap: 15px;
  align-items: center;
}

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--primary-gold);
}

.contact-item-text h4 {
  font-weight: bold;
  font-size: 0.95rem;
}

.contact-item-text p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.contact-form {
  padding: 50px;
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-brown);
  margin-bottom: 25px;
}

/* -------------------------------------------------------------
   فوتر الموقع والتواصل العائم (Footer & Floating Elements)
   ------------------------------------------------------------- */
footer {
  background-color: var(--dark-brown);
  color: white;
  padding: 60px 8% 30px 8%;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: var(--primary-gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--primary-gold);
  padding-right: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 15px;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* -------------------------------------------------------------
   تنبيهات النظام وإشعار النجاح (Toast Notification)
   ------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 110px; /* مرتفع قليلاً لتجنب زر الواتساب العائم */
  right: 30px;
  left: auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--dark-brown);
  color: white;
  padding: 15px 25px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-right: 5px solid var(--primary-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 250px;
}

.toast.error {
  border-right-color: #EF4444;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

/* -------------------------------------------------------------
   شاشات التجاوب والتحجيم (Responsive Design Media Queries)
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    padding-top: 130px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-subtitle {
    margin: 0 auto 12px auto;
  }
  .cta-buttons {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 30px;
  }
  .contact-form {
    padding: 30px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .trust-card-image {
    height: auto !important;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 4%;
  }
  nav {
    display: none; /* إخفاء القائمة في الجوال - يمكن فتح سلة التسوق كبديل */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding-bottom: 95px; /* مسافة أمان لتجنب التداخل مع زر الواتساب العائم */
  }
  .phone-group {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100%;
    left: -100%;
  }
  .contact-info {
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(44, 34, 27, 0.94) 0%, rgba(26, 19, 14, 0.97) 100%), url('../assets/3.jpg') no-repeat center center;
    background-size: cover;
  }
  .toast-container {
    top: 20px;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 380px;
    align-items: center;
  }
  .toast {
    animation: toastMobileSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}

@keyframes toastMobileSlideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastMobileFadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* -------------------------------------------------------------
   PWA Install Prompt (بنر تثبيت التطبيق الفخم)
   ------------------------------------------------------------- */
.pwa-install-banner {
  position: fixed;
  bottom: 100px;
  left: 30px;
  right: auto;
  z-index: 1999;
  width: 100%;
  max-width: 380px;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-install-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pwa-install-box {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px rgba(37, 27, 20, 0.12);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.pwa-install-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: white;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.pwa-install-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pwa-install-content h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark-brown);
}

.pwa-install-content p {
  font-family: 'Cairo', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.pwa-btn-install {
  background-color: var(--primary-gold);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pwa-btn-install:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.pwa-btn-close {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pwa-btn-close:hover {
  background-color: rgba(0,0,0,0.02);
  color: var(--dark-brown);
}

@media (max-width: 768px) {
  .pwa-install-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
  }
  
  .pwa-install-box {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 -8px 25px rgba(0,0,0,0.05);
  }
  
  .pwa-install-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(197, 160, 89, 0.08);
    padding-top: 10px;
    margin-top: 4px;
  }
  
  .pwa-btn-install, .pwa-btn-close {
    flex: 1;
    text-align: center;
    padding: 8px 0;
  }
}
