.catalog-hero {
  width: 100%;
  text-align: center;
  margin-top: 90px;
}

.catalog-hero h1 {
  font-size: 42px;
  font-weight: 500;
  color: #0b3a66;
  letter-spacing: 0.5px;
  display: inline-block;
  padding-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.product h1,
.catalog-hero h1 {
  font-size: 42px;
  font-weight: 500;
  color: #0b3a66;
  letter-spacing: 0.5px;
  display: inline-block;
  padding-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ========== IMAGE LEFT + TEXT RIGHT SECTION ========== */
.roller-intro,
.catalog-roller-intro {
  max-width: 1100px;
  margin: 20px auto 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 200px;
}

/* Left: image */
.intro-image,
.catalog-intro-image {
  flex: 1;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.intro-image img,
.catalog-intro-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* Right: text box */
.intro-text,
.catalog-intro-text {
  flex: 1.1;
  background: #f9f9f9;
  padding: 0px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.intro-text h2,
.catalog-intro-text h2 {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #0b0b0b;
}

.intro-text p,
.catalog-intro-text p {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ========== SHOP BY CATEGORY (GRID) ========== */
.categories {
  max-width: 1160px;
  margin: 0 auto 80px;
  padding: 40px 20px 0;
  text-align: center;
}

.categories-header h2 {
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #0b3a66;
  margin-bottom: 6px;
}

.categories-header p {
  font-size: 14px;
  color: #777;
  margin-bottom: 26px;
}

.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: center;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
}

.category-card {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.category-title {
  padding: 14px 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #5ec5e6;
}

.category-title span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

/* ========== (MANUAL / MOTORIZED CAT) ========== */
.cat-section {
  max-width: 1160px;
  margin: 0 auto 80px;
  padding: 40px 20px 60px;
  text-align: center;
  scroll-margin-top: 120px;
}

.cat-header h2 {
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #5ec5e6;
  margin-bottom: 4px;
}

.cat-header p {
  font-size: 14px;
  color: #555;
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* .product-link:hover,
.product-link:focus,
.product-link:visited {
  text-decoration: none;
  color: inherit;
} */

/* Product cards */
.product-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
  text-decoration: none;

}

.img-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 12px 10px 4px;
  text-align: center;
}

.product-card p {
  font-size: 13px;
  text-align: center;
} 

.product-card .price {
  margin: 6px 0 12px;
}

.product-card .price span {
  color: #555;
}

.product-card .img-default,
.product-card .img-hover {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s ease-in-out;
}

.product-card .img-hover {
  opacity: 0;
}

.product-card:hover .img-default {
  opacity: 0;
}

.product-card:hover .img-hover {
  opacity: 1;
}


/* ========== RESPONSIVE GRID ========== */
@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filters-container {
    justify-content: center;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .product h1,
  .catalog-hero h1 {
    font-size: 30px;
  }

  .roller-intro,
  .catalog-roller-intro {
    flex-direction: column;
    min-height: auto;
  }

  .intro-image img,
  .catalog-intro-image img {
    height: 210px;
    width: 350px;
  }

  .intro-text,
  .catalog-intro-text {
    padding: 0px 20px 20px;
  }

  .category-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-container {
    justify-content: center;
  }
}

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

/* ============ FILTER ============ */
.product-filters {
  width: 100%;
  margin: 20px 0;
  display: flex;
  justify-content: right;
}

.filters-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 750px;
}

.filters-container input[type="text"],
.sectionSearch {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #d4d4d4;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
  background: #fff;
  max-width: 450px;
}

.filters-container select,
.sectionType {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #d4d4d4;
  font-size: 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0;
  flex-wrap: wrap;
}

.pagination button {
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  min-width: 32px;
}

.pagination button.active {
  background: #0b3a66;
  color: #ffffff;
  border-color: #0b3a66;
}

.filter-form button {
  background: var(--roller);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
  font-weight: 600;
}

.filter-form button:hover {
  background: var(--blinds);
}

@media (max-width: 600px) {

  .category-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-filters {
    width: auto; 
    margin-left: 20px;
    margin-right: 20px;
  }
  
  .filters-container {
    width: 100%;
  }
}

/* ========== SEARCH SUGGESTIONS ========== */

/* ========================================
   CATALOG PAGE STYLES
   ======================================== */

/* Search Wrapper & Suggestions */
.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #333;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f0f7ff;
    color: #007bff;
}

.no-suggestions {
    padding: 14px 16px;
    color: #888;
    font-style: italic;
    text-align: center;
    font-size: 14px;
}

/* Filter Form */
.filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.filter-form select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-width: 150px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s;
}

.filter-form select:focus {
    outline: none;
    border-color: #007bff;
}

.filter-form button[type="submit"] {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.filter-form button[type="submit"]:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.clear-btn {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.clear-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Product Item Visibility */
.product-item {
    transition: opacity 0.3s, transform 0.3s;
}

.product-item.hidden {
    display: none !important;
}

.product-item.filtered-out {
    display: none !important;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 16px;
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

/* Category Section */
.cat-section {
    margin-bottom: 60px;
}

.cat-section.hidden-category {
    display: none;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination.hidden {
    display: none;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(.active):not(:disabled) {
    background: #f0f7ff;
    border-color: #007bff;
    color: #007bff;
}

.page-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    font-weight: 600;
}

.page-info {
    font-size: 14px;
    color: #666;
    margin: 0 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        padding: 15px;
    }
    
    .search-wrapper {
        width: 100%;
        min-width: unset;
    }
    
    .filter-form select,
    .filter-form button[type="submit"],
    .clear-btn {
        width: 100%;
    }

    .suggestions-dropdown {
        max-height: 200px;
    }

    .suggestion-item {
        padding: 10px 14px;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .filter-form {
        gap: 10px;
    }

    .search-wrapper input,
    .filter-form select,
    .filter-form button {
        padding: 10px 14px;
        font-size: 13px;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}
