/* ============================================================
   COSMOSKIN — All Products Catalog
   Scoped to allproducts.html only. Does not affect homepage sections.
   ============================================================ */
.cs-allproducts {
  background:
    radial-gradient(circle at 86% 4%, rgba(214, 190, 160, .20), transparent 32%),
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, .78), transparent 28%),
    linear-gradient(180deg, #f8f2eb 0%, #fbf7f1 48%, #f6eee5 100%);
  min-height: 100vh;
  overflow-x: clip;
}

.cs-allproducts .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cs-ap-hero {
  padding: clamp(58px, 7vw, 104px) 0 24px;
}

.cs-ap-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(28px, 5vw, 92px);
  align-items: end;
  border-bottom: 1px solid rgba(27, 22, 17, .12);
  padding-bottom: clamp(24px, 4vw, 38px);
}

.cs-ap-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 92px);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 400;
  color: #15100c;
}

.cs-ap-hero__copy p:not(.kicker) {
  margin: 18px 0 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.85;
  color: #6b6057;
}

.cs-ap-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cs-ap-hero__meta article {
  min-height: 96px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(27, 22, 17, .09);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,241,234,.76));
  box-shadow: 0 18px 46px rgba(21, 16, 10, .06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.cs-ap-hero__meta span {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #18130f;
}

.cs-ap-hero__meta small {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #86776a;
}

.cs-ap-section {
  padding: 22px 0 42px;
}

.cs-ap-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.cs-ap-filter-toggle {
  display: none;
}

.cs-ap-sidebar {
  position: sticky;
  top: 114px;
  border-radius: 26px;
  border: 1px solid rgba(27, 22, 17, .08);
  background: rgba(255, 253, 249, .78);
  box-shadow: 0 24px 60px rgba(20, 15, 10, .07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 18px 18px 20px;
  max-height: calc(100vh - 132px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 64, 44, .24) transparent;
}

.cs-ap-sidebar__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27, 22, 17, .09);
}

.cs-ap-sidebar__head strong {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #15100c;
}

.cs-ap-sidebar__head span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #8a7d70;
}

.cs-ap-clear,
.cs-ap-filter-close {
  border: 0;
  background: transparent;
  color: #8b7763;
  font-size: 11px;
  cursor: pointer;
}

.cs-ap-clear:hover,
.cs-ap-filter-close:hover { color: #15100c; }
.cs-ap-filter-close { display: none; font-size: 24px; line-height: 1; }

.cs-ap-filter-group {
  border-bottom: 1px solid rgba(27, 22, 17, .09);
  padding: 15px 0;
}

.cs-ap-filter-title {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a6d43;
  font-weight: 700;
  cursor: pointer;
}

.cs-ap-filter-title::after {
  content: '⌄';
  font-size: 14px;
  color: #6d6157;
  transform: rotate(-90deg);
  transition: transform .18s ease;
}

.cs-ap-filter-group.is-open .cs-ap-filter-title::after { transform: rotate(0deg); }
.cs-ap-filter-group:not(.is-open) .cs-ap-filter-body,
.cs-ap-filter-group:not(.is-open) .cs-ap-mini-search,
.cs-ap-filter-group:not(.is-open) .cs-ap-price-box { display: none; }

.cs-ap-filter-body {
  display: grid;
  gap: 10px;
  padding-top: 15px;
}

.cs-ap-check {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 22px;
  cursor: pointer;
  color: #312820;
}

.cs-ap-check input {
  width: 15px;
  height: 15px;
  accent-color: #15100c;
  cursor: pointer;
}

.cs-ap-check span {
  font-size: 12px;
  line-height: 1.35;
}

.cs-ap-check small {
  font-size: 11px;
  color: #938679;
  font-variant-numeric: tabular-nums;
}

.cs-ap-check.is-muted { display: none; }

.cs-ap-mini-search { display: block; padding-top: 13px; }
.cs-ap-mini-search input,
.cs-ap-price-inputs input,
.cs-ap-search-wrap input,
.cs-ap-select-label select,
.cs-ap-pagination select {
  width: 100%;
  border: 1px solid rgba(27, 22, 17, .10);
  background: rgba(255, 255, 255, .64);
  border-radius: 14px;
  color: #1b1611;
  outline: none;
}

.cs-ap-mini-search input {
  height: 40px;
  padding: 0 12px;
  font-size: 12px;
}

.cs-ap-price-box { padding-top: 15px; }
.cs-ap-price-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #17120e;
  font-weight: 700;
  margin-bottom: 12px;
}

.cs-ap-range {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}

.cs-ap-range::before,
.cs-ap-range-track {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: #e7ded3;
}

.cs-ap-range-track {
  left: var(--range-left, 0%);
  right: var(--range-right, 0%);
  background: #15100c;
}

.cs-ap-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 30px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.cs-ap-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #15100c;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 12, 8, .18);
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cs-ap-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #15100c;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 12, 8, .18);
  pointer-events: auto;
  cursor: pointer;
}

.cs-ap-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.cs-ap-price-inputs label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #88796b;
}

.cs-ap-price-inputs input {
  margin-top: 6px;
  height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.cs-ap-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.cs-ap-price-preset {
  border: 1px solid rgba(27, 22, 17, .08);
  background: rgba(245, 238, 230, .9);
  border-radius: 999px;
  padding: 7px 9px;
  font-size: 10px;
  color: #66584c;
  cursor: pointer;
}

.cs-ap-price-preset.is-active,
.cs-ap-price-preset:hover {
  background: #15100c;
  color: #fff;
}

.cs-ap-content { min-width: 0; }

.cs-ap-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.cs-ap-search-wrap {
  min-width: 280px;
  max-width: 520px;
  flex: 1;
  position: relative;
}

.cs-ap-search-wrap span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8a7867;
}

.cs-ap-search-wrap input {
  height: 50px;
  border-radius: 999px;
  padding: 0 18px 0 46px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.cs-ap-search-wrap input:focus,
.cs-ap-select-label select:focus,
.cs-ap-pagination select:focus,
.cs-ap-mini-search input:focus,
.cs-ap-price-inputs input:focus {
  border-color: rgba(151, 108, 65, .42);
  box-shadow: 0 0 0 4px rgba(177, 136, 91, .10);
}

.cs-ap-toolbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.cs-ap-result-copy {
  margin: 0;
  font-size: 12px;
  color: #6c6157;
  white-space: nowrap;
}

.cs-ap-result-copy strong { color: #17120e; }

.cs-ap-select-label,
.cs-ap-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b6057;
  white-space: nowrap;
}

.cs-ap-select-label select,
.cs-ap-pagination select {
  width: auto;
  height: 42px;
  padding: 0 38px 0 14px;
  border-radius: 12px;
}

.cs-ap-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 20px;
  border-bottom: 1px solid rgba(27, 22, 17, .10);
  margin-bottom: 18px;
}

.cs-ap-quick {
  border: 1px solid rgba(27, 22, 17, .12);
  background: rgba(255,255,255,.54);
  border-radius: 999px;
  height: 38px;
  padding: 0 18px;
  color: #3d342c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s ease;
}

.cs-ap-quick:hover,
.cs-ap-quick.is-active {
  background: #15100c;
  color: #fff;
  border-color: #15100c;
  box-shadow: 0 12px 28px rgba(18,13,8,.12);
}

.cs-ap-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  margin: 0 0 18px;
}

.cs-ap-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(27, 22, 17, .08);
  background: rgba(236, 225, 213, .76);
  color: #4a3f35;
  padding: 7px 10px 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
}

.cs-ap-filter-chip span {
  font-size: 14px;
  line-height: 1;
}

.cs-ap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cs-allproducts .cs-catalog-card {
  min-width: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,245,239,.88));
  border: 1px solid rgba(27, 22, 17, .075);
  box-shadow: 0 20px 48px rgba(18, 13, 8, .065);
}

.cs-allproducts .cs-catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(163, 121, 78, .22);
  box-shadow: 0 28px 70px rgba(18, 13, 8, .10);
}

.cs-allproducts .cs-catalog-card .product-media {
  aspect-ratio: 1 / .98;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.88), transparent 44%),
    linear-gradient(180deg, #f8f2ec 0%, #efe4d7 100%);
  padding: 24px 24px 18px;
  overflow: hidden;
}

.cs-allproducts .cs-catalog-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  border-radius: 0;
  padding: 18px;
  filter: drop-shadow(0 18px 24px rgba(24, 18, 12, .10));
  transition: transform .28s ease;
}

.cs-allproducts .cs-catalog-card:hover .product-media img { transform: translateY(-3px) scale(1.025); }

.cs-ap-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(27, 22, 17, .08);
  box-shadow: 0 10px 22px rgba(18,13,8,.06);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a5b34;
}

.cs-allproducts .cs-catalog-card .favorite-btn {
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
}

.cs-allproducts .cs-catalog-card .product-body {
  padding: 18px 20px 20px;
  gap: 8px;
}

.cs-allproducts .cs-catalog-card .brandline {
  color: #9b6d43;
  font-size: 9px;
  letter-spacing: .22em;
}

.cs-allproducts .cs-catalog-card h3 {
  font-family: var(--sans);
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600;
  letter-spacing: -.01em !important;
  min-height: 40px;
  color: #16110d;
}

.cs-ap-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #77695d;
}

.cs-ap-rating strong {
  color: #1b1611;
  font-weight: 700;
}

.cs-ap-rating .star { color: #bc8a51; font-size: 13px; line-height: 1; }

.cs-allproducts .cs-catalog-card .pills {
  min-height: 28px;
}

.cs-allproducts .cs-catalog-card .pill {
  background: rgba(239, 230, 220, .86);
  border: 1px solid rgba(27, 22, 17, .05);
  font-size: 9px;
  letter-spacing: .08em;
  color: #6b5e53;
}

.cs-allproducts .cs-catalog-card .meta-note {
  font-size: 11px !important;
  color: #988b7f;
  margin-top: 0;
}

.cs-allproducts .cs-catalog-card .price-row {
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}

.cs-allproducts .cs-catalog-card .price {
  font-family: var(--serif);
  font-size: 25px !important;
  color: #17120e;
}

.cs-allproducts .cs-catalog-card .btn.btn-primary {
  min-width: 108px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(18,13,8,.12);
}

.cs-ap-empty {
  margin: 24px 0;
  padding: 48px 24px;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(27, 22, 17, .08);
  background: rgba(255,255,255,.62);
}

.cs-ap-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: #17120e;
}

.cs-ap-empty p { color: #75695e; margin: 8px auto 20px; max-width: 520px; }

.cs-ap-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 34px 0 0;
}

.cs-ap-load {
  min-width: 280px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(151, 108, 65, .26);
  background: rgba(255,255,255,.54);
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 700;
  color: #8a5b34;
  cursor: pointer;
  transition: .18s ease;
}

.cs-ap-load:hover:not(:disabled) {
  background: #15100c;
  color: #fff;
  border-color: #15100c;
  box-shadow: 0 18px 36px rgba(18,13,8,.12);
}

.cs-ap-load:disabled { opacity: .42; cursor: not-allowed; }

.cs-ap-trust {
  margin-bottom: 58px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(151, 108, 65, .16);
  background: rgba(255,255,255,.48);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(18,13,8,.055);
}

.cs-ap-trust article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-right: 1px solid rgba(151, 108, 65, .12);
}

.cs-ap-trust article:last-child { border-right: 0; }
.cs-ap-trust span { color: #9b6d43; font-size: 19px; }
.cs-ap-trust strong { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #3d342c; line-height: 1.35; }

body.cs-ap-filter-open { overflow: hidden; }

@media (max-width: 1280px) {
  .cs-ap-shell { grid-template-columns: 268px minmax(0, 1fr); gap: 24px; }
  .cs-ap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .cs-ap-hero__inner { grid-template-columns: 1fr; }
  .cs-ap-hero__meta { max-width: 680px; }
  .cs-ap-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(27,22,17,.10);
    background: #15100c;
    color: #fff;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
  }
  .cs-ap-filter-toggle small { color: rgba(255,255,255,.62); font-weight: 500; }
  .cs-ap-shell { grid-template-columns: 1fr; }
  .cs-ap-sidebar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(390px, calc(100vw - 34px));
    max-height: none;
    border-radius: 0 28px 28px 0;
    transform: translateX(-105%);
    transition: transform .24s ease;
  }
  body.cs-ap-filter-open .cs-ap-sidebar { transform: translateX(0); }
  .cs-ap-filter-close { display: block; }
  .cs-ap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-ap-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-ap-trust article { border-bottom: 1px solid rgba(151,108,65,.12); }
}

@media (max-width: 820px) {
  .cs-ap-hero { padding-top: 42px; }
  .cs-ap-hero__meta { grid-template-columns: 1fr; }
  .cs-ap-toolbar { flex-direction: column; align-items: stretch; }
  .cs-ap-toolbar__right { justify-content: space-between; }
  .cs-ap-search-wrap { min-width: 0; max-width: none; }
  .cs-ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cs-allproducts .cs-catalog-card .product-body { padding: 15px; }
  .cs-allproducts .cs-catalog-card .btn.btn-primary { min-width: 96px; padding: 0 12px; }
  .cs-ap-pagination { flex-direction: column; }
  .cs-ap-load { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .cs-ap-hero h1 { font-size: clamp(48px, 16vw, 68px); }
  .cs-ap-hero__copy p:not(.kicker) { font-size: 14px; }
  .cs-ap-section { padding-top: 8px; }
  .cs-ap-quick-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
  .cs-ap-quick-row::-webkit-scrollbar { display: none; }
  .cs-ap-quick { flex: 0 0 auto; }
  .cs-ap-grid { grid-template-columns: 1fr; }
  .cs-allproducts .cs-catalog-card .product-media { aspect-ratio: 1 / .76; }
  .cs-allproducts .cs-catalog-card h3 { min-height: auto; }
  .cs-allproducts .cs-catalog-card .price-row { align-items: center; }
  .cs-ap-toolbar__right { flex-direction: column; align-items: stretch; gap: 10px; }
  .cs-ap-select-label, .cs-ap-select-label select { width: 100%; }
  .cs-ap-trust { grid-template-columns: 1fr; margin-bottom: 36px; }
  .cs-ap-trust article { border-right: 0; }
}
