/* ========== LOGO BAR ========== */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: white;
}
.logo-bar .logo {
  block-size: 200px;
  inline-size: auto;
}

/* ========== BANNER ========== */
.banner-container {
  position: relative;
  inline-size: 100%;
  max-block-size: 600px;
  overflow: hidden;
}
.banner-gif {
  inline-size: 100%;
  block-size: auto;
  display: block;
  object-fit: cover;
}
.banner-text {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  pointer-events: none;
}
.banner-text h1 {
  font-size: 100px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 2px;
}
.banner-text p {
  font-size: 22px;
  margin-block-start: 8px;
  font-weight: 400;
  font-style: italic;
}

/* ========== FILTER BAR ========== */
.filter-bar {
  margin: 20px 30px;
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 16px;
  border-block-end: 2px solid #eee;
  padding-block-end: 8px;
  flex-wrap: wrap;
  background: #fff;
}
.filter-bar .tab {
  color: #666;
  background: #fff;
  text-decoration: none;
  padding: 8px 22px;
  border-radius: 22px;
  transition: all 0.3s;
  cursor: pointer;
  user-select: none;
  font-size: 17px;
  box-shadow: 0 2px 6px rgba(36,180,126,0.08);
  margin-block-end: 3px;
  margin-block-start: 3px;
  display: inline-block;
  border: none;
  outline: none;
}
.filter-bar .tab.active {
  color: #24b47e;
  background: #e7fef2;
  box-shadow: 0 4px 10px rgb(36 180 126 / 0.15);
  font-weight: 700;
}
@media (max-width: 700px) {
  .filter-bar {
    gap: 7px;
    font-size: 13px;
  }
  .filter-bar .tab {
    padding: 6px 10px;
    font-size: 14px;
  }
}
.filter-bar .tab:hover {
  background-color: #f0f0f0;
  color: #ff6700;
  box-shadow: 0 4px 8px rgb(255 103 0 / 0.3);
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px;
  background-color: #f9f9f9;
  max-inline-size: 1400px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
    padding: 8px;
  }
}

/* ========== PRODUCT CARD ========== */
.product-card {
  max-inline-size: 340px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  background: #2d2d2d !important;
  border-radius: 24px;
  padding: 26px 16px 18px 16px;
  text-align: center;
  color: #f0f0f0 !important;
  box-shadow: 0 4px 36px rgba(36,180,126,0.10), 0 1.5px 16px 0 rgba(44,44,62,0.10);
  border: 1.2px solid #444 !important;
  transition: transform 0.19s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  font-family: 'Nunito', 'Montserrat', Arial, sans-serif;
}
.product-card:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 12px 40px rgba(36,180,126,0.25), 0 8px 40px rgba(44,44,62,0.18);
  border-color: #30e7b1 !important;
}
.product-card img {
  inline-size: 100%;
  block-size: 220px;
  object-fit: contain;
  margin-block-end: 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #444 40%, #333 100%);
  border: 1px solid #555 !important;
  box-shadow: 0 4px 12px rgba(0,150,120,0.3);
}
.product-card h3 {
  font-size: 20px;
  margin: 8px 0 4px;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.3;
  letter-spacing: 0.5px;
  min-block-size: 42px;
}
.product-card .price-row {
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}
.product-card .price {
  color: #f5b600 !important;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.1em;
}
.product-card .old-price {
  text-decoration: line-through;
  color: #b5b5b5 !important;
  font-size: 15px;
  margin-inline-start: 7px;
  font-weight: 400;
}
.product-card .discount {
  font-size: 14px;
  color: #66bb6a !important;
  margin-inline-start: 6px;
  font-weight: 700;
}
.product-card .installment {
  font-size: 13px;
  color: #fbc02d;
  margin-block-start: 10px;
  font-style: italic;
  letter-spacing: 0.02em;
}
.product-card-link {
  text-decoration: none;
  color: inherit;
}

/* ========== WISHLIST ICON - TIM ========== */
.wishlist-form {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-end: 15px;
  z-index: 10;
  margin: 0;
  padding: 0;
  display: flex;
}
.wishlist-btn {
  background: transparent;
  border: none;
  outline: none;
  border-radius: 50%;
  inline-size: 38px;
  block-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.16s;
  padding: 0;
}
.wishlist-icon .fa-heart {
  font-size: 24px;
  transition: color 0.18s, filter 0.16s;
  filter: drop-shadow(0 1px 8px #fff7);
}
.wishlist-btn .fa-heart {
  color: #aaa;
}
.wishlist-btn.wished .fa-heart {
  color: #ff376b;
  filter: drop-shadow(0 2px 14px #ff376b66);
  animation: popScale 0.2s;
}
.wishlist-btn:not(.wished):hover .fa-heart {
  color: #ff376b;
}
.wishlist-btn:not(.wished):hover .fa-regular.fa-heart {
  display: none;
}
.wishlist-btn:not(.wished):hover .fa-solid.fa-heart {
  display: inline;
  color: #ff376b;
}
@keyframes popScale {
  0% { transform:scale(0.7);}
  70% { transform:scale(1.15);}
  100% { transform:scale(1);}
}

/* ========== THÔNG BÁO - NOTIFY ========== */
.notify-success {
  margin: 18px 30px;
  padding: 12px 22px;
  background: #eaffed;
  color: #20af63;
  border: 1.5px solid #20af63;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 12px #25a05e22;
}
.notify-warning {
  margin: 18px 30px;
  padding: 12px 22px;
  background: #fff7e6;
  color: #e69500;
  border: 1.5px solid #e69500;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 2px 12px #ffb30022;
}

/* ========== 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;
}

/* ========== CAROUSEL (SLIDER BANNER) ========== */
.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.carousel-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  height: 400px;     /* Sửa tại đây: height mong muốn, ví dụ 370px hoặc 400px */
  border-radius: 20px;
  background: #f8f8f8;
}
.carousel-slide img {
  flex-shrink: 0;
  width: 100%;
  height: 400px;     /* Sửa tại đây cho khớp với .carousel-container */
  object-fit: cover; /* Có thể dùng contain nếu muốn thấy đủ ảnh không bị crop */
  border-radius: 20px;
  display: block;
  background: #fff;
}
@media (max-width: 700px) {
  .carousel-container,
  .carousel-slide img {
    height: 170px;   /* Mobile: set thấp hơn cho đẹp */
    border-radius: 10px;
  }
}


.carousel-container button {
  position: absolute;
  inset-block-start: 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 { inset-inline-start: 10px; }
.carousel-container .next { inset-inline-end: 10px; }

/* ========== FORM FILTER & SORT ========== */
.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;
}
.btn-reset-filter {
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-reset-filter:hover {
    color: #f5b600; /* màu vàng nổi bật */
}
