﻿/* ===============================
   Global helpers
=============================== */
.no-padding-no-overflow {
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0px;
}

.basket-margin {
    margin-right: 20px;
}

/* Scope just to this header */
.efl-header .no-padding-no-overflow {
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

/* ===============================
   Header – Upper bar
=============================== */
.efl-header .header-upper {
    background: #00528e;
    color: #fff;
}

    .efl-header .header-upper h6 {
        margin: 0;
        font-weight: 700;
    }

/* ===============================
   Header – Lower bar
=============================== */
.efl-header .header-lower {
    background: #fff;
}

/* Baseline alignment for the whole row */
.header-lower .row {
    align-items: center;
}

/* -------------------------------
   Logo
-------------------------------- */
.efl-header .header-logo {
    padding-left: 20px;
}
    /* keep off the edge */

    .efl-header .header-logo img {
        height: auto;
        width: auto;
        max-height: 70px; /* desktop/tablet size */
    }

@media (max-width: 575.98px) {
    .efl-header .header-logo img {
        max-height: 100px; /* was 50px */
    }
}

/* -------------------------------
   Search – true centered
-------------------------------- */
.efl-header .header-lower .container-fluid {
    position: relative;
}

.efl-header .search-container {
    width: 100%;
}

@media (min-width: 992px) {
    .efl-header .search-container {
        position: absolute;
        left: 54%;
        top: 50%;
        transform: translate(-50%, -52%); /* adjust vertical nudge */
        max-width: 720px;
        width: clamp(520px, 50vw, 720px); /* responsive */
        margin: 0;
        z-index: 2;
    }

        .efl-header .search-container input[type="text"],
        .efl-header .search-container .form-control {
            height: 48px;
            padding: 0 14px;
        }
}

/* -------------------------------
   Login / Logout pill
-------------------------------- */
.efl-header .signup-box .image-container {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    background: #00528e;
    color: #fff;
    min-height: 48px; /* align with search */
}

    .efl-header .signup-box .image-container img {
        height: 22px;
        width: auto;
    }

.efl-header .overlay-text {
    font-weight: 700;
    white-space: nowrap;
}

/* tidy spacing override */
.efl-header .basket-margin {
    margin-right: 0;
}

/* ===============================
   Top Menu (blue bar)
=============================== */
.header-menu {
    /* margin-top: 4px;  */ /* sit closer to header */
    background: #00528e;
}

    /* Generic nav container spacing */
    .header-menu nav,
    .header-menu .navbar,
    .header-menu .menu,
    .header-menu .top-menu {
        /* padding: 10px 16px; */ /* make the bar taller */
    }

        /* Links */
        .header-menu a,
        .header-menu .nav-link,
        .header-menu .menu > li > a,
        .header-menu .top-menu > li > a {
            color: #fff;
            font-size: 15px;
            font-weight: 500;
            line-height: 1;
            /* padding: 8px 12px;*/
            border-radius: 6px;
            display: inline-block;
        }

            /* Hover + active */
            .header-menu a:hover,
            .header-menu .nav-link:hover,
            .header-menu .menu > li > a:hover,
            .header-menu .top-menu > li > a:hover,
            .header-menu .active > a,
            .header-menu .nav-link.active {
                background: rgba(255,255,255,.15);
                color: #fff;
            }

    /* Dropdowns */
    .header-menu .dropdown-menu {
        border-radius: 8px;
        overflow: hidden;
    }

    .header-menu .dropdown-item {
        padding: 8px 12px;
        font-size: 14px;
    }

/* ===============================
   Footer
=============================== */
.efl-footer .footer-title-color {
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.efl-footer .footer a {
    display: block;
    padding: .25rem 0;
    color: #ffffff;
    text-decoration: none;
}

    .efl-footer .footer a:hover {
        text-decoration: underline;
    }

.efl-footer .newsletter-note {
    color: #ffffff;
}

.efl-footer .icon-row img {
    /*height: 26px;*/ /* adjust to 30–32px if needed */
    /*width: auto;*/
    margin-right: .75rem;
}

.efl-footer .footer-color {
    background: #00528e;
}

.efl-footer .footer-space {
    height: .5rem;
}

.efl-footer .footer-space-border {
    border-top: 1px solid rgba(0,0,0,.08);
}
.efl-footer .icon-row img { /* the element was img */
    width: 50px;
    height: 50px;
}
.efl-footer {
  /*  padding-left: 12px;
    padding-right: 12px;*/
    margin-top: 25px;
}

/* ===============================
   Chat Widget
=============================== */
.chat-widget {
    width: 400px;
    height: 600px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: sans-serif;
    margin: 20px; /* ignored when floating */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message-display-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background: #fff;
}

    .input-area input {
        flex-grow: 1;
        border: 1px solid #ddd;
        border-radius: 20px;
        padding: 8px 15px;
        margin-right: 10px;
    }

    .input-area button {
        border-radius: 20px;
        border: none;
        background: #007bff;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
    }

.message {
    display: flex;
    margin-bottom: 10px;
    max-width: 85%;
    width: fit-content;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message {
    align-self: flex-end;
}

    .user-message .message-bubble {
        background: #007bff;
        color: #fff;
    }

.bot-message {
    align-self: flex-start;
}

    .bot-message .message-bubble {
        background: #e9e9eb;
        color: #000;
    }

/* Float bottom-right */
.sg-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483647;
}
/* ===============================
   Section titles + Featured Products
=============================== */
.section-title {
    margin-top:25px;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    text-align: center;
    letter-spacing: .2px;
    margin-bottom: 16px;
}

    .section-title::after {
        content: "";
        display: block;
        width: 72px;
        height: 3px;
        margin: 10px auto 0;
        background: #00528e; /* brand blue */
        border-radius: 2px;
    }

.featured-grid {
    margin-top: 8px;
}

.fp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border-radius: 14px;
    padding: 16px 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .fp-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }

.fp-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    transition: transform .25s ease;
}

.fp-card:hover .fp-img {
    transform: scale(1.05);
}

.fp-name {
    font-size: .98rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    min-height: 2.6em; /* keep rows even */
}

@media (max-width: 575.98px) {
    .fp-img {
        height: 180px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .fp-img {
        height: 160px;
    }
}
/* === Tighten spacing between "Best Sellers" and the tiles === */
.section-title--side {
    margin-top: 15px !important;
    margin-bottom: 6px !important; /* was larger via default h2 */
    line-height: 1.2;
}

    .section-title--side::after {
        margin-top: 6px; /* keep underline close to title */
    }

    /* Kill the padding/margin that py-3 adds on the grid row below the title */
    .section-title--side + .row {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

        /* Safety: ensure cards don't introduce extra top space */
        .section-title--side + .row .product-card {
            margin-top: 0 !important;
        }
/* ===============================
   Top Menu polish
=============================== */

/* overall bar */
.header-menu {
    background: #00528e;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

    /* make the bar a little taller and items evenly spaced */
    .header-menu nav,
    .header-menu .navbar,
    .header-menu .menu,
    .header-menu .top-menu {
        /*min-height: 48px;*/ /* taller bar */
    }

        /* items */
        .header-menu .top-menu > li > a,
        .header-menu .menu > li > a,
        .header-menu .nav-link {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            padding: 10px 14px; /* comfy click target */
            color: #fff;
            font-weight: 600;
            letter-spacing: .2px;
            border-radius: 6px; /* subtle rounding */
            position: relative;
            text-decoration: none;
        }

            /* hover + active: subtle underline, not a big pill */
            .header-menu .top-menu > li > a::after,
            .header-menu .menu > li > a::after,
            .header-menu .nav-link::after {
                content: "";
                position: absolute;
                left: 12px;
                right: 12px;
                bottom: 6px;
                height: 3px;
                background: transparent;
                border-radius: 2px;
                transition: background .2s ease, transform .2s ease;
                transform: scaleX(0);
                transform-origin: left center;
            }

            .header-menu .top-menu > li > a:hover::after,
            .header-menu .menu > li > a:hover::after,
            .header-menu .nav-link:hover::after,
            .header-menu .active > a::after,
            .header-menu .nav-link.active::after {
                background: rgba(255,255,255,.9);
                transform: scaleX(1);
            }

            /* keep text color solid on hover/active */
            .header-menu .top-menu > li > a:hover,
            .header-menu .menu > li > a:hover,
            .header-menu .nav-link:hover,
            .header-menu .active > a,
            .header-menu .nav-link.active {
                color: #fff;
                background: transparent; /* no pill background */
            }

    /* dropdowns: cleaner corners + shadow */
    .header-menu .dropdown-menu {
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        border: 0;
        overflow: hidden;
    }

    .header-menu .dropdown-item {
        padding: 10px 14px;
        font-size: 14px;
    }

/* mobile: slightly tighter items */
@media (max-width: 991.98px) {
    .header-menu .top-menu > li > a,
    .header-menu .menu > li > a,
    .header-menu .nav-link {
        padding: 10px 12px;
    }
}
/* ===============================
   Footer polish
=============================== */

/* social icons bigger + equal size */
.efl-footer .icon-row img {
    /*height: 32px;*/ /* was 26px */
    /*width: auto;*/
    margin-right: 1rem;
    transition: transform .2s ease;
}

    .efl-footer .icon-row img:hover {
        transform: scale(1.15);
    }

/* newsletter input + button alignment */
.efl-footer form .input-group {
    max-width: 360px;
}

.efl-footer form .form-control {
    border-radius: 6px 0 0 6px;
    padding: 10px 14px;
    font-size: 14px;
}

.efl-footer form .btn {
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    padding: 10px 18px;
    background: #00528e;
    border: none;
}

    .efl-footer form .btn:hover {
        background: #004272;
    }

/* footer titles bolder */
.efl-footer .footer-title-color {
    font-size: 14px;
    letter-spacing: .5px;
}

/* links more compact */
.efl-footer .footer a {
    font-size: 13px;
    opacity: 0.9;
    transition: opacity .2s ease;
}

    .efl-footer .footer a:hover {
        opacity: 1;
    }

.row.promo-block,
.row.info-cards {
    display: none !important;
}
/* container */

/* ===============================
   Partner logos (responsive, Edge-friendly)
=============================== */
/* Partner logos — compact, aligned, Edge-friendly */
/* ===============================
   Partner logos – fixed & responsive
=============================== */
.partner-logos.container img {
  width: 80px; /* Example: Set a new width */
  height: auto; /* Maintain aspect ratio */
}

.partner-logos img:hover {
    transform: scale(1.06);
}

/* Phones: keep centered and a touch bigger if you want */
@media (max-width:575.98px) {
    .partner-logos {
        justify-content: center;
    }

    .partner-logos img {
        height: clamp(20px, 5vw, 28px);
    }
}


/* Phones */
@media (max-width: 575.98px) {
    .partner-logos {
        justify-content: center;
        gap: 10px;
        padding-inline: 12px;
    }

    .partner-logos img {
        height: clamp(14px,6vw,24px);
    }
}

/* No unexpected gap under the strip */
.partner-logos + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Header tools row (right side) */
.header-tools {
    display: flex;
    align-items: center;
    gap: 10px; /* ≥10px spacing between items */
    padding: 0 10px; /* 10px from page edge */
}

/* Equal-size square icon buttons (menu + cart) */
.icon-btn {
    height: 38px;
    width: 38px;
    min-width: 38px;
    border-radius: 10px; /* slight rounding for modern feel */
    background: white; /* or #00528e to match brand */
    color: #0a65a8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

    .icon-btn i {
        font-size: 20px; /* same for grid + cart */
        line-height: 1;
    }

    .icon-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.18);
        background: #00528e;
    }

    /* Cart stays visually identical to icon-btn */
    .icon-btn.cart-btn i {
        font-size: 20px; /* keep equal to grid icon */
    }

    /* Optional: if your Cart component injects a number, place it nicely */
    .icon-btn.cart-btn .cart-qty,
    .icon-btn.cart-btn .wishlist-qty {
        position: absolute;
        transform: translate(12px, -12px);
        background: #ff4757;
        color: #fff;
        font-weight: 700;
        border-radius: 999px;
        padding: 2px 6px;
        font-size: 12px;
        line-height: 1;
    }

/* Compact user info */
.user-mini {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #f0f6fb;
    max-width: 180px;
}

    .user-mini .user-name {
        font-weight: 700;
        font-size: 13px;
    }

    .user-mini .user-company {
        font-size: 12px;
        opacity: .85;
    }

/* Logout button (pill), aligned with icons */
.logout-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #00528e;
    border: 2px solid #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .logout-btn:hover {
        background: #e7f2fb;
        color: #004272;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,.12);
    }

/* Responsive polish */
@media (max-width: 575.98px) {
    .user-mini {
        display: none;
    }
    /* keep header clean on phones */
    .header-tools {
        gap: 8px;
        padding: 0 8px;
    }

    .icon-btn, .logout-btn {
        height: 36px;
    }

    .icon-btn {
        width: 36px;
        min-width: 36px;
    }

        .icon-btn i {
            font-size: 18px;
        }
}
