/* === Custom Login Page Styles === */
legend {
    width: auto !important;
}

.alert {
    font-size: 20px !important;
    color: #CC0000;
    margin-left: 0.5em;
}

th#scQuantityHeading {
    width: 10%;
    border-right: 2px solid black;
}
th#scUpdateQuantity {
 width: 8%;
    border-right: 2px solid black;
}
th#scProductsHeading {
    width: 50%;
    border-right: 2px solid black;
}
th#scUnitHeading {
 width: 10%;
    border-right: 2px solid black;
}

th#scTotalHeading {
 width: 12%;
 border-right: 2px solid black;
 }
 th#scRemoveHeading {
    width: 10%;
}


/* --- High-Specificity Product Listing Override --- */

/* Forcing the grid column widths */
#product-listing-container .product-listing-row .col-md-2 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
}

#product-listing-container .product-listing-row .col-md-6 {
    flex: 0 0 60% !important;
    max-width: 60% !important;
}

#product-listing-container .product-listing-row .col-md-4 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
}

.product-listing-header .row .col-md-2 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    font-size: 12px !important;
}

.product-listing-header .row .col-md-6 {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    font-size: 12px !important;
}

.product-listing-header .row .col-md-4 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    font-size: 12px !important;
}

/* Header Styling */
#productListing {
    /*  background-color: #e6e6e6 !important; 
  border-bottom: 1px solid #9a9a9a !important;
  font-weight: bold !important;*/
    padding: 8px 0px !important;
    text-align: left !important;
    color: #fff !important;
}

/* --- Green Header Product Listing Style --- */
.product-listing-header .row {
    border: 1px solid #454545 !important;
    border-bottom: none !important;
}

.product-listing-header .row>div {
    background-color: #71a618;
    color: white !important;
    text-align: center !important;
    padding: 5px 0px !important;
    border-right: 3px solid #000 !important;
}

/* --- Product Row Style to Match Image --- */
#product-listing-container .product-listing-row {
    border-bottom: 1px solid #333 !important;
    padding: 15px 0px !important;
    background-color: transparent !important;
    /* Removes alternating colors */
    background-image: none !important;
    /* Remove any theme gradients */
}

.product-listing-header .row>div:last-child {
    border-right: none !important;
}

.mb-3 {
    margin-bottom: 0px !important;
}

INPUT {
    font-size: 12px;
    margin: auto !important;
}

/* Text and Data Styling */
#product-listing-container .product-listing-name h3 {
    font-size: 1.3em !important;
    font-weight: bold !important;
    color: #000 !important;
}

#product-listing-container .product-listing-name p {
    font-size: 0.9em !important;
    color: #333 !important;
}

#product-listing-container .product-listing-data {
    text-align: left !important;
    font-weight: bold !important;
    color: #fff !important;
}

/* --- Product Page Layout --- */

/* Makes the product image fill its 50% column */
#productMainImage img {
    width: 100% !important;
    height: auto !important;
}

/* Positions the Add to Cart box on the right */
#cartAdd {
    float: right;
    text-align: center;
    margin: 1em;
    border: 1px solid #71a618;
    background: #000000;
    padding: 1em;
    margin-left: 9em;
}

/* Positions the bulleted details list on the left */
#productDetailsList {
    float: left;
    width: 50%;
    list-style: disc;
    padding-left: 30px;
    margin-top: 15px;
}

/* --- Custom Text Styles --- */
.fits-info {
    font-weight: bold;
    font-size: 1.2em;
    color: #FFF;
    margin: 15px 0;
    clear: both;
}

.location-info {
    margin-bottom: 15px;
    clear: both;
}

/* --- Product Page Image Sizing --- */
#productMainImage {
    text-align: left;
    /* Align image to the left, not center */
}

/* Makes the product image fill its column */
#productMainImage img {
    width: 100% !important;
    height: auto !important;
}

/* ----- Final Styling for Pure Green Legacy Look ----- */

/* ----- Header Finishing Touches ----- */
#bannerTwo {
    display: none !important;
}

#navMainWrapper {
    clear: both;
}

/* ----- Navigation Bar Styling ----- */
#navMain {
    background: #000000 url(../images/ezpages_bg.gif);
    font: bold 12px arial;
    padding: 0 10px;
    height: 30px;
    line-height: 18px;
}

#navMainList {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
}

#navMainList li.nav-item {
    border-right: 1px solid #000000;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

#navMainList li.nav-item a,
#navMainList li.nav-item span {
    color: #000000;
    /* Changed from black to white for visibility */
    text-decoration: none;
    display: block;
    padding: 0 15px;
    /* Added padding for spacing */
}

/* Style for the home link icon */
#navMainList li.home-link a {
    display: block;
    background: url(../images/home_tab.gif) no-repeat left 0;
    padding: 0px 20px 0px 18px;
    height: 30px;
    width: 2px;
    text-indent: -9999px;
    /* Hides the link text */
}

/* Hover effect for all nav items */
#navMainList li.nav-item:hover {
    background-color: #7cb619;
}

#navMainList li.nav-item:hover>a,
#navMainList li.nav-item:hover>span {
    color: #fff;
}

/* Style for the currently active page link */
#navMainList li.nav-item.active {
    background-color: #7cb619;
    /* Made active state match hover */
}

#navMainList li.nav-item.active a {
    color: #fff;
}

/* Remove divider from the last text item before the search bar */
#navMainList li.nav-item:nth-last-child(2) {
    border-right: none;
}

/* ----- Search Bar Styling (Revised) ----- */
#navMainList li.nav-search {
    margin-left: auto;
    border-right: none;
    padding-right: 10px;
    display: flex;
    align-items: center;
    /* This centers the form in the nav bar */
}

/* This new rule targets the form to align the inputs */
#navMainList li.nav-search form {
    display: flex;
    align-items: center;
    /* This aligns the text field and button */
    margin: 0;
}

/* Style the text input field */
#navMainList li.nav-search input[type="text"] {
    height: 22px;
    box-sizing: border-box;
    /* Important for consistent height */
}

/* Style the search submit button */
#navMainList li.nav-search input[type="image"] {
    margin-left: 4px;
    height: 22px;
}

#navMainList li.nav-search input[type="submit"],
#navMainList li.nav-search button {
    margin-left: 4px;
    height: 22px;
    border: none;
    padding: 0;
}

/* ----- Sidebox Styling ----- */
h3.leftBoxHeading,
h3.rightBoxHeading {
    font: bold 1.1em arial, sans-serif;
    color: #FFFFFF;
    background: #7cb619;
    padding: 8px 10px;
    margin: 0;
    border-radius: 4px 4px 0px 0px;
}

.sideBoxContent {
    border: 1px solid #7cb619;
    border-top: none;
    background-color: #000000;
    padding: 10px;
    font-size: 11px;
}

.sideBoxContent a {
    color: #FFFFFF;
}

/* ----- Main Content Finishing Touches ----- */
h1#main-page-heading,
.centerColumn h1 {
    font: bold 24px Arial, sans-serif;
    color: #FFFFFF;
    border-bottom: 1px solid #7cb619;
    padding-bottom: 2px;
    margin-bottom: 17px;
}

#navBreadCrumb {
    padding: 5px 0;
    font: 11px tahoma, sans-serif;
    color: #FFFFFF;
}

#navBreadCrumb a {
    color: #7cb619;
    text-decoration: none;
}

#navBreadCrumb a:hover {
    text-decoration: underline;
}

/* ----- Custom CSS for Categories Flyout Menu ----- */
div#nav-cat {
    width: 100%;
    font-size: 1.1em;
}

.box .box-heading {
    color: #FFFFFF !important;
}

#categories .sideBoxContent {
    padding: 0;
}

div#nav-cat ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

div#nav-cat li {
    position: relative;
    margin: 0;
    border: 1px solid #6CB323;
    border-top: none;
}

div#nav-cat ul>li:first-child {
    border-top: 1px solid #6CB323;
}

div#nav-cat li a {
    display: block;
    /* padding: 0.25em 0 0.25em 0.05em;*/
    text-decoration: none;
    color: #FFFFFF !important;
    background-color: #000000;
    font-size: 10px;
}

div#nav-cat li:hover>a {
    background-color: #6CB323;
    color: #FFFFFF;
}

/* --- Flyout Logic --- */
div#nav-cat ul ul {
    position: absolute;
    display: none;
    top: 0;
    left: 100%;
    width: 180px;
    z-index: 1000;
}

div#nav-cat ul li:hover>ul {
    display: block;
}