/* Custom Properties */
:root {
    --primary: #0066cc;
    --primary-dark: #004b99;
    --secondary: #ff6b00;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    overflow-x: hidden;
}

/* Navbar gradient */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%);
}

.dropdown-menu-animated {
    animation: fadeInDown 0.3s ease;
}

/* Hero Section */
.hero {
    background:  no-repeat center center/cover;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    margin-bottom: 2rem;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.2);
    }

.hero-content {
    position: relative;
    z-index: 1;
    animation: slideInLeft 0.8s ease;
}

/* Product Card */
.card-product {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    background: white;
}

    .card-product:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .card-product .card-img-top {
        height: 200px;
        object-fit: cover;
        transition: var(--transition);
    }

    .card-product:hover .card-img-top {
        transform: scale(1.05);
    }

    .card-product .price {
        color: var(--secondary);
        font-weight: bold;
        font-size: 1.25rem;
    }

/* Sidebar categories */
.list-group-category .list-group-item {
    border: none;
    border-radius: 10px !important;
    margin-bottom: 5px;
    transition: var(--transition);
}

    .list-group-category .list-group-item:hover {
        background-color: var(--primary);
        color: white;
        transform: translateX(5px);
    }

/* Detail page */
.product-image img {
    border-radius: 15px;
    transition: var(--transition);
    cursor: zoom-in;
}

    .product-image img:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

.btn-add-cart {
    background: linear-gradient(45deg, var(--secondary), #ff8c42);
    border: none;
    font-weight: bold;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .btn-add-cart:hover {
        background: linear-gradient(45deg, #e05500, #ff6b00);
        transform: scale(1.02);
    }

    .btn-add-cart:active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        background: rgba(255,255,255,0.4);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1);
        animation: ripple 0.6s ease-out;
    }

/* Cart table */
.cart-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

    .cart-table th {
        background-color: var(--primary);
        color: white;
    }

.item-removing {
    animation: fadeOutRight 0.4s ease forwards;
}

/* Admin sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e1e2f, #252542);
    color: white;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    background: #f4f6f9;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 25px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

    .admin-sidebar .nav-link:hover,
    .admin-sidebar .nav-link.active {
        color: white;
        background: rgba(255,255,255,0.1);
        border-left-color: var(--secondary);
    }

.admin-sidebar hr {
    border-color: rgba(255,255,255,0.1);
    margin: 15px 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

@keyframes fadeOutRight {
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
        border-radius: 0 0 20px 20px;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-content {
        margin-left: 0;
    }
}
/* --- Auth Pages (Login, Register) --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Trừ đi navbar */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: -16px; /* Để sát navbar hơn */
    padding: 4rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.auth-header {
    background: linear-gradient(45deg, #0066cc, #004b99);
    padding: 2rem;
    text-align: center;
    color: white;
}

.auth-body .form-control {
    border-radius: 10px;
    padding: 0.6rem 1rem;
}

    .auth-body .form-control:focus {
        border-color: #0066cc;
        box-shadow: 0 0 0 0.25rem rgba(0,102,204,0.25);
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.about-hero, .contact-hero {
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    border-radius: 0 0 50px 50px;
    margin-top: -16px; /* nếu navbar fixed-top */
}