/* =============================================================
   DCS Theme — style.css
   Loads after themes/default/css/style.css (auto-appended by head.php)
   ============================================================= */

/* ------------------------------------------------------------------
   Panel border — the "giant centralised panel" on wide screens
   ------------------------------------------------------------------ */

@media (min-width: 1170px) {
    html {
        background-color: #d8dde3;
    }

    body {
        max-width: 1199px;
        margin: 10px auto;
        background-color: #fff;
        border: 1px solid #16457d;
    }
}

/* Under 1170px: full-width, no border */
body {
    background-color: #fff;
    min-height: 500px;
}

/* Stretch Bootstrap's container to full width below 1200px */
@media (max-width: 1199px) {
    .container {
        width: 100%;
        max-width: 100%;
    }

    body {
        margin: 0;
        border: none;
    }
}

/* Compensate for the fixed mobile navbar height on xs/sm */
@media (max-width: 991px) {
    body {
        padding-top: 50px;
    }
}

/* =============================================================
   Desktop header
   ============================================================= */

.dcs-header {
    background: #fff;
    padding: 12px 0 0;
    margin-top: 5px;
}

/* Stretch both columns to equal height so bottom elements align */
.dcs-header .container > .row {
    display: flex;
    align-items: stretch;
}

/* Left column: flex column so search can be pushed to bottom */
#header-logo {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

#header-logo a {
    display: block;
    max-width: 325px;
}

/* Right column: flex column, megamenu pinned to bottom */
#header-detail {
    display: flex;
    flex-direction: column;
}

/* Search: shared styles — appears in left col on lg, right col on md */
.dcs-header__search {
    padding: 6px 0;
    position: relative;
}

.dcs-header__search .searchform {
    max-width: 400px;
    width: 100%;
}

/* lg search sits at bottom of left column */
#header-logo .dcs-header__search {
    margin-top: auto;
    padding-bottom: 8px;
}

/* Megamenu: pinned to bottom of right column */
.dcs-header__bottom {
    margin-top: auto;
}

.dcs-header__search .form-control {
    border-color: #ccc;
    border-radius: 0;
    height: 34px;
}

.dcs-header__search .btn-default {
    background: #fff;
    border-color: #ccc;
    color: #023f63;
    border-radius: 0;
}

.dcs-header__search .btn-default:hover {
    background: #023f63;
    border-color: #023f63;
}

/* Nav links row */
.header-links {
    list-style: none;
    padding: 0;
    margin: 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
}

.header-links li a {
    display: inline-block;
    padding: 4px 10px;
    color: #16457d;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.header-links li a:hover {
    color: #023f63;
    text-decoration: underline;
}

.header-links span.badge.basket-head-total {
    background: #ccc;
    color:#16457d;
    font-size: 10px;
    padding: 2px 5px;
    margin-left: 0;
}

.header-links li {
    padding: 0;
}

#SearchResults {
    top: 39px;
    border-radius: 0;
    padding: 10px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header-links li {
        margin-left: 0;
    }
    .dcs-header__search {
        padding: 15px 0;
    }
    .dcs-header__bottom {
        margin-top: 0;
    }
    .dcs-header__search .searchform {
        float: right;
        margin-right: 7px;
    }
    #SearchResultsMobile {
        left: auto;
        right: 7px;
        top: 48px;
        width: 400px;
        margin: 0;
        padding: 10px;
    }
}

@media (min-width: 992px) and (min-width: 1200px) {
    .container {
        width: 100%;
    }
}
.main {
    padding: 0;
}
.breadcrumb {
    margin-top: 10px;
}
.cat-description img {
    max-width: 100%;
}
/* =============================================================
   Basket widget (lg only)
   ============================================================= */

.dcs-basket {
    text-align: right;
}

.dcs-basket a {
    display: inline-block;
    text-decoration: none;
    padding: 0;
    margin-right: 60px;
}

.dcs-basket__graphic {
    position: relative;
    display: inline-block;
}

.dcs-basket__graphic img {
    display: block;
    max-width: none;
    width: auto;
    height: auto;
}

.dcs-basket__count {
    position: absolute;
    top: 25%;
    left: 52%;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 700;
    color: #16457d;
    line-height: 1;
    width: 50px;
}


/* Megamenu button strip */
.dcs-header__bottom .navbar {
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
    min-height: 0;
    border: none;
    border-radius: 0;
}

.dcs-header__bottom .navbar-collapse {
    padding-left: 0;
    padding-right: 0;
}

.dcs-header__bottom .nav.nav-justified {
    display: flex !important;
    gap: 5px;
    padding: 0;
    background: transparent !important;
}

.yamm {
    margin-top: 0;
}

.dcs-header__bottom .nav.nav-justified > li {
    display: flex;
    flex: 1;
    float: none;
}

.dcs-header__bottom .nav.nav-justified > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    background: #16457d;
    color: #fff !important;
    border-radius: 4px;
    font-size: 11px !important;
    font-weight: 600;
    padding: 8px 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.3;
    padding: 8px 6px;
    border: none;
    text-decoration: none;
}

.dcs-header__bottom .nav.nav-justified > li > a:hover,
.dcs-header__bottom .nav.nav-justified > li > a:focus {
    background: #023f63;
    color: #fff !important;
    text-decoration: none;
}

/* Dropdown anchors to the navbar (position:relative by default in Bootstrap),
   not to individual li — so it spans the full button row width */
.dcs-header__bottom .nav.nav-justified > li {
    position: static;
}

.dcs-header__bottom .yamm-fw .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    top: 50px;
    margin-top: 0;
}

/* Level 2 dropdown content */
.dcs-header__bottom .dropdown-menu .nav-heading a,
.dcs-header__bottom .dropdown-menu .nav-heading {
    font-size: 14px !important;
    font-weight: 700;
    color: #16457d;
}

.dcs-header__bottom .dropdown-menu .level3 a,
.dcs-header__bottom .dropdown-menu ul li a {
    color: #16457d;
}

.dcs-header__bottom .dropdown-menu .level3 a:hover,
.dcs-header__bottom .dropdown-menu ul li a:hover {
    color: #023f63;
    text-decoration: underline;
}

/* The default megamenu wraps in .container (fixed-width) — neutralise it inside our column */
.dcs-header__bottom .container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* =============================================================
   Mobile header
   ============================================================= */

.dcs-mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: #000;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
}

.dcs-mobile-topbar__toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 6px 12px;
    cursor: pointer;
    line-height: 1;
}

.dcs-mobile-topbar__toggle:focus {
    outline: 2px solid rgba(255,255,255,0.5);
}

#dcs-mobile-nav {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1029;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.dcs-mobile-header__logo {
    padding: 15px 15px 10px;
    text-align: center;
}

.dcs-mobile-header__logo img {
    max-width: 260px;
    margin: 0 auto;
}

.dcs-mobile-header__icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.dcs-mobile-header__icons a {
    color: #16457d;
    font-size: 22px;
    text-decoration: none;
}

.dcs-mobile-header__icons a:hover {
    color: #023f63;
}

.dcs-mobile-basket {
    position: relative;
    display: inline-block;
}

.dcs-mobile-basket .basket-head-total {
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 9px;
    background: #16457d;
    color: #fff;
    padding: 2px 4px;
    min-width: 16px;
    text-align: center;
    border-radius: 8px;
}

.dcs-mobile-header__search {
    padding: 10px 15px;
    background: #f5f5f5;
}

.dcs-mobile-header__search .form-control {
    border-radius: 0;
    height: 40px;
    border-color: #ccc;
}

.dcs-mobile-header__search .btn-default {
    background: #16457d;
    color: #fff;
    border-color: #16457d;
    border-radius: 0;
    height: 40px;
}

.dcs-mobile-header__search .btn-default:hover {
    background: #023f63;
    border-color: #023f63;
}

.breadcrumb {
    background-color: #f0f8ff;
    border: 1px solid #16457d;
}
.category-box, .grouped-category-box, .product-box {
    border: 1px solid #16457d;
}

.panel-default>.panel-heading {
    color: #ffffff;
    background-color: #16457d;
    border-color: #16457d;
}

.panel-default>.panel-heading+.panel-collapse>.panel-body {
    border-top-color: #16457d;
}
.panel-default {
    border-color: #16457d;
}

.panel-heading a:hover {
    background-color: #00224b!important;
}
#leftsidebar .panel-title a::after {
    color: #ffffff;
}
.cat-caption h2 {
    text-align: center;
}
.btn-primary {
    background-color: #16457d;
    border-color: #16457d;
}
.row.dcs-product-row {
    margin-top: 15px;
}
.hidden-xs.hidden-sm.dcs-product-tabs {
    margin-bottom: 15px;
}
.tab-content.dcs-tab-content {
    padding: 15px;
    border: 1px solid #16457d;
}



/* =============================================================
   Footer
   ============================================================= */

#footer {
    background: #fff;
    border-top: 3px solid #16457d;
    padding: 24px 0 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #444;
}

.footer-copy,
.footer-tel,
.footer-email,
.footer-addr {
    margin: 0 0 4px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.footer-tel a,
.footer-email a {
    color: #16457d;
    text-decoration: none;
}

.footer-tel a:hover,
.footer-email a:hover {
    text-decoration: underline;
}

.footer-right {
    text-align: right;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

.footer-links li {
    display: flex;
    align-items: center;
}

.footer-links li a {
    color: #16457d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    font-size: 13px;
    white-space: nowrap;
    line-height: 1.4;
}

.footer-links li a:hover {
    text-decoration: underline;
    color: #023f63;
}

.footer-right .img-responsive {
    margin-left: auto;
}

/* Stack + left-align under 992px */
@media (max-width: 991px) {
    .footer-left,
    .footer-right {
        text-align: left;
        margin-bottom: 16px;
    }

    .footer-links {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links li a {
        padding: 3px 0;
    }
    .drilldown a {
        color: #16457d;
    }
    .drilldown .navback {
        background: #16457d;
    }
    .drilldown a.navback {
        color: #ffffff;
    }
    .drilldown li {
        border-bottom: 1px solid #16457d;
        background: #f5f5f5;
    }

}

.back-to-top-container a:hover {
    background: #023f63;
}

.main-heading, a, h1, h2, h3, h4, h5, h6, #footer a {
    color: #16457d;
}

.alert-danger a {
    color: inherit;
}
.homecarousel {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}
.splide__pagination {
    bottom: unset!important;
}
.home-container {
    min-height: unset;
}
div#umbcm-header-alert {
    margin: 15px;
}

/* =============================================================
   Homepage slideshow
   ============================================================= */

#home-slideshow-section .flexslider-image {
    width: 100%;
}

#splide-slideshow .splide__pagination__page.is-active {
    background: #869791 !important;
}

/* =============================================================
   Product page
   ============================================================= */

.dcs-product-row {
    margin-top: 12px;
}

/* Desktop tabs */
.dcs-tab-content {
    border: 1px solid #ddd;
    border-top: 0;
    padding: 16px;
}

.dcs-product-tabs .nav-tabs > li.active > a, .dcs-product-tabs .nav-tabs > li.active > a:hover, .dcs-product-tabs .nav-tabs > li.active > a:focus, .dcs-product-tabs .nav-tabs > li > a:hover {
    border-color: #16457d #16457d #fff;
    color: #ffffff;
    background-color: #16457d;
    border: 0;
}
.nav-tabs>li>a {
    background-color: #f0f8ff;
    border: 1px solid #16457d;
    margin-bottom: -1px;
}

/* Add to basket panel */
.dcs-basket-panel {
    margin-top: 16px;
}

.dcs-basket-panel .panel-heading .panel-title {
    font-size: 15px;
    font-weight: 600;
}
.panel-body {
    .code, .level, .price {
        margin-bottom: 15px;
    }
}
