﻿/*  Header Container  */
#HeaderContainer {
    display: flex;
    flex-direction: column;
    max-width: 970px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Top Row Wrapper  */
.htop-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 0;
}

    .htop-wrapper > div:nth-child(1) {
        flex-shrink: 0;
    }

    .htop-wrapper > div:nth-child(2) {
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 20px;
    }

#HeaderTop {
    font-size: 18.67px;
    color: #428eef;
    display: block;
    white-space: nowrap;
}

#HeaderBottom {
    font-size: 16px;
    color: #666;
    display: block;
    padding-bottom: 2px;
}

/*  Login Row: fixed width, never shrink or wrap  */
/* Logo: 235px fixed */
.htop-wrapper > div:nth-child(1) {
    flex-shrink: 0;
    width: 235px;
}

/* Tagline: capped so LoginRow always has room */
.htop-wrapper > div:nth-child(2) {
    flex: 0 1 auto;
    width: 340px;
    min-width: 0;
    padding-left: 20px;
}

/* LoginRow: takes remaining space ~395px */
#LoginRow {
    flex-shrink: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: Arial;
    font-size: 12px;
    white-space: nowrap;
    margin-left: auto;
    width:auto;
}

/* Dividers  */
.hm-divider {
    color: #666;
    padding: 0 5px;
}

/*  Cart  */
.hm-viewcart {
    position: relative;
}

    .hm-viewcart a {
        position: relative;
        display: flex;
        align-items: center;
        padding-top: 6px; /* room for the badge above */
    }

#cartitemcount2 {
    position: absolute;
    top: -7px;
    left: 11px;
    font-weight: 700;
    color: #428eef;
    font-size: 11px;
}

/*  Contact Us  */
#ContactUs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

#PhoneNumber {
    color: #428eef;
    font-weight: 700;
    font-size: 12px;
}

#ContactUs a {
    color: #666;
    text-decoration: none;
}

    #ContactUs a:hover {
        text-decoration: underline;
    }

/*  Link styles  */
.newblueheaderlink {
    color: #428eef;
    text-decoration: none;
}

.newguiheaderlink {
    color: #666;
    text-decoration: none;
}
.hamburger-menu {
    float: left;
    align-self: center;
}

    .hamburger-menu > span {
        display: flex;
        background-color: #428eef;
        justify-content: space-between;
        align-items: center;
        width: 77px;
        height: 30px;
        padding: 0 10px 0 8px;
        color: #fff;
        font-size: 14px;
        cursor: pointer;
    }
#MainNav {
    width: 100%;
    max-width: 970px;
    font-family: Arial;
    font-size: 13px;
}

.main-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    display: block;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
}

    .nav-link:hover {
        color: #428eef;
    }

.nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
    margin-left: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Dropdown panel - empty for now, populate later */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 200px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-item:hover .nav-dropdown {
    display: block;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 180px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 6px 0;
}

.nav-dropdown-link {
    display: block;
    padding: 6px 14px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
}

    .nav-dropdown-link:hover {
        background-color: #f0f6ff;
        color: #428eef;
    }


/*    STYLING HOMEPAGE ELEMENTS*/
.home-right-container {
    width: 970px;
    float: left
}
.wehavesizescontainer {
    margin: 6px 0px 5px;
}
div.homepagegreybar {
  margin-left:0px;
}
.homerotatingbanner img {
    max-width: 100%;
    width: 100%
}
div.homepagegreybar {
    width: 956px;
}

/*nav IMGS*/
.navimage > img {
width:200px;
}
div.homepagemaplistheader {
margin-left:0px; 
width: 956px;
}
/* Allow nav items to wrap to a second line */
.main-nav-list {
    flex-wrap: wrap; /* change from nowrap */
}

.nav-break {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

.nav-item:last-child {
   /* margin-left: 175px;*/
   margin-left:10px;
}

.nav-item:nth-last-child(-n+2) .nav-dropdown {
    left: 0;
    right: auto;
}
.nav-item:first-child {
    margin-left: 10px; 
}
.nav-dropdown-link {
    display: block;
    padding: 6px 14px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    border-bottom: 1px solid #eeeeee; /* add this */
    margin: 0 10px; /* add this - keeps line from reaching edges */
}

    .nav-dropdown-link:last-child {
        border-bottom: none; /* remove line on last item */
    }
.nav-item:last-child .nav-dropdown {
    left: auto;
    right: 0;
}
.main-nav-list {
    flex-wrap: wrap; /* change from nowrap */
    justify-content: space-around;
    /* text-align: right; */
}
#MainNav {
    border-right: 1px solid black;
}



#shipping-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

#satisfaction {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.hm-freeshipping {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.hm-guaranteed {
    display: flex;
    align-items: center;
}
#LoginRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    font-size: 12px;
    white-space: nowrap;
}
#shipping-login-stack {
    position: relative;
    display: inline-block;
}

#satisfaction {
    position: absolute;
    bottom: 100%; /* sits directly above Log In */
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    white-space: nowrap;
    padding-bottom: 2px;
}

.hm-freeshipping {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}
.htop-wrapper {
    padding-top: 22px;
    position: relative;
}

#HeaderContainer {
    overflow: visible;
}
#shipping-login-stack {
    position: relative;
    display: inline-block;
}

#satisfaction {
    position: absolute;
    bottom: 100%;
    left: 0;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding-bottom: 2px;
}
#mapcategories{
    display:flex;
    justify-content:space-between;
    width:956px!important;
    padding-left:0px!important;
}
div.wehavesizes{
    font-size:16px;
}
div.homepagegreybar, div.maplistheader {
    line-height: 25px;
    height: 25px;
}
.sfy-wallmap h1, .orderonline {
    font-size: 20px;
}
#mapcategories .navimage img {
    width: 225px;
    height: 206px;
    object-fit: cover;
    display: block;
    border: 1px solid #898989;
}

#mapcategories .navimage {
    width: 225px;
    display: inline-block;
    float: left;
    margin-right: 16px;
}

    #mapcategories .navimage.navimagelast {
        margin-right: 0;
    }
div.buttonlinkB {
    background-image: url('/images/homepage-buttonB.jpg');
    background-size: cover; /* stretch the button bg image to fit */
    border: 0;
    width: 225px;
    height: 36px;
    line-height: 36px;
    border: 1px solid lightgrey;
}
div.mostpopcontainer{
    margin-left:0;
}
.leftnavigationtestcustomwallmapslink{
    top: 68px!important;
}
div.blueunitedstates {
    width: 635px;
}
div.greeninternational{
    width:321px;
}
/* Container */
.mostpopcontainer {
    width: 958px;
}

/* Image sizes */
.mostpopnavimage img {
    object-fit: contain;
    display: block;
}

/* Individual image wrapper */
.mostpopnavimage {
    margin-right: 0;
    overflow: hidden;
    flex-shrink: 0;
}



/* International inner image row */
.mostpopcontainer > div:first-child > div:last-child {
    display: flex !important;
    float: none !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

/* US inner image row */
.mostpopcontainer > div:last-child > div:last-child {
    display: flex !important;
    float: none !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
}
.home-content-container {
    border-left: 1px solid #666;
}
.qlty-wrap {
    width: 958px;
}

.qlty-desc-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;
}

.qlty-desc-left,
.qlty-desc-right {
    flex: 1;
    line-height: 1;
}

    .qlty-desc-left > div,
    .qlty-desc-right > div {
        margin-bottom: 8px;
    }

.whychoose {
    width: 950px;
}
/* Make inner rows flex */
.mostpopcontainer .mostpopnavimage {
    display: inline-block;
}

.mostpopcontainer > div:first-child > div:last-child,
.mostpopcontainer > div:last-child > div:last-child {
    display: flex !important;
    float: none !important;
    justify-content: space-around;
    align-items: flex-start;
    padding: 5px;
    box-sizing: border-box;
    width: 100% !important;
}

/* Images */
.mostpopnavimage img {
    width: 148px !important;
    height: 136px !important;
    object-fit: cover !important;
    display: block !important;
}

/* Buttons match image width */
.mostpopnavimage {
    overflow: visible;
}

.mostpopcontainer .mostpopnavimage {
    display: inline-block;
    overflow: visible;
}

.mostpopcontainer > div:first-child > div:last-child,
.mostpopcontainer > div:last-child > div:last-child {
    display: flex !important;
    float: none !important;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 20px 6px 6px;
    box-sizing: border-box;
    width: 100% !important;
}

.mostpopnavimage img {
    width: 148px !important;
    height: 136px !important;
    object-fit: cover !important;
    display: block !important;
}

div.mostpopbuttongreenB,
div.mostpopbuttonblueB {
    width: 148px;
    background-size: cover;
    border: 1px solid #d0d0d0;
    box-sizing: border-box;
}
