/* ===============================
   COLLECTIONS PAGE
================================ */
.collections {
  max-width: 1200px;
  margin: auto;
  padding: 40px 18px;
}

/* HERO TEXT */
.collections h1 {
  font-size: 42px;
  margin-bottom: 6px;
}

.collections .subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 26px;
}

/* ===============================
   FILTERS
================================ */
.filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.sofa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sofa-filters button {
  padding: 6px 14px;
  border: 1px solid #ac8a17;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.sofa-filters button.active,
.sofa-filters button:hover {
  background: #ac8a17;
  color: #fff;
}

/* SEARCH + PRICE */
.price-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#sofaSearch {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===============================
   SOFA GRID – 4 CARDS PER ROW
================================ */
.sofa-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ 4 cards */
  gap: 28px;
  align-items: stretch;
}

/* CARD */
.sofa-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ddd;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.sofa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.sofa-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* CONTENT */
.sofa-content {
  padding: 16px;
}

.sofa-content h3 {
  font-size: 18px;
  margin: 6px 0;
  color: #000;
}

.sofa-price {
  font-weight: 600;
  color: #333;
}

.sofa-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* BUTTON */
.btn-whatsapp {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f5c4c, #13795b);
  color: #fff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #13795b, #0f5c4c);
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
  .collections h1 {
    font-size: 30px;
  }
}
/* TABLET */
@media (max-width: 1024px) {
  .sofa-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards */
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .sofa-grid {
    grid-template-columns: 1fr; /* 1 card */
  }
}

/* ===============================
   COLLECTIONS HERO (LUXURY)
================================ */
.collections-hero {
  position: relative;
  background: url("../images/hero-sofa.jpg") center/cover no-repeat;
  padding: 120px 20px 90px;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.collections-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 40, 35, 0.78), rgba(10, 40, 35, 0.92));
}

.collections-hero .hero-content {
  position: relative;
  max-width: 1100px;
  margin: auto;
  text-align: left;
  color: #fff;
}

.collections-hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin: 18px 0 12px;
  color: #fff;
}

.collections-hero p {
  font-size: 18px;
  max-width: 520px;
  opacity: 0.9;
}

/* Heritage Badge */
.heritage-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(172, 138, 23, 0.18);
  border: 1px solid #ac8a17;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #f5d77a;
}

/* Hero Actions */
.hero-actions {
  margin-top: 26px;
}

.catalog-btn {
  display: inline-block;
  background: linear-gradient(135deg, #272cc9, #9c7b16);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.catalog-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* ===============================
   FILTER BAR (PREMIUM)
================================ */
.collections-filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid #d6c27a;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #c9a227, #9c7b16);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .collections-hero h1 {
    font-size: 34px;
  }

  .collections-hero p {
    font-size: 16px;
  }
}
/* ===============================
   FILTERS LAYOUT – LEFT ALIGNED
================================ */
.collections-filters,
.collections-search {
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Ku wada xiro filters + search */
.collections-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* FILTER BUTTONS – PREMIUM */
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #d6b24c;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(214, 178, 76, 0.12);
}

.filter-btn.active {
  background: linear-gradient(135deg, #c9a227, #9c7b16);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* SEARCH + PRICE */
.collections-search {
  margin-top: 14px;
  gap: 16px;
}

#searchInput {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  min-width: 220px;
  font-size: 14px;
}

#searchInput:focus {
  outline: none;
  border-color: #ac8a17;
}

#priceRange {
  width: 220px;
  accent-color: #ac8a17;
}

.collections-search label {
  font-size: 14px;
  font-weight: 600;
  color: #0f5c4c;
}

@media (max-width: 768px) {
  .collections-filters,
  .collections-search {
    width: 100%;
    justify-content: flex-start;
  }

  #searchInput,
  #priceRange {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .collections-filters {
    background: #ffffff;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    margin: -30px auto 16px;
    width: calc(100% - 24px);
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .filter-btn {
    padding: 9px 18px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .collections-search {
    background: #ffffff;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    width: calc(100% - 24px);
    margin: 0 auto 20px;
  }

  .collections-search label {
    display: block;
    margin-bottom: 6px;
  }
}

@media (max-width: 768px) {
  #priceRange {
    accent-color: #c9a227;
  }
}
@media (max-width: 768px) {
  .collections-hero {
    padding-bottom: 60px;
  }
}
