﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #e75480F;
}


/* Top bar */
.topbar {
    background: #3b6e22;
    color: #fff;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
}

/* Menu */

.navbar {
    background: #ff4da6;

}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.menu li a:hover {
    background: #365c1e;
}

/* Submenu */
.submenu {
    display: none;
    position: absolute;
    background: #fff;
    top: 100%;
    left: 0;
    min-width: 180px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 10;
}

.submenu li a {
    color: #333;
    padding: 10px 15px;
    font-weight: normal;
}

.submenu li a:hover {
    background: #f1f1f1;
    color: #3b6e22;
}

.dropdown:hover .submenu {
    display: block;
}

/* Main content */
.main {
    padding: 20px;
}

/* Product card */
.product {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 15px;
    display: inline-block;
    width: 250px;
    vertical-align: top;
}

.product img {
    max-width: 100%;
    border-radius: 6px;
}

.product h3 {
    font-size: 16px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: gray;
}

.new-price {
    color: red;
    font-weight: bold;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Footer */

footer {
    background-color: #365c1e;
    color: white;
    width: 100%;
    padding: 40px 20px 20px;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Tiêu đề từng section */
.footer-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* Danh sách liên kết */
.footer-section ul {
    list-style: none;
    padding: 0;
}

    .footer-section ul li {
        margin-bottom: 10px;
    }

        .footer-section ul li a {
            color: #ddd;
            text-decoration: none;
            transition: all 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: #fff;
                padding-left: 5px;
            }

/* Thông tin liên hệ & social icons */
.contact-info p, .social-icons a {
    margin: 5px 0;
    color: #ddd;
}

.social-icons a {
    margin-right: 10px;
    font-size: 20px;
    display: inline-block;
    transition: color 0.3s;
}

    .social-icons a:hover {
        color: #fff;
    }

/* Copyright */
footer .copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}



.card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .card:hover {
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
        border: 1px solid #28a745; 
    }

    .card img {
        transition: transform 0.25s ease;
        margin-bottom: 0px;
}

    .card:hover img {
        transform: scale(1.02);
        transform: translateY(-3px) scale(1.01);

    }

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 5px;
}

.card-header {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

.list-group-item a {
    color: #333;
    text-decoration: none;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card h5.card-title {
    font-size: 1rem;
    min-height: 40px; 
}

.btn {
    font-size: 0.9rem;
}

.mb-3 img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem; 
}
/*Đăng nhập*/
.user-links {
    display: flex;
    gap: 15px; /* khoảng cách giữa các link */
    align-items: center;
}

.user-link {
    color: #fff; /* chữ trắng */
    text-decoration: none;
    font-weight: 500;
    padding: 6px 14px; /* padding cho giống nút */
    border-radius: 20px; /* bo tròn */
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1); /* nền mờ */
}

    .user-link:hover {
        background: #ffc107; /* nền vàng khi hover */
        color: #212529; /* chữ đen để dễ nhìn */
        text-decoration: none;
    }

.auth-container {
    display: flex;
    width: 800px;
    height: 450px;
    margin: 60px auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}



/* Social login */
.social-login {
    text-align: center;
    margin-top: 20px;
}

    .social-login a {
        display: inline-block;
        margin: 0 8px;
        font-size: 20px;
        color: #555;
        transition: 0.3s;
    }

        .social-login a:hover {
            color: #007bff;
        }



/* Form box */
.form-box {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.6s ease-in-out;
    text-align: center;
}

    .form-box h2 {
        margin-bottom: 20px;
        font-weight: 600;
        color: #333;
    }

.form-control {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.form-box p {
    margin-top: 15px;
    font-size: 14px;
}

.sign-in-box {
    left: 0;
    z-index: 2;
}

.sign-up-box {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 500px; /* giới hạn tổng chiều rộng */
    width: 100%;
}

    .search-container select {
        flex: 0 0 120px; /* dropdown nhỏ gọn */
    }

    .search-container input[type="text"] {
        flex: 1; /* textbox chiếm phần còn lại */
        min-width: 180px;
    }

    .search-container button {
        flex: 0 0 45px; /* nút cố định 45px */
    }

.table td, .table th {
    vertical-align: middle;
}

.btn {
    min-width: 120px;
}
