/*
 * Cello Category Product Card Polish v1.0
 * Scope: category product listing only.
 * Philosophy: polish, not redesign. No grid, toolbar or controller changes.
 */
.cello-category-polish .product-item {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  margin-bottom: 22px;
  overflow: visible;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cello-category-polish .product-item:hover {
    border-color: #ff6600;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
  }
}

.cello-category-polish .product-item .top-item {
  flex: 0 0 auto;
}

.cello-category-polish .product-item .top-item .image {
  padding: 20px 16px 8px;
}

.cello-category-polish .product-item .top-item .image > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 225px;
}

.cello-category-polish .product-item .top-item .image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cello-category-polish .product-item:hover .top-item .image img {
    transform: scale(1.018);
  }
}

/* Keep labels compact and away from the card edges. */
.cello-category-polish .product-item .top-item .posMark {
  top: 10px;
  right: 10px;
}

.cello-category-polish .product-item .top-item .status {
  float: right;
  height: 26px;
  margin-bottom: 6px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: .01em;
}

.cello-category-polish .product-item .top-item .pro {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  font-size: 10px;
}

/* Place colour swatches in the normal flow to avoid overlapping the title. */
.cello-category-polish .product-item .block-option-link {
  position: static;
  width: auto;
  min-height: 24px;
  margin: 0 14px;
}

.cello-category-polish .gird-option-color {
  margin: 0;
  text-align: left;
}

.cello-category-polish .gird-option-color li {
  padding-right: 4px;
  padding-left: 0;
}

.cello-category-polish .gird-option-color li span {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d7d7d7;
}

.cello-category-polish .gird-option-color li a:hover span,
.cello-category-polish .gird-option-color li a:focus span {
  box-shadow: 0 0 0 1px #ff6600;
}

.cello-category-polish .product-item .bot-item {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 4px 14px 16px;
}

.cello-category-polish .product-item .bot-item h2,
.cello-category-polish .product-item .bot-item h3,
.cello-category-polish .product-item .bot-item h4 {
  display: -webkit-box;
  height: 42px;
  margin: 8px 0 0;
  overflow: hidden;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-transform: uppercase;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cello-category-polish .product-item .bot-item a:hover h2,
.cello-category-polish .product-item .bot-item a:hover h3,
.cello-category-polish .product-item .bot-item a:hover h4 {
  color: #111;
}

.cello-category-polish .product-item .bot-item .price {
  align-items: flex-end;
  min-height: 42px;
  margin-top: auto;
  padding-top: 10px;
}

.cello-category-polish .product-item .bot-item .price .old span {
  color: #999;
  font-size: 13px;
}

.cello-category-polish .product-item .bot-item .price .new span {
  color: #ff6600;
  font-size: 16px;
  font-weight: 600;
}

.cello-category-polish .item-label-gift {
  right: 10px;
  bottom: 8px;
  border-radius: 999px;
  background: #fff;
  padding: 2px 7px;
}

@media (max-width: 1199px) {
  .cello-category-polish .product-item {
    min-height: 370px;
  }

  .cello-category-polish .product-item .top-item .image > a {
    height: 205px;
  }
}

@media (max-width: 767px) {
  .cello-category-polish .product-item {
    min-height: 310px;
    margin-bottom: 14px;
    border-radius: 8px;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.035);
  }

  .cello-category-polish .product-item .top-item .image {
    padding: 12px 8px 5px;
  }

  .cello-category-polish .product-item .top-item .image > a {
    height: 155px;
  }

  .cello-category-polish .product-item .top-item .posMark {
    top: 7px;
    right: 7px;
  }

  .cello-category-polish .product-item .top-item .status {
    height: 22px;
    padding: 0 7px;
    font-size: 9px;
    line-height: 22px;
  }

  .cello-category-polish .product-item .top-item .pro {
    top: 7px;
    left: 7px;
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .cello-category-polish .product-item .block-option-link {
    min-height: 22px;
    margin: 0 9px;
  }

  .cello-category-polish .gird-option-color li span {
    width: 14px;
    height: 14px;
  }

  .cello-category-polish .product-item .bot-item {
    padding: 2px 9px 11px;
  }

  .cello-category-polish .product-item .bot-item h2,
  .cello-category-polish .product-item .bot-item h3,
  .cello-category-polish .product-item .bot-item h4 {
    height: 38px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 19px;
  }

  .cello-category-polish .product-item .bot-item .price {
    min-height: 36px;
    padding-top: 7px;
  }

  .cello-category-polish .product-item .bot-item .price .old span {
    font-size: 11px;
  }

  .cello-category-polish .product-item .bot-item .price .new span {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cello-category-polish .product-item,
  .cello-category-polish .product-item .top-item .image img {
    transition: none;
  }
}
