body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}
.product-page {
  max-width: 1200px;
  margin: auto;
  background: white;
  padding: 20px;
  overflow-x: auto;
}
.product-top {
  display: flex;
  gap: 30px;
}
.product-images {
  flex: 1;
}

.main-img {
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 20px 0;
  width: 100%;
}

.thumbs img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-right: 8px;
  transition: border 0.2s;
  border-radius: 4px;
}

.product-info {
  flex: 1;
}

.h1 {
  font-size: 22px;
  margin: 0 0 10px;
}
.brand {
  font-size: 14px;
  color: #333;
}
.stock {
  color: red;
}
.price .new {
  color: red;
  font-size: 20px;
  font-weight: bold;
}

.price .old {
  color: #ccc;
  font-size: 18px;
  text-decoration: line-through;
  margin-left: 10px;
}

.color-title {
  font-size: 14px;
  color: #333;
  margin-right: 20px;
}

.size-title {
  display: flex;
}

.size-label {
  font-size: 14px;
  color: #333;
  margin-right: 20px;
}

.size-guide {
  font-size: 13px;
  color: #999;
  cursor: pointer;
}

.size-guide__link {
  color: var(--text-color);
  text-decoration: none;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 10px 0;
}

.size-btn {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  min-width: 50px;
  text-align: center;
}

.size-btn.selected {
  border: 2px solid #1e293b;
}

.size-btn .corner-check {
  display: none;
}

.size-btn.selected .corner-check {
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 14px solid #1e293b;
  border-left: 14px solid transparent;
  border-bottom-right-radius: 6px;
}

.size-btn .corner-check::after {
  color: white;
  position: absolute;
  font-size: 12px;
  right: 2px;
  bottom: 1px;
}
.sizes button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.sizes button:disabled {
  background: #eee;
  color: #aaa;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.qty button {
  width: 50px;
  height: 40px;
  border: none;
  background-color: var(--white-color);
  font-size: 16px;
  cursor: pointer;
}

.qty input {
  width: 32px;
  text-align: center;
  border: none;
  outline: none;
}

.add-to-cart,
.buy-now,
.sold-out {
  height: 40px;
  width: 190px;
}

.add-to-cart,
.buy-now {
  display: inline-block;
  min-width: 120px;
  padding: 10px 20px;
  margin: 0 8px 0 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.add-to-cart {
  background: #dc9a00;
  color: #fff;
  border: none;
}

.add-to-cart:hover {
  background: #b99b19;
}

.add-to-cart.disabled {
  background-color: #ccc;
}

.buy-now {
  background: #fff;
  color: #111;
}

.buy-now:hover {
  background: #f5f5f5;
  color: #111;
}

.sold-out {
  background: #ccc;
  color: white;
  cursor: not-allowed;
}
.sold-out:hover {
  background: #ccc;
  color: white;
  cursor: not-allowed;
}
.benefits {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.benefits div {
  flex: 1;
  height: 150px;
}
.benefits img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 6px;
}
.shipping-box {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  padding: 15px;
  background: #fff7f7;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.shipping-box .price {
  background: red;
  color: white;
  padding: 6px 12px;
  font-weight: bold;
  margin-right: 12px;
}
.shipping-box .text {
  flex: 1;
}
.copy-btn {
  background: black;
  color: white;
  border: none;
  padding: 6px 10px;
  font-size: 12px;
}

.in-stock .out-of-stock,
.out-of-stock .in-stock {
  display: none;
}

.tabs {
  margin-top: 30px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}

.tab-buttons button {
  flex: 1;
  padding: 10px;
  background: #f5f5f5;
  border: none;
  border-right: 1px solid #ddd;
  font-weight: 500;
  cursor: pointer;
}

.tab-buttons button:last-child {
  border-right: none;
}

.tab-buttons button.active {
  background: white;
  border-bottom: 2px solid #1e293b;
  color: #1e293b;
}

.tab-content {
  display: none;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.6;
}

.tab-content.active {
  display: block;
}
/* Ẩn/hiện theo class JavaScript thêm */
.in-stock .out-of-stock,
.out-of-stock .in-stock {
  display: none;
}

.order-contact {
  background: #fff0f0;
  color: red;
  border: 1px solid red;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
}

.view-product,
.related-product {
  background-color: var(--white-color);
  text-align: center;
  max-width: 1200px;
  margin: 30px auto 0;
  padding-bottom: 20px;
  overflow: hidden;
}

.view-title {
  font-size: 2rem;
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
  margin: 20px 0;
  position: relative;
}

.view-title::before,
.view-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background-color: #333;
}

.view-title::before {
  right: 100%;
  margin-right: 10px;
}

.view-title::after {
  left: 100%;
  margin-left: 10px;
}

.home-product {
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.grid__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -6px;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-right: 8px;
  cursor: pointer;
  background-color: transparent;
  display: inline-block;
  transition: all 0.2s ease;
}

.color-circle.selected {
  border: 2px solid #333;
  box-shadow: 0 0 0 2px #0003;
}

.grid_column-2-4 {
  width: 19%;
  padding: 0 6px;
  box-sizing: border-box;
}

.grid_column-2-4 .home-product-item {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.grid_column-2-4 .home-product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 601px) {
  .header__cart {
    padding-right: 0;
  }

  .header__cart-notice {
    right: -3px;
    top: -4px;
    transform: none;
  }
}

@media only screen and (max-width: 600px) {
  .header {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .category-toggle {
    display: block;
    position: absolute;
    top: 120px;
    left: 10px;
    z-index: 9999;
    background-color: #ffc107;
    border: none;
    padding: 10px 12px;
    font-size: 1.6rem;
    border-radius: 6px;
  }

  .category {
    display: none;
    position: fixed;
    top: 150px;
    left: 10px;
    width: 250px;
    max-width: 90vw;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    border-radius: 8px;
    padding: 20px;
  }

  .category.show {
    display: block;
  }

  .category__heading {
    display: none;
  }

  .category-item a {
    display: block;
    padding: 10px 0;
    font-size: 1.4rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
  }

  .grid__row {
    flex-direction: column;
  }

  .grid_column-2-4 {
    width: 100% !important;
    margin-bottom: 16px;
  }

  .home-product-item__img {
    background-size: cover;
    background-position: center;
  }

  .home-product-item__name {
    -webkit-line-clamp: 3;
    height: auto;
  }

  .home-filter {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .home-filter__sort,
  .home-filter__btn {
    width: 100%;
  }

  .home-product__pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header__cart,
  .header__search {
    z-index: 1000;
  }

  .product-page {
    width: 100%;
    padding: 12px;
  }

  .header__cart-icon {
    padding-right: 10px;
  }

  .header__cart-list {
    right: 10px;
    left: auto;
    transform: none;
    width: 90vw;
    max-width: 360px;
  }

  .header-with-search {
    width: 100%;
  }

  .thumbs {
    width: 300px;
  }

  #slideshow,
  #btn-prev,
  #btn-next,
  .home-filter__page,
  .blog-section,
  .qc,
  .qc-item {
    display: none;
  }

  .header__cart-notice {
    position: absolute;
    top: -6px;
    right: -0px;
    transform: translateX(-66%);
  }

  .footer {
    padding-top: 20px;
  }

  .footer__heading,
  .footer__text,
  .footer-item__link {
    font-size: 1.2rem;
  }

  .footer__list {
    padding-left: 10px;
  }
}
