:root {
  --catalog-ink: #172111;
  --catalog-green: #243814;
  --catalog-green-2: #345222;
  --catalog-gold: #d2b45d;
  --catalog-cream: #f7f4ec;
  --catalog-line: #e1d8c2;
}

.kh3-catalog-page {
  background:
    radial-gradient(circle at 12% 2%, rgba(201, 168, 76, .12), transparent 28rem),
    var(--catalog-cream);
}

.kh3-catalog-page .all-products-shell {
  max-width: 1380px;
  padding-left: clamp(14px, 2.4vw, 34px);
  padding-right: clamp(14px, 2.4vw, 34px);
}

.catalog-sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, .58fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
  margin-bottom: 16px;
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, .5);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent 42%),
    linear-gradient(135deg, #1f3115 0%, #2d471d 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(33, 47, 24, .16);
}

.catalog-sales-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-sales-hero .kh2-eyebrow {
  margin: 0 0 10px;
  color: #e6cf86;
  letter-spacing: .12em;
}

.catalog-sales-hero .all-products-page-title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font: 700 clamp(2.25rem, 5vw, 4.65rem)/.94 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.035em;
}

.catalog-sales-hero .all-products-page-sub {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.96rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}

.catalog-sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.catalog-sales-primary,
.catalog-sales-cart {
  min-height: 52px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
}

.catalog-sales-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--catalog-gold);
  color: var(--catalog-ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.catalog-sales-cart {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 13px;
  min-width: 188px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.catalog-sales-cart span {
  color: rgba(255, 255, 255, .72);
  font-size: .78rem;
}

.catalog-sales-cart strong {
  text-align: right;
  font-size: .92rem;
}

.catalog-sales-hero .kh3-shop-tabs {
  justify-content: flex-start;
  margin-top: 24px;
}

.catalog-sales-hero .kh3-shop-tabs a {
  color: rgba(255, 255, 255, .72);
}

.catalog-sales-hero .kh3-shop-tabs a.is-active {
  color: #fff;
}

.catalog-sales-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(10, 20, 8, .22);
}

.catalog-sales-proof div {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.catalog-sales-proof div:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.catalog-sales-proof div:nth-child(-n+2) {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.catalog-sales-proof strong {
  color: #fff;
  font-size: .96rem;
}

.catalog-sales-proof span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .65);
  font-size: .76rem;
  line-height: 1.45;
}

.catalog-sales-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.catalog-sales-paths a {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid var(--catalog-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: var(--catalog-ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.catalog-sales-paths a:hover {
  transform: translateY(-2px);
  border-color: #b9a35e;
  box-shadow: 0 10px 24px rgba(34, 51, 22, .08);
}

.catalog-sales-paths strong {
  color: var(--catalog-green);
  font-size: .92rem;
}

.catalog-sales-paths span {
  margin-top: 3px;
  color: #786e55;
  font-size: .76rem;
}

.kh3-catalog-page .fik75-category-bridge {
  margin: 0 0 14px;
  border-radius: 12px;
}

.kh3-catalog-page .all-products-tools {
  position: sticky;
  top: calc(var(--kahya-premium-current-header-h, 116px) + 8px);
  z-index: 90;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) minmax(170px, 210px);
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(208, 197, 168, .88);
  border-radius: 14px;
  background: rgba(247, 244, 236, .94);
  box-shadow: 0 10px 24px rgba(35, 52, 23, .1);
  backdrop-filter: blur(14px);
}

.kh3-catalog-page .all-products-tools input,
.kh3-catalog-page .all-products-tools select {
  min-height: 50px;
  border-radius: 10px;
  border-color: #d8cfb9;
  background: #fff;
}

.kh3-catalog-page .all-products-count {
  margin: 15px 2px 10px;
  color: var(--catalog-green);
  font-size: .9rem;
}

.kh3-catalog-page .kh3-category-jump {
  margin-bottom: 22px;
}

.kh3-catalog-page .all-products-cat-group {
  scroll-margin-top: calc(var(--kahya-premium-current-header-h, 116px) + 84px);
  margin-bottom: 38px;
}

.kh3-catalog-page .all-products-cat-title {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #d8cdaF;
  color: var(--catalog-green);
  font: 700 clamp(1.1rem, 2vw, 1.4rem)/1.2 'Cinzel', Georgia, serif;
}

.kh3-catalog-page .all-products-cat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kh3-catalog-page .all-product-card {
  border-color: #e2d9c4;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(38, 50, 26, .075);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kh3-catalog-page .all-product-card:hover {
  transform: translateY(-3px);
  border-color: #c8b26e;
  box-shadow: 0 16px 34px rgba(38, 50, 26, .13);
}

.kh3-catalog-page .all-product-media {
  background: linear-gradient(180deg, #fff 0%, #faf8f2 100%);
}

.kh3-catalog-page .all-product-badge {
  left: 10px;
  top: 10px;
  background: rgba(36, 56, 20, .94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.kh3-catalog-page .all-product-body {
  gap: 8px;
  padding: 14px;
}

.kh3-catalog-page .all-product-cat {
  color: #887749;
  font-size: .66rem;
  letter-spacing: .06em;
}

.kh3-catalog-page .all-product-name {
  min-height: 2.5em;
  color: var(--catalog-ink);
  font-size: .96rem;
  line-height: 1.26;
  -webkit-line-clamp: 2;
}

.kh3-catalog-page .all-product-note {
  min-height: 3.85em;
  color: #6e6755;
  font-size: .76rem;
  line-height: 1.48;
  -webkit-line-clamp: 3;
}

.kh3-catalog-page .all-product-price {
  color: var(--catalog-green);
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.all-product-commerce-proof {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 36px;
  color: #6f6958;
  font-size: .68rem;
  line-height: 1.35;
}

.all-product-commerce-proof strong {
  color: #365524;
}

.kh3-catalog-page .all-product-add {
  min-height: 49px;
  border-radius: 10px;
  background: linear-gradient(180deg, #345522 0%, #243814 100%);
  box-shadow: 0 7px 16px rgba(36, 56, 20, .18);
}

.kh3-catalog-page .all-product-add:hover {
  background: linear-gradient(180deg, #40672a 0%, #2b461b 100%);
}

.kh3-catalog-page .all-product-link--secondary {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #536545;
  text-decoration: underline;
  text-decoration-color: #c6b36f;
  text-underline-offset: 3px;
}

.catalog-sales-primary:focus-visible,
.catalog-sales-cart:focus-visible,
.catalog-sales-paths a:focus-visible,
.kh3-catalog-page .all-product-card a:focus-visible,
.kh3-catalog-page .all-product-card button:focus-visible {
  outline: 3px solid #e0c66f;
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .catalog-sales-hero {
    grid-template-columns: 1fr;
  }

  .catalog-sales-proof {
    grid-template-columns: repeat(4, 1fr);
  }

  .catalog-sales-proof div {
    min-height: 92px;
  }

  .catalog-sales-proof div:nth-child(n) {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .12);
  }

  .catalog-sales-proof div:last-child {
    border-right: 0;
  }

  .kh3-catalog-page .all-products-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kh3-catalog-page .all-products-shell {
    padding-top: calc(var(--kahya-premium-header-h, 54px) + 54px);
  }

  .catalog-sales-hero {
    gap: 22px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .catalog-sales-hero .all-products-page-title {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }

  .catalog-sales-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .catalog-sales-primary,
  .catalog-sales-cart {
    width: 100%;
  }

  .catalog-sales-proof {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .catalog-sales-proof::-webkit-scrollbar {
    display: none;
  }

  .catalog-sales-proof div:nth-child(n) {
    flex: 0 0 min(68vw, 220px);
    min-height: 82px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .catalog-sales-proof div:last-child {
    border-right: 0;
  }

  .catalog-sales-paths {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .catalog-sales-paths::-webkit-scrollbar {
    display: none;
  }

  .catalog-sales-paths a {
    min-width: 77vw;
    scroll-snap-align: start;
  }

  .kh3-catalog-page .all-products-tools {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .kh3-catalog-page .all-products-tools input {
    grid-column: 1 / -1;
  }

  .kh3-catalog-page .kh3-category-jump {
    border-color: #d8cfb9 !important;
    background: #f7f4ec !important;
    box-shadow: 0 8px 18px rgba(35, 52, 23, .12) !important;
    backdrop-filter: none !important;
    scrollbar-width: none;
  }

  .kh3-catalog-page .kh3-category-jump::-webkit-scrollbar {
    display: none;
  }

  .kh3-catalog-page .all-products-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kh3-catalog-page .all-product-body {
    padding: 11px;
  }

  .kh3-catalog-page .all-product-note {
    min-height: 3.2em;
    -webkit-line-clamp: 2;
  }

  .kh3-catalog-page .all-product-price {
    font-size: 1.16rem;
  }

  .all-product-commerce-proof {
    font-size: .63rem;
  }
}

@media (max-width: 760px) {
  .kh3-catalog-page .all-products-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .catalog-sales-hero {
    gap: 16px;
    padding: 20px 16px;
  }

  .catalog-sales-hero .all-products-page-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .catalog-sales-hero .all-products-page-sub {
    margin-top: 12px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .catalog-sales-actions {
    margin-top: 18px;
  }

  .catalog-sales-proof div {
    min-height: 78px;
    padding: 11px;
  }

  .catalog-sales-proof span {
    font-size: .69rem;
  }

  .catalog-sales-paths a {
    min-width: 82vw;
    min-height: 66px;
    padding: 11px 14px;
  }

  .kh3-catalog-page .all-products-tools {
    gap: 6px;
    padding: 7px;
  }

  .kh3-catalog-page .all-products-tools input,
  .kh3-catalog-page .all-products-tools select {
    min-width: 0;
    min-height: 46px;
    padding-right: 9px;
    padding-left: 9px;
    font-size: .79rem;
  }

  .kh3-catalog-page .all-products-cat-group {
    margin-bottom: 26px;
  }

  .kh3-catalog-page .all-products-cat-title {
    margin-bottom: 10px;
    padding: 0 2px 8px;
    font-size: 1rem;
  }

  .kh3-catalog-page .all-products-cat-grid {
    gap: 8px;
  }

  .kh3-catalog-page .all-product-card {
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(38, 50, 26, .07);
  }

  .kh3-catalog-page .all-product-media {
    aspect-ratio: 4 / 3;
  }

  .kh3-catalog-page .all-product-body {
    gap: 6px !important;
    padding: 10px;
  }

  .kh3-catalog-page .all-product-cat,
  .kh3-catalog-page .all-product-note {
    display: none;
  }

  .kh3-catalog-page .all-product-name {
    min-height: 2.45em;
    font-size: .83rem;
    line-height: 1.23;
  }

  .kh3-catalog-page .all-product-price {
    font-size: 1.08rem;
  }

  .all-product-commerce-proof {
    min-height: auto;
    font-size: .63rem;
  }

  .all-product-commerce-proof span {
    display: none;
  }

  .kh3-catalog-page .all-product-add {
    min-height: 46px;
    padding: 8px;
    font-size: .78rem;
  }

  .kh3-catalog-page .all-product-link--secondary {
    min-height: 34px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: .72rem;
    text-decoration: underline !important;
    text-decoration-color: #b9a35e !important;
    text-underline-offset: 3px;
  }
}

@media (max-width: 390px) {
  .catalog-sales-actions,
  .kh3-catalog-page .all-products-tools {
    grid-template-columns: 1fr;
  }

  .kh3-catalog-page .all-products-tools input {
    grid-column: auto;
  }

}

@media (max-width: 330px) {
  .kh3-catalog-page .all-products-cat-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-sales-paths a,
  .kh3-catalog-page .all-product-card {
    transition: none;
  }
}
