/* Product */
.row-product {
  margin: 15px -10px 0 -10px;
}
.col-product {
  padding: 0 10px;
  margin-bottom: 24px;
}
.box-product {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.box-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}
.pic-product {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  padding: 6px;
}
.pic-product a {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}
.pic-product a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.box-product:hover .pic-product a img {
  transform: scale(1.06);
}
.content-product {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  text-align: center;
}
.name-product {
  font-family: Roboto-Bold, sans-serif;
  font-size: 15px;
  line-height: 22px;
  height: 44px;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #222;
}
.name-product a {
  color: #222222;
  text-decoration: none !important;
  transition: color 0.3s ease;
}
.box-product:hover .name-product a {
  color: #e80000;
}
.price-product {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  min-height: 26px;
}
.price-product .price-new {
  font-size: 15px;
  font-weight: 700;
}
.price-product .price-new strong {
  color: #e80000;
  font-size: 16px;
}
.price-product .price-contact {
  color: #e80000;
  font-weight: 600;
  font-size: 14px;
  background: #fff2f2;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid #ffd6d6;
  display: inline-block;
}
.price-product .price-old del {
  color: #888888;
  font-size: 13px;
  margin-left: 8px;
}
.order-product {
  margin-top: auto;
}
.btn-detail-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff !important;
  background: linear-gradient(135deg, #e80000 0%, #b80000 100%);
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(232, 0, 0, 0.2);
}
.btn-detail-pro:hover {
  background: linear-gradient(135deg, #cc0000 0%, #900000 100%);
  box-shadow: 0 4px 12px rgba(232, 0, 0, 0.35);
  transform: translateY(-1px);
}
.btn-detail-pro i {
  margin-right: 6px;
  font-size: 12px;
}

/* Category filter tabs */
.product-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.cat-tab {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333333;
  background: #f1f2f6;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  border: 1px solid #e2e5e9;
}
.cat-tab:hover {
  background: #e80000;
  color: #ffffff !important;
  border-color: #e80000;
}
.cat-tab.active {
  background: #e80000;
  color: #ffffff !important;
  border-color: #e80000;
  box-shadow: 0 2px 8px rgba(232, 0, 0, 0.3);
}
.left-pro-detail {
  flex: 0 0 40%;
  -ms-flex: 0 0 40%;
  max-width: 40%;
  margin-bottom: 20px;
  padding-right: 7px;
}
.right-pro-detail {
  flex: 0 0 calc(100% - 40%);
  -ms-flex: 0 0 calc(100% - 40%);
  max-width: calc(100% - 40%);
  margin-bottom: 20px;
  padding-left: 7px;
}
.tabs-pro-detail {
  flex: 0 0 100%;
  -ms-flex: 0 0 100%;
  max-width: 100%;
}
@media screen and (max-width: 993px) {
  .price-product .price-new + .price-old {
    margin-left: 0;
  }
  .price-product {
    text-align: center;
    flex-wrap: wrap;
  }
  .price-product .price-new {
    flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 5px;
  }
  .price-product .price-old {
    flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    max-width: 100%;
  }
  .left-pro-detail {
    flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding-right: 0;
  }
  .right-pro-detail {
    flex: 0 0 100%;
    -ms-flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding-left: 0;
  }
}

.cart-product {
  margin-bottom: 0px;
}
.cart-product span {
  cursor: pointer;
  width: 49%;
  float: left;
  color: #ffffff;
  text-transform: capitalize;
  text-align: center;
  padding: 7px 5px;
  border-radius: 3px;
}
.cart-add {
  margin-right: 2%;
  background-color: var(--color-red);
}
.cart-add:hover {
  background-color: var(--color-dark-red);
}
.cart-buy {
  background-color: var(--color-green);
}
.cart-buy:hover {
  background-color: var(--color-dark-green);
}

/* Product Detail */
.grid-pro-detail {
  margin-bottom: 3rem;
}
.left-pro-detail {
  position: relative;
  text-align: center;
}
.left-pro-detail .MagicZoom {
  border: 1px solid #eee;
  padding: 7px;
  border-radius: 5px;
  background-color: #ffffff;
}
.gallery-thumb-pro {
  position: relative;
  margin-top: 10px;
}
.owl-pro-detail {
  padding: 0px 30px;
}
.control-pro-detail button {
  background-color: transparent;
  color: #222222;
  opacity: 1;
  width: 25px;
  font-size: 23px;
}
.control-pro-detail button:hover {
  opacity: 0.7;
}
.control-pro-detail button.owl-prev {
  left: 0px;
}
.control-pro-detail button.owl-next {
  right: 0px;
}
.thumb-pro-detail {
  display: block !important;
  border: 1px solid #eee;
  padding: 5px;
  border-radius: 3px;
  cursor: pointer;
  background-color: #ffffff;
}
.thumb-pro-detail.mz-thumb.mz-thumb-selected {
  border-color: #cecfd2;
}
.thumb-pro-detail img {
  box-shadow: none !important;
  filter: brightness(100%) !important;
  border-bottom: 0px !important;
  padding-bottom: 0px !important;
}
.title-pro-detail {
  text-transform: capitalize;
  font-size: 20px;
  display: block;
  font-weight: 700;
}
.comment-pro-detail {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.social-plugin-pro-detail {
  margin-bottom: 1rem;
  margin-top: 0px !important;
}
.desc-pro-detail {
  margin-bottom: 1rem;
}
.attr-pro-detail {
  list-style: none;
  padding: 0px;
}
.attr-pro-detail li {
  margin-bottom: 0.5rem;
}
.attr-label-pro-detail {
  margin: 0px 5px 0px 0px;
}
.attr-label-pro-detail.d-block {
  display: block;
  margin: 0px 0px 5px 0px;
}
.attr-content-pro-detail {
  display: inline-block;
  margin-bottom: 0px;
}
.price-new-pro-detail {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-red);
}
.price-old-pro-detail {
  font-weight: 500;
  color: var(--color-gray);
  text-decoration: line-through;
  padding-left: 10px;
}
.color-pro-detail {
  cursor: pointer;
  display: inline-block;
  vertical-align: top;
  position: relative;
  width: 35px;
  height: 30px;
  margin: 0px 0px 3px 0px;
  border: 1px solid transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}
.size-pro-detail {
  cursor: pointer;
  border: 1px solid #ccc;
  padding: 3px 10px 4px 10px;
  display: inline-block;
  position: relative;
}
.size-pro-detail.active,
.color-pro-detail.active {
  border-color: #e5101d;
  color: #e5101d;
}
.size-pro-detail.active:after,
.color-pro-detail.active:after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  background-image: url(../images/check-cart.png);
}
.color-pro-detail input[type="radio"],
.size-pro-detail input[type="radio"] {
  display: none;
}
.quantity-pro-detail {
  width: 100%;
  max-width: 110px;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.quantity-pro-detail span {
  line-height: 25px;
  padding: 0px;
  width: 30px;
  height: 30px;
  color: #5f5f5f;
  cursor: pointer;
  font-size: 22px;
  border: 1px solid #cccccc;
}
.quantity-pro-detail span.quantity-plus-pro-detail {
  border-left: 0px;
}
.quantity-pro-detail span.quantity-minus-pro-detail {
  border-right: 0px;
}
.quantity-pro-detail input {
  height: 30px;
  border: 1px solid #cccccc;
  width: calc(100% - 60px);
  text-align: center;
  font-size: 14px;
  padding: 5px;
}
.cart-pro-detail {
  margin-bottom: 1rem;
}
.cart-pro-detail a {
  font-size: 14px;
  color: #ffffff !important;
  text-transform: uppercase;
}
.tags-pro-detail a {
  float: left;
  font-size: 13px;
  padding-bottom: 0.375rem;
  margin: 0px 5px 5px 0px;
}
.tags-pro-detail a i {
  font-size: 11px;
  margin: 5px 5px 0px 0px;
}
.tabs-pro-detail {
  margin-top: 2rem;
}
.tabs-pro-detail .nav-tabs .nav-link {
  border-top-width: 3px;
  font-size: 13px;
}
.tabs-pro-detail .nav-tabs .nav-link.active,
.tabs-pro-detail .nav-tabs .nav-item.show .nav-link {
  border-top-color: #555555;
}
