/* ========================================
   products.css — Product Catalog Page Styles
   Yisi Textile
   ======================================== */

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,.008) 2px,
      rgba(255,255,255,.008) 4px
    ),
    linear-gradient(160deg, #0a0e1a 0%, #101a30 40%, #142040 70%, #0d1530 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(201,169,110,.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 20% 80%, rgba(201,169,110,.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  margin: 12px 0 20px;
  letter-spacing: -0.5px;
}

.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--white));
}

/* ---------- FILTER BAR ---------- */
.filter-section {
  background: var(--white);
  padding: 28px 0 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.filter-btn {
  padding: 9px 22px;
  border: 1.5px solid var(--gray-300);
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

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

.filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ---------- PRODUCTS GRID SECTION ---------- */
.products-grid-section {
  background: #fafaf9;
  padding-top: 64px;
}

/* ---------- CATEGORY BLOCK ---------- */
.category-block {
  margin-bottom: 72px;
}

.category-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.category-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.cat-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--dark);
}

.cat-desc {
  font-size: .95rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.7;
  margin-left: calc(1.8rem + 14px); /* align under title */
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ---------- PRODUCT CARD ---------- */
.prod-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

/* Product image */
.prod-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

/* Product badges */
.prod-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--gold);
}

.prod-tag.bestseller {
  background: var(--gold);
  color: var(--dark);
}

.prod-tag.new {
  background: #2e7d52;
  color: #fff;
}

.prod-tag.premium {
  background: linear-gradient(135deg, #c9a96e, #e8c97a);
  color: var(--dark);
}

/* Product body */
.prod-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.prod-summary {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Specs table */
.prod-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.prod-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .825rem;
}

.spec-label {
  color: var(--gray-400);
  font-weight: 500;
}

.spec-val {
  color: var(--dark);
  font-weight: 500;
  text-align: right;
}

/* Small button */
.btn-sm {
  padding: 9px 20px;
  font-size: .875rem;
  margin-top: auto;
  display: inline-block;
  text-align: center;
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2a4a 100%);
  padding: 64px 0;
  margin-top: 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  max-width: 500px;
  line-height: 1.6;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  white-space: nowrap;
}

/* ---------- NAV ACTIVE STYLE ---------- */
.nav-active {
  color: var(--gold) !important;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cat-desc {
    margin-left: 0;
    margin-top: 8px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 7px 16px;
    font-size: .8rem;
  }

  .page-hero {
    padding: 140px 0 60px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
