/* ====================================================
   تصميم مسطحات خضراء - هيرو صورة جنينة حقيقية 100% وResponsive
   ==================================================== */

:root {
  --primary: #0f5132;
  --primary-dark: #0a3622;
  --primary-light: #e8f5e9;
  --accent: #22c55e;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ebd5a;

  --bg: #f8faf8;
  --card-bg: #ffffff;
  --text-title: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 16px rgba(15, 81, 50, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 12px 28px rgba(15, 81, 50, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-title);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

/* ================= Header (Ultra-Clean Luxury Glass) ================= */
.header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 81, 50, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* الشعار والهوية نصياً */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: #062a15;
  line-height: 1.2;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.brand:hover .brand-name {
  color: var(--primary);
}

.brand-desc {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* إجراءات الهيدر */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* مؤشر الجاهزية للرد */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* زر الواتساب في الهيدر */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #25D366 0%, #1ea952 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.header-cta:hover {
  background: linear-gradient(135deg, #1ebd5a 0%, #169244 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.header-cta svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}



/* ================= Hero Banner مع صورة جنينة حقيقية واضحة ================= */
.hero {
  position: relative;
  /* صورة جنينة حقيقية محلية مع تدرج شفاف لطيف يُظهر تفاصيل الحديقة الحقيقية بوضوح */
  background: 
    linear-gradient(180deg, rgba(8, 38, 20, 0.58) 0%, rgba(10, 48, 26, 0.68) 100%),
    url('images/luxury-garden.jpg') center center / cover no-repeat;
  padding: 4.5rem 1rem 3.5rem;
  text-align: center;
  color: #ffffff;
  box-shadow: inset 0 -15px 30px rgba(0, 0, 0, 0.15);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ================= Hero Animations ================= */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero h1 span {
  color: #86efac;
  text-shadow: 0 0 20px rgba(134, 239, 172, 0.5);
}

.hero p {
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Search Bar فوق صورة الجنينة */
.search-wrapper {
  position: relative;
  max-width: 580px;
  margin: 0 auto 1.4rem;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  background: #ffffff;
  font-size: 1.02rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

.search-icon-btn {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* فلاتر زجاجية أنيقة ومتجاوبة فوق خلفية الجنينة */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0 0.5rem;
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.filter-chip {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.filter-chip:active {
  transform: scale(0.94);
}

.filter-chip.active {
  background: #22c55e;
  color: #052e16;
  border-color: #22c55e;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.45);
}

/* ================= Main Products Container ================= */
.main-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.2rem 1rem 4rem;
  width: 100%;
  flex: 1;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

/* ================= Products Grid (Responsive 1-2-3 cols) ================= */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  width: 100%;
}

@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* ================= Product Card With Scroll Reveal Animation ================= */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  /* أنيميشن الظهور السلس عند السكرول */
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  will-change: opacity, transform;
}

.product-card.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-card.reveal:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
  border-color: #cbd5e1;
}

/* Image with Smooth Zoom */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.badge-out-of-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(185, 28, 28, 0.92);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

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

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  gap: 0.4rem;
}

.card-img-placeholder svg {
  width: 40px;
  height: 40px;
}

/* Content (ONLY Name & Description) */
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.product-card:hover .card-title {
  color: var(--primary);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  white-space: pre-line;
  flex: 1;
}

/* WhatsApp Button Action مع تأثير اللمعان التفاعلي */
.whatsapp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--whatsapp);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* وميض الضوء عند المرور */
.whatsapp-action-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 75%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.whatsapp-action-btn:hover::after {
  transform: translateX(120%);
}

.whatsapp-action-btn:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

.whatsapp-action-btn:active {
  transform: scale(0.97);
}

.whatsapp-action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ================= Floating WhatsApp Button (Mobile FAB) مع أنيميشن النبض ================= */
@keyframes fabFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  }
  50% {
    transform: translateY(-7px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.65);
  }
}

.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  background: var(--whatsapp);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: fabFloat 3.2s ease-in-out infinite;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.fab-whatsapp:hover {
  animation-play-state: paused;
  transform: scale(1.12) translateY(-2px);
  background: var(--whatsapp-hover);
}

.fab-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ================= Scroll To Top Button ================= */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f5132;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(15, 81, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #166534;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 81, 50, 0.45);
}

.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* ================= Warning Banner ================= */
.config-banner {
  display: none;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

/* ================= State Box & Spinner ================= */
.state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= Footer ================= */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  margin: 0 0.5rem;
}

/* ================= Responsive Queries ================= */
@media (max-width: 768px) {
  .status-label {
    display: none;
  }
  .status-indicator {
    padding: 0.45rem;
  }
}

@media (max-width: 599px) {
  .header-container {
    padding: 0.65rem 0.85rem;
  }
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-desc {
    display: none;
  }
  .header-actions {
    gap: 0.5rem;
  }
  .header-cta {
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
  }
  .hero {
    padding: 2.8rem 0.85rem 2rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.4rem;
  }
  .search-input {
    font-size: 0.95rem;
    padding: 0.85rem 2.8rem 0.85rem 1rem;
  }
  .filter-chip {
    font-size: 0.82rem;
    padding: 0.38rem 0.85rem;
  }
  .main-content {
    padding: 1.25rem 0.85rem 3.5rem;
  }
  .card-body {
    padding: 1rem;
  }
  .card-title {
    font-size: 1.1rem;
  }
  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
  .fab-whatsapp {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 50px;
    height: 50px;
  }
}
