/* =====================================================
   Category Deals — Discounted Fashion Discovery
   Multi-brand deals page · Price & savings focused
   Refined: premium polish, hierarchy, spacing
   ===================================================== */

/* ── Page & Container ───────────────────────────────── */
.cat-deals-page { background: var(--ph-ivory); }
.cat-deals-main { padding: 2.5rem 0 5rem; }

.cat-deals-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1400px) {
  .cat-deals-container { max-width: 1400px; padding: 0 2rem; }
}

/* ── Hero ───────────────────────────────────────────── */
.cat-hero {
  text-align: center;
  padding: 3rem 0 2.25rem;
}
.cat-hero-eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ph-rose);
  margin-bottom: .5rem;
  display: block;
}
.cat-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .75rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.cat-hero-desc {
  font-size: 1.05rem;
  color: var(--ph-mid);
  max-width: 520px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.cat-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.cat-hero-count {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ph-taupe);
}
.cat-hero-savings {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ph-rose);
  padding: .2rem .6rem;
  background: rgba(176, 122, 118, .08);
  border-radius: var(--ph-radius-pill);
}
.cat-hero-brands-wrap {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ph-border);
}
.cat-hero-brands-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ph-light);
  margin-bottom: .75rem;
}
.cat-hero-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.cat-hero-brand-chip {
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-pill);
  text-decoration: none;
  transition: all var(--ph-transition);
  box-shadow: 0 1px 3px rgba(28, 23, 20, .04);
}
.cat-hero-brand-chip:hover {
  background: var(--ph-white);
  border-color: var(--ph-dusty-pink);
  color: var(--ph-dark);
  box-shadow: 0 2px 8px rgba(28, 23, 20, .06);
}

/* ── Quick Discovery Chips ──────────────────────────── */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--ph-border);
  margin-bottom: 2rem;
}
.cat-chips-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.cat-chips-deals { flex: 1; min-width: 0; }
.cat-chips-category {
  padding-left: 1.5rem;
  border-left: 1px solid var(--ph-border);
}
@media (max-width: 767px) {
  .cat-chips-category {
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--ph-border);
  }
}
.cat-chips-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ph-light);
  margin-right: .25rem;
}
.cat-chip {
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-pill);
  text-decoration: none;
  transition: all var(--ph-transition);
  box-shadow: 0 1px 3px rgba(28, 23, 20, .04);
}
.cat-chip:hover {
  background: var(--ph-rose);
  border-color: var(--ph-rose);
  color: #fff;
  box-shadow: 0 4px 12px rgba(176, 122, 118, .25);
}
.cat-chip-sub {
  background: var(--ph-off-white);
}
.cat-chip-sub:hover {
  background: var(--ph-rose);
  border-color: var(--ph-rose);
  color: #fff;
}

/* ── Layout: Sidebar + Content ─────────────────────── */
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
}
@media (max-width: 991px) {
  .cat-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Filter Sidebar (Sticky) ─────────────────────────── */
.cat-sidebar {
  position: relative;
}
@media (min-width: 992px) {
  .cat-sidebar { position: sticky; top: 1.25rem; align-self: start; }
}
.cat-filter-panel {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(28, 23, 20, .06);
  border: 1px solid rgba(139, 125, 119, .12);
}
.cat-filter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}

/* ── Accordion ───────────────────────────────────────── */
.cat-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-accordion-item {
  border-bottom: 1px solid rgba(139, 125, 119, .1);
}
.cat-accordion-item:last-child {
  border-bottom: none;
}
.cat-filter-accordion-toggle {
  width: 100%;
  padding: .85rem 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ph-dark);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--ph-transition);
}
.cat-filter-accordion-toggle:hover {
  color: var(--ph-rose);
}
.cat-filter-accordion-toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--ph-light);
  border-bottom: 2px solid var(--ph-light);
  transform: rotate(45deg);
  transition: transform var(--ph-transition);
  flex-shrink: 0;
  margin-left: .5rem;
}
.cat-filter-accordion-toggle.collapsed::after {
  transform: rotate(-135deg);
}
.cat-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.cat-accordion-content.show {
  max-height: 500px;
  padding: .25rem 0 .75rem 0;
}
.cat-accordion-content .cat-filter-row { margin-bottom: .5rem; }
.cat-accordion-content .cat-filter-quick { margin-bottom: .25rem; }
.cat-accordion-content .cat-filter-scroll { margin-bottom: .25rem; }
.cat-accordion-content .cat-filter-check { margin-bottom: .15rem; }
.cat-accordion-content .cat-filter-radio { margin-bottom: .15rem; }
.cat-filter-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .4rem;
}
.cat-filter-input {
  flex: 1;
  padding: .55rem .75rem;
  font-size: .88rem;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-off-white);
}
.cat-filter-input:focus {
  outline: none;
  border-color: var(--ph-dusty-pink);
  background: var(--ph-white);
}
.cat-filter-quick {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.cat-filter-quick-btn {
  padding: .4rem .7rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: var(--ph-off-white);
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--ph-transition);
}
.cat-filter-quick-btn:hover {
  background: var(--ph-blush);
  color: var(--ph-dark);
  border-color: var(--ph-dusty-pink);
}
.cat-filter-scroll {
  max-height: 160px;
  overflow-y: auto;
  padding-right: .5rem;
}
.cat-filter-scroll::-webkit-scrollbar { width: 4px; }
.cat-filter-scroll::-webkit-scrollbar-thumb { background: var(--ph-blush); border-radius: 2px; }
.cat-filter-check {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 0;
  font-size: .86rem;
  color: var(--ph-mid);
  cursor: pointer;
}
.cat-filter-check input {
  margin: 0;
  accent-color: var(--ph-rose);
}
.cat-filter-radio {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 0;
  font-size: .86rem;
  color: var(--ph-mid);
  cursor: pointer;
}
.cat-filter-radio input {
  margin: 0;
  accent-color: var(--ph-rose);
}
.cat-filter-actions {
  display: flex;
  gap: .6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(139, 125, 119, .12);
}
.cat-btn-apply {
  flex: 1;
}
.cat-btn-primary {
  display: inline-block;
  padding: .65rem 1.35rem;
  font-size: .88rem;
  font-weight: 600;
  background: var(--ph-rose);
  color: #fff;
  border-radius: var(--ph-radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all var(--ph-transition);
}
.cat-btn-primary:hover {
  background: var(--ph-mocha);
  color: #fff;
}
.cat-btn-ghost {
  padding: .65rem 1.1rem;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: transparent;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-pill);
  text-decoration: none;
  transition: all var(--ph-transition);
}
.cat-btn-ghost:hover {
  border-color: var(--ph-dusty-pink);
  color: var(--ph-dark);
  background: var(--ph-off-white);
}

/* ── Content Area ───────────────────────────────────── */
.cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: .5rem 0;
}
.cat-results {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ph-taupe);
  margin: 0;
}
.cat-sort {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.cat-sort label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ph-light);
}
.cat-sort-select {
  padding: .5rem 1rem;
  font-size: .88rem;
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  background: var(--ph-white);
  color: var(--ph-dark);
  min-width: 160px;
}
.cat-sort-select:focus {
  outline: none;
  border-color: var(--ph-dusty-pink);
}

/* ── Product Grid ────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1199px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
@media (max-width: 767px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 479px) {
  .cat-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Product Card ───────────────────────────────────── */
.cat-card {
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(28, 23, 20, .06);
  border: 1px solid rgba(139, 125, 119, .08);
  transition: box-shadow var(--ph-transition), transform var(--ph-transition), border-color var(--ph-transition);
}
.cat-card:hover {
  box-shadow: 0 12px 36px rgba(28, 23, 20, .1);
  transform: translateY(-3px);
  border-color: rgba(139, 125, 119, .15);
}
.cat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cat-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--ph-off-white);
  overflow: hidden;
}
.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.cat-card:hover .cat-card-img {
  transform: scale(1.04);
}
.cat-card-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  padding: .4rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: #c73e4a;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(199, 62, 74, .35);
}
.cat-card-body {
  padding: 1.15rem 1.25rem;
}
.cat-card-brand {
  font-size: .72rem;
  color: var(--ph-light);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cat-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-card-rating {
  font-size: .8rem;
  color: var(--ph-taupe);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.cat-stars {
  color: var(--ph-gold);
}
.cat-review-count {
  color: var(--ph-light);
}
.cat-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-bottom: .75rem;
}
.cat-price-current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ph-dark);
  letter-spacing: -.02em;
}
.cat-price-original {
  font-size: .88rem;
  color: var(--ph-light);
  text-decoration: line-through;
}
.cat-save {
  font-size: .78rem;
  font-weight: 600;
  color: #0d7a4a;
  padding: .15rem .45rem;
  background: rgba(13, 122, 74, .08);
  border-radius: 6px;
}
.cat-card-cta {
  display: inline-block;
  padding: .55rem 1.1rem;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ph-rose);
  border: 1.5px solid var(--ph-rose);
  border-radius: var(--ph-radius-pill);
  transition: all var(--ph-transition);
}
.cat-card:hover .cat-card-cta {
  background: var(--ph-rose);
  color: #fff;
}

/* ── Empty State ───────────────────────────────────── */
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--ph-white);
  border-radius: var(--ph-radius);
  border: 1px dashed var(--ph-border);
  box-shadow: 0 2px 16px rgba(28, 23, 20, .04);
}
.cat-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: .5rem;
}
.cat-empty-desc {
  font-size: .95rem;
  color: var(--ph-mid);
  margin-bottom: 1.5rem;
}

/* ── Pagination ─────────────────────────────────────── */
.cat-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.cat-pagination-list {
  display: flex;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cat-page-link {
  display: inline-block;
  padding: .55rem .9rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: 10px;
  text-decoration: none;
  transition: all var(--ph-transition);
  box-shadow: 0 1px 3px rgba(28, 23, 20, .04);
}
.cat-page-link:hover {
  background: var(--ph-blush);
  border-color: var(--ph-dusty-pink);
  color: var(--ph-dark);
}
.cat-page-link.active {
  background: var(--ph-rose);
  border-color: var(--ph-rose);
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 8px rgba(176, 122, 118, .25);
}

/* ── Browse More ─────────────────────────────────────── */
.cat-browse-more {
  padding: 3.5rem 0 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--ph-border);
}
.cat-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ph-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.cat-browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.cat-browse-links a {
  padding: .55rem 1.1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ph-mid);
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-pill);
  text-decoration: none;
  transition: all var(--ph-transition);
  box-shadow: 0 1px 3px rgba(28, 23, 20, .04);
}
.cat-browse-links a:hover {
  background: var(--ph-blush);
  border-color: var(--ph-dusty-pink);
  color: var(--ph-dark);
  box-shadow: 0 2px 8px rgba(28, 23, 20, .06);
}
