

.logo-bar {
  display: flex;
  align-items: center;    /* Căn giữa theo chiều dọc */
  justify-content: center; /* Căn giữa theo chiều ngang */
  gap: 10px;              /* Khoảng cách giữa logo và chữ */
  padding: 10px 20px;
  background-color: white;
}


.logo-bar .logo {
  height: 200px;           /* Giảm kích thước logo */
  width: auto;            /* Giữ tỉ lệ ảnh */
}


/* Filter bar */
/* Filter bar */
.filter-bar {
  margin: 20px 30px;
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
}


.filter-bar .tab {
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}


.filter-bar .tab:hover {
  background-color: #f0f0f0;
  color: #ff6700; /* màu cam sáng nổi bật */
  box-shadow: 0 4px 8px rgb(255 103 0 / 0.3);
}


.filter-bar .tab.active {
  color: #ff6700;
  background-color: #ffe6cc;
  box-shadow: 0 4px 10px rgb(255 103 0 / 0.5);
  font-weight: 700;
}


.product-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 0 20px 30px;
    background-color: var(--color-bg-light);
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    box-sizing: border-box;
}




@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 10px 30px;
  }
}


.product-card {
  background-color: #2d2d2d;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; /* BẮT BUỘC cho trái tim */
  margin: 0;
}


.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


.product-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin-bottom: 15px;
}


.product-card h3 {
  font-size: 18px;
  margin: 10px 0 4px;
  font-weight: 600;
}


.product-card .sub {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}


.product-card .price {
  color: #ffcc00;
  font-weight: bold;
  font-size: 18px;
}


.product-card .old-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 14px;
  margin-left: 8px;
}


.product-card .discount {
  font-size: 14px;
  color: #66bb6a;
  margin-left: 6px;
}


.product-card .note {
  font-size: 12px;
  color: #fbc02d;
  margin-top: 10px;
}


/* Pagination */
.pagination {
  text-align: center;
  margin: 40px 0;
}


.pagination a {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 0 6px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
}


.pagination a:hover {
  background-color: #eee;
}


.product-card-link {
    text-decoration: none !important;
    color: inherit;
}
.hover-hand {
    cursor: pointer;
}


.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}


.carousel-slide {
    display: flex;
    width: 300%; /* 3 ảnh */
    transition: transform 0.5s ease-in-out;
}


.carousel-slide img {
    width: 100vw;
    height: auto;
  object-fit: cover;


}


.carousel-container button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 32px;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 10;
}


.carousel-container .prev {
    left: 10px;
}


.carousel-container .next {
    right: 10px;
}
.filter-sort-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 30px;
  align-items: center;
  justify-content: space-between;
}


.filters select, .sort-box select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}


.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
}


.filter-sort-form button {
  padding: 8px 16px;
  background-color: #ff6700;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


.filter-sort-form button:hover {
  background-color: #e65c00;
}
.product-top {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.product-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 10px;
}
.product-info {
  flex: 1;
}
label[for^=star] {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}
input[name=rating]:checked ~ label {
  color: #f39c12;
}
.btn-action {
  background: #ff6700;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
}
.btn-action:hover {
  background: #ff9900;
}




.heart-btn {
  z-index: 9999 !important;
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15); /* nền sáng mờ */
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  opacity: 1 !important;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
 
}


.heart-icon {
  width: 32px;
  height: 32px;
  transition: fill 0.2s, stroke 0.2s;
  stroke: #fff;
}
.heart-icon path {
  transition: fill 0.2s;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.heart-icon.liked path {
  fill: #e53935 !important;
  stroke: #fff;
}
.product-card .heart-btn {
  opacity: 1 !important;
  visibility: visible !important;
}
/* Tên sản phẩm và dòng RAM+ROM đều màu trắng */
.product-card h3,
.product-card h3 span {
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: none !important;
}


/* Dòng 0% Lãi suất trả góp màu cam */
.product-card .installment {
    color: #ff9900 !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: none !important;
}


/* Loại bỏ underline cho link */
.product-card a,
.product-card a:visited,
.product-card a:active,
.product-card a:focus,
.product-link {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    outline: none !important;
    color: inherit !important;
}


/* Pseudo-elements không gây underline */
.product-card a::after,
.product-card a::before {
    content: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}


/* Giá cũ vẫn giữ gạch ngang */
.product-card .old-price {
    text-decoration: line-through !important;
    color: #aaa !important;
}
.active-filters { margin: 10px 0 18px 0; }





