body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.navbar-brand {
    font-size: 1.5rem;
}

.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    height: 200px;
    object-fit: cover;
}

.btn-warning {
    color: #fff;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #ff9800;
}

footer {
    font-size: 0.9rem;
}

.banner-home {
    width: 100%;
    height: 100%; /* 👉 chỉnh chiều cao bạn muốn */
    overflow: hidden;
}

.banner-home .carousel-inner,
.banner-home .carousel-item {
    height: 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 không méo ảnh */
}

.footer-menu a {
    display: inline-block;
    color: #1f2937;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.2s ease;
    position: relative;
}

.footer-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.25s ease;
}

.footer-menu a:hover {
    color: #000;
    padding-left: 6px;
}

.footer-menu a:hover::after {
    width: 100%;
}


.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    color: #fff;
}

/* Màu thương hiệu */
.social-icon.facebook:hover {
    background: #1877f2;
}
.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}
.social-icon.youtube:hover {
    background: #ff0000;
}

#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f59e0b; /* vàng */
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

#backToTop:hover {
    background: #d97706;
    transform: translateY(-4px);
}
h4 {
    text-align: center;
}
/* ===== SECTION TITLE ===== */
h4 {
    position: relative;
    text-align: center;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    padding-bottom: 10px;
}

/* Gạch dưới */
h4::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fb923c);
    border-radius: 4px;
    transform: translateX(-50%);
    animation: underlineGrow 0.6s ease;
}

/* Animation gạch dưới */
@keyframes underlineGrow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Icon animation nhẹ */
h4:hover {
    color: #f59e0b;
    transition: color 0.3s;
}
h4:hover {
    transform: scale(1.03);
}
/* Nút +/- giỏ hàng */
.cart-qty-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
}

.cart-qty {
    min-width: 24px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

#userAvatar {
    width: 180px;          /* tăng kích thước */
    height: 180px;         /* tăng kích thước */
    object-fit: cover;     /* ảnh không méo, đầy khung */
    border-radius: 50%;    /* tròn hoàn toàn */
    border: 4px solid #ffc107; /* viền vàng nổi bật */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* shadow nhẹ */
}

.product-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}
.product-benefits li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}
.product-benefits li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e; /* màu xanh lá */
    font-weight: bold;
    font-size: 18px;
}
.product-benefits a {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}
.product-benefits a:hover {
    text-decoration: underline;
}

/* ===== LOGIN ADMIN ===== */
.login-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.login-form h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    position: relative;
}

.login-form h4::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fb923c);
    border-radius: 4px;
    transform: translateX(-50%);
}

.login-form .form-control {
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.login-form .btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-form .btn-warning:hover {
    background-color: #fb923c;
    transform: translateY(-2px);
}

/* ===== DASHBOARD CARD NHỎ GỌN ===== */
.card-stats {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    padding: 20px 15px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.card-stats h5 {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 6px;
    font-weight: 600;
}

.card-stats h2 {
    font-size: 24px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0;
}

.card-stats i {
    font-size: 28px;
    color: #f59e0b;
    margin-bottom: 8px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .card-stats h2 { font-size: 20px; }
    .card-stats h5 { font-size: 14px; }
}

.sidebar h4 {
    color: #f59e0b;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    padding: 20px 0;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
