main {
    padding: 40px 20px;
    background-color: #f6faff;
    min-height: 100vh;
}

h2 {
    text-align: center;
    color: #0b4f8a;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-size: 2rem;
}

.product-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.product-card {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    padding: 18px 16px 22px 16px;
    border-radius: 16px;
    width: 260px;
    box-shadow: 0 4px 18px rgba(31, 38, 135, 0.10);
    text-align: center;
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.18);
    z-index: 2;
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.product-card:hover img {
    transform: scale(1.07) rotate(-2deg);
}

.product-card h3 {
    margin-top: 14px;
    font-size: 1.15rem;
    color: #0b4f8a;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.product-card p {
    color: #e91e63;
    font-weight: bold;
    margin: 10px 0 0 0;
    font-size: 1.08rem;
}

.product-card a {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    background: linear-gradient(90deg, #0077cc 60%, #00c6ff 100%);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 26px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 119, 204, 0.08);
    transition: background 0.2s, transform 0.1s;
    font-size: 1rem;
}

.product-card a:hover {
    background: linear-gradient(90deg, #005fa3 60%, #00aaff 100%);
    transform: scale(1.06);
    text-decoration: none;
    color: #fff;
}

main {
    padding: 80px 20px 40px 20px;
    /* tăng top padding để không bị header che */
    background-color: #f6faff;
    min-height: 100vh;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: white;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}


/* Header styling */

header {
    background: linear-gradient(90deg, #0b4f8a 60%, #1976d2 100%);
    padding: 32px 0 24px 0;
    color: white;
    text-align: center;
    box-shadow: 0 4px 16px rgba(11, 79, 138, 0.12);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 8px 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

nav a.login-btn {
    background-color: #ffffff;
    color: #0b4f8a;
    border-radius: 5px;
    transition: background-color 0.2s;
}

nav a.login-btn:hover {
    background-color: #e0e0e0;
}

footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(90deg, #0b4f8a 60%, #1976d2 100%);
    color: white;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -4px 16px rgba(11, 79, 138, 0.12);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 2px 8px #2222;
}

@media (max-width: 800px) {
    .footer-cols {
        flex-direction: column;
        gap: 18px;
    }
    .footer-col {
        min-width: unset;
    }
}

.cart-btn {
    background-color: #ff9800;
    color: white;
    padding: 6px 14px;
    border-radius: 5px;
    font-weight: bold;
}

.cart-btn:hover {
    background-color: #e68900;
}