/**
 * Volt Electronics BD - Premium Electric Blue Theme & Mobile Navigation
 */
:root {
    --primary: #0056b3;
    --volt-blue: #0056b3;
    --volt-blue-dark: #003d80;
    --volt-blue-light: #0d6efd;
    --volt-cyan: #00c0fa;
    --volt-yellow: #f59e0b;
    --volt-bg-subtle: #f0f7ff;
}

/* Primary color overrides */
.bg-primary, 
.btn-primary, 
.badge-primary, 
.u-header-topbar,
.bg-primary-dark {
    background-color: var(--volt-blue) !important;
    border-color: var(--volt-blue) !important;
}

.text-primary,
.text-blue {
    color: var(--volt-blue) !important;
}

.border-primary {
    border-color: var(--volt-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--volt-blue-dark) !important;
    border-color: var(--volt-blue-dark) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--volt-blue) !important;
    border-color: var(--volt-blue) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--volt-blue) !important;
    border-color: var(--volt-blue) !important;
    color: #fff !important;
}

/* Product Card Styling */
.product-item {
    border-radius: 8px;
    transition: all 0.25s ease-in-out;
    background: #ffffff;
    border: 1px solid #edf2f7;
}

.product-item:hover {
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.12);
    border-color: #bee3f8;
}

.product-item__footer .btn {
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

/* ==========================================================
   Mobile Bottom Navigation Bar (App Style)
   ========================================================== */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 72px !important;
    }
    
    .u-go-to {
        bottom: 80px !important;
    }
}

.volt-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 86, 179, 0.12);
    z-index: 99999;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.volt-nav-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
}

.volt-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #556270 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 58px;
}

.volt-nav-icon {
    font-size: 21px;
    line-height: 1;
    margin-bottom: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.volt-nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1px;
    line-height: 1.1;
}

/* Active & Hover States */
.volt-nav-item:hover,
.volt-nav-item.active {
    color: var(--volt-blue) !important;
}

.volt-nav-item.active .volt-nav-icon {
    transform: translateY(-2px);
    color: var(--volt-blue);
}

.volt-nav-item.active .volt-nav-label {
    font-weight: 700;
    color: var(--volt-blue);
}

/* Cart Float Accent */
.volt-nav-item--cart.active .volt-nav-icon,
.volt-nav-item--cart:hover .volt-nav-icon {
    color: var(--volt-blue);
}

.volt-cart-icon-wrapper {
    position: relative;
}

.volt-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e53e3e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(229, 62, 62, 0.4);
    display: none;
}

/* Always show Add to Cart / Buy Now on product cards (theme hid them until hover) */
.product-item__footer { display: block !important; opacity: 1 !important; visibility: visible !important; }
.product-item:hover .product-item__inner, .product-item__inner { box-shadow: none; }
.product-item .product-item__footer .btn { white-space: nowrap; }
.product-item .product-item__footer .border-top { display: flex; flex-direction: column; gap: 8px !important; }
.product-item .product-item__footer .btn-outline-primary { margin-right: 0 !important; margin-bottom: 0 !important; width: 100%; }
.product-item .product-item__footer .btn-primary { width: 100%; }
/* Brand blue accents in place of old teal */
.slick-dots li.slick-active span, .u-slick__pagination li.slick-current span { background-color: var(--volt-blue) !important; }

/* ================= Volt Header ================= */
.volt-header { background: #fff; box-shadow: 0 2px 12px rgba(0, 61, 128, .08); border-bottom: 0 !important; }
.volt-header .u-header-topbar { background: var(--volt-blue-dark) !important; border: 0 !important; }
.volt-header .u-header-topbar__nav-link,
.volt-header .u-header-topbar__nav-link i,
.volt-header .u-header-topbar .text-gray-50 { color: rgba(255, 255, 255, .85) !important; font-size: 13px; }
.volt-header .u-header-topbar__nav-link:hover,
.volt-header .u-header-topbar__nav-link:hover i { color: var(--volt-yellow) !important; }
.volt-header .u-header-topbar__nav-item-border::before { border-color: rgba(255, 255, 255, .25) !important; }
.volt-header-main { background: #fff; }
.volt-header .u-hamburger__inner, .volt-header .u-hamburger__inner::before, .volt-header .u-hamburger__inner::after { background-color: var(--volt-blue-dark); }

/* search */
.volt-header #searchproduct-item { border-color: var(--volt-blue) !important; }
.volt-header .custom-search-categories-select .btn { color: #555 !important; background: #fff !important; border-color: var(--volt-blue) !important; }
.volt-header #searchProduct1 { background: var(--volt-blue) !important; border-color: var(--volt-blue) !important; color: #fff; }
.volt-header #searchProduct1:hover { background: var(--volt-blue-dark) !important; }

/* desktop nav */
.volt-header .u-header__nav-link { color: #1e2022 !important; font-weight: 600; position: relative; }
.volt-header .u-header__nav-link:hover { color: var(--volt-blue) !important; }
.volt-header .u-header__nav-link.is-active { color: var(--volt-blue) !important; }
.volt-header .u-header__nav-link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 22px; height: 3px;
    border-radius: 3px; background: var(--volt-yellow); transform: translateX(-50%);
}

/* cart + mobile icons */
.volt-header .ec-shopping-bag, .volt-header .ec-search,
.volt-header #searchClassicInvoker, .volt-header .text-white.ec { color: var(--volt-blue) !important; }
.volt-header .cartTotal { color: var(--volt-blue-dark) !important; }
.volt-header .cartCount { background: var(--volt-yellow) !important; color: #1e2022 !important; }

/* ================= Volt Footer ================= */
.volt-footer { background: #0b1d3a; color: rgba(255, 255, 255, .72); padding: 56px 0 32px; font-size: 14px; }
.volt-footer a { color: rgba(255, 255, 255, .72); transition: color .2s; }
.volt-footer a:hover { color: var(--volt-yellow); text-decoration: none; }
.volt-footer__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 18px; }
.volt-footer__logo img { max-height: 44px; max-width: 190px; object-fit: contain; display: block; }
.volt-footer__about { line-height: 1.7; margin-bottom: 20px; max-width: 340px; }
.volt-footer__title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.volt-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--volt-yellow); }
.volt-footer__links { list-style: none; padding: 0; margin: 0; }
.volt-footer__links li { margin-bottom: 10px; }
.volt-footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.volt-footer__social a {
    width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px;
}
.volt-footer__social a:hover { background: var(--volt-blue); color: #fff; transform: translateY(-2px); }
.volt-footer__contact { list-style: none; padding: 0; margin: 0; }
.volt-footer__contact li { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.volt-footer__contact i { font-size: 22px; color: var(--volt-yellow); width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.volt-footer__contact small { display: block; color: rgba(255, 255, 255, .5); font-size: 12px; }
.volt-footer__contact a, .volt-footer__contact span { color: #fff; word-break: break-word; }
.volt-footer__phone { font-size: 18px; font-weight: 700; }
.volt-footer__bottom { background: #071429; color: rgba(255, 255, 255, .6); padding: 14px 0; font-size: 13px; }
.volt-footer__bottom a { color: #fff; }
.volt-footer__pay { max-height: 28px; background: #fff; border-radius: 6px; padding: 3px 6px; }
@media (max-width: 991.98px) {
    .volt-footer { padding: 40px 0 16px; }
    /* keep content clear of the mobile bottom nav */
    .volt-footer__bottom { padding-bottom: 84px; }
}

/* Search button icon stays white on blue */
.volt-header #searchProduct1 .ec-search { color: #fff !important; }
/* Prevent sideways page overflow on phones (pushed bottom nav items off-screen) */
html, body { overflow-x: hidden; max-width: 100%; }
.volt-nav-item { flex: 1 1 0; min-width: 0; padding: 4px 2px; }
