/* Tổng thể body */
body {
    display: flex;
    flex-direction: column;
    background-color: #0b3b52; /* Màu nền cho trang */
    color: #fff; /* Màu chữ cho trang */
    font-family: Arial, sans-serif; /* Font chữ chung */
    margin: 0; /* Loại bỏ margin mặc định */
    padding: 0; /* Loại bỏ padding mặc định */
    font-size: 16px; /* Kích thước font chữ mặc định */
}

a {
    text-decoration: none; /* Loại bỏ gạch chân mặc định */
    color: yellow; /* Màu chữ mặc định */
    transition: color 0.3s; /* Thêm hiệu ứng màu chữ khi hover trong 0.3s */
}
/* css cho menu*/
.Logo {
    height: 30px;
    width: 30px;
    border-radius: 30px;
    box-shadow: 0px 0px 20px 10px rgba(247, 249, 250, 0.8);
}
.menu{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100vw;  /* Chiều rộng bằng 100% của viewport (chiều rộng của màn hình) */
    background-color: #0b3b52;
    color: white;
  
}
.sharebtn{
    margin-right:5px;
}
.facebook-share-button {
    background-image: url(icon/icon-facebook.png);
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: left center;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #3b5998;
    display: inline-block;
}
.menu select {
    padding: 3px;
    border-radius: 5px;
    border: none;
    background-color: #ccc;
    color: #000;
    margin-right: 10px;
    margin-left: 10px;
}

.menu select:last-child {
    margin-right: 0;
}



/* Banner */
.banner-container {
    width: 100%;
    height: 450px;
    position: relative; /* Đặt trong vị trí tương đối */
    overflow: hidden; /* Ẩn phần nằm ngoài khung */
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 450px;
    object-fit: cover; /* Giữ tỷ lệ khung của hình ảnh */
    opacity: 0; /* Ẩn hình ảnh mặc định */
    transition: opacity 1s ease; /* Hiệu ứng chuyển đổi */
    z-index: 1; /* Xác định thứ tự hiển thị */
}

.banner-image.active {
    opacity: 1; /* Hiển thị hình ảnh hiện tại */
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: #007bff; /* Thay đổi màu văn bản nếu cần */
    text-align: center; /* Căn giữa văn bản */
    font-size: 16px;
    font-weight: bold;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* định dạng phần sản phẩm */
.container {
    display: flex;
    justify-content: center;
   
    flex-wrap: wrap;
    padding: 5px; /* Thêm padding để tạo khoảng cách xung quanh */
    align-items: center;
}

#productDetailContainer {
    padding: 10px;
    background-color: #0b3b52; /* Màu nền của container */
    border-radius: 5px; /* Bo tròn các góc */
}



#qrcode-container {
    text-align: center;
}

/* định dạng nút */
button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

.register {
    font-size: 14px;
}

button:hover {
    background-color: #0056b3;
}

.footer {
    display: flex;
    justify-content: center;
}

/* hình ảnh */
.product-image {
    display: block; /* Đặt ảnh là block để có thể canh giữa */
    max-width: 100%; /* Chiều rộng tối đa là 100% của phần tử cha */
    height: auto; /* Chiều cao tự động tính toán để duy trì tỷ lệ khung */
  /*  border-radius: 5%;  Bo tròn viền để đều cả hai cạnh */
    overflow: hidden; /* Ẩn phần dư thừa của hình ảnh */
    margin: 0 auto; /* Canh giữa hình ảnh */
    background-color: #ccc; /* Màu nền mặc định cho hình ảnh */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Đổ bóng */
}

.product-image-container {
    flex: 0 0 45%; /* Đặt chiều rộng của cột hình ảnh */
}

.product-details {
    flex: 1; /* Đặt chiều rộng của cột chi tiết sản phẩm */
    margin-left: 10px; /* Khoảng cách giữa cột hình ảnh và cột chi tiết */
    line-height: 1.5;
}

.product-image {
    max-width: 400px; /* Đảm bảo hình ảnh không vượt quá kích thước của cột */
    height: auto;
}

.product-details p {
    margin: 5px 0; /* Khoảng cách giữa các dòng thuộc tính */
}

.CustomerInfo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    align-content: flex-start;
}

.item-entry {
    margin-bottom: 10px;
    padding: 10px;
          
}

.item-entry p {
    margin: 10px;
}
.itemBinTitle{
    margin-bottom: 10px;
    margin-top:10px;
    font-size:16px;
    padding-top:10px;
    
}
.itemByBin{
    display:flex;
    flex-wrap: wrap;

}
.LocationName{
    color:yellow;
    
}
.PriceDiscount{
    color:yellow;
    font-weight:bold;
    font-size:20px;
}
.unitprice{
    font-size: 20px;
    text-decoration: line-through;
}
.discountpercent{
    background-color: red;
    border-radius:  0 10px  0 10px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    border: none;
    text-align: center;
    outline: none;
    color:white;
    transition: background-color 0.3s; /* Hiệu ứng chuyển màu nền khi nhấp */
    font-size: 15px; /* Kích thước chữ */
}
.DiscountAmount{
    color:yellow;

    font-size:18px;
}
.DiscountEvent{
    color:yellow;
    font-size:20px; 
    margin-top:10px;
    margin-bottom:10px;
    animation: blink 5s infinite;
}
/*hiệu ứng chớp tắt 2s*/
@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
.enddate{
  
    font-size:18px;
    font-weight:bold;
    color:#f50c33;

}
.ItemInfo{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
   align-items: center;
}
h1{
text-align:center;
}
.product-image-container {
    flex: 0 0 45%; /* Đặt chiều rộng của cột hình ảnh */
}

.product-details {
    flex: 1; /* Đặt chiều rộng của cột chi tiết sản phẩm */
    margin-left: 10px; /* Khoảng cách giữa cột hình ảnh và cột chi tiết */
    line-height: 1.5;
}

.product-image {
    max-width: 100%; /* Đảm bảo hình ảnh không vượt quá kích thước của cột */
    height: auto;
}

.product-details p {
    margin: 5px 0; /* Khoảng cách giữa các dòng thuộc tính */
}

.CustomerInfo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    align-content: flex-start;
}

.item-entry {
    margin-bottom: 10px;
    padding: 10px;
          
}

.item-entry p {
    margin: 10px;
}
.itemBinTitle{
    margin-bottom: 10px;
    margin-top:10px;
    font-size:16px;
    padding-top:10px;
    
}
.itemByBin{
    display:flex;
    flex-wrap: wrap;

}
.LocationName{
    color:yellow;
    
}
.PriceDiscount{
    color:yellow;
    font-weight:bold;
    font-size:20px;
}
.unitprice{
    font-size: 20px;
    text-decoration: line-through;
}
.discountpercent{
    background-color: red;
    border-radius:  0 10px  0 10px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    border: none;
    text-align: center;
    outline: none;
    color:white;
    transition: background-color 0.3s; /* Hiệu ứng chuyển màu nền khi nhấp */
    font-size: 15px; /* Kích thước chữ */
}
.DiscountAmount{
    color:yellow;

    font-size:18px;
}
.DiscountEvent{
    color:yellow;
    font-size:20px; 
    margin-top:10px;
    margin-bottom:10px;
    animation: blink 5s infinite;
}
/*hiệu ứng chớp tắt 2s*/
@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
.enddate{
  
    font-size:18px;
    font-weight:bold;
    color:#f50c33;

}

h1{
text-align:center;
}