@import url('../common/product-catalog.css?v=2026081115');
@import url('../common/product-card.css?v=2026081203');

.product-catalog {
  --product-primary: #ff6b00;
  --product-primary-dark: #e85f00;
  --product-surface: #fbf6f0;
  --product-card-radius: 24px;
  padding-top: 72px;
  color: #2d2925;
  background: var(--product-surface);
}

.product-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-catalog .product-container {
  width: min(calc(100% - 64px), 1200px);
  margin-inline: auto;
}

.product-catalog .product-hero {
  display: block;
  min-height: 0;
  color: inherit;
  background: #f4843d;
  isolation: auto;
}

.product-catalog .product-hero::before {
  content: none;
}

.product-hero__picture,
.product-hero__image {
  display: block;
  width: 100%;
}

.product-hero__image {
  height: auto;
  aspect-ratio: 1920 / 680;
  object-fit: cover;
  object-position: center;
}

.product-showcase {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background: #F8F1E9;
}

.product-showcase::before,
.product-showcase::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.product-showcase::before {
  top: 0;
  left: 0;
  width: min(36vw, 560px);
  aspect-ratio: 560 / 770;
  background-image: url('/static/images/productCatalog/section-bg-02.png');
  background-position: left top;
}

.product-showcase::after {
  right: 0;
  bottom: 0;
  width: min(36vw, 560px);
  aspect-ratio: 560 / 670;
  background-image: url('/static/images/productCatalog/catalog-right-bg.png');
  background-position: right bottom;
}

.product-catalog .product-filter {
  padding: 78px 0 30px;
  background: transparent;
}

.product-filter__heading {
  margin-bottom: 30px;
  text-align: center;
}

.product-filter__heading h2 {
  margin: 0;
  color: #24211e;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.35;
}

.product-filter__heading h2 span {
  color: var(--product-primary);
}

.product-category-control {
  width: 100%;
}

.product-category-control__label {
  display: none;
}

.product-catalog .product-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 18px 30px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.product-catalog .product-category {
  flex: 0 0 auto;
}

.product-catalog .product-category>a {
  min-width: 112px;
  min-height: 44px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--product-primary);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--product-primary);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.product-catalog .product-category.is-active>a,
.product-catalog .product-category>a:hover {
  color: #fff;
  background: var(--product-primary);
  border-color: var(--product-primary);
  transform: translateY(-1px);
}

.product-catalog .product-grid-section {
  position: relative;
  padding: 42px 0 118px;
  background: transparent;
}

.product-catalog .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 34px;
}

.product-catalog .product-empty {
  padding: 72px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 107, 0, 0.14);
  border-radius: var(--product-card-radius);
}

.product-catalog .product-empty h2 {
  margin: 0 0 14px;
}

.product-catalog .product-empty p {
  margin: 0 0 24px;
  color: #74685e;
}

.product-catalog .product-pagination {
  margin-top: 66px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.product-catalog .product-pagination .product-pagination__item {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c534c;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(92, 83, 76, 0.11);
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}

.product-catalog .product-pagination a.product-pagination__item:hover,
.product-catalog .product-pagination .product-pagination__item.is-current {
  color: #fff;
  background: var(--product-primary);
  border-color: var(--product-primary);
}

.product-catalog a:focus-visible,
.product-category-control__toggle:focus-visible+.product-category-control__label {
  outline: 3px solid rgba(255, 107, 0, 0.34);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .product-catalog {
    padding-top: 0px;
  }

  .product-catalog .product-container {
    width: auto;
    max-width: none;
    margin-inline: 0;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .product-catalog .product-hero {
    min-height: 0;
    background: #f47d35;
  }

  .product-hero__image {
    height: auto;
    aspect-ratio: 375 / 580;
    object-fit: cover;
    object-position: center top;
  }

  .product-showcase {
    padding-bottom: clamp(150px, 61vw, 230px);
    background-color: #fbf6f0;
    background-image: url('/static/images/productCatalog/catalog-mobile-footer-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
  }

  .product-showcase::before,
  .product-showcase::after {
    content: none;
  }

  .product-catalog .product-filter {
    padding: 30px 0 16px;
  }

  .product-filter__heading {
    display: none;
  }

  .product-category-control {
    position: relative;
    display: block;
  }

  .product-category-control__label {
    min-height: 46px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #6c625a;
    background: #fff;
    border: 1px solid rgba(115, 95, 78, 0.12);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(111, 72, 42, 0.06);
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
  }

  .product-category-control__arrow {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-right: 1.5px solid #9d9188;
    border-bottom: 1.5px solid #9d9188;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
  }

  .product-category-control__toggle:checked+.product-category-control__label .product-category-control__arrow {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .product-category-control__toggle:not(:checked)~.product-category-list {
    display: none;
  }

  .product-catalog .product-category-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(55vh, 390px);
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(255, 107, 0, 0.15);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(87, 57, 34, 0.16);
  }

  .product-catalog .product-category,
  .product-catalog .product-category>a {
    width: 100%;
  }

  .product-catalog .product-category>a {
    min-height: 42px;
    padding: 10px 12px;
    justify-content: flex-start;
    color: #514943;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
  }

  .product-catalog .product-category.is-active>a,
  .product-catalog .product-category>a:hover {
    color: var(--product-primary);
    background: #fff1e5;
    transform: none;
  }

  .product-catalog .product-grid-section {
    padding: 8px 0 34px;
  }

  .product-catalog .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-catalog .product-pagination {
    margin-top: 36px;
    gap: 8px;
  }

  .product-catalog .product-pagination .product-pagination__item {
    min-width: 38px;
    height: 38px;
    padding-inline: 10px;
    border-radius: 9px;
    font-size: 13px;
  }

  .product-catalog .product-empty {
    padding: 54px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .product-catalog .product-category>a,
  .product-category-control__arrow {
    transition: none;
  }

  .product-catalog .product-category>a:hover {
    transform: none;
  }
}
