body{font-family:'Segoe UI',sans-serif;background:#f8f9fa}
.hero-img{height:420px;object-fit:cover;border-radius:1rem;cursor:zoom-in;transition:.3s;box-shadow:0 10px 30px rgba(0,0,0,.1)}
.hero-img:hover{transform:scale(1.02)}
/* Ảnh thumb trang chủ – 240px, KHÔNG BO GÓC, CÓ HOVER */
.card-img-top {
  height: 240px !important;
  width: 100%;
  object-fit: contain;           /* HIỂN THỊ TOÀN BỘ ẢNH */
  background: #f8f9fa;          /* Nền xám nhẹ nếu ảnh nhỏ */
  padding: 0.5rem;               /* Khoảng cách nhẹ */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: phóng to + bóng đổ */
.card:hover .card-img-top {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.price{color:#d32f2f;font-weight:bold}
.navbar-brand{font-weight:800}
.btn-primary{background:#0d6efd;border:none}
.btn-primary:hover{background:#0b5ed7}
.gallery-thumb{flex-shrink:0;transition:all .2s}
.gallery-thumb.active,.gallery-thumb:hover{transform:scale(1.1);border-color:#0d6efd!important}
.lightbox{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.95);z-index:9999;align-items:center;justify-content:center}
.lightbox img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:.5rem;box-shadow:0 0 30px rgba(255,255,255,.3)}
/* assets/css/style.css – THÊM DÒNG NÀY */
.lightbox {
  display: none !important; /* Ẩn hoàn toàn khi chưa click */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.show {
  display: flex !important; /* Chỉ hiện khi có class 'show' */
}
/* Ảnh chính lớn hơn, cân đối */
.hero-img {
  height: 500px !important;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
  cursor: zoom-in;
  transition: transform .3s ease;
}
.hero-img:hover {
  transform: scale(1.01);
}

/* Thumbnail container */
.thumb-wrapper {
  position: relative;
  margin-top: 1rem;
}
.thumb-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  scrollbar-width: none;
}
.thumb-scroll::-webkit-scrollbar {
  display: none;
}

/* Nút mũi tên - chỉ hiện khi cần */
.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,.6);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.thumb-nav.show {
  opacity: 1;
  pointer-events: auto;
}
.thumb-nav:hover {
  background: rgba(0,0,0,.8);
}
.thumb-nav.prev { left: 0; }
.thumb-nav.next { right: 0; }

/* Ảnh nhỏ */
.gallery-thumb {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.gallery-thumb.active {
  border-color: #0d6efd;
  transform: scale(1.05);
}

/* Ảnh thumb trang chủ – ĐẸP, CÂN ĐỐI */
.card-img-top {
  height: 200px !important;           /* Tăng chiều cao */
  width: 100%;
  object-fit: cover;                  /* Cắt đẹp, không méo */
  border-radius: 0.75rem 0.75rem 0 0; /* Bo góc trên */
  transition: transform .3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.card-img-top:hover {
  transform: scale(1.03);
}

/* Card tổng thể – cân đối hơn */
.card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

/* Tiêu đề & giá */
.card-body h6 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #212529;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #d32f2f;
}

.text-muted small {
  font-size: 0.875rem;
}

/* Ảnh cao hơn + zoom khi hover */
  .card-img-top {
    transition: transform 0.3s ease;
    object-fit: cover !important;
  }
  .card:hover .card-img-top {
    transform: scale(1.05);
  }

  /* Overlay giá đẹp hơn */
  .position-absolute h5 {
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  }

  /* Card không bị giật khi hover */
  .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
  }

  /* Responsive: mobile giảm chiều cao ảnh */
  @media (max-width: 576px) {
    .card-img-top {
      height: 180px !important;
    }
  }
  
.hero-img-wrapper { position: relative; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: color 0.2s;
}

.arrow:hover { color: #0d6efd; }
.left-arrow { left: 10px; }
.right-arrow { right: 10px; }

.dots-container { z-index: 10; }
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: #0d6efd; }
.dot:hover { background: #0d6efd; }
  

  