/* =============================================
   AVON REMEDIES — PRODUCTS PAGE CSS
   ============================================= */

.products-page {
  padding-top: var(--nav-height);
  min-height: 100vh;
  background: var(--clr-bg);
}

/* Page Hero Banner */
.products-hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #1340A8 100%);
  padding: var(--space-12) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.products-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.products-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.products-hero p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Filter Bar */
.filter-bar {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  border: 1.5px solid var(--clr-border);
  background: var(--clr-white);
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.filter-btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 2px 10px rgba(26,78,196,0.25);
}

/* Search bar */
.products-search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--clr-text-light);
}

.search-input {
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--clr-border);
  background: var(--clr-bg);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--clr-text);
  width: 220px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26,78,196,0.10);
}

/* Products Content */
.products-content {
  padding: var(--space-12) 0 var(--space-20);
}

/* Products Count */
.products-count {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
}

.products-count strong {
  color: var(--clr-primary);
  font-weight: 600;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

/* Product Card */
.product-card {
  background-color: var(--clr-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--clr-border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #EEF2FF 0%, #E8F0FE 100%);
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #F59E0B; /* Amber/Gold */
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}

/* Image placeholder */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, #EEF2FF 0%, #dbeafe 100%);
}

.product-img-placeholder span {
  font-size: 3rem;
}

.product-img-placeholder p {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-primary);
  opacity: 0.5;
  text-align: center;
  padding: 0 var(--space-4);
}

.product-card-body {
  padding: var(--space-8) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-3);
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.product-description {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-5);
}

.product-composition {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
  padding-top: var(--space-4);
  margin-bottom: var(--space-5);
  border-top: 1px solid var(--clr-border);
}

.product-card-footer {
  padding-top: var(--space-4);
}

.btn-enquire {
  width: 100%;
  padding: 0.7rem;
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--clr-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-enquire:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(26,78,196,0.28);
}

/* Loading Skeleton */
.skeleton-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-image {
  height: 220px;
  border-radius: 0;
}

.skeleton-body {
  padding: var(--space-6);
}

.skeleton-tag {
  height: 12px;
  width: 80px;
  margin-bottom: var(--space-3);
}

.skeleton-title {
  height: 24px;
  width: 70%;
  margin-bottom: var(--space-3);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-btn {
  height: 40px;
  margin-top: var(--space-5);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  color: var(--clr-text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--clr-primary);
  margin-bottom: var(--space-3);
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-input { width: 160px; }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-hero h1 {
    font-size: var(--text-3xl);
  }

  .products-search {
    display: none;
  }

  .filter-inner {
    gap: var(--space-2);
  }
}
