/* ============================================
   GAC by Sonya - Products Page Styles
   ============================================ */

/* -- Products Hero -- */
.products-hero {
  background: var(--warm-white);
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.products-hero .section-label {
  display: block;
  margin-bottom: 12px;
}

.products-hero h1 {
  margin-bottom: 14px;
}

.products-hero p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* -- Filter Tabs -- */
.filter-bar {
  background: var(--cream);
  padding: 16px 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.filter-bar__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  color: var(--text-light);
  transition: all 0.22s ease;
  letter-spacing: 0.02em;
}

.filter-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-tab.active {
  background: var(--chocolate);
  color: #fff;
  border-color: var(--chocolate);
}

/* -- Products Grid Section -- */
.products-section {
  padding: 36px 0 56px;
}

/* -- Category heading within grid -- */
.category-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  margin-top: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.category-heading:first-child {
  margin-top: 0;
}

.category-heading h2 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--chocolate);
}

.category-heading .category-count {
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: var(--font-body);
  margin-top: 4px;
}

/* -- Product Grid -- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* -- Product Card -- */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Photo */
.product-card__photo {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #EDE0D4 0%, #D9C4B0 100%);
  overflow: hidden;
}

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

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

.product-card__photo .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #EDE0D4 0%, #D9C4B0 100%);
}

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

.product-card__photo .img-placeholder p {
  font-size: 0.72rem;
  color: var(--mocha);
  font-style: italic;
  opacity: 0.7;
}

/* Badges */
.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Info */
.product-card__info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--chocolate);
  margin-bottom: 5px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 14px;
  font-style: italic;
}

/* Variants */
.product-card__variants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.variant-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  font-family: var(--font-body);
}

.variant-pill:hover,
.variant-pill.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,129,58,0.06);
}

.variant-pill .price {
  font-weight: 600;
  color: var(--chocolate);
}

/* Single variant - just show price inline */
.product-card__price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
  font-family: var(--font-heading);
}

.product-card__price .price-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-light);
}

/* CTA */
.product-card__cta {
  margin-top: auto;
}

.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.22s ease;
}

.btn-order:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.btn-order svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* -- Empty State -- */
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--text-light);
}

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

@media (max-width: 768px) {
  .filter-tab {
    padding: 9px 18px;
    font-size: 0.83rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

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

  .product-card__info {
    padding: 14px;
  }

  .product-card__name {
    font-size: 0.95rem;
  }
}

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