
:root {
    --brand-yellow: #fde602;
    --brand-blue: #0000ff;
    --brand-orange: #f8991d;
    --text-dark: #212529;
    --text-light: #6c757d;
    --surface-color: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
}

a {
    text-decoration: none;
}

/* --- Utilities & Animations --- */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .section-fade-in.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* --- Header & Navbar --- */
.top-bar {
    font-size: 0.8rem;
    background-color: var(--surface-color);
    font-weight: 500;
}

.navbar {
    transition: box-shadow 0.2s ease;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        color: var(--brand-orange);
    }

.header-icons a {
    color: var(--text-dark);
    transition: color 0.3s ease;
    cursor: pointer;
}

    .header-icons a:hover {
        color: var(--brand-orange);
    }

.navbar-search .form-control {
    border-right: 0;
}

.navbar-search .btn {
    border-left: 0;
    background-color: #fff;
    border-color: var(--border-color);
}

.navbar-search .form-control:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.navbar-search .btn:hover {
    background-color: var(--surface-color);
}
    /* --- NEW: Change icon color on hover --- */
    .navbar-search .btn:hover i {
        color: var(--brand-orange);
    }

.cart-icon-container {
    position: relative;
}

.cart-item-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--brand-orange);
    color: white;
    border-radius: 50%;
    padding: 0.1em 0.4em;
    font-size: 0.75rem;
    font-weight: bold;
}


/* --- Hero Section --- */
.hero-section {
    background-color: var(--brand-yellow);
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

    .hero-section .logo {
        max-width: 180px;
        margin-bottom: 1rem;
    }

    .hero-section h1 {
        font-size: 5rem;
        font-weight: 800;
        color: var(--brand-blue);
        line-height: 1;
    }

    .hero-section p {
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }

/* --- Product Card --- */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    background-color: #fff;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .product-card .card-img-container {
        position: relative;
    }

    .product-card .add-to-cart-btn {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, bottom 0.3s ease;
        background-color: var(--brand-orange);
        color: #fff;
        border: none;
        font-weight: 500;
    }

    .product-card:hover .add-to-cart-btn {
        opacity: 1;
        bottom: 30px;
    }

    .product-card .card-body {
        padding: 1.5rem;
    }

    .product-card .card-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .product-card .card-text {
        color: var(--brand-orange);
        font-weight: 700;
        font-size: 1.2rem;
    }

/* --- Brands Section --- */
.brands-section {
    background-color: var(--surface-color);
    padding: 4rem 0;
}

.brand-logo {
    max-height: 80px;
    margin: 1rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

    .brand-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
    }

/* --- Footer --- */
footer {
    background-color: #ffffff;
    color: var(--text-light);
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

    footer h5 {
        font-weight: 600;
        color: var(--text-dark);
    }

    footer .form-control {
        border-right: 0;
    }

    footer .input-group-text {
        background: transparent;
        border-left: 0;
    }

    footer .quick-links a {
        color: var(--text-light);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        footer .quick-links a:hover {
            color: var(--brand-orange);
        }

.footer-bottom {
    background-color: var(--surface-color);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.payment-icons i {
    font-size: 2rem;
    margin: 0 0.5rem;
    color: #adb5bd;
}

/* Responsive typography for hero section */
@media (max-width: 991px) {
    .navbar-search-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.5rem;
    }
}

.custom-toast-margin {
    margin-top: 90px !important;
}




/* --- Global & Typography --- */
body {
    background-color: #f4f7fa; /* A light, soft gray for the page background */
    font-family: 'Poppins', sans-serif; /* Ensuring the Poppins font is used */
}

/* --- Navigation Bar --- */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Softer shadow for the sticky nav */
}

/* --- Main Content & Cards --- */
.page-title {
    font-weight: 600;
    color: #2c3e50; /* A dark, professional blue-gray for titles */
    margin-bottom: 1.5rem;
}



/* --- Button Styling --- */
.btn-primary {
    background-color: #4a69bd; /* A more modern, vibrant blue */
    border-color: #4a69bd;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

    .btn-primary:hover {
        background-color: #3b539a;
        border-color: #3b539a;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* --- DataTables Styling --- */
#tblData {
    border-collapse: collapse !important;
    width: 100% !important;
}

    #tblData thead th {
        background-color: #f8f9fc; /* Light header for the table */
        border-bottom: 2px solid #e3e6f0;
        color: #5a5c69;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    #tblData tbody td {
        color: #5a5c69;
        vertical-align: middle;
        border-top: 1px solid #e3e6f0;
    }

    #tblData tbody tr:hover {
        background-color: #f8f9fc; /* Subtle hover effect for rows */
    }

    /* Removing vertical lines for a cleaner, modern look */
    #tblData, #tblData th, #tblData td {
        border-left: none;
        border-right: none;
    }

/* Style the search and show entries controls */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 0.375rem;
    border: 1px solid #d1d3e2;
    padding: 0.375rem 0.75rem;
}

/* Animate Font Awesome icon on link hover */
.nav-link:hover .bi,
.nav-link:hover .bi-solid {
    --bi-animation-duration: 1.5s; /* Optional: control speed */
    animation: fa-beat 1.5s infinite;
    transition: color 0.3s ease-in-out;
    color: orange;
}

/* --- Shopping Cart Icon Styling --- */

/* 1. Base style for the cart icon link */
.cart-icon-container {
    color: #212529; /* Sets the default dark color */
    display: inline-block; /* Helps with transform animations */
    transition: color 0.3s ease-in-out; /* Smooths the color change */
}

    /* 2. Smooths the icon's size change animation */
    .cart-icon-container i {
        transition: transform 0.3s ease-in-out;
    }

    /* 3. Styles for when you hover over the link */
    .cart-icon-container:hover {
        color: orange; /* Changes the link/icon color to orange */
    }

        /* 4. Animates the icon inside the link on hover */
        .cart-icon-container:hover i {
            transform: scale(1.2); /* Makes the icon grow by 20% */
        }


.ui-autocomplete {
    position: absolute;
    z-index: 1050; /* High z-index to appear above other page elements */
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem; /* Standard Bootstrap border-radius */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Standard Bootstrap shadow */
    /* Optional: Add a scrollbar for long lists */
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}


.sold-out-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
}


.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 10%;
        left: 100%;
        margin-top: -1px;
    }

.navbar-nav li:hover > ul.dropdown-menu {
    display: block;
}

@media (min-width: 992px) {
    .navbar-search-desktop .input-group {
        width: 450px;
    }
}