* {
  box-sizing: border-box;
}
/* Phần banner */
.banner {
    width: 1297px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #28a745 0%, #007bff 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

.banner #img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.banner #img:hover {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 40%;
    z-index: 1;
}

.banner-text h1 {
    font-size: 2em;
    margin: 0;
    font-weight: 600;
}

.banner-text p {
    font-size: 1.1em;
    margin: 10px 0;
}

.banner-text button {
    padding: 10px 20px;
    background-color: #ffc107;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.banner-text button:hover {
    background-color: #e0a800;
}
/* Thanh menu */
nav {
    background: darkcyan;
    text-align: center;
}
nav a {
    color: white;
    text-decoration: none;
    margin: 0 12px;
    line-height: 40px;
    font-weight: bold;
    transition: 0.3s;
}
nav a:hover {
    color: yellow;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Tiêu đề danh sách */
.listsp h2 {
    font-size: 22px;
    background: darkcyan;
    padding: 10px;
    color: white;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Lưới sản phẩm */
.listsp .data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Card sản phẩm */
.listsp .sp {
    border: solid 1px darkcyan;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.listsp .sp:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.listsp .sp h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}
.listsp .sp h4 {
    font-size: 16px;
    color: #dc3545;
    margin: 5px 0;
}
.listsp .sp img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* Giảm giá */
.listsp .giamGia {
    margin: 8px 0;
}
.listsp .giamGia .label {
    color: #555;
    font-weight: bold;
}
.listsp .giamGia .so {
    color: red;
    font-weight: bold;
}

/* Button */
.listsp .sp button {
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: darkcyan;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}
.listsp .sp button:hover {
    background: #117a8b;
}


/* .listsp .sp button {padding:5px 10px;border:none; background:lightseagreen;color:white} */
.listsphot h2 {font-size: 20px; background: brown; padding: 10px; color: white }
.listsphot .data { display:grid; grid-template-columns:auto auto auto; gap:20px}
.listsphot .sp { border: solid 1px darkcyan; text-align: center; padding: 10px; }
.listsphot .sp h3 { font-size: 20px;}
.listsphot .sp h4 { font-size: 18px; color: red;}
.listsphot .giamGia .label {   color:#555;font-weight: bold;}
.listsphot .giamGia .so { color: red;font-weight: bold;}
.listsphot .sp img { max-width: 100%;height: 160px;}

/* Phần chi tiết sản phẩm */
.detail {
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail h2 {
    font-size: 24px;
    background-color: darkcyan;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.more-info.collapsed {
  max-height: 70px;   /* ẩn bớt, chỉ hiện khoảng 2-3 dòng */
  overflow: hidden;
}
.toggle-info {
  color: blue;
  cursor: pointer;
}
.chon-mau {
  display: flex;
  gap: 15px;
}

.mau {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 2px solid #ccc;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.mau-den::before,
.mau-trang::before,
.mau-do::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.mau-den::before { background: black; }
.mau-trang::before { background: white; border: 1px solid #aaa; }
.mau-do::before { background: red; }

.mau.active {
  border: 2px solid blue;
  font-weight: bold;
}

#detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

#left {
    text-align: center;
    position: relative;
}

#left #hinhchinh {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#left #hinhchinh:hover {
    transform: scale(1.05);
}

.hinh-phu {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hinh-phu img {
    max-width: 60px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hinh-phu img:hover {
    opacity: 0.7;
}

#right {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#right h3 {
    font-size: 24px;
    color: #28a745;
    margin: 0;
}

#right p {
    font-size: 16px;
    margin: 5px 0;
    color: #555;
}

#right p span {
    color: #dc3545; /* Màu đỏ cho các thông số quan trọng */
    font-weight: bold;
}

#right #soluong {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#right .btn-outline-warning {
    width: 200px;
    padding: 10px;
    background-color: #ffc107;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
}

#right .btn-outline-warning:hover {
    background-color: #e0a800;
}

.data {
    margin-top: 20px;
}

.data .product {
    display: inline-block;
    width: 150px;
    margin: 10px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.data .product img {
    max-width: 100%;
    border-radius: 4px;
}

.data .product h4 {
    font-size: 14px;
    margin: 5px 0;
}

.data .product p {
    font-size: 14px;
    color: #28a745;
    margin: 5px 0;
}
/* hiệu ứng khi hover */
.hinh-phu {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.hinh-phu img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.2s;
}
.hinh-phu img:hover {
  transform: scale(1.2);
  border-color: orange;
}

.data {
    display: flex;           
    gap: 20px;                 
    flex-wrap: nowrap;          
    overflow-x: auto;           
    margin: 20px 0;
}
.data .text-danger{
  font-size: 16px;
}
.data .sp {
    flex: 0 0 500px;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.data .sp:hover {
    transform: scale(1.05);              
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* hình ảnh cũng mượt hơn */
.data .sp img {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.data .sp:hover img {
    transform: scale(1.1); /* ảnh phóng thêm chút */
}

p span{
        color: red;
}
#giohang { 
  width: 100%; 
  margin: auto; 
  border: 1px solid darkcyan; 
}

#giohang h4 { 
  background-color: darkcyan; 
  color: white; 
  padding: 10px;
}

#giohang > p { 
  display: grid; 
  grid-template-columns: 200px 1fr 150px 120px 150px 80px; 
  align-items: center;
  padding: 10px; 
  margin: 0; 
  border-bottom: 1px solid darkcyan;
}

#giohang > p > *:last-child { 
  text-align: center;
}

#giohang .nut { 
  display: flex; 
  justify-content: space-between; 
}

.cartempty { 
  padding: 20px; 
  background: antiquewhite; 
  text-align: center; 
}


#giohang img {
  width: 70px;
  height: 70px;
  object-fit: cover; 
  display: block;
  margin: auto;
}
/* Phần footer */
.footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 40px 20px 20px;
    margin-top: 20px;
    border-top: 2px solid #28a745;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-bottom: 1px solid #555;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #28a745;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #f8f9fa;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #ffc107;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #ccc;
}

.footer-bottom p {
    margin: 0;
}
/* tìm kím */
.search-filter { margin: 20px 0; }
    input, select { padding: 8px; margin: 5px; }
    .product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
    .product-card {
      border: 1px solid #ddd;
      padding: 10px;
      border-radius: 8px;
      text-align: center;
      background: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .product-card img { max-width: 100%; height: 150px; object-fit: contain; }
    .price { color: red; font-weight: bold; }
    .filterMH{
        display: none;
    }