@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Hiệu ứng Fade-in khi tải trang */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    /* animation: fadeIn 0.8s ease-out forwards; */
}

/* .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
} */

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Navbar */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid #eaeaea;
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #222 !important;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: #007bff !important;
}


.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
}

/* Hero Section */
.hero-section {
  height: 90vh;
}

.hero-slide {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slide h1, 
.hero-slide p {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}


/* Product Card */
/* Animation fade-in */
.product-animate {
  animation: fadeInUp 0.6s ease-in-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Product card */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Product image */
.product-img-wrapper {
  overflow: hidden;
}
.product-img {
  transition: transform 0.3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Badge discount */
.discount-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3em 0.6em;
  border-radius: 6px;
}

/* Color dots */
.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.color-dot:hover {
  transform: scale(1.2);
}
/* --------------- */
.pagination .page-link {
  border-radius: 50% !important;
  margin: 0 5px;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination .page-item.active .page-link {
  background-color: #000;
  border-color: #000;
  color: #fff;
}
.pagination .page-link:hover {
  background-color: #f1f1f1;
}
/* ---------------- */
/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    margin-top: 0;
}

.dropdown-item {
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Biểu tượng và badge */
.navbar-nav .nav-link i {
    font-size: 1.1rem;
}

.navbar-nav .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    position: relative;
    top: -5px;
    left: -5px;
}

/* Footer */
footer a {
    text-decoration: none;
}


.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 6px;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}
.card-img-top {
  height: 260px;
  object-fit: cover;
}
.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.price {
  font-size: 1rem;
}
.color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ddd;
}
.discount-badge {
  background: #e74c3c;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8rem;
  border-radius: 0.25rem;
}
/* ================================
   MEGA MENU STYLING
================================= */
.mega-menu {
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mega-menu h6 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #222;
}

.mega-menu .dropdown-item {
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: #444;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-menu .dropdown-item:hover {
  color: #007bff;
  transform: translateX(4px);
}

.mega-menu img {
  max-height: 220px;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mega-menu img:hover {
  transform: scale(1.05);
}

/* ================================
   FILTER BAR STYLING
================================= */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-bar .color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s;
}

.filter-bar .color-dot:hover {
  transform: scale(1.2);
  border-color: #000;
}

.filter-bar select {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* ---------------- */
/* Modal hiệu ứng fade + zoom */
.modal.fade .modal-dialog {
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}
.modal.show .modal-dialog {
  transform: scale(1);
}

/* Badge giảm giá / NEW */
.discount-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
}
.new-badge {
  background: #3498db;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
}

/* Ảnh trong carousel modal */
.modal-product-img {
  height: 40em !important;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .modal-product-img {
    max-height: 300px;
  }
}

.thumbnail-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.3s ease, transform 0.2s ease;
}

.thumbnail-img:hover {
  transform: scale(1.05);
}

.thumbnail-img.active {
  border-color: #000;
}


/* Chấm màu */
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  display: inline-block;
}
