/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- GLOBAL STYLES --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    /* Light Grey Background */
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure Footer stays at the bottom */
footer {
    margin-top: auto;
}

/* --- NAVBAR CUSTOMIZATION --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
    /* Bootstrap Primary Blue */
}

/* --- CARDS & CONTAINERS --- */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

/* Hover Effect for Product Cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
}

/* --- PRODUCT IMAGES --- */
.product-img-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.product-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    /* Ensures the whole image is visible */
    transition: transform 0.3s ease;
}

.card:hover .product-img-container img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* --- BUTTONS --- */
.btn {
    border-radius: 50px;
    /* Pill Shape */
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-dark {
    background: #212529;
    border: none;
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- SIDEBAR (Categories) --- */
.list-group-item {
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    padding-left: 25px;
    /* Slide effect */
}

.list-group-item.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
    font-weight: 600;
}

/* --- AUTH PAGES (Login/Register) --- */
.auth-card {
    max-width: 450px;
    margin: 0 auto;
}

.input-group-text {
    border: none;
    background-color: #f1f3f5;
    color: #6c757d;
}

.form-control {
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
    background-color: #fff;
}

/* --- ADMIN DASHBOARD --- */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding-bottom: 15px;
    border-bottom: 3px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #0d6efd;
}

/* --- FOOTER --- */
.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}