/* ================================================
   category.css v2.0.0 — Childz theme
   Palette v2 : --forest/--amber/--cream
   Accent variable --accent injecté inline par PHP
   ================================================ */

/* Fallback design system vars */
:root {
  --forest:      #1a3d2e;
  --forest-mid:  #2a5c45;
  --sage:        #4a8c6a;
  --sage-light:  #8abfa0;
  --cream:       #f5f0e8;
  --sand:        #e8dfd0;
  --amber:       #d4883a;
  --amber-light: #f0b96a;
  --charcoal:    #1c1c1a;
  --warm-white:  #faf8f4;
  /* --accent / --accent-l / --accent-bg : injectés via wp_add_inline_style() */
}

/* ─────────────────────────────────────
   MOBILE BAR (custom, fixed)
───────────────────────────────────── */
.cz-cat-mobile-bar {
  display: none;
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0; right: 0;
  z-index: 300;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(245,240,232,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26,61,46,.07);
}
.cz-cat-mobile-back {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--charcoal); text-decoration: none;
}
.cz-cat-mobile-back svg { opacity: .65; }
.cz-mobile-logo {
  font-family: 'Fraunces', serif;
  font-weight: 900; font-size: 20px;
  color: var(--forest); letter-spacing: -.4px; text-decoration: none;
}
.cz-mobile-logo span { color: var(--amber); }
.cz-mobile-icons { display: flex; align-items: center; gap: 2px; }
.cz-icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--charcoal); text-decoration: none;
  border: none; background: transparent; cursor: pointer; position: relative;
}
.cz-icon-btn svg { opacity: .65; }
.cz-cart-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--amber); border-radius: 50%;
  border: 2px solid var(--cream);
}

/* ─────────────────────────────────────
   MOBILE SEARCH BAR
───────────────────────────────────── */
.cz-mobile-search-bar {
  display: none;
  position: sticky;
  top: calc(56px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 200;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 10px 14px;
  gap: 10px;
  align-items: center;
}
.cz-mobile-search-inner {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  background: var(--warm-white);
  border: 1.5px solid rgba(26,61,46,.1);
  border-radius: 12px; padding: 10px 13px;
}
.cz-mobile-search-inner svg { opacity: .32; flex-shrink: 0; }
.cz-mobile-search-inner input {
  border: none; outline: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--charcoal); width: 100%;
}
.cz-mobile-search-inner input::placeholder { color: rgba(28,28,26,.32); }
.cz-mobile-filter-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent, var(--forest));
  border: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
.cz-mobile-filter-count {
  position: absolute; top: -4px; right: -4px;
  width: 17px; height: 17px;
  background: var(--amber); border-radius: 50%;
  border: 2px solid white;
  font-size: 9px; font-weight: 600; color: white;
  display: flex; align-items: center; justify-content: center;
}

/* ─────────────────────────────────────
   MOBILE CHIPS (sous-catégories)
───────────────────────────────────── */
.cz-mobile-chips {
  display: none;
  position: sticky;
  top: calc(56px + 62px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 190;
  padding: 10px 14px 8px;
  overflow-x: auto; scrollbar-width: none;
  white-space: nowrap;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.cz-mobile-chips::-webkit-scrollbar { display: none; }
.cz-mchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 100px;
  font-size: 12px; font-family: 'DM Sans', sans-serif;
  border: 1.5px solid rgba(0,0,0,.09);
  background: white; color: rgba(28,28,26,.65);
  cursor: pointer; margin-right: 7px; text-decoration: none;
  transition: all .15s; flex-shrink: 0;
}
.cz-mchip.active,
.cz-mchip:hover {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
  color: white; font-weight: 500;
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.cz-cat-hero {
  position: relative;
  background: var(--accent, var(--forest));
  overflow: hidden; height: 320px;
  background-size: cover; background-position: center;
}
.cz-cat-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--accent, var(--forest)) 80%, black) 0%,
    var(--accent, var(--forest)) 40%,
    color-mix(in srgb, var(--accent, var(--forest)) 70%, white) 100%);
}
.cz-cat-hero.has-image .cz-cat-hero-bg { display: none; }
.cz-cat-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.15) 55%,
    transparent 100%);
}
.cz-cat-hero.has-image .cz-cat-hero-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,.7) 0%,
    rgba(0,0,0,.25) 55%,
    transparent 100%);
}
.cz-cat-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 56px 36px;
  animation: czFadeUp .5s ease both;
}
.cz-cat-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 12px; flex-wrap: wrap;
}
.cz-cat-breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.cz-cat-breadcrumb a:hover { color: rgba(255,255,255,.8); }
.cz-cat-breadcrumb-sep { opacity: .4; }
.cz-cat-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px; padding: 5px 13px;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,.75); letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 12px;
}
.cz-cat-hero-badge-dot {
  width: 5px; height: 5px;
  background: var(--amber-light); border-radius: 50%;
}
.cz-cat-hero-title {
  font-family: 'Fraunces', serif;
  font-size: 58px; font-weight: 900; color: white;
  letter-spacing: -2px; line-height: .95; margin-bottom: 14px;
}
.cz-cat-hero-title em { font-style: italic; font-weight: 300; color: var(--amber-light); }
.cz-cat-hero-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cz-cat-hero-count { font-size: 14px; color: rgba(255,255,255,.55); }
.cz-cat-hero-eco {
  display: flex; align-items: center; gap: 6px;
  background: rgba(74,140,106,.25);
  border: 1px solid rgba(74,140,106,.4);
  border-radius: 100px; padding: 5px 13px;
  font-size: 12px; color: var(--sage-light); font-weight: 500;
}
.cz-cat-hero-eco-dot {
  width: 5px; height: 5px;
  background: var(--sage-light); border-radius: 50%;
}

/* ─────────────────────────────────────
   SUBCATS TABS (desktop)
───────────────────────────────────── */
.cz-subcats-wrap {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 0 56px;
  position: sticky;
  top: calc(68px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 200;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.cz-subcats-wrap::-webkit-scrollbar { display: none; }
.cz-subcat-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px;
  font-size: 14px; color: rgba(28,28,26,.55);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap; text-decoration: none;
  transition: all .2s; flex-shrink: 0;
}
.cz-subcat-tab:hover { color: var(--charcoal); }
.cz-subcat-tab.active {
  color: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
  font-weight: 500;
}
.cz-sub-count { font-size: 11px; color: rgba(28,28,26,.35); }
.cz-subcats-sep {
  width: 1px; height: 20px;
  background: rgba(0,0,0,.08); flex-shrink: 0;
}

/* ─────────────────────────────────────
   TOOLBAR (desktop)
───────────────────────────────────── */
.cz-cat-toolbar {
  padding: 12px 56px;
  display: flex; align-items: center; gap: 12px;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(0,0,0,.05);
  position: sticky;
  top: calc(68px + 53px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 190;
}
.cz-toolbar-left {
  display: flex; align-items: center; gap: 8px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.cz-toolbar-left::-webkit-scrollbar { display: none; }
.cz-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,.09);
  background: white; font-size: 13px;
  color: rgba(28,28,26,.65); white-space: nowrap;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
  font-family: 'DM Sans', sans-serif; text-decoration: none;
}
.cz-filter-chip:hover { border-color: rgba(0,0,0,.2); color: var(--charcoal); }
.cz-filter-chip.active {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
  color: white;
}
.cz-filter-chip.active svg { opacity: .8; }
.cz-chip-remove {
  width: 15px; height: 15px;
  background: rgba(255,255,255,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: white; line-height: 1;
}
.cz-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: var(--amber); border-radius: 50%;
  font-size: 9px; font-weight: 700; color: white;
}
.cz-toolbar-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.cz-results-count { font-size: 12px; color: rgba(28,28,26,.38); white-space: nowrap; }

/* Sort dropdown */
.cz-sort-wrap { position: relative; }
.cz-sort-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(28,28,26,.6);
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 8px 12px; border-radius: 100px; transition: background .15s;
}
.cz-sort-btn:hover { background: white; }
.cz-sort-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 4px);
  background: white; border: 1px solid rgba(0,0,0,.09);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 160px; overflow: hidden; z-index: 100;
}
.cz-sort-wrap.open .cz-sort-dropdown { display: block; }
.cz-sort-option {
  display: block; padding: 11px 16px;
  font-size: 13px; color: var(--charcoal); text-decoration: none;
  transition: background .12s;
}
.cz-sort-option:hover { background: var(--warm-white); }
.cz-sort-option.active { color: var(--accent, var(--forest)); font-weight: 500; }

/* ─────────────────────────────────────
   PAGE BODY
───────────────────────────────────── */
.cz-page-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0; max-width: 1440px; margin: 0 auto;
  min-height: 600px;
}

/* ─────────────────────────────────────
   SIDEBAR
───────────────────────────────────── */
.cz-sidebar {
  padding: 28px 20px 80px;
  border-right: 1px solid rgba(0,0,0,.06);
  background: white;
  position: sticky;
  top: calc(68px + 53px + 49px + var(--wp-admin--admin-bar--height, 0px));
  height: fit-content;
  max-height: calc(100vh - 170px - var(--wp-admin--admin-bar--height, 0px));
  overflow-y: auto; scrollbar-width: thin;
}
.cz-sidebar::-webkit-scrollbar { width: 3px; }
.cz-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 100px; }

.cz-sidebar-section { margin-bottom: 28px; }
.cz-sidebar-title {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .09em; color: rgba(28,28,26,.35); margin-bottom: 12px;
}

/* Sidebar pills (nav links for subcats) */
.cz-sidebar-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cz-sidebar-pill {
  padding: 6px 13px; border-radius: 100px; font-size: 13px;
  border: 1.5px solid rgba(0,0,0,.09);
  background: var(--warm-white);
  color: rgba(28,28,26,.65); cursor: pointer;
  text-decoration: none; transition: all .15s;
  font-family: 'DM Sans', sans-serif; display: inline-block;
}
.cz-sidebar-pill:hover { border-color: var(--accent, var(--forest)); color: var(--accent, var(--forest)); }
.cz-sidebar-pill.active, label.cz-sidebar-pill:has(input:checked) {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
  color: white; font-weight: 500;
}
label.cz-sidebar-pill { display: inline-block; cursor: pointer; }

/* Price range */
.cz-price-display {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--charcoal); font-weight: 500; margin-bottom: 10px;
}
.cz-range-wrap { position: relative; height: 34px; }
.cz-range-input {
  position: absolute; width: 100%; pointer-events: none;
  -webkit-appearance: none; appearance: none;
  background: transparent; height: 34px; margin: 0;
}
.cz-range-input::-webkit-slider-thumb {
  pointer-events: all; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 2px solid var(--accent, var(--forest));
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  position: relative; z-index: 1;
}
.cz-range-input::-moz-range-thumb {
  pointer-events: all; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 2px solid var(--accent, var(--forest));
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.cz-range-track {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 4px; background: rgba(0,0,0,.1);
  border-radius: 100px; transform: translateY(-50%);
}
.cz-range-fill {
  position: absolute; top: 0; height: 100%;
  background: var(--accent, var(--forest)); border-radius: 100px;
  left: var(--fill-left, 0%); right: var(--fill-right, 0%);
}
.cz-price-vals {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(28,28,26,.38); margin-top: 6px;
}

/* Brand list */
.cz-brand-list { display: flex; flex-direction: column; gap: 4px; }
.cz-brand-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.cz-brand-cb {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,.18); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cz-brand-item.active .cz-brand-cb,
.cz-brand-item:has(input:checked) .cz-brand-cb {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
}
.cz-brand-name { font-size: 13px; color: var(--charcoal); flex: 1; }
.cz-brand-count { font-size: 11px; color: rgba(28,28,26,.35); }

/* Condition list */
.cz-cond-list { display: flex; flex-direction: column; gap: 6px; }
.cz-cond-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 11px;
  border: 1.5px solid rgba(0,0,0,.07);
  background: var(--warm-white); cursor: pointer; transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}
.cz-cond-item:hover { border-color: var(--accent, var(--forest)); }
.cz-cond-item.active,
.cz-cond-item:has(input:checked) {
  border-color: var(--accent, var(--forest));
  background: var(--accent-bg, #f0f5f0);
}
.cz-cond-label { font-size: 13px; font-weight: 500; color: var(--charcoal); }
.cz-cond-sub { font-size: 10px; color: rgba(28,28,26,.38); margin-top: 1px; }
.cz-cond-check {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.cz-cond-item.active .cz-cond-check,
.cz-cond-item:has(input:checked) .cz-cond-check {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
}

/* Livraison list */
.cz-livr-list { display: flex; flex-direction: column; gap: 4px; }
.cz-livr-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0; cursor: pointer;
  font-size: 13px; color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
}
.cz-livr-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.18); flex-shrink: 0;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.cz-livr-inner { width: 6px; height: 6px; border-radius: 50%; background: white; display: none; }
.cz-livr-item.active .cz-livr-dot,
.cz-livr-item:has(input:checked) .cz-livr-dot {
  border-color: var(--accent, var(--forest));
  background: var(--accent, var(--forest));
}
.cz-livr-item.active .cz-livr-inner,
.cz-livr-item:has(input:checked) .cz-livr-inner { display: block; }

/* Sidebar apply button */
.cz-sidebar-apply {
  width: 100%; padding: 12px;
  background: var(--accent, var(--forest)); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  border: none; border-radius: 10px; cursor: pointer; margin-top: 8px;
  transition: opacity .2s;
}
.cz-sidebar-apply:hover { opacity: .88; }

/* ─────────────────────────────────────
   PRODUCTS AREA
───────────────────────────────────── */
.cz-products-area { padding: 24px 28px 80px; }

.cz-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ─────────────────────────────────────
   PRODUCT CARD
───────────────────────────────────── */
.cz-pcard {
  background: white; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.05); cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  animation: czFadeUp .4s ease both;
}
.cz-pcard:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.cz-pcard-link { display: block; text-decoration: none; color: inherit; }
.cz-pcard-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.cz-pcard-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.cz-pcard:hover .cz-pcard-img { transform: scale(1.06); }
.cz-pcard-thumb {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; transition: transform .35s;
}
.cz-pcard:hover .cz-pcard-thumb { transform: scale(1.06); }
.cz-pbadge {
  position: absolute; top: 10px; left: 10px;
  font-size: 9px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 100px; color: white;
}
.cz-pb-eco  { background: var(--sage); }
.cz-pb-new  { background: var(--amber); }
.cz-pb-hot  { background: #c0392b; }
.cz-pfav {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.92); border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, transform .2s;
  color: var(--charcoal);
}
.cz-pcard:hover .cz-pfav { opacity: 1; }
.cz-pfav:hover { transform: scale(1.12); }
.cz-pfav svg { opacity: .45; transition: all .2s; }
.cz-pfav.liked svg { opacity: 1; fill: #e05252; stroke: #e05252; }
.cz-pcard-info { padding: 12px 14px 16px; }
.cz-pc-brand {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; color: var(--sage); margin-bottom: 3px;
}
.cz-pc-name {
  font-size: 13px; font-weight: 500; color: var(--charcoal);
  line-height: 1.25; margin-bottom: 3px;
}
.cz-pc-size { font-size: 11px; color: rgba(28,28,26,.38); margin-bottom: 10px; }
.cz-pc-foot { display: flex; align-items: flex-end; justify-content: space-between; }
.cz-pc-price { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 900; color: var(--forest); line-height: 1; }
.cz-pc-price .woocommerce-Price-amount { font-family: inherit; }
.cz-pc-orig { font-size: 10px; color: rgba(28,28,26,.28); text-decoration: line-through; margin-top: 2px; }
.cz-pc-cond { font-size: 9px; padding: 3px 9px; border-radius: 100px; font-weight: 500; }
.c-neuf  { background: #f0f8e8; color: #3b6d11; }
.c-tb    { background: #e6f1fb; color: #0c447c; }
.c-bon   { background: #e8f4f0; color: #1a5c42; }
.c-used  { background: #fdf3e7; color: #7a4010; }

/* ─────────────────────────────────────
   PROMO INLINE
───────────────────────────────────── */
.cz-promo-inline {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent, var(--forest)) 0%, color-mix(in srgb, var(--accent, var(--forest)) 75%, black) 100%);
  border-radius: 18px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cz-promo-inline::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cz-pi-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.45); margin-bottom: 6px;
}
.cz-pi-title {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 700; color: white; letter-spacing: -.4px;
}
.cz-pi-title em { font-style: italic; font-weight: 300; color: var(--amber-light); }
.cz-pi-sub { font-size: 12px; color: rgba(255,255,255,.38); margin-top: 4px; }
.cz-btn-pi {
  background: var(--amber); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 12px 22px; border-radius: 100px; border: none;
  cursor: pointer; white-space: nowrap; transition: background .2s;
  text-decoration: none; display: inline-block; flex-shrink: 0;
}
.cz-btn-pi:hover { background: #c07a30; }

/* ─────────────────────────────────────
   PAGINATION
───────────────────────────────────── */
.cz-cat-pagination { padding: 32px 0 0; }
.cz-cat-pagination .page-numbers {
  display: flex; gap: 6px; list-style: none;
  padding: 0; margin: 0; justify-content: center; flex-wrap: wrap;
}
.cz-cat-pagination .page-numbers li a,
.cz-cat-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  color: var(--charcoal); text-decoration: none;
  border: 1.5px solid rgba(0,0,0,.08); background: white;
  transition: all .15s;
}
.cz-cat-pagination .page-numbers li a:hover {
  border-color: var(--accent, var(--forest));
  color: var(--accent, var(--forest));
}
.cz-cat-pagination .page-numbers li .current {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
  color: white; font-weight: 600;
}
.cz-cat-pagination .page-numbers li .prev,
.cz-cat-pagination .page-numbers li .next {
  font-size: 18px; font-weight: 400;
}

/* ─────────────────────────────────────
   EMPTY STATE
───────────────────────────────────── */
.cz-cat-empty {
  text-align: center; padding: 80px 20px; grid-column: 1 / -1;
}
.cz-cat-empty-text { font-size: 16px; color: rgba(28,28,26,.45); margin-bottom: 20px; }
.cz-cat-empty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--forest); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  border-radius: 100px; text-decoration: none; transition: background .2s;
}
.cz-cat-empty-btn:hover { background: var(--forest-mid); }

/* ─────────────────────────────────────
   MOBILE FILTER DRAWER
───────────────────────────────────── */
.cz-drawer-backdrop {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,.4); opacity: 0; pointer-events: none;
  transition: opacity .3s; backdrop-filter: blur(2px);
}
.cz-drawer-backdrop.open { opacity: 1; pointer-events: all; }
.cz-filter-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--warm-white); border-radius: 24px 24px 0 0;
  padding: 0 0 40px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  max-height: 88vh; overflow-y: auto;
}
.cz-filter-drawer.open { transform: translateY(0); }
.cz-drawer-handle {
  width: 36px; height: 4px;
  background: rgba(0,0,0,.12); border-radius: 100px;
  margin: 14px auto 0;
}
.cz-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.cz-drawer-title {
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 700;
}
.cz-drawer-reset {
  font-size: 13px; color: var(--sage); font-weight: 500;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.cz-drawer-body { padding: 0 20px; }
.cz-drawer-group { padding-top: 18px; }
.cz-drawer-group-title {
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .09em; color: rgba(28,28,26,.35); margin-bottom: 10px;
}
.cz-drawer-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.cz-dpill {
  padding: 8px 15px; border-radius: 100px;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  border: 1.5px solid rgba(0,0,0,.1);
  background: white; color: rgba(28,28,26,.65);
  cursor: pointer; transition: all .15s; display: inline-block;
}
.cz-dpill.active,
label.cz-dpill:has(input:checked) {
  background: var(--accent, var(--forest));
  border-color: var(--accent, var(--forest));
  color: white; font-weight: 500;
}
label.cz-dpill { cursor: pointer; }
.cz-drawer-apply-wrap { padding: 20px 20px 0; }
.cz-btn-apply {
  width: 100%; padding: 16px;
  background: var(--forest); color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  border: none; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s;
}
.cz-btn-apply:hover { opacity: .88; }

/* ─────────────────────────────────────
   BOTTOM SPACER + TOAST
───────────────────────────────────── */
.cz-bottom-spacer { display: none; height: 88px; }
.cz-toast {
  position: fixed; bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--forest); color: white;
  font-size: 14px; font-weight: 500;
  padding: 13px 24px; border-radius: 100px;
  opacity: 0; pointer-events: none; transition: all .3s;
  white-space: nowrap; z-index: 999;
}
.cz-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─────────────────────────────────────
   ANIMATIONS
───────────────────────────────────── */
@keyframes czFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cz-pcard:nth-child(1) { animation-delay: .03s; }
.cz-pcard:nth-child(2) { animation-delay: .07s; }
.cz-pcard:nth-child(3) { animation-delay: .11s; }
.cz-pcard:nth-child(4) { animation-delay: .15s; }
.cz-pcard:nth-child(5) { animation-delay: .19s; }
.cz-pcard:nth-child(6) { animation-delay: .23s; }
.cz-pcard:nth-child(7) { animation-delay: .27s; }
.cz-pcard:nth-child(8) { animation-delay: .31s; }

/* ─────────────────────────────────────
   RESPONSIVE — MOBILE ≤ 768px
───────────────────────────────────── */
@media (max-width: 768px) {
  .cz-cat-mobile-bar  { display: flex; }
  .cz-mobile-search-bar { display: flex; }
  .cz-mobile-chips    { display: block; }
  .cz-bottom-spacer   { display: block; }

  .cz-cat-hero {
    height: 230px;
    margin-top: calc(56px + var(--wp-admin--admin-bar--height, 0px));
  }
  .cz-cat-hero-content { padding: 0 18px 22px; }
  .cz-cat-hero-title { font-size: 36px; letter-spacing: -1px; }
  .cz-cat-hero-badge { font-size: 10px; padding: 4px 11px; }
  .cz-cat-hero-count { font-size: 12px; }
  .cz-cat-breadcrumb { font-size: 11px; }

  .cz-subcats-wrap   { display: none; }
  .cz-cat-toolbar    { display: none; }
  .cz-page-body      { grid-template-columns: 1fr; }
  .cz-sidebar        { display: none; }
  .cz-products-area  { padding: 12px 10px 16px; }
  .cz-products-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }

  .cz-pcard-info { padding: 9px 11px 12px; }
  .cz-pc-name    { font-size: 12px; }
  .cz-pc-price   { font-size: 17px; }
  .cz-pc-cond    { font-size: 8px; }
  .cz-pbadge     { font-size: 8px; padding: 3px 8px; }
  .cz-pcard-thumb { font-size: 36px; }

  .cz-promo-inline { padding: 18px 16px; flex-direction: column; gap: 14px; }
  .cz-pi-title { font-size: 17px; }
  .cz-btn-pi { font-size: 12px; padding: 10px 18px; align-self: flex-start; }
}
