/*
 * The <style> block that Client_Master.master carried inline, lifted out verbatim so the
 * header, nav and cart dropdown look identical to the WebForms site.
 */

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    position: sticky;
    top: 0;
    z-index: 1050;
}

/* ── TOP BAR ── */
.header-top {
    padding: 5px 0;
    background: #fff;
    border-bottom: 1px solid #e8edf0;
}
.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-top a {
    color: #7e8f9a;
    padding: 4px 8px;
    font-size: 12px;
}
.header-top a:hover { color: #3bb77e; }

.header-left.header-dropdowns {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
    gap: 6px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.welcome-msg {
    font-size: 12px;
    color: #253d4e;
    font-weight: 600;
    margin: 0;
}

/* ── MIDDLE ROW ── */
.header-middle {
    padding: 10px 0 0;
    background: #fff;
}
.hm-inner {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding-bottom: 10px;
}
.logo {
    flex-shrink: 0;
    display: block;
    position: static;
}
.logo img {
    width: 130px;
    height: auto;
    display: block;
    margin: 0;
}
.hm-search { flex: 1 1 auto; }
.hm-search .header-search-wrapper {
    display: flex !important;
    align-items: stretch;
    border: 2px solid #3bb77e;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}
.hm-search .header-search-wrapper .form-control {
    flex: 1 1 auto;
    height: 42px;
    border: 0;
    border-radius: 50px 0 0 50px;
    padding: 0 18px;
    font-size: 14px;
    color: #555;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}
.hm-search .header-search-wrapper .form-control::placeholder { color: #aaa; }
.hm-search .header-search-wrapper .btn {
    flex-shrink: 0;
    width: 52px;
    height: 42px;
    background: #3bb77e !important;
    color: #fff;
    border: 0;
    border-radius: 0 50px 50px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.hm-search .header-search-wrapper .btn:hover { background: #2a9d6b !important; }

.hm-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── CART ── */
.cart-dropdown .dropdown-toggle {
    display: block;
    position: relative;
    padding-right: 26px;
    text-decoration: none;
}
.cart-dropdown .dropdown-toggle::before {
    display: inline-block;
    content: '\e87f';
    font-family: 'porto';
    font-size: 3rem;
    line-height: 1;
    color: #3bb77e;
}
.cart-dropdown .dropdown-toggle::after {
    display: inline-block;
    content: '\e81c';
    font-family: 'porto';
    font-size: 1.3rem;
    position: absolute;
    right: 0; top: 10px;
    color: #3bb77e;
    border: 0;
    width: auto; height: auto;
    line-height: 1;
}
.cart-dropdown .dropdown-toggle .cart-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    position: absolute;
    right: 14px; top: -2px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #f74b81;
    line-height: 1;
}
.cart-dropdown .dropdown-menu {
    display: block;
    position: absolute;
    right: 0; left: auto;
    top: 100%;
    width: 300px;
    padding-top: 12px;
    z-index: 100;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: hidden;
    opacity: 0;
    transition: all .25s;
}
.cart-dropdown:hover .dropdown-menu { visibility: visible; opacity: 1; }
.dropdownmenu-wrapper {
    background: #fff;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1.5px solid #e8edf0;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    position: relative;
}
.dropdownmenu-wrapper::before {
    content: '';
    position: absolute;
    right: 28px; top: -12px;
    border-width: 0 13px 12px 13px;
    border-style: solid;
    border-color: transparent transparent #e8edf0 transparent;
}
.dropdownmenu-wrapper::after {
    content: '';
    position: absolute;
    right: 29px; top: -10px;
    border-width: 0 12px 10px 12px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}
.cart-dropdown .product {
    display: flex;
    padding: 12px 8px;
    border-bottom: 1px solid #e8edf0;
    align-items: center;
}
.cart-dropdown .product-image-container {
    position: relative;
    max-width: 72px;
    border: 1px solid #e8edf0;
    margin-left: auto;
}
.cart-dropdown .product-title {
    font-weight: 600;
    font-size: 1.3rem;
    color: #696969;
    margin-bottom: 2px;
}
.cart-dropdown .product-details { font-size: 1.2rem; color: #696969; }
.cart-dropdown .btn-remove {
    position: absolute;
    right: -10px; top: -10px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #474747;
}
.cart-dropdown .btn-remove:hover { color: #3bb77e; }
.dropdown-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #474747;
}
.dropdown-cart-action {
    display: flex;
    gap: 8px;
    padding: 4px 8px 10px;
}
.dropdown-cart-action .btn {
    flex: 1;
    text-align: center;
    background: #3bb77e;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    padding: 10px;
    min-width: 0;
    border: 0;
}
.dropdown-cart-action .btn:hover { background: #2a9d6b; color: #fff; }

/* ── MOBILE SEARCH ROW ── */
.mobile-search-row { display: none; padding: 0 0 10px; }
.mobile-search-row .header-search-wrapper {
    display: flex !important;
    align-items: stretch;
    border: 2px solid #3bb77e;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}
.mobile-search-row .form-control {
    flex: 1;
    height: 40px;
    border: 0;
    padding: 0 16px;
    font-size: 13px;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    border-radius: 50px 0 0 50px;
}
.mobile-search-row .btn {
    width: 48px; height: 40px;
    background: #3bb77e !important;
    color: #fff;
    border: 0;
    border-radius: 0 50px 50px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0; margin: 0;
}

/* ── MOBILE TOGGLER ── */
.mobile-menu-toggler {
    border: 0;
    background: #eaf7f0;
    color: #253d4e;
    padding: 8px 10px;
    font-size: 2rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
}

/* ── HEADER BOTTOM NAV ── */
.header-bottom {
    background: #fff;
    border-bottom: 1px solid #e8edf0;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-bottom .container { display: flex; align-items: center; }

/* ── ACCOUNT DROPDOWN ── */
.header-dropdown { position: relative; text-transform: uppercase; }
.header-dropdown > a {
    color: #7e8f9a;
    font-size: 12px;
    font-weight: 600;
    padding-right: 14px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.header-menu {
    position: absolute;
    right: 0; left: auto;
    top: 100%;
    z-index: 20;
    background: #fff;
    border: 1.5px solid #e8edf0;
    border-radius: 10px;
    min-width: 180px;
    padding: 4px 0;
    visibility: hidden;
    opacity: 0;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.header-dropdown:hover > .header-menu { visibility: visible; opacity: 1; }
.header-menu ul { list-style: none; margin: 0; padding: 0; }
.header-menu ul a,
.header-menu ul li a {
    display: block;
    padding: 8px 16px;
    color: #253d4e !important;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.header-menu ul a:hover { color: #3bb77e !important; background: #eaf7f0; }

/* ── ACCOUNT TRIGGER ICON ── */
.account-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #7e8f9a;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .2s;
}
.account-trigger:hover { background: #eaf7f0; color: #3bb77e; }
.account-trigger i { font-size: 16px; }

/* ── RESPONSIVE ── */
@media (min-width: 768px) {
    .hm-search { display: block; }
    .mobile-search-row { display: none !important; }
    .mobile-menu-toggler { display: none; }
}
@media (max-width: 767px) {
    .hm-search { display: none; }
    .mobile-search-row { display: block; }
    .mobile-menu-toggler { display: flex; }
    .header-bottom { display: none; }
    .logo img { width: 90px; }
    .hm-inner { gap: 8px; padding-bottom: 8px; }
    .header-top .header-left { display: none; }
}
@media (max-width: 479px) {
    .logo img { width: 75px; }
}
