.product__main {
  padding: 32px 0;
}
.product__main-flex {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.product__main-sidebar {
  width: 275px;
  max-height: 1100px;
  overflow-x: hidden;
  overflow-y: scroll;
}
.product__main-right {
  flex: 1;
}
.product__main-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #23232b;
}
.product__main-category {
  display: flex;
  flex-direction: column;
}
.product__main-category-item a {
  font-size: 14px;
  display: block;
  padding: 10px 20px;
  padding-left: 0px;
  color: #23232b;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-be);
  transition: var(--transition);
}
.product__main-category-item a:hover {
  color: var(--color-red);
}
.product__main-category-item.active a {
  color: var(--color-red);
}
.product__main-category-item-sub {
  display: flex;
  flex-direction: column;
  padding-bottom: 6px;
}
.product__main-category-item-sub a {
  font-size: 13px;
  display: block;
  padding: 6px 0 6px 14px;
  color: #555;
  font-weight: 500;
  text-decoration: none;
  font-family: var(--font-be);
  transition: var(--transition);
  border-left: 2px solid transparent;
}
.product__main-category-item-sub a:hover {
  color: var(--color-red);
  border-left-color: var(--color-red);
}
.product__main-category-item-sub a.active {
  color: var(--color-red);
  border-left-color: var(--color-red);
}

.product__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.container-detail {
  align-items: center;
  max-width: 1120px;
  margin: 20px auto;
}

.bread-crumb {
  background: #eeeeee;
  padding: 13px 15px;
}

.product-detail {
  display: flex;
  gap: 20px;
}
.product-detail-right {
  width: 49%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.product-detail-right h1 {
  display: block;
  color: var(--color-red);
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-be);
}
.product-detail-right a {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  background: #007bff;
  padding: 2px 5px;
  max-width: 80px;
  border-radius: 5px;
}
.product-detail-right a img {
  margin-right: 5px;
  width: 20px;
  height: 20px;
}
.product-detail-left {
  width: 50%;
  display: flex;
  flex-direction: row-reverse;
  justify-content: start;
  gap: 32px;
}
.product-detail-relation {
  padding: 60px 0;
}
.product-detail-images {
  width: 100;
  max-width: 386px;
  flex: 1;
}
.product-detail-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.product-detail-price .price-old {
  color: #666;
  text-decoration: line-through;
}
.product-detail .price-new {
  color: var(--color-red);
  font-size: 24px;
  font-weight: 600;
}

.product-information {
  list-style: none;
  line-height: 1.9;
}

.price-new-detail {
  color: #ff8500;
  font-size: 26px;
  font-weight: 700;
}

.price-old-detail {
  margin-left: 10px;
  color: #666;
  text-decoration: line-through;
}

.desc-information-product ul,
.desc-information-product ol {
  margin-left: 17px;
}

.add-cart-product-detail {
  display: flex;
  margin-top: 10px;
}

.product-content-information ul,
.product-content-information ol {
  margin-left: 17px;
}

.product-quantity-detail {
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
}

.quantity-minus,
.quantity-plus {
  font-size: 20px;
  padding: 0 10px;
  width: 50px;
  text-align: center;
}

.qty-product {
  width: 50px;
  border: none;
  outline: none;
  text-align: center;
  padding: 15px 0px;
  font-size: 16px;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-cart-product-detail-btn {
  margin-left: 10px;
  padding: 10px 15px;
  background: #fd6e1d;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.add-cart-product-detail-btn:hover {
  background: rgb(239.0842105263, 87.8052631579, 2.1157894737);
}
.add-cart-product-detail-btn span {
  text-transform: uppercase;
  font-weight: 600;
}

.product-detail-gallery {
  position: relative;
}

.thumbnail-grid {
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.thumbnail-grid img {
  border-radius: 5px;
  height: auto;
  border-bottom: 0px !important;
  padding-bottom: 0px !important;
  width: 100% !important;
}

.next-left,
.next-right {
  background: #ccc;
  padding: 5px 8px;
  font-size: 20px;
  align-content: center;
  max-height: 30px;
}

.title-product-detail {
  margin-top: 10px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
}
.title-product-detail li {
  text-transform: uppercase;
  list-style: none;
  font-weight: 600;
  font-family: var(--font-be);
  font-size: 18px;
  color: #333333;
  padding: 0px 16px 16px 16px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.title-product-detail li:hover, .title-product-detail li.active {
  color: var(--color-red);
  border-color: var(--color-red);
}

.specifications-product {
  padding-top: 10px;
  margin-top: 10px;
  border-top: #ccc solid 1px;
}
.specifications-product span {
  font-size: 18px;
  color: #f1c40f;
  font-weight: 700;
  text-transform: capitalize;
  margin-top: 20px;
}

.product-desc-information {
  padding-bottom: 36px;
}

.product-desc-information ul li {
  line-height: 1.2;
  margin: 15px 0px 0px 15px;
  font-size: 18px;
}

.suite-product {
  font-size: 18px;
  color: #0f0f0f;
  font-weight: 700;
  margin-top: 20px;
}

.img-info {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
  margin-top: 20px;
}
.img-info img {
  width: 100%;
  border-radius: 5px;
}

.add-cart-product-detail-btn-cat {
  padding: 10px 0px;
  background: #fd6e1d;
  color: #fff;
  border-radius: 5px;
  margin: 0px auto;
  white-space: nowrap;
  text-align: center;
  max-width: 90%;
}
.add-cart-product-detail-btn-cat:hover {
  background: rgb(239.0842105263, 87.8052631579, 2.1157894737);
}
.add-cart-product-detail-btn-cat span {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 14px;
}

.product-viewed {
  margin-top: 60px;
}

.product-item-content-cat {
  text-align: center;
}

.product-list-cat-ot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 5px;
}

.product__item-cat {
  border: #ccc solid 1px;
  height: 350px;
  line-height: 1.7;
}
.product__item-cat a img {
  width: 200px;
  height: 200px;
}

.price-new-detail-cat {
  color: #ff8500;
  font-size: 20px;
  font-weight: 700;
}

.price-old-detail-cat {
  margin-left: 10px;
  color: #666;
  text-decoration: line-through;
  align-content: center;
}

.name-product-cat {
  font-weight: 700;
}

.title-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.filter-section {
  display: flex;
  gap: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  padding: 8px 30px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.filter-select:hover {
  border-color: #9ca3af;
}
.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.filter-select-simple {
  padding: 8px 25px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
}

.product-detail-relation {
  padding: 48px 0;
  background: #f9f9f9;
}

.related-products__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.related-products__title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  position: relative;
  padding-bottom: 12px;
}
.related-products__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: #e60023;
  border-radius: 2px;
}
.related-products__search {
  flex-shrink: 0;
}
.related-products__search-input {
  height: 38px;
  width: 220px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #ffffff;
  outline: none;
  transition: all 0.3s ease;
}
.related-products__search-input::-moz-placeholder {
  color: #666;
}
.related-products__search-input::placeholder {
  color: #666;
}
.related-products__search-input:focus {
  border-color: #e60023;
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.08);
}

/** Product detail **/
.product__detail-main {
  padding: 32px 0;
}
.product__detail-contact span {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-red);
}
.product__detail-sku {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
}
.product__detail-sku label {
  font-weight: 600;
}
.product__detail-desc label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.desc-product-detail {
  margin-top: 64px;
}

.product__detail-content {
  display: none;
}
.product__detail-content.active {
  display: block;
}

.product-detail-page .product__grid {
  grid-template-columns: repeat(5, 1fr);
}

/** Product related **/
.product__related-wrapper {
  position: relative;
}
.product__related-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-width: 1px;
  border-style: solid;
  border-color: rgb(221, 221, 221);
  -o-border-image: initial;
     border-image: initial;
  border-radius: 50%;
  transition: 0.3s;
  position: absolute;
  left: -18px;
  top: 96px;
  z-index: 99;
}
.product__related-btn.next {
  right: -18px;
  left: auto;
}
.product__related-btn:hover {
  background: var(--bg-red);
  border-color: var(--color-red);
}
.product__related-btn:hover i {
  color: var(--color-white);
}

/** Product detail table **/
.product-detail-right {
  padding-top: 40px;
}

.product__detail-table-heading {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}
.product__detail-table-heading::after {
  content: "";
  position: absolute;
  left: 20;
  right: 20px;
  bottom: 0;
  width: calc(100% - 40px);
  height: 1px;
  background: linear-gradient(to right, rgba(218, 219, 221, 0) 0%, #dadbbd 50%, rgba(218, 219, 221, 0) 100%);
}
.product__detail-table-heading-left, .product__detail-table-heading-right {
  min-width: 100px;
  font-size: 14px;
  font-weight: normal;
  color: #787a80;
  text-transform: uppercase;
  display: flex;
  justify-content: start;
  align-items: center;
  height: 40px;
  font-family: var(--font-be);
}
.product__detail-table-row {
  position: relative;
  display: flex;
  gap: 3.5rem;
  color: #424551;
  height: 40px;
}
.product__detail-table-row-left, .product__detail-table-row-right {
  min-width: 100px;
  display: flex;
  justify-content: start;
  align-items: center;
}
.product__detail-table-row::after {
  content: "";
  position: absolute;
  left: 20;
  right: 20px;
  bottom: 0;
  width: calc(100% - 40px);
  height: 1px;
  background: linear-gradient(to right, rgba(218, 219, 221, 0) 0%, #dadbbd 50%, rgba(218, 219, 221, 0) 100%);
}

/** product breadcrumb **/
.product__main-breadcrumb {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.product__main-breadcrumb .svg {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}
.product__main-breadcrumb a {
  font-size: 24px;
  font-family: var(--font-be);
  font-weight: 600;
  color: #141415;
  text-decoration: none;
}

@media (max-width: 991px) {
  .product-detail {
    flex-direction: column;
  }
  .product-detail-right {
    width: 100%;
  }
  .product-detail-price {
    justify-content: start;
    gap: 0px;
  }
  .product-detail-price .price-old {
    font-size: 14px;
  }
  .product-detail-price .price-new {
    font-size: 18px;
  }
  .product__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product__item .info {
    padding: 8px;
  }
  .title-filter {
    flex-direction: column;
  }
  .related-products__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .related-products__search-input {
    width: 100%;
  }
  .product__main-flex {
    flex-direction: column;
    gap: 16px;
  }
  .product__main-category {
    display: none;
  }
  /** Product detail **/
  .product-detail-left {
    width: 100%;
  }
  .product-detail-right {
    width: 100%;
  }
  .product-detail-page .product__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product__main-breadcrumb {
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .product__main-breadcrumb a {
    font-size: 14px;
  }
  .product__main-breadcrumb .svg {
    padding: 0px 6x;
    width: auto;
    height: auto;
  }
  .product__main-breadcrumb .svg svg {
    max-width: 8px;
  }
  .product-detail-left {
    flex-direction: column;
    gap: 16px;
  }
  .thumbnail-grid {
    flex-direction: row;
  }
  .title-product-detail li {
    padding-left: 0px;
    padding-right: 0px;
    font-size: 15px;
  }
}
@media (max-width: 575px) {
  .thumbnail-grid a {
    width: calc(25% - 9px);
  }
  .product__related-btn {
    top: 80px;
  }
}
@media (max-width: 374px) {
  .thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product__related-btn {
    top: 60px;
  }
}