/* Product list styles are scoped so other templates keep their existing layout. */
.product-list-page {
  --product-accent: #e44245;
  --product-accent-dark: #c92f32;
  --product-text: #20242d;
  --product-muted: #92969d;
  --product-surface: #fff;
  --product-page-bg: #f3f3f3;
  overflow: visible;
}

/* Product pages keep the breadcrumb but omit the duplicate category tabs. */
.product-list-page .subpage-context {
  display: block;
  box-shadow: none;
}

.product-list-page .subpage-context .subpage-tabs {
  display: none;
}

.product-list-page .subpage-context .subpage-context__inner {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-end;
}

.product-list-page .subpage-context .subpage-breadcrumb {
  display: flex;
}

.product-list-page .main.case,
.product-list-page .main.case .wrap,
.product-list-page .main.case .wrap .container {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  overflow: visible;
}

.product-list-page .main.case .wrap .container .case_box,
.product-list-page .product-list-shell {
  overflow: visible;
}

.product-list-page .main.case .wrap,
.product-list-page .main.case .wrap .container {
  background: var(--product-page-bg);
}

.product-list-page .main.case .wrap .container {
  padding-bottom: 0;
}

.product-list-page .main.case .wrap .container .case_box {
  width: 86%;
  max-width: 1560px;
  margin: 0 auto;
  padding-top: 48px;
  padding-right: 0;
  padding-bottom: 60px;
  padding-left: 0;
}

.product-list-page .product-list-shell {
  display: grid;
  grid-template-columns: clamp(230px, 18vw, 300px) minmax(0, 1fr);
  gap: clamp(24px, 2.2vw, 34px);
  width: 100%;
  margin: 0;
  overflow: visible;
}

/* Category navigation */
.product-list-page .pro_main .pro_nav_box {
  position: sticky;
  top: 128px;
  z-index: 2;
  align-self: start;
  float: none;
  width: 100%;
  height: max-content;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--product-surface);
}

.product-list-page .pro_main .pro_nav_box .nav_item {
  border-bottom: 1px solid #eee;
}

.product-list-page .pro_main .pro_nav_box .nav_item:last-child {
  border-bottom: 0;
}

.product-list-page .pro_main .pro_nav_box .nav_item .top_item,
.product-list-page .pro_main .pro_nav_box .nav_item:hover .top_item,
.product-list-page .pro_main .pro_nav_box .nav_item.on .top_item,
.product-list-page .pro_main .pro_nav_box .nav_item.active .top_item {
  position: relative;
  min-height: 68px;
  line-height: 1.4;
  background: transparent;
}

.product-list-page .pro_main .pro_nav_box .nav_item .top_item a,
.product-list-page .pro_main .pro_nav_box .nav_item:hover .top_item a,
.product-list-page .pro_main .pro_nav_box .nav_item.on .top_item a,
.product-list-page .pro_main .pro_nav_box .nav_item.active .top_item a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  box-sizing: border-box;
  padding: 16px 28px 16px 52px;
  color: #666;
  font-size: 16px;
  font-weight: 400;
  transition: color 220ms ease, background-color 220ms ease;
}

.product-list-page .pro_main .pro_nav_box .nav_item:hover .top_item a {
  color: var(--product-text);
  background: #fafafa;
}

.product-list-page .pro_main .pro_nav_box .nav_item.on .top_item a,
.product-list-page .pro_main .pro_nav_box .nav_item.active .top_item a {
  color: var(--product-text);
  font-weight: 600;
}

.product-list-page .pro_main .pro_nav_box .nav_item.on .top_item::before,
.product-list-page .pro_main .pro_nav_box .nav_item.active .top_item::before {
  position: absolute;
  top: 50%;
  left: 32px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-accent);
  content: "";
  transform: translateY(-50%);
}

/* Product cards */
.product-list-page .pro_main .pro_list_box {
  float: none;
  width: 100%;
  margin-bottom: 0;
  border-top: 0;
}

.product-list-page .pro_main .pro_list_box .product-card-list {
  display: grid;
  gap: clamp(22px, 2vw, 30px);
  overflow: visible;
}

.product-list-page .pro_main .pro_list_box .product-card-list > li {
  float: none;
  width: 100%;
}

.product-list-page .pro_main .pro_list_box .product-card-list > li .item_box {
  display: grid;
  grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
  align-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--product-surface);
  box-shadow: 0 8px 24px rgba(90, 90, 90, 0);
  transition: transform 280ms cubic-bezier(.2, .7, .2, 1), box-shadow 280ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-list-page .pro_main .pro_list_box .product-card-list > li .item_box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 42px rgba(85, 85, 85, .13);
  }
}

.product-list-page .pro_main .pro_list_box .item_box .img_box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 270px;
  overflow: hidden;
  padding: 22px 20px;
  box-sizing: border-box;
}

.product-list-page .pro_main .pro_list_box .item_box .img_box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-list-page .pro_main .pro_list_box .item_box .img_box img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 235px;
  object-fit: contain;
  transition: transform 360ms cubic-bezier(.2, .7, .2, 1);
}

.product-list-page .pro_main .pro_list_box .item_box:hover .img_box img {
  transform: scale(1.02);
}

.product-list-page .pro_main .pro_list_box .item_box .con_box {
  width: auto;
  padding: 34px clamp(28px, 3vw, 48px) 34px 14px;
  box-sizing: border-box;
  text-align: left;
}

.product-list-page .pro_main .pro_list_box .item_box .con_box .title {
  height: auto;
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
  color: var(--product-text);
  font-size: clamp(20px, 1.35vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: color 220ms ease;
}

.product-list-page .pro_main .pro_list_box .item_box .description {
  display: -webkit-box;
  margin: 12px 0 22px;
  overflow: hidden;
  color: var(--product-muted);
  font-size: 15px;
  line-height: 1.85;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-list-page .pro_main .pro_list_box .item_box .description:empty {
  display: none;
}

.product-list-page .pro_main .pro_list_box .item_box .description:empty + .detail-button {
  margin-top: 22px;
}

.product-list-page .pro_main .pro_list_box .item_box .detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  height: 44px;
  padding: 0 24px;
  box-sizing: border-box;
  border: 1px solid var(--product-accent);
  border-radius: 999px;
  color: var(--product-accent);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 120ms ease;
}

.product-list-page .pro_main .pro_list_box .item_box:hover .con_box .title {
  color: var(--product-accent);
}

.product-list-page .pro_main .pro_list_box .item_box:hover .detail-button,
.product-list-page .pro_main .pro_list_box .item_box .detail-button:focus-visible {
  border-color: var(--product-accent);
  background: var(--product-accent);
  color: #fff;
}

.product-list-page .pro_main .pro_list_box .item_box .detail-button:hover {
  border-color: var(--product-accent-dark);
  background: var(--product-accent-dark);
}

.product-list-page .pro_main .pro_list_box .item_box .detail-button:active {
  transform: translateY(1px);
}

/* Pagination */
.product-list-page .pro_list_box .pagebar {
  clear: both;
  padding: 48px 0 0;
  overflow: visible;
}

.product-list-page .pro_list_box .pagebar .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  margin-top: 0;
}

.product-list-page .pro_list_box .pagination a,
.product-list-page .pro_list_box .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  color: #202020;
  font-size: 14px;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.product-list-page .pro_list_box .pagination .page-num {
  padding-right: 0;
  padding-left: 0;
}

.product-list-page .pro_list_box .pagination a:hover,
.product-list-page .pro_list_box .pagination a:focus-visible {
  border-color: var(--product-accent);
  color: var(--product-accent);
}

.product-list-page .pro_list_box .pagination a.page-num-current {
  border-color: var(--product-accent-dark);
  background: var(--product-accent-dark);
  color: #fff;
}

.product-list-page .pro_list_box .pagination-total {
  min-width: 66px;
}

.product-list-page .text-secondary {
  padding: 70px 20px;
  color: var(--product-muted);
  text-align: center;
}

@media (max-width: 1200px) {
  .product-list-page .main.case .wrap .container .case_box {
    width: 92%;
  }

  .product-list-page .product-list-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .product-list-page .pro_main .pro_list_box .product-card-list > li .item_box {
    grid-template-columns: minmax(250px, 40%) minmax(0, 1fr);
    min-height: 270px;
  }

  .product-list-page .pro_main .pro_list_box .item_box .img_box img {
    height: 210px;
  }

  .product-list-page .pro_main .pro_list_box .item_box .con_box {
    padding: 30px 28px 30px 8px;
  }
}

@media (max-width: 900px) {
  .product-list-page .product-list-shell {
    grid-template-columns: 1fr;
  }

  .product-list-page .pro_main .pro_nav_box {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-list-page .pro_main .pro_nav_box .nav_item {
    border-right: 1px solid #eee;
  }

  .product-list-page .pro_main .pro_nav_box .nav_item:nth-child(even) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .product-list-page .main.case .wrap .container {
    padding-bottom: 0;
  }

  .product-list-page .main.case .wrap .container .case_box {
    width: 94%;
    padding-top: 28px;
    padding-right: 0;
    padding-bottom: 36px;
    padding-left: 0;
  }

  .product-list-page .product-list-shell {
    gap: 20px;
    margin: 0;
  }

  .product-list-page .pro_main .pro_nav_box {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  .product-list-page .pro_main .pro_nav_box .nav_item,
  .product-list-page .pro_main .pro_nav_box .nav_item:nth-child(even) {
    border-right: 0;
  }

  .product-list-page .pro_main .pro_nav_box .nav_item .top_item,
  .product-list-page .pro_main .pro_nav_box .nav_item:hover .top_item,
  .product-list-page .pro_main .pro_nav_box .nav_item.on .top_item,
  .product-list-page .pro_main .pro_nav_box .nav_item.active .top_item,
  .product-list-page .pro_main .pro_nav_box .nav_item .top_item a,
  .product-list-page .pro_main .pro_nav_box .nav_item:hover .top_item a,
  .product-list-page .pro_main .pro_nav_box .nav_item.on .top_item a,
  .product-list-page .pro_main .pro_nav_box .nav_item.active .top_item a {
    min-height: 58px;
  }

  .product-list-page .pro_main .pro_nav_box .nav_item .top_item a,
  .product-list-page .pro_main .pro_nav_box .nav_item:hover .top_item a,
  .product-list-page .pro_main .pro_nav_box .nav_item.on .top_item a,
  .product-list-page .pro_main .pro_nav_box .nav_item.active .top_item a {
    padding: 14px 24px 14px 42px;
    font-size: 16px;
  }

  .product-list-page .pro_main .pro_nav_box .nav_item.on .top_item::before,
  .product-list-page .pro_main .pro_nav_box .nav_item.active .top_item::before {
    left: 24px;
  }

  .product-list-page .pro_main .pro_list_box .product-card-list {
    gap: 20px;
    padding: 0;
  }

  .product-list-page .pro_main .pro_list_box .product-card-list > li {
    margin-bottom: 0;
  }

  .product-list-page .pro_main .pro_list_box .product-card-list > li .item_box {
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 12px;
  }

  .product-list-page .pro_main .pro_list_box .item_box .img_box {
    min-height: 220px;
    padding: 22px 18px 0;
  }

  .product-list-page .pro_main .pro_list_box .item_box .img_box img {
    height: 210px;
  }

  .product-list-page .pro_main .pro_list_box .item_box .con_box {
    padding: 24px 24px 30px;
  }

  .product-list-page .pro_main .pro_list_box .item_box .con_box .title {
    font-size: 21px;
  }

  .product-list-page .pro_main .pro_list_box .item_box .description {
    margin: 12px 0 22px;
    font-size: 14px;
    line-height: 1.8;
  }

  .product-list-page .pro_main .pro_list_box .item_box .detail-button {
    min-width: 142px;
    height: 44px;
    font-size: 15px;
  }

  .product-list-page .pro_list_box .pagebar {
    padding-top: 38px;
  }

  .product-list-page .pro_list_box .pagination a,
  .product-list-page .pro_list_box .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-list-page .pro_main .pro_list_box .item_box,
  .product-list-page .pro_main .pro_list_box .item_box .img_box img,
  .product-list-page .pro_main .pro_list_box .item_box .con_box .title,
  .product-list-page .pro_main .pro_list_box .item_box .detail-button {
    transition: none;
  }

  .product-list-page .pro_main .pro_list_box .item_box:hover {
    transform: none;
  }
}
