/* ============================================================
   EGYPT AROMATIC — Products Page Styles
   ============================================================ */

/* ── Filter Bar ── */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}
.search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-500);
  font-size: 0.9rem;
}
.search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  outline: none;
}
.search-input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--green-mid);
  color: var(--green-mid);
  background: var(--green-pale);
}
.filter-pill.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26, 71, 49, 0.3);
}
.products-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.products-count strong {
  color: var(--green-dark);
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Photo-free Product Card ── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-card-img-container {
  padding: 1rem;
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card-img-container .product-card-cat-badge {
  padding: 7px 14px;
  background: var(--green-dark);
  color: rgba(255, 255, 255);
  border: none;
  box-shadow: 0 2px 8px rgba(26, 71, 49, 0.3);
}

.product-card-name-header-img {
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.product-card-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition);
}
/* Coloured header band — different per category */
.product-card-header {
  position: relative;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  overflow: hidden;
  min-height: 148px;
}

/* Essential Oils — deep green */
.product-card-header.cat-essential {
  background: linear-gradient(135deg, #1a4731 0%, #2e7d32 60%, #1b5e20 100%);
}
/* Cold-Pressed — warm amber-gold */
.product-card-header.cat-cold {
  background: linear-gradient(135deg, #6d4c00 0%, #c9a84c 60%, #8b6914 100%);
}
/* Absolutes — rich plum-purple */
.product-card-header.cat-absolute {
  background: linear-gradient(135deg, #3e1f47 0%, #7b3fa0 60%, #4a1259 100%);
}

/* Decorative circle blob */
.product-card-header::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.product-card-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.product-card-cat-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  align-self: flex-start;
}
.product-card-name-header {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-top: 2px;
}

/* Body */
.product-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card-botanical {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--grey-500);
}
.product-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--grey-200);
  margin-top: auto;
}
.product-card-method {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.product-card-method i {
  color: var(--green-mid);
}
.product-card-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 0.75rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-card:hover .product-card-arrow {
  background: var(--green-dark);
  color: white;
  transform: translateX(3px);
}

/* Origin tag */
.product-card-origin {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  color: var(--grey-500);
  font-weight: 500;
}
.product-card-origin i {
  color: var(--gold);
  font-size: 0.7rem;
}

/* ── No Results ── */
.no-results {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.no-results i {
  font-size: 2.5rem;
  color: var(--grey-300);
  margin-bottom: 16px;
  display: block;
}

/* ── Product Detail Page ── */
.product-detail-hero {
  background: var(--green-tint);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 60px;
  margin-top: 72px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-detail-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-cat-badge {
  margin-bottom: 8px;
}
.product-detail-name {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 4px;
}
.product-detail-botanical {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}
.product-detail-desc {
  margin-bottom: 28px;
  font-size: 1rem;
}
.product-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.spec-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
}

.product-detail-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.product-detail-section:last-child {
  border-bottom: none;
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.doc-card {
  background: var(--green-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}
.doc-card:hover {
  background: var(--green-pale);
  border-color: var(--green-mid);
}
.doc-card i {
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 8px;
  display: block;
}
.doc-card span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
}

.packaging-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.packaging-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--white);
  transition: all var(--transition);
}
.packaging-opt:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-sm);
  background: var(--green-tint);
}
.packaging-opt i {
  font-size: 1.3rem;
  color: var(--green-mid);
  margin-bottom: 4px;
}
.packaging-opt span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}
/* Packaging info note */
.packaging-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #1E40AF;
  line-height: 1.6;
}
.packaging-note i {
  color: #3B82F6;
  margin-top: 2px;
  flex-shrink: 0;
}

.application-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.application-tag {
  padding: 6px 14px;
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ── Cold-Pressed Uses & Benefits ── */
.cold-uses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.cold-use-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.cold-use-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-sm);
  background: var(--green-tint);
}
.cold-use-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cold-use-body h4 {
  font-size: 0.92rem;
  color: var(--green-dark);
  margin-bottom: 6px;
  font-weight: 700;
}
.cold-use-body p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .packaging-opts {
    grid-template-columns: repeat(2, 1fr);
  }
  .cold-uses-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .product-detail-specs {
    grid-template-columns: 1fr;
  }
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrap {
    max-width: 100%;
  }
  .packaging-opts {
    grid-template-columns: 1fr 1fr;
  }
}
