.marquee {
    overflow: hidden;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.cart-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.buy-theme {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 25px 0 0 25px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-theme:hover {
    background: #0056b3;
    transform: translateY(-50%) translateX(-5px);
}

.quick-question {
    position: fixed;
    right: 0;
    top: 60%;
    transform: translateY(-50%);
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 25px 0 0 25px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-question:hover {
    background: #1e7e34;
    transform: translateY(-50%) translateX(-5px);
}

.buy-theme a, .quick-question a {
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .xs-display-none {
        display: none !important;
    }
}


/* ===================================
    POP UP
====================================== */



/* Modal overlay chỉ dành riêng cho pop-up này */
.popup-modal {
    display: none; /* Mặc định ẩn */
    position: fixed;
    z-index: 1000; /* Đảm bảo modal này ở trên các thành phần khác */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nền mờ phía sau */
}
  
  /* Modal content chỉ dành riêng cho pop-up */
.popup-modal-content {
background-color: white;
margin: 10% auto;
padding: 0; /* Bỏ padding */
border-radius: 8px;
max-width: 500px; /* Giới hạn chiều rộng */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden; /* Đảm bảo nội dung không tràn ra ngoài */
}

/* Hình ảnh trong pop-up */
.popup-image {
width: 100%; /* Hình ảnh chiếm toàn bộ chiều rộng modal */
height: auto;
display: block;
margin: 0;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}

/* Tiêu đề */
.popup-modal-content h2 {
font-size: 1.5em;
margin: 20px 0 10px 0;
text-align: center;
}

/* Input field */
.popup-modal input[type="text"] {
    width: 90%;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    display: block;
    box-sizing: border-box;
}

/* Submit button */
.popup-modal button[type="submit"] {
background-color: #333;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
width: 90%;
display: block;
margin: 10px auto;
}

.popup-modal button[type="submit"]:hover {
background-color: #555;
}

/* Close button dành riêng cho pop-up */
.popup-close {
color: #aaa;
font-size: 28px;
font-weight: bold;
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}

.popup-close:hover,
.popup-close:focus {
color: black;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
.popup-modal-content {
    width: 90%;
}

.popup-modal h2 {
    font-size: 1.3em;
}
}
