body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f8f8f8;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f1c40f;
}

header img {
  height: 50px;
  margin-right: 10px;
}

/* ===== NAVBAR ===== */
nav {
  background: #f1c40f;
  color: white;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  text-decoration: underline;
}

.cart-icon {
  position: absolute;
  top: 65px; /* hạ thấp xuống — chỉnh tuỳ navbar cao bao nhiêu */
  right: 30px;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-icon i {
  font-size: 26px;
  color: #000;
}

.cart-count {
  background: red;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  padding: 2px 6px;
  margin-left: 4px;
}


/* ===== MAIN CONTAINER ===== */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
}

.sidebar {
  flex: 1 1 250px;
  max-width: 250px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  height: fit-content;
}

.sidebar h3 {
  color: #f1c40f;
  border-bottom: 2px solid #f1c40f;
  padding-bottom: 5px;
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.sidebar li {
  margin: 8px 0;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #f1c40f;
}

/* ===== PRODUCT GRID ===== */
.main-content {
  flex: 1;
  margin-left: 20px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.product {
  background: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.product img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
}

.product h4 {
  font-size: 14px;
  margin: 8px 0;
  color: #333;
}

.product span {
  color: #f1c40f;
  font-weight: bold;
  display: block;
}

.view-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 13px;
  color: #0077cc;
  text-decoration: none;
  transition: 0.3s;
}

.view-link:hover {
  color: #f1c40f;
  text-decoration: underline;
}

/* ===== TABS SECTION ===== */
.tabs {
  margin-top: 30px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.tabs h3 {
  color: #f1c40f;
  border-bottom: 2px solid #f1c40f;
  padding-bottom: 5px;
}

.tab-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  gap: 10px;
}

.tab-links a {
  background: #f1c40f;
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.tab-links a:hover {
  background: #d4ac0d;
  color: #fff;
}

.tab-section {
  margin-top: 20px;
}

.tab-section h4 {
  color: #f1c40f;
  border-left: 4px solid #f1c40f;
  padding-left: 8px;
  margin-bottom: 10px;
}

.tab-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* ====== IMAGE OVERLAY ====== */
.img-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.img-box img {
  width: 100%;
  transition: transform 0.4s ease;
}

.img-box:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-box:hover .overlay {
  opacity: 1;
}

.overlay button {
  background: #f1c40f;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.overlay button:hover {
  background: #fff;
  color: #f1c40f;
}

/* ====== FOOTER ====== */
.mid-footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 40px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.mid-footer .container > .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.mid-footer .col-lg-3,
.mid-footer .col-lg-4,
.mid-footer .col-lg-2 {
  flex: 1 1 25%;
  min-width: 250px;
}

.mid-footer .title-menu a {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.mid-footer .title-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 2px;
  background-color: #f1c40f;
  transition: width 0.3s ease;
}

.mid-footer .title-menu a:hover::after {
  width: 80px;
}

.mid-footer .list-menu li a:hover {
  color: #f1c40f;
}

.social a:hover {
  background-color: #f1c40f;
  border-color: #f1c40f;
  color: #001f3f;
}

/* ====== FOOTER BOTTOM ====== */
footer {
  background:#f1c40f;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* Hiệu ứng thông báo khi thêm giỏ hàng */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #f1c40f;
  color: #333;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  font-weight: bold;
  z-index: 9999;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modal zoom ảnh */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.image-modal .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

.image-modal .close-modal {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #f1c40f;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.image-modal .close-modal:hover {
  background: #d4ac0d;
}
