/* ==========================================
   HERBS CATALOG PAGE - MOBILE FIRST SYSTEM
   ========================================== */

/* --- Navbar Text Configuration --- */
#main-nav .nav-links a {
  color: #ffffff !important;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

#main-nav .nav-links a:hover,
#main-nav .nav-links a.active {
  color: var(--gold-leaf) !important;
}

#main-nav.scrolled .nav-links a {
  color: var(--on-surface-variant) !important;
  text-shadow: none;
}

/* --- Hero Banner Section --- */
.herbs-hero {
  position: relative;
  height: 45vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--primary);
  padding-top: 60px;
}

.herbs-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://lh3.googleusercontent.com/aida-public/AB6AXuB2wvb3sCNZ9PVRDwAlKpm0BrcPfDTRvUkJqMOA5blD5ax3XbHNTdDNfy5cbdDrxutzCDFRpqu8W8WrLn7SO1d4C8OH77KBy9dyBZJ1l270B-aaRrT9I5n38EwQH9hJe5aTTQr0sPtI5iAA3Y3NvUTtzr4CS9BWJEPA48yLlhtJBHZr4S9dYmSN5ckhnw_GhE9mEZSWIY-ar_DpyKMlnGqgR5IPSx3N3UQRTa2xzaG1AUXtUmjjaONSW7HMd1frh9kLDwfWDQuYGmI");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.herbs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 40, 25, 0.55),
    rgba(0, 40, 25, 0.75)
  );
  z-index: 1;
}

.herbs-hero-container {
  position: relative;
  z-index: 2;
  color: var(--cream-silk);
}

.herbs-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: rgba(249, 248, 243, 0.8);
}

.breadcrumbs span {
  margin: 0 0.4rem;
  color: rgba(249, 248, 243, 0.3);
}

.breadcrumbs .current {
  color: var(--gold-leaf);
}

/* --- Catalog Grid Workspace (Mobile First) --- */
.herbs-catalog-section {
  padding: 3rem var(--margin-mobile);
  background-color: var(--surface-container-low);
}

.catalog-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* عمود واحد افتراضي للموبايل لسهولة اللمس والتصفح والسكرول */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* --- Premium Luxury Product Cards --- */
.premium-product-card {
  background-color: var(--surface-container-lowest);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(192, 201, 193, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(6, 64, 43, 0.06);
}

.product-img-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--surface-container);
}

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

.premium-product-card:hover .product-img-frame img {
  transform: scale(1.04);
}

.premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-container);
  color: var(--cream-silk);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info-sheet {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-info-sheet h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.info-divider {
  width: 2.5rem;
  height: 2px;
  background-color: var(--gold-leaf);
  margin: 0 auto 1rem;
  transition: width 0.3s ease;
}

.premium-product-card:hover .info-divider {
  width: 4rem;
}

.product-info-sheet p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-product-inquire {
  width: 100%;
  padding: 0.85rem 0;
  background-color: var(--primary-container);
  color: var(--cream-silk);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-product-inquire:hover {
  background-color: var(--primary);
}

/* --- Premium Pagination --- */
.premium-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.page-num,
.page-arrow {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  transition: all 0.3s ease;
}

.page-num.active,
.page-num:hover {
  background-color: var(--primary-container);
  color: #ffffff;
  border-color: var(--primary-container);
}

.page-arrow.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE SCALING)
   ========================================== */

@media (min-width: 768px) {
  .herbs-catalog-section {
    padding: 4rem var(--margin-tablet);
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr); /* عمودين متناسقين */
    gap: 2.5rem;
  }
  .herbs-hero h1 {
    font-size: 3.5rem;
  }
}

/* شاشات الديسكتوب الكبيرة */
@media (min-width: 1024px) {
  .herbs-catalog-section {
    padding: 5rem var(--margin-desktop);
  }
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr); /* ثلاثة أعمدة فخمة ومتناسقة */
    gap: 3rem;
  }
}

/* ==========================================
   DARK MODE OVERRIDES — HERBS PAGE
   ========================================== */

[data-theme="dark"] .herbs-catalog-section {
  background-color: var(--surface-container-low);
}

[data-theme="dark"] .premium-product-card {
  background-color: var(--surface-container-low);
  border-color: var(--outline-variant);
}

[data-theme="dark"] .product-info-sheet h3 {
  color: var(--primary);
}

[data-theme="dark"] .product-info-sheet p {
  color: var(--on-surface-variant);
}

[data-theme="dark"] .product-img-frame {
  background-color: var(--surface-container-high);
}

[data-theme="dark"] .page-num,
[data-theme="dark"] .page-arrow {
  background: var(--surface-container-low);
  border-color: var(--outline-variant);
  color: var(--on-surface);
}

[data-theme="dark"] .page-num.active,
[data-theme="dark"] .page-num:hover {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  border-color: var(--primary-container);
}
