/* Edit hover mục chọn */
.home-service-item {
    transition: color 0.3s ease, background-color 0.3s ease;
}
/* Hiệu ứng hover cho toàn bộ phần tử */
.home-service-item:hover {
    color: #AF1740;
    background-color: #ffe6e6; /* Chuyển nền sang một màu nhạt hơn để làm nổi bật */
}
/* Đổi màu biểu tượng khi hover */
.home-service-item:hover .home-service-item-icon i {
    color: #AF1740;
}
/* Đổi màu chữ tiêu đề và mô tả khi hover */
.home-service-item:hover .home-service-item-content-h,
.home-service-item:hover .home-service-item-content-desc {
    color: #AF1740;
}

.forgot-password {
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ee4126;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: white;
    margin-top: 10px;
    font-size: 16px;
}


/* Chỉ áp dụng cho phần mã khuyến mãi */
/* Thêm vào main_e.css */
.promo-section {
    margin: 15px 0;
    padding: 10px; /* Giảm padding để tiết kiệm không gian */
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex; /* Sử dụng flex để căn chỉnh các phần tử */
    flex-direction: column; /* Ban đầu là cột để chứa tiêu đề và input group */
}

.promo-section p {
    margin: 0 0 5px 0; /* Giảm khoảng cách để tiết kiệm không gian */
    font-weight: bolder;
}

/* Container cho input và hai nút */
.promo-input-container {
    display: flex; /* Sử dụng flex để đặt input và nút trên cùng một dòng */
    align-items: center;
    width: 100%; /* Đảm bảo không vượt quá kích thước container cha */
    gap: 5px; /* Khoảng cách nhỏ giữa các phần tử */
}

.promo-input {
    flex: 1; /* Chiếm toàn bộ không gian còn lại */
    padding: 8px 10px; /* Giảm padding để nhỏ gọn hơn */
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 0; /* Đảm bảo input co lại được khi không gian nhỏ */
    transition: all 0.3s;
}

.promo-input:focus {
    border-color: #AF1740;
    outline: none;
}

.promo-button, .apply-button {
    background-color: #AF1740;
    color: white;
    border: none;
    padding: 8px 8px; /* Giảm padding để nút nhỏ gọn hơn */
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px; /* Giảm kích thước chữ để phù hợp với không gian nhỏ */
    white-space: nowrap; /* Ngăn nút xuống dòng */
    transition: all 0.3s;
}

.promo-button:hover, .apply-button:hover {
    background-color: #8a102f;
}

.applied-vouchers {
    margin-top: 5px; /* Giảm margin để tiết kiệm không gian */
    background: #f5f5f5;
    padding: 5px;
    border-radius: 5px;
}

.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.promo-modal.active {
    display: flex;
}

.promo-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.promo-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.promo-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
}

.promo-tab.active {
    color: #AF1740;
    border-bottom: 2px solid #AF1740;
}

.promo-category {
    margin-bottom: 20px;
}

.promo-category-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promo-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.promo-item:hover {
    background: #eee;
}

.promo-item-code {
    font-weight: 600;
    color: #AF1740;
}

.promo-item-desc {
    font-size: 13px;
    color: #666;
}

.promo-item-discount {
    background: #AF1740;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}


/* Trạng thái disabled cho input khi loading */
.promo-input.loading-promo {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
}

/* Container cho hiệu ứng loading */
.promo-loading-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #AF1740;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    animation: spin 1s linear infinite;
}

/* Ẩn spinner mặc định */
.apply-button .promo-loading-spinner-small {
    display: none;
}

/* Hiển thị spinner khi loading */
.apply-button.loading-promo .promo-loading-spinner-small {
    display: inline-block;
}
/* Hiệu ứng xoay cho spinner */
@keyframes spin-small {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Đảm bảo nút không thay đổi kích thước khi loading */
.apply-button.loading-promo {
    pointer-events: none;
    opacity: 0.8;
}

/* Invoice section */
.invoice-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.invoice-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.invoice-option label {
    font-size: 14px;
    cursor: pointer;
}

.invoice-info {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.invoice-info .form-group {
    margin-bottom: 10px;
}

/* Voucher styles */
.applied-vouchers {
    margin-top: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

.applied-vouchers div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.applied-vouchers span {
    font-size: 14px;
}

.remove-voucher {
    color: #ff0000;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.chk-free-ship.free {
    color: #28a745 !important;
    font-weight: bold;
}

.voucher-status {
    margin-top: 5px;
    padding: 5px;
    border-radius: 4px;
    font-size: 13px;
}

.voucher-status.error {
    background-color: #ffebee;
    color: #f44336;
}

.voucher-status.success {
    background-color: #e8f5e9;
    color: #4caf50;
}

.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.promo-modal.active {
    display: flex;
}

.promo-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.promo-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.promo-tab.active {
    border-bottom: 2px solid #ff6b6b;
    font-weight: bold;
}

.promo-list {
    list-style: none;
    padding: 0;
}

.promo-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: pointer;
}

.promo-item:hover {
    background: #f9f9f9;
}

.promo-item-code {
    font-weight: bold;
    margin-bottom: 5px;
}

.promo-item-desc {
    font-size: 12px;
    color: #666;
}

.promo-item-discount {
    color: #ffffff;
    font-weight: bold;
}

.unavailable {
    font-style: italic;
    font-weight: bold;
    color: red;
    margin-left: 5px;
}


/* Phần form quên mật khẩu */
.form-control:disabled {
    background-color: #e0e0e0;
    color: #666;
    cursor: not-allowed;
}

.modal.signup-login .modal-container {
    overflow: hidden;
}

.modal-container .forms {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.form-content {
    width: 100%;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
}

.form-content.sign-up {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Khi active - hiển thị form đăng nhập */
.modal-container.active .form-content.sign-up {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.modal-container.active .form-content.login {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Khi forgot-active - hiển thị form quên mật khẩu */
.modal-container.forgot-active .form-content.sign-up,
.modal-container.forgot-active .form-content.login {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

.modal-container.forgot-active .form-content.forgot-password {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* home slider */
/* .home-slider{
    display: flex;
}

.home-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
} */

.home-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}
  
.slides {
    display: flex;
    transition: transform 0.3s ease-in-out;
}
  
.slide {
    min-width: 100%;
}
  
.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
  
  