/* Tăng khoảng cách giữa các icon header cho cân đối */
.header-icons {
    gap: 2.5rem !important;
}
/* Tăng khoảng cách giữa các mục menu header cho cân đối */
.navbar-nav {
    gap: 2.5rem;
}
/* Hiệu ứng hover gradient xanh nước biển cho menu header */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.2s;
    z-index: 1;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, #4f8cff, #4fd1ff, #4f8cff);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: scaleX(0.6);
    z-index: -1;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #1976d2 !important;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}
/* Tăng khoảng cách giữa các section container */
section > .container {
    margin-bottom: 2.5rem;
}
@media (max-width: 991.98px) {
    .card-img-top {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .card-img-top {
        height: 180px;
    }
}
/* Custom col for 5 products per row on large screens */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
        max-width: 20%;
    }
}

@media (max-width: 991.98px) {
        .hero-section .row {
                flex-direction: column-reverse;
        }
        .hero-img {
                min-height: 220px;
        }
        .card-img-top {
                height: 220px;
        }
}

@media (max-width: 575.98px) {
        .card-img-top {
                height: 180px;
        }
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
}

/* Search overlay styles */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}
.search-overlay .search-box {
    width: 100%;
    max-width: 900px;
}
.search-overlay .form-control-lg {
    padding: 1.25rem 1rem;
    font-size: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.btn-close-white {
    filter: invert(1) grayscale(1) brightness(2);
}
.d-none { display: none !important; }

/* Top inline search bar under navbar */
.top-search {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 1rem 0;
    /* push the search bar slightly below the fixed header */
    margin-top: 76px; /* adjust if your header height changes */
}
.search-pill .form-control {
    border-radius: 999px 0 0 999px;
    padding: .75rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.search-pill .btn {
    border-radius: 0 999px 999px 0;
}
.top-search.d-none { display: none !important; }
.top-search.showing { animation: slideDown 220ms ease forwards; }
.top-search.hiding { animation: slideUp 180ms ease forwards; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

.gradient-text {
    background: linear-gradient(90deg, #4f8cff, #a18cd1, #f7797d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-section {
    background: linear-gradient(90deg, #f8f9fa 60%, #4f8cff10 100%);
    border-radius: 0 0 32px 32px;
    margin-top: 80px;
}

/* Admin sidebar fixed + responsive collapse */
.admin-sidebar {
    position: fixed;
    top: 56px; /* navbar height */
    left: 0;
    bottom: 0;
    width: 260px;
    overflow-y: auto;
}
.admin-main {
    margin-left: 260px;
}
@media (max-width: 991.98px) {
    .admin-sidebar { position: relative; top:0; width:100%; height:auto; }
    .admin-main { margin-left: 0; }
}

/* Sidebar - simple blue links */
.admin-sidebar {
    background: #fff;
    padding: 1.5rem 1.25rem;
}
.admin-sidebar h5 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.admin-sidebar .nav {
    margin-top: 0.5rem;
}
.admin-sidebar .nav-link {
    color: #2563eb;
    padding: .45rem 0;
    margin-bottom: .25rem;
    display: block;
    font-size: 15px;
    text-decoration: none;
}
.admin-sidebar .nav-link:hover {
    text-decoration: underline;
}
.admin-sidebar .nav-link.active {
    color: #1e40af;
    font-weight: 500;
}
.admin-sidebar .nav-item { margin-bottom: 0.2rem; }


/* Simple pagination UI */
.pagination-custom { display:flex; gap:6px; align-items:center; }
.page-btn { border:1px solid #e6e6e6; padding:6px 10px; border-radius:6px; background:#fff; cursor:pointer }
.page-btn.active { background:#4f8cff; color:#fff; }

.hero-img {
    min-height: 320px;
    background: linear-gradient(120deg, #a18cd1 0%, #fbc2eb 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.bg-pink {
    background: linear-gradient(90deg, #f7797d, #fbc2eb);
    color: #fff !important;
}

.card .badge {
    z-index: 2;
}

.card {
    border: none;
    border-radius: 16px;
    transition: box-shadow 0.3s cubic-bezier(.4,2,.6,1), transform 0.3s cubic-bezier(.4,2,.6,1);
}
.card:hover {
    box-shadow: 0 16px 48px 0 rgba(79,140,255,0.18), 0 2px 8px 0 rgba(0,0,0,0.08);
    transform: translateY(-8px) scale(1.04);
    z-index: 2;
}

.card-img-top {
    height: 220px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 12px;
}

.footer-section {
    background: #232946;
}

.footer-section a {
    transition: color 0.2s;
}
.footer-section a:hover {
    color: #f7797d !important;
}

@media (max-width: 991.98px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }
    .hero-img {
        min-height: 220px;
    }
    .card-img-top {
        height: 80px;
    }
}
