/* ===============================
   CATEGORY PAGE ONLY (NO GLOBALS)
   =============================== */

/* ===== Category Hero ===== */
.category-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem 1rem;
  text-align: center;
  background: linear-gradient(to bottom, #faf0f4 0%, #fff8f9 60%);
}

.category-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 550;
  color: #d8a86f;
  margin-bottom: 0.6rem;
  text-decoration: underline;
  text-decoration-color: #e4b980;
  text-underline-offset: 4px;
}

.category-hero p {
  color: #7a5f5f;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  animation: soft-fade 1.5s ease forwards;
}

/* Subtle entrance */
@keyframes soft-fade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Category Filter ===== */
.category-filter {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.category-filter form {
  width: 100%;
  max-width: 320px;
}

.category-filter select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: 1px solid #e4b980;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #7a5f5f;
  cursor: pointer;
  outline: none;
  appearance: none;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23c777b9' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.category-filter select:hover,
.category-filter select:focus {
  border-color: #c777b9;
  box-shadow: 0 0 0 2px rgba(199,119,185,0.18);
}

/* ===== Product Card Link Wrapper ===== */
.product-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* ===== Mobile Tweaks ===== */
@media (max-width: 480px) {
  .category-hero {
    padding: 0.5rem 1rem 1rem;
  }

  .category-hero h1 {
    font-size: 1.6rem;
  }

  .category-hero p {
    font-size: 0.95rem;
  }

  .category-filter {
    margin: 0.8rem 0 1.2rem;
  }
}
/* ===============================
   PAGINATION
   =============================== */

   .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin: 2.5rem auto 3rem;
    flex-wrap: wrap;
  }
  
  .pagination a {
    padding: 0.45rem 1rem;
    border-radius: 22px;
    border: 1px solid #e4b980;
    background: #fff;
    color: #7a5f5f;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
  }
  
  .pagination a:hover {
    background: #e4b980;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  }
  
  .pagination span {
    padding: 0.45rem 1rem;
    border-radius: 22px;
    background: linear-gradient(to right, #f7e7c8, #f3d6a4);
    color: #6b4b2f;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
  }
  
  /* ===== Mobile Pagination ===== */
  @media (max-width: 480px) {
    .pagination {
      gap: 0.5rem;
      margin: 2rem 0 2.5rem;
    }
  
    .pagination a,
    .pagination span {
      font-size: 0.85rem;
      padding: 0.4rem 0.85rem;
    }
  }
/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background: linear-gradient(to bottom, #faf0f4 0%, #fff8f9 60%);
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Inputs and select - remove flex on mobile */
.filter-bar input,
.filter-bar select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
  flex: 1; /* desktop only */
  min-width: 0; /* prevents unnecessary stretching */
}

/* Clear button styling */
.filter-bar button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #d8a86f;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

/* Focus and hover for select/input */
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #c777b9;
  box-shadow: 0 0 0 2px rgba(199,119,185,0.18);
}

/* Mobile-specific tweaks */
@media (max-width: 480px) {
  .filter-bar {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }
 
  .filter-bar input,
  .filter-bar select,
  .filter-bar button {
    width: 100%;  /* full width */
    flex: none;   /* remove flex-grow to prevent extra space */
  }
}
