/* ==========================================================================
   Shop & Category Collection Page Styles (Gifti Vibes)
   ========================================================================== */

/* 1. Header Banner & Breadcrumbs */
.shop-header-banner {
  background-color: var(--bg-pink-soft, #FFF9FB);
  padding: 35px 0 25px;
  border-bottom: 1px solid var(--border-grey, #E9ECEF);
}

.shop-breadcrumbs {
  font-size: 13px;
  color: #777777;
  margin-bottom: 10px;
}

.shop-breadcrumbs a {
  color: var(--secondary-charcoal, #212529);
  text-decoration: none;
}

.shop-breadcrumbs a:hover {
  color: var(--primary-fuchsia, #E6007E);
}

.shop-title {
  font-family: var(--font-heading, 'Quicksand', sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-charcoal, #212529);
}

.shop-description {
  font-size: 14px;
  color: #666666;
  margin-top: 6px;
}

/* 2. Subcategory Quick Navigation Pills */
.category-quick-nav {
  padding: 20px 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-grey, #E9ECEF);
}

.category-pills {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
}

.category-pills li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-btn, 30px);
  background-color: var(--bg-pink-soft, #FFF9FB);
  border: 1px solid var(--border-grey, #E9ECEF);
  color: var(--secondary-charcoal, #212529);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-pills li a:hover,
.category-pills li a.active {
  background-color: var(--primary-fuchsia, #E6007E) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-fuchsia, #E6007E) !important;
}

/* 3. Shop Controls Bar (Sorting & Count) */
.shop-main-content {
  padding: 40px 0 60px;
}

.shop-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  font-size: 14px;
  color: #666666;
}

.catalog-ordering select {
  padding: 8px 16px;
  border: 1px solid var(--border-grey, #E9ECEF);
  border-radius: var(--radius-btn, 30px);
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  color: var(--secondary-charcoal, #212529);
  outline: none;
  background-color: #FFFFFF;
  cursor: pointer;
}

/* 4. Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-card, 12px);
  border: 1px solid var(--border-grey, #E9ECEF);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover { 
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft, 0 4px 20px rgba(230, 0, 126, 0.08)); 
}

.product-thumb { 
  position: relative; 
  width: 100%; 
  height: 220px; 
  overflow: hidden; 
  background: #F8F9FA; 
}

.product-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: var(--primary-fuchsia, #E6007E);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-details { 
  padding: 18px 15px; 
  text-align: center; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title { 
  font-size: 15px; 
  font-weight: 600;
  margin-bottom: 8px; 
}

.product-title a { 
  text-decoration: none; 
  color: var(--secondary-charcoal, #212529); 
}

.product-price { 
  font-weight: 700; 
  color: var(--primary-fuchsia, #E6007E); 
  font-size: 17px; 
  margin-bottom: 14px; 
}

.btn-product-cta { 
  width: 100%; 
  background: var(--secondary-charcoal, #212529) !important; 
  color: #FFFFFF !important; 
  padding: 10px 0; 
  font-size: 13px; 
  font-weight: 600;
  border-radius: var(--radius-btn, 30px); 
  text-decoration: none; 
  display: block; 
}

.btn-product-cta:hover { 
  background: var(--primary-fuchsia, #E6007E) !important; 
}

/* 5. Pagination */
.shop-pagination {
  margin-top: 40px;
  text-align: center;
}

.shop-pagination ul.page-numbers {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shop-pagination ul.page-numbers li a,
.shop-pagination ul.page-numbers li span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-grey, #E9ECEF);
  text-decoration: none;
  color: var(--secondary-charcoal, #212529);
  font-weight: 600;
  font-size: 14px;
}

.shop-pagination ul.page-numbers li span.current {
  background-color: var(--primary-fuchsia, #E6007E);
  color: #FFFFFF;
  border-color: var(--primary-fuchsia, #E6007E);
}

/* Responsive Mobile Layout */
@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .shop-controls-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}