body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background: #222b93;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

nav {
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

footer {
    background: #2a3888;
    color: #ffffff;
    text-align: none;
    padding: 10px 0px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Modal overlay */
.modal {
    display: none; /* Ẩn mặc định */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    overflow: auto;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

/* Modal content box */
.modal-content {
    background: #fff;
    margin: auto;
    padding: 32px 24px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    animation: modalFadeIn 0.3s;
}

/* Close button */
.close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 2rem;
    color: #222b93;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.close:hover {
    color: #a85b2b;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 18px 8px;
        max-width: 98vw;
    }
}

/* Fade in animation */
@keyframes modalFadeIn {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}