/* CSS Variables */
:root {
    --fastex-red: #BB0027;
}

/* Global Font */
body {
    font-family: 'Inter', sans-serif !important;
}

/* Custom hover effect for navbar action items (Login, Signup, Cart) */
.nav-action-item {
    transition: color 0.2s ease-in-out;
}

.nav-action-item:hover {
    color: #BB0027 !important;
    /* Fastex Red */
}

.logo {
    height: 60px;
}

.searchbar {
    max-width: 700px;
}

.cart {
    font-size: 1.5rem;
}

.cartBadge {
    font-size: 0.6rem;
}

/* Mobile Offcanvas Drawer Width */
@media (max-width: 991.98px) {
    #categoriesCanvas {
        max-width: 60%;
    }

    /* On mobile, make the mega menu a 2-column grid instead of vertical */
    .mega-dropdown-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Compact Horizontal Menu (Desktop) */
@media (min-width: 992px) {
    .mega-dropdown-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns */
        gap: 10px;
        min-width: 450px;
        /* Small, compact width */
    }
}

/* Ensure all Dropdown items match the clean 13px font of the Navbar */
.dropdown-menu .dropdown-item {
    font-size: 13px;
    font-weight: 500;
}


/* Section Titles (Used for 'Our Popular Vape Brands' etc) */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: #BB0027;
    /* Fastex Red */
    border-radius: 2px;
    margin-bottom: 2.5rem;
}

/* Force Carousel to have a fixed height to prevent layout shift */
.hero-carousel-img {
    width: 100%;
    height: 250px;
    /* Mobile height */
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-carousel-img {
        height: 400px;
        /* Tablet height */
    }
}

@media (min-width: 992px) {
    .hero-carousel-img {
        height: 500px;
        /* Desktop height */
    }
}

/* Brand Hover Card Effect */
.brand-hover-card {
    transition: all 0.3s ease;
    background-color: #f1f1f1;
}

.brand-hover-card img {
    transition: transform 0.4s ease;
}

.brand-hover-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

.brand-hover-card:hover img {
    transform: scale(1.05);
}

/* Secondary Nav List Font Size */
.categories-nav-list {
    font-size: 13px;
}

/* Category Card Styling */
.category-card {
    transition: transform 0.3s ease;
}

.category-card img {
    height: 300px;
    /* Increased height to make cards bigger */
    transition: transform 0.5s ease;
}


.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* Product Card Styling - Clean & Minimal */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-color: #ededed !important;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06) !important;
    border-color: #dcdcdc !important;
}

.product-img-wrapper {
    background-color: #fbfbfb;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.03);
}

/* Trust & Features Banner (Red & Black Theme) */
.trust-banner {
    background-color: #111111;
    border-color: #222222 !important;
}

.text-fastex-red {
    color: #BB0027 !important;
}

.trust-item {
    transition: transform 0.25s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

.trust-icon-box i {
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block;
}

.trust-item:hover .trust-icon-box i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(187, 0, 39, 0.5));
}

/* Footer Styling */
.bg-black {
    background-color: #080808 !important;
}

.footer-links a,
.footer-email {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    display: inline-block;
}

.footer-links a:hover,
.footer-email:hover {
    color: #BB0027 !important;
    /* Fastex Red */
    transform: translateX(4px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #222;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--fastex-red);
    transform: translateY(-3px);
}

/* Quantity Controls */
.qty-control {
    border-color: #e0e0e0 !important;
}

.qty-btn {
    color: #555;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.3rem 0.5rem;
    transition: background-color 0.15s ease;
}

.qty-btn:hover {
    background-color: #f0f0f0;
}

.qty-value {
    min-width: 22px;
    text-align: center;
    user-select: none;
    font-size: 0.8rem;
}

/* Add to Cart Button */
.btn-add-cart {
    background-color: var(--fastex-red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    border: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-add-cart:hover {
    background-color: #a00020;
    color: #fff;
    transform: translateY(-1px);
}

/* Pagination (Fastex Red Theme) */
.page-link {
    color: #333;
    border-color: #e0e0e0;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--fastex-red);
    border-color: var(--fastex-red);
    color: #fff;
}

.page-item.active .page-link {
    background-color: var(--fastex-red);
    border-color: var(--fastex-red);
}

.page-item.disabled .page-link {
    color: #ccc;
}

/* Fastex Theme Button */
.btn-fastex {
    background-color: var(--fastex-red);
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-fastex:hover {
    background-color: #a00020;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Login / Signup Page Styles
   ========================================================================== */
.nav-pills .nav-link {
    color: #6c757d;
    border-bottom: 2px solid transparent;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: var(--fastex-red);
    border-bottom: 2px solid var(--fastex-red);
}

/* ==========================================================================
   Brands Page Styles
   ========================================================================== */
.brand-box {
    transition: all 0.2s ease-in-out;
    background-color: #fff;
}

.brand-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--fastex-red) !important;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.brand-box:hover .brand-name {
    color: var(--fastex-red);
}