/* Catalog page — aligned with homepage design */

body.catalog-page {
  background: #faf7f2;
  line-height: 2;
}

body.catalog-page #main {
  margin-top: 0;
}

/* แสดงเนื้อหาทันที แม้ AOS ยังไม่โหลด */
body.catalog-page .catalog-section,
body.catalog-page .home-product-card {
  opacity: 1;
  visibility: visible;
}

.catalog-hero {
  position: relative;
  padding: 88px 0 36px;
  background:
    linear-gradient(135deg, rgba(74, 10, 18, 0.9) 0%, rgba(107, 15, 26, 0.78) 100%),
    url('../img/bgg.jpg') top center/cover no-repeat;
  color: #fff;
}

.catalog-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a227, transparent);
}

.catalog-hero .container {
  position: relative;
  z-index: 2;
}

.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 2;
}

.catalog-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.catalog-breadcrumb a:hover {
  color: #f6e6b8;
}

.catalog-breadcrumb i {
  font-size: 12px;
  opacity: 0.7;
}

.catalog-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.75;
  color: #fff;
}

.catalog-hero__lead {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
}

.catalog-section {
  padding: 28px 0 36px;
}

.catalog-detail {
  background: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(74, 10, 18, 0.08);
  border: 1px solid rgba(107, 15, 26, 0.06);
  font-size: 16px;
  line-height: 2;
  color: #2b2b2b;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c9a227;
  color: #6b0f1a;
  font-weight: 600;
  line-height: 2;
}

.catalog-meta__count {
  font-size: 15px;
}

.catalog-empty {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border-radius: 16px;
  color: #6b6b6b;
  line-height: 2;
}

.catalog-empty a {
  color: #6b0f1a;
  font-weight: 600;
}

.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(74, 10, 18, 0.08);
  border: 1px solid rgba(107, 15, 26, 0.06);
}

.search-page-form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(107, 15, 26, 0.15);
  border-radius: 12px;
  font-family: "Sarabun", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #2b2b2b;
  outline: none;
}

.search-page-form input:focus {
  border-color: #6b0f1a;
  box-shadow: 0 0 0 3px rgba(107, 15, 26, 0.08);
}

.search-page-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #6b0f1a;
  color: #fff;
  font-family: "Sarabun", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-page-form__btn:hover {
  background: #4a0a12;
}

.catalog-pagination {
  margin-top: 32px;
  text-align: center;
}

.catalog-pagination__info {
  margin: 0 0 14px;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 2;
}

.catalog-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-pagination__list li a,
.catalog-pagination__list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  color: #6b0f1a;
  background: #fff;
  border: 1px solid rgba(107, 15, 26, 0.12);
  transition: 0.2s ease;
}

.catalog-pagination__list li a:hover {
  background: #6b0f1a;
  color: #fff;
  border-color: #6b0f1a;
}

.catalog-pagination__list li.active span {
  background: #6b0f1a;
  color: #fff;
  border-color: #6b0f1a;
}

.catalog-pagination__list li.disabled span {
  opacity: 0.35;
  cursor: default;
}

.catalog-pagination__list li.ellipsis span {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 6px 4px;
}

@media (max-width: 767px) {
  .catalog-hero {
    padding: 80px 0 28px;
  }

  .catalog-section {
    padding: 20px 0 28px;
  }
}