/* ==========================================================================
   FASTEX DISTRIBUTION - Comprehensive E-Commerce Stylesheet
   Reference: https://fastexdistribution.com
   ========================================================================== */

:root {
    --fastex-red: #BB0027;
    --fastex-red-hover: #96001F;
    --fastex-red-light: #FDE8EC;
    --fastex-dark: #12151A;
    --fastex-dark-secondary: #1F242D;
    --fastex-gray-100: #F8F9FA;
    --fastex-gray-200: #E9ECEF;
    --fastex-gray-300: #DEE2E6;
    --fastex-gray-600: #6C757D;
    --fastex-gray-800: #343A40;
    --fastex-gold: #F59E0B;
    --fastex-green: #10B981;
    --fastex-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --fastex-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --fastex-shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
    --fastex-radius: 10px;
    --fastex-radius-sm: 6px;
    --fastex-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Typography - Completely Hide Scrollbars Globally */
html, body {
    overflow-x: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE & Edge */
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body {
    max-width: 100% !important;
    width: 100% !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: #212529;
    background-color: #FAFAFB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Prevent Bootstrap Offcanvas / Modal Scrollbar Layout Shift & Wobble */
body[style*="padding-right"],
body.modal-open,
body:has(.offcanvas.show),
body:has(.offcanvas.showing) {
    padding-right: 0px !important;
}

.fixed-top,
.sticky-top,
.header-main,
.category-navbar,
.announcement-bar {
    padding-right: 0px !important;
    margin-right: 0px !important;
}

main {
    flex: 1 0 auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F1F1;
}
::-webkit-scrollbar-thumb {
    background: #C4C4C4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--fastex-red);
}

/* Top Announcement Bar */
.announcement-bar {
    background-color: var(--fastex-dark);
    color: #E2E8F0;
    font-size: 0.8rem;
    padding: 7px 0;
    letter-spacing: 0.2px;
}

.announcement-bar a {
    color: #F87171;
    text-decoration: underline;
}

/* Navbar Brand & Search */
.header-main {
    background: #FFFFFF;
    border-bottom: 1px solid var(--fastex-gray-200);
    position: relative;
    z-index: 1050;
}

.logo-brand {
    height: 52px;
    object-fit: contain;
    transition: var(--fastex-transition);
}

.logo-brand:hover {
    transform: scale(1.02);
}

.search-input-group {
    max-width: 650px;
    width: 100%;
}

.search-input-group .form-control {
    border-color: var(--fastex-gray-300);
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    border-radius: 30px 0 0 30px !important;
}

.search-input-group .form-control:focus {
    border-color: var(--fastex-red);
    box-shadow: 0 0 0 3px rgba(187, 0, 39, 0.15);
}

.search-input-group .btn-search {
    background-color: var(--fastex-red);
    color: white;
    border-radius: 0 30px 30px 0 !important;
    padding: 0 1.4rem;
    border: none;
    transition: var(--fastex-transition);
}

.search-input-group .btn-search:hover {
    background-color: var(--fastex-red-hover);
    color: white;
}

/* Live Search Dropdown */
.search-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--fastex-gray-200);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1005 !important;
    margin-top: 6px;
    display: none;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--fastex-gray-100);
    text-decoration: none;
    color: inherit;
    transition: var(--fastex-transition);
}

.search-autocomplete-item:hover {
    background-color: var(--fastex-gray-100);
}

.search-autocomplete-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: #f8f9fa;
}

/* Header Action Icons */
.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2D3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--fastex-transition);
}

.nav-action-btn:hover {
    color: var(--fastex-red);
    background-color: var(--fastex-red-light);
}

.nav-action-btn i {
    font-size: 1.25rem;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--fastex-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Category Navigation Bar - Strong, Prominent & Compact */
.category-navbar {
    background: #181C24 !important;
    border-bottom: 2px solid var(--fastex-red) !important;
    padding: 0 !important;
    position: relative;
    z-index: 1040 !important;
}

.category-navbar .nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.category-nav-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #F1F5F9 !important;
    padding: 10px 8px !important;
    text-transform: capitalize;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    transition: var(--fastex-transition);
    border-bottom: 3px solid transparent;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    white-space: nowrap !important;
}

.category-nav-link:hover,
.category-nav-link.active {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: var(--fastex-red) !important;
}

.category-nav-link i {
    color: #F87171;
    margin-right: 2px;
}

.category-nav-link.b2b-link {
    color: #FCA5A5 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.category-nav-link.b2b-link:hover {
    color: #FFFFFF !important;
    background-color: rgba(187, 0, 39, 0.2) !important;
}

/* Vapes Subcategory Mega Overlay */
.vapes-dropdown-container {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.vapes-nav-trigger .nav-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.vapes-dropdown-container:hover .vapes-nav-trigger .nav-arrow {
    transform: rotate(180deg);
}

.vapes-subcat-overlay {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 720px !important;
    max-width: 95vw !important;
    max-height: 460px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    border: 1px solid var(--fastex-gray-300) !important;
    border-top: 3px solid var(--fastex-red) !important;
    border-radius: 0 0 10px 10px !important;
    padding: 14px 16px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28) !important;
    z-index: 1010 !important;
}

@media (min-width: 992px) {
    .vapes-dropdown-container:hover .vapes-subcat-overlay,
    .vapes-dropdown-container:focus-within .vapes-subcat-overlay {
        display: block !important;
    }
}

.vapes-dropdown-container.is-open .vapes-subcat-overlay {
    display: block !important;
}

.vapes-dropdown-container.is-open .vapes-nav-trigger .nav-arrow {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .vapes-dropdown-container {
        position: static !important;
    }
    .vapes-subcat-overlay {
        left: 8px !important;
        right: 8px !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 72vh !important;
        border-radius: 10px !important;
    }
    .vapes-subcat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .vapes-subcat-item {
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
    }
}

.vapes-subcat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.vapes-subcat-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 7px 10px !important;
    border-radius: 6px !important;
    background: #F8F9FA !important;
    border: 1px solid #E2E8F0 !important;
    text-decoration: none !important;
    color: #1E293B !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

.vapes-subcat-item:hover {
    background-color: var(--fastex-red-light) !important;
    border-color: rgba(187, 0, 39, 0.3) !important;
    color: var(--fastex-red) !important;
    transform: translateX(2px) !important;
}

.vapes-subcat-dot {
    display: none !important;
}

.vapes-subcat-name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.vapes-subcat-count {
    font-size: 0.68rem !important;
    color: #64748B !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    padding: 1px 6px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Mega Dropdown Grid */
.dropdown-menu.mega-dropdown-grid {
    display: none;
    position: absolute;
    z-index: 1005 !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-width: 440px;
    max-height: 440px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--fastex-gray-200);
    box-shadow: var(--fastex-shadow-lg);
    background: white;
}

.dropdown-menu.mega-dropdown-grid.show {
    display: grid !important;
}

/* Server-Side Category Dropdown Menu */
.category-dropdown-menu {
    min-width: 300px;
    max-width: 420px;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--fastex-gray-200);
    box-shadow: var(--fastex-shadow-lg);
    z-index: 1005 !important;
    padding: 0.4rem 0;
}

.category-dropdown-menu .dropdown-item {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    transition: var(--fastex-transition);
    color: #2D3748;
}

.category-dropdown-menu .dropdown-item:hover {
    background-color: var(--fastex-red-light);
    color: var(--fastex-red);
    font-weight: 600;
    padding-left: 18px;
}

.dropdown-menu.mega-dropdown-grid .dropdown-item {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: var(--fastex-transition);
    color: #374151;
}

.dropdown-menu.mega-dropdown-grid .dropdown-item:hover {
    background-color: var(--fastex-red-light);
    color: var(--fastex-red);
    font-weight: 600;
    transform: translateX(2px);
}

@media (max-width: 991.98px) {
    .dropdown-menu.mega-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        min-width: 100%;
    }
}

/* Category Navbar Header Dropdown Button */
.btn-fastex-cat {
    background-color: var(--fastex-red) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(187, 0, 39, 0.3);
    transition: var(--fastex-transition);
}
.btn-fastex-cat:hover, .btn-fastex-cat:focus {
    background-color: var(--fastex-red-hover) !important;
    color: white !important;
}

/* Hero Carousel - Full-Width Edge-to-Edge Banner */
.hero-carousel {
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-carousel-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    filter: brightness(0.88);
}

@media (max-width: 991.98px) {
    .hero-carousel-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-carousel-img {
        height: 250px;
    }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 38px;
        opacity: 0.85;
        z-index: 12;
    }
    .hero-carousel .carousel-indicators {
        margin-bottom: 0.35rem;
    }
}

.hero-caption {
    background: linear-gradient(90deg, rgba(18, 21, 26, 0.85) 0%, rgba(18, 21, 26, 0.45) 60%, transparent 100%);
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    padding-left: 4%;
    text-align: left;
}

@media (max-width: 768px) {
    .hero-caption {
        padding: 0 42px;
        justify-content: center;
        background: rgba(18, 21, 26, 0.55);
    }
}

.hero-caption-card {
    background: rgba(18, 21, 26, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    max-width: 520px;
    text-align: left;
}

.hero-caption-card h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1.22;
}

@media (max-width: 768px) {
    .hero-caption-card {
        padding: 0.85rem 1rem;
        width: 100%;
        max-width: 100%;
    }
    .hero-caption-card h2 {
        font-size: 1.1rem;
        line-height: 1.25;
        margin-bottom: 0.6rem;
    }
    .hero-caption-card .d-flex {
        display: flex !important;
        gap: 8px !important;
        width: 100%;
    }
    .hero-caption-card .d-flex .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        display: inline-flex !important;
        align-items: center !important;
        padding: 0.4rem 0.25rem !important;
        font-size: 0.75rem !important;
        line-height: 1.15 !important;
        height: auto !important;
        min-height: 38px !important;
        white-space: normal !important;
        word-break: normal !important;
        border-radius: 6px !important;
    }
}

/* Buttons */
.btn-fastex {
    background-color: var(--fastex-red);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    transition: var(--fastex-transition);
}

.btn-fastex:hover,
.btn-fastex:focus {
    background-color: var(--fastex-red-hover);
    color: white;
    box-shadow: 0 4px 14px rgba(187, 0, 39, 0.35);
}

.btn-outline-fastex {
    border: 2px solid var(--fastex-red);
    color: var(--fastex-red);
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: var(--fastex-transition);
}

.btn-outline-fastex:hover {
    background-color: var(--fastex-red);
    color: white;
}

/* Section Header & Titles */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fastex-dark);
    letter-spacing: -0.3px;
    margin-bottom: 0.25rem;
}

.title-underline {
    width: 45px;
    height: 3px;
    background-color: var(--fastex-red);
    border-radius: 2px;
}

/* Brand Card Styling - Compact */
.brand-hover-card {
    background: white;
    border: 1px solid var(--fastex-gray-200);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    transition: var(--fastex-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: #1F2937;
}

.brand-hover-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fastex-shadow);
    border-color: rgba(187, 0, 39, 0.3);
    color: var(--fastex-red);
}

.brand-hover-card img {
    height: 44px;
    max-width: 85%;
    object-fit: contain;
    transition: var(--fastex-transition);
    margin-bottom: 0.4rem;
}

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

.brand-hover-card .brand-name {
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 1px;
}

.brand-hover-card .brand-count {
    font-size: 0.7rem;
    color: var(--fastex-gray-600);
}

/* Category Cards - Expanded Height & Modern Visuals */
.category-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--fastex-shadow-sm);
    transition: var(--fastex-transition);
    height: 250px;
    text-decoration: none;
    display: block;
}

@media (max-width: 991.98px) {
    .category-card {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .category-card {
        height: 165px;
    }
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 21, 26, 0.95) 0%, rgba(18, 21, 26, 0.45) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1rem;
    color: white;
}

.category-card-overlay h5 {
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.category-card-overlay span {
    font-size: 0.78rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Product Card - Sleek B2B Wholesale Density */
.product-card {
    background: white;
    border: 1px solid var(--fastex-gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--fastex-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fastex-shadow);
    border-color: rgba(187, 0, 39, 0.3);
}

.product-img-wrapper {
    position: relative;
    padding-top: 72%;
    background-color: #F8F9FA;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.3s ease;
}

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

.product-badge-group {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.badge-instock {
    background-color: var(--fastex-green);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-soldout {
    background-color: #EF4444;
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-featured {
    background-color: var(--fastex-gold);
    color: #1F2937;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-bestseller {
    background-color: #EF4444 !important;
    color: white !important;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-vapes {
    background-color: #3B82F6 !important;
    color: white !important;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-candies {
    background-color: #10B981 !important;
    color: white !important;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Wholesale Best Sellers Filter Tabs */
.product-filter-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.product-filter-nav .nav-link {
    color: #4B5563;
    background: #F3F4F6;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 14px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.product-filter-nav .nav-link:hover {
    color: var(--fastex-red);
    background: #FEE2E2;
    border-color: #FCA5A5;
}

.product-filter-nav .nav-link.active {
    color: #FFFFFF !important;
    background: var(--fastex-red) !important;
    border-color: var(--fastex-red) !important;
    box-shadow: 0 2px 8px rgba(187, 0, 39, 0.35);
}

/* Exact 5 Cards Per Row on Desktop */
@media (min-width: 992px) {
    .row-cols-lg-5 > * {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}

@media (min-width: 1200px) {
    .row-cols-xl-5 > * {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}

.card-quick-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateX(6px);
    transition: var(--fastex-transition);
    z-index: 3;
}

.product-card:hover .card-quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-card-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 0.75rem;
    transition: var(--fastex-transition);
}

.btn-card-action:hover {
    background: var(--fastex-red);
    color: white;
}

.btn-card-action.wishlist-active {
    color: var(--fastex-red);
}

.product-body {
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--fastex-red);
    margin-bottom: 2px;
}

.product-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 0.2rem;
    line-height: 1.25;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.05rem;
}

.product-title:hover {
    color: var(--fastex-red);
}

.product-detail-sub {
    font-size: 0.7rem;
    color: var(--fastex-gray-600);
    margin-bottom: 0.4rem;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 0.5rem;
    margin-top: auto;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fastex-dark);
}

.product-price-wholesale {
    font-size: 0.72rem;
    color: var(--fastex-gray-600);
}

/* Stepper Quantity Control - Compact */
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--fastex-gray-300);
    border-radius: 5px;
    overflow: hidden;
    background: white;
}

.qty-stepper button {
    border: none;
    background: #F8F9FA;
    color: #374151;
    width: 22px;
    height: 28px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--fastex-transition);
}

.qty-stepper button:hover {
    background: var(--fastex-red);
    color: white;
}

.qty-stepper input {
    width: 26px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-add-cart {
    background-color: var(--fastex-red);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    height: 28px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--fastex-transition);
}

.btn-add-cart:hover {
    background-color: var(--fastex-red-hover);
    color: white;
}

.btn-add-cart:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
}

/* List View variant for product card */
.product-card.list-view {
    flex-direction: row;
}

.product-card.list-view .product-img-wrapper {
    width: 240px;
    min-width: 240px;
    padding-top: 0;
    height: 200px;
}

@media (max-width: 768px) {
    .product-card.list-view {
        flex-direction: column;
    }
    .product-card.list-view .product-img-wrapper {
        width: 100%;
        padding-top: 80%;
    }
}

/* ==========================================================================
   Offcanvas & Modal Layering Architecture
   Guarantees that all Slide-out Drawers (Cart, Mobile Filters) and Backdrops
   strictly sit ABOVE all Navbars, Headers, and Page Elements
   ========================================================================== */
.offcanvas-backdrop,
.offcanvas-backdrop.show {
    z-index: 10400 !important;
}

.offcanvas,
.offcanvas.show,
#cartDrawer,
#filterSidebarMobile {
    z-index: 10450 !important;
}

#cartDrawer {
    width: 440px;
    border-left: 1px solid var(--fastex-gray-200);
}

@media (max-width: 576px) {
    #cartDrawer {
        width: 100%;
    }
}

.modal-backdrop,
.modal-backdrop.show {
    z-index: 10500 !important;
}

.modal,
.modal.show,
#ageVerificationModal {
    z-index: 10550 !important;
}

.cart-free-shipping-bar {
    background-color: var(--fastex-red-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.84rem;
}

.cart-item-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fastex-gray-200);
    position: relative;
}

.cart-item-thumb {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    border: 1px solid var(--fastex-gray-200);
    object-fit: cover;
    background: #f8f9fa;
    flex-shrink: 0;
}

/* Trust Badges / Features Bar - Compacted */
.features-bar {
    background: white;
    border-top: 1px solid var(--fastex-gray-200);
    border-bottom: 1px solid var(--fastex-gray-200);
    padding: 0.85rem 0;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: var(--fastex-red-light);
    color: var(--fastex-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Filter Sidebar */
.filter-card {
    background: white;
    border: 1px solid var(--fastex-gray-200);
    border-radius: 12px;
    padding: 1.4rem;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fastex-dark);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-checkbox-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 6px;
}

.filter-checkbox-label {
    font-size: 0.88rem;
    color: #4B5563;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

.filter-checkbox-label:hover {
    color: var(--fastex-red);
}

.filter-badge-count {
    font-size: 0.72rem;
    background: var(--fastex-gray-200);
    padding: 2px 7px;
    border-radius: 10px;
    color: #6B7280;
}

/* Wholesale Callout Banner - Compact & Clean */
.wholesale-banner {
    background: linear-gradient(135deg, #1A1D24 0%, #29303D 100%);
    border-radius: 12px;
    color: white;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.wholesale-banner h2 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.wholesale-banner p {
    font-size: 0.82rem;
}

.wholesale-banner .btn {
    padding: 0.5rem 1.15rem !important;
    font-size: 0.82rem !important;
    border-radius: 6px;
}

.wholesale-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187, 0, 39, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer - Compacted */
.footer-main {
    background-color: var(--fastex-dark);
    color: #94A3B8;
    font-size: 0.82rem;
    padding-top: 2.25rem;
    padding-bottom: 1.25rem;
    margin-top: 2.5rem;
}

.footer-main h5 {
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 6px;
}

.footer-main h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--fastex-red);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--fastex-transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    margin-right: 8px;
    transition: var(--fastex-transition);
}

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

.compliance-notice-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    font-size: 0.78rem;
    line-height: 1.6;
    margin-top: 2rem;
}

/* Universal Floating Toast Container (Top-Right) */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    z-index: 1099 !important;
}

.custom-toast {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
    min-width: 320px !important;
    max-width: 400px !important;
    transition: all 0.25s ease !important;
}

.custom-toast.toast-success { border-left: 4px solid #10b981 !important; }
.custom-toast.toast-danger  { border-left: 4px solid #ef4444 !important; }
.custom-toast.toast-warning { border-left: 4px solid #f59e0b !important; }
.custom-toast.toast-info    { border-left: 4px solid #3b82f6 !important; }

.toast-icon-wrapper {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-wrapper.icon-success { background: #ecfdf5; color: #059669; }
.toast-icon-wrapper.icon-danger  { background: #fef2f2; color: #dc2626; }
.toast-icon-wrapper.icon-warning { background: #fffbeb; color: #d97706; }
.toast-icon-wrapper.icon-info    { background: #eff6ff; color: #2563eb; }

/* 21+ Age Verification Gate Modal - Precision Layout */
.age-gate-dialog {
    max-width: 420px !important;
    width: 92% !important;
    margin: 1.75rem auto !important;
}

.age-gate-modal-content {
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.age-gate-header {
    background: #111827 !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 1.6rem 1.5rem 1.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.age-gate-icon-badge {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.65rem !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
}

.age-gate-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 0.25rem !important;
    letter-spacing: -0.2px !important;
}

.age-gate-subtitle {
    font-size: 0.78rem !important;
    color: #9ca3af !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}

.age-gate-body {
    padding: 1.5rem 1.5rem 1.6rem !important;
    text-align: center !important;
    background: #ffffff !important;
}

.age-gate-desc {
    font-size: 0.84rem !important;
    color: #6b7280 !important;
    line-height: 1.45 !important;
    margin-bottom: 0.85rem !important;
}

.age-gate-question {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1.25rem !important;
}

/* Compact, Non-Stretched Button Container */
.age-gate-btn-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
}

.btn-age-confirm {
    background: #dc2626 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 8px !important;
    max-width: 275px !important;
    width: 100% !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25) !important;
}

.btn-age-confirm:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}

.btn-age-decline {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: 8px !important;
    max-width: 275px !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.btn-age-decline:hover {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--fastex-gray-300);
}

.timeline-step {
    position: relative;
    margin-bottom: 1.8rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--fastex-gray-300);
}

.timeline-step.completed .timeline-dot {
    border-color: var(--fastex-green);
    background: var(--fastex-green);
}

.timeline-step.active .timeline-dot {
    border-color: var(--fastex-red);
    background: white;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .category-navbar .nav {
        flex-wrap: nowrap;
        overflow-x: hidden;
        white-space: nowrap;
        justify-content: flex-start !important;
    }
    .category-dropdown-menu {
        min-width: 280px;
        max-width: calc(100vw - 24px) !important;
    }
}

/* ==========================================================================
   Professional Compact B2B Wholesale Checkout Styling
   ========================================================================== */
.checkout-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}
.checkout-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.checkout-header-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.checkout-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.checkout-step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--fastex-red, #bb0027);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-step-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.checkout-container .form-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.22rem;
    display: block;
}

.checkout-container .form-control,
.checkout-container .form-select {
    font-size: 0.815rem;
    height: 35px;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-container .form-control:focus,
.checkout-container .form-select:focus {
    border-color: var(--fastex-red, #bb0027);
    box-shadow: 0 0 0 2.5px rgba(187, 0, 39, 0.12);
    outline: none;
}

.checkout-container .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.78rem;
}

.checkout-container .input-group-text {
    height: 35px;
    padding: 0.35rem 0.65rem;
    font-size: 0.815rem;
    border-color: #cbd5e1;
}

.checkout-container .form-check-input {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.2rem;
}

.checkout-container .form-check-label {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.checkout-summary-card {
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 14px;
    padding: 1.85rem 2.25rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.checkout-summary-card.sticky-top {
    z-index: 10 !important;
}

.checkout-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.checkout-summary-row .val {
    font-weight: 600;
    color: #111827;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1.15rem;
    margin-top: 1.15rem;
    border-top: 2px solid #e5e7eb;
}

.checkout-summary-total .total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.checkout-summary-total .total-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--fastex-red, #bb0027);
}

.btn-checkout-submit {
    background-color: var(--fastex-red, #bb0027);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    border: none;
    width: 100%;
    margin-top: 1.15rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(187, 0, 39, 0.25);
}

.btn-checkout-submit:hover {
    background-color: #990020;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(187, 0, 39, 0.35);
}

.payment-method-box {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-method-box:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.payment-method-box.selected {
    border-color: var(--fastex-red, #bb0027);
    background: rgba(187, 0, 39, 0.02);
    box-shadow: 0 0 0 2px rgba(187, 0, 39, 0.12);
}



