 :root {
  --primary: #7a1f1f;
  --primary-hover: #601818;
  --primary-light: #fbf5f5;
  --bg-page: #faf8f5;
  --surface: #ffffff;
  --text-main: #241e1e;
  --text-muted: #6b6363;
  --border: #e9e3da;
  --success: #2e7d32;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 28px rgba(122, 31, 31, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* شريط التنقل */
.header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* الحاوية الرئيسية */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem 1.5rem;
}

/* واجهة البطل ورذاذ العطر المنساب من الوردة */
.hero-wrapper {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.scent-stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-bottom: 2rem;
  border-radius: 14px;
  overflow: visible;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

/* حركة رذاذ العطر المتصاعد */
.mist-particle {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: scentRise 5s infinite ease-out;
}

.mist-particle.p2 {
  animation-delay: 1.8s;
  width: 210px;
  height: 210px;
}

.mist-particle.p3 {
  animation-delay: 3.4s;
  width: 120px;
  height: 120px;
}

@keyframes scentRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 40px) scale(0.6);
  }
  30% {
    opacity: 0.8;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70px) scale(1.4);
  }
}

.hero-content {
  max-width: 680px;
}

.hero-slogan {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.hero-cta:hover {
  background-color: var(--primary-hover);
}

/* البطاقات المشتركة */
.card-section {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
} .section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.status-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  background-color: #eee;
  color: #555;
}

.status-badge.open {
  background-color: #e8f5e9;
  color: var(--success);
}

.status-badge.closed {
  background-color: #fbe9e7;
  color: var(--primary);
}

.section-note {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* جدول ساعات العمل */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.9rem 0.5rem;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
}

.hours-table td:last-child {
  text-align: left;
  color: var(--text-muted);
}

/* الخريطة */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  height: 330px;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* التذييل */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--surface);
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* زر واتساب الثابت */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* متجاوب مع شاشات الجوال */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
  }

  .nav-wrapper.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-wrapper {
    padding: 2rem 1.25rem;
  }

  .hero-slogan {
    font-size: 1.25rem;
  }

  .hero-image {
    height: 250px;
  }

  .whatsapp-float {
    bottom: 18px;
    left: 18px;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}
/* شبكة عرض منتجات العطور */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* صندوق الصورة المخصص */
.product-img-box {
  width: 100%;
  height: 290px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background-color: #f7f3f0;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.03);
}

.product-title {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.notes-block {
  background-color: var(--primary-light);
  border-right: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.notes-block strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}
/* زر السلة في الشريط العلوي */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.cart-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cart-badge {
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  padding: 2px 6px;
  line-height: 1;
}

.cart-btn:hover .cart-badge {
  background-color: #fff;
  color: var(--primary);
}

/* بطاقة العطر وأزرار الإضافة */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.add-to-cart-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
  background-color: #5c1616;
}

/* نافذة السلة الجانبية (Drawer) */
.cart-drawer {
  position: fixed;
  top: 0;
  left: -360px;
  width: 340px;
  max-width: 90vw;
  height: 100%;
  background-color: var(--surface);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
}

.cart-drawer.open {
  left: 0;
}

.cart-drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  color: var(--primary);
  font-size: 1.2rem;
}

.close-cart-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-empty-text {
  text-align: center;
  color: var(--text-muted);
  margin-top: 3rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
  font-size: 0.95rem;
  color: var(--text-main);
}

.cart-item-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.remove-item-btn {
  background: none;
  border: none;
  color: #c93b3b;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background-color: var(--primary-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.whatsapp-checkout-btn {
  width: 100%;
  background-color: #25d366;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.whatsapp-checkout-btn:hover {
  background-color: #1eb857;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.cart-overlay.open {
  display: block;
}