/* ══════════════════════════════
   CATEGORY PAGE STYLES
   pc-cat-* namespace
══════════════════════════════ */

/* ── BREADCRUMB ── */
.pc-cat-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 9px var(--px);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-cat-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pc-cat-breadcrumb a:hover { color: var(--coral); }
.pc-cat-bc-sep { color: #ccc; }
.pc-cat-bc-current { color: #333; font-weight: var(--fw-semi); }
/* Rank Math breadcrumb overrides */
.pc-cat-breadcrumb .rank-math-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-cat-breadcrumb .rank-math-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pc-cat-breadcrumb .rank-math-breadcrumb a:hover { color: var(--coral); }

/* ── CATEGORY HERO ── */
.pc-cat-hero {
  display: flex;
  align-items: stretch;
  min-height: 320px;
  padding: 0 var(--px);
  border-bottom: 2px solid var(--border);
  overflow: hidden;
}
.pc-cat-hero--coral {
  background: linear-gradient(135deg, #fff5f5 0%, #fff0ee 55%, var(--mint-light) 100%);
}
.pc-cat-hero--mint {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f8f0 55%, #fff5f5 100%);
}

.pc-cat-hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 32px 36px 0;
}

/* Eyebrow pill */
.pc-cat-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
  width: fit-content;
}
.pc-cat-hero--coral .pc-cat-eyebrow {
  border: 1.5px solid var(--coral-border);
  color: var(--coral);
}
.pc-cat-hero--mint .pc-cat-eyebrow {
  border: 1.5px solid #b2dfdb;
  color: var(--mint-dark);
}

/* Heading */
.pc-cat-h1 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: var(--fw-black);
  color: #1a1a1a;
  line-height: 1.15;
  margin-bottom: 10px;
}
.pc-cat-h1 em { font-style: normal; }
.pc-cat-hero--coral .pc-cat-h1 em { color: var(--coral); }
.pc-cat-hero--mint  .pc-cat-h1 em { color: var(--mint-dark); }

/* Description */
.pc-cat-desc {
  font-size: 13px;
  color: #555;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.pc-cat-desc strong { color: #333; }

/* Trust pills */
.pc-cat-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pc-cat-trust-item {
  font-size: 11px;
  font-weight: var(--fw-semi);
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pc-cat-trust-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.pc-cat-hero--coral .pc-cat-trust-item::before { background: var(--coral); }
.pc-cat-hero--mint  .pc-cat-trust-item::before { background: var(--mint); }
.pc-cat-trust-item:nth-child(even)::before {
  background: var(--gold);
}

/* Stats row */
.pc-cat-stats {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.pc-cat-stat__num {
  font-size: 15px;
  font-weight: var(--fw-black);
  line-height: 1;
}
.pc-cat-hero--coral .pc-cat-stat__num { color: var(--coral); }
.pc-cat-hero--mint  .pc-cat-stat__num { color: var(--mint-dark); }
.pc-cat-stat__lbl {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: var(--fw-semi);
  margin-top: 2px;
}

/* Right image panel */
.pc-cat-hero__right {
  flex: 0 0 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 20px 24px;
}
.pc-cat-hero__img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--r-lg);
  animation: pc-float 4s ease-in-out infinite;
}
.pc-cat-hero--coral .pc-cat-hero__img { box-shadow: 0 16px 48px rgba(255,107,107,0.18); }
.pc-cat-hero--mint  .pc-cat-hero__img { box-shadow: 0 16px 48px rgba(81,207,156,0.22); }

.pc-cat-hero__emoji-fallback {
  width: 100%;
  height: 260px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  animation: pc-float 4s ease-in-out infinite;
}
.pc-cat-hero--coral .pc-cat-hero__emoji-fallback { background: linear-gradient(135deg,#fff5f5,#ffcdd2); }
.pc-cat-hero--mint  .pc-cat-hero__emoji-fallback { background: linear-gradient(135deg,#f0faf5,#b2dfdb); }

/* ── PAGE BODY (sidebar + products) ── */
.pc-cat-body {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--px);
  gap: 24px;
}

/* ── SIDEBAR ── */
.pc-cat-sidebar { width: 220px; flex-shrink: 0; }

.pc-cat-widget {
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.pc-cat-widget__title {
  font-size: 13px;
  font-weight: var(--fw-black);
  color: #222;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.pc-cat-widget__title--mint { border-bottom-color: var(--mint); }

/* Price slider */
.pc-cat-price-range { padding: 4px 0; }
.pc-cat-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--coral) 0%, var(--coral) 60%, #e0e0e0 60%);
  border-radius: 4px;
  outline: none;
  margin-bottom: 8px;
  cursor: pointer;
}
.pc-cat-slider--mint {
  background: linear-gradient(to right, var(--mint) 0%, var(--mint) 60%, #e0e0e0 60%);
}
.pc-cat-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,107,107,.4);
}
.pc-cat-slider--mint::-webkit-slider-thumb {
  background: var(--mint);
  box-shadow: 0 2px 6px rgba(81,207,156,.4);
}
.pc-cat-price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
.pc-cat-apply-btn {
  width: 100%;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 9px;
  font-size: 12px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  margin-top: 10px;
  transition: background .2s;
}
.pc-cat-apply-btn:hover { background: var(--coral-dark); }
.pc-cat-apply-btn--mint { background: var(--mint); }
.pc-cat-apply-btn--mint:hover { background: var(--mint-dark); }

/* Filter checkboxes */
.pc-cat-filter-list { list-style: none; }
.pc-cat-filter-list li {
  padding: 6px 0;
  font-size: 12px;
  color: #444;
  border-bottom: 1px solid #fafafa;
}
.pc-cat-filter-list li:last-child { border-bottom: none; }
.pc-cat-filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pc-cat-filter-list label:hover { color: var(--coral); }

/* ── PRODUCTS GRID ── */
.pc-cat-products { flex: 1; }

.pc-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Product card */
.pc-cat-card {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pc-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pc-cat-card:hover .pc-cat-card__overlay { opacity: 1; }

.pc-cat-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-black);
  padding: 3px 9px;
  border-radius: 10px;
  z-index: 2;
}
.pc-cat-badge--mint { background: var(--mint); }

.pc-cat-wishlist {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: background .15s;
  text-decoration: none;
  color: #888;
}
.pc-cat-wishlist:hover { background: #fff; color: var(--coral); }

.pc-cat-card__img {
  position: relative;
  overflow: hidden;
}
.pc-cat-card__photo,
.pc-cat-card__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.pc-cat-card:hover .pc-cat-card__photo,
.pc-cat-card:hover .pc-cat-card__img img { transform: scale(1.04); }

.pc-cat-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  gap: 6px;
}
.pc-cat-quick-btn {
  flex: 1;
  background: rgba(255,255,255,.95);
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 6px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.pc-cat-quick-btn:hover { background: #fff; color: #333; }
.pc-cat-quick-btn--primary { background: var(--coral); color: #fff; }
.pc-cat-quick-btn--primary.mint { background: var(--mint); }
.pc-cat-quick-btn--primary:hover { background: var(--coral-dark); color: #fff; }
.pc-cat-quick-btn--primary.mint:hover { background: var(--mint-dark); }

.pc-cat-card__body { padding: 12px; }
.pc-cat-card__title {
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: #222;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-cat-card__title a { color: inherit; text-decoration: none; }
.pc-cat-card__title a:hover { color: var(--coral); }
.pc-cat-card__sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.pc-cat-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.pc-cat-stars { color: var(--gold); font-size: 11px; }
.pc-cat-rating-num { font-size: 10px; color: var(--text-muted); }

.pc-cat-card__price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.pc-cat-price {
  font-size: 16px;
  font-weight: var(--fw-black);
  color: var(--coral);
}
.pc-cat-price--mint { color: var(--mint-dark); }
.pc-cat-price-old {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
}

.pc-cat-add-btn {
  width: 100%;
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: block;
  text-align: center;
  text-decoration: none;
}
.pc-cat-add-btn:hover {
  background: var(--coral-dark);
  color: #fff;
  transform: scale(1.01);
}
.pc-cat-add-btn--mint { background: var(--mint); }
.pc-cat-add-btn--mint:hover { background: var(--mint-dark); }

/* ── PAGINATION ── */
.pc-cat-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.pc-cat-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pc-cat-pagination ul li a,
.pc-cat-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: var(--fw-semi);
  border: 1.5px solid var(--border-mid) !important;
  color: #555 !important;
  background: #fff !important;
  text-decoration: none;
  transition: all .15s;
}
.pc-cat-pagination ul li a:hover {
  border-color: var(--coral) !important;
  color: var(--coral) !important;
  background: var(--coral-light) !important;
}
.pc-cat-pagination ul li span.current {
  background: var(--coral) !important;
  border-color: var(--coral) !important;
  color: #fff !important;
}

/* ── EMPTY STATE ── */
.pc-cat-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.pc-cat-empty p { font-size: 16px; margin-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .pc-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-cat-hero__right { flex: 0 0 280px; }
}

@media (max-width: 768px) {
  .pc-cat-hero { flex-direction: column; padding: 24px var(--px-sm); min-height: auto; }
  .pc-cat-hero__left { padding: 0 0 16px; }
  .pc-cat-hero__right { flex: none; width: 100%; padding: 0; }
  .pc-cat-hero__img,
  .pc-cat-hero__emoji-fallback { max-height: 180px; height: 180px; }

  .pc-cat-body { flex-direction: column; padding: 16px var(--px-sm); }
  .pc-cat-sidebar { width: 100%; }

  .pc-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-cat-breadcrumb { padding: 9px var(--px-sm); }
}

@media (max-width: 420px) {
  .pc-cat-card__photo,
  .pc-cat-card__img img { height: 150px; }
}
