/* --- ORIGINAL HEADER & NAV --- */
#app-header h1 { margin:10px 0; }
#user-nav { padding-top:25px; }
#user-nav > a {
    display:inline-block; margin-bottom:0; font-weight:normal; text-align:center;
    vertical-align:middle; cursor:pointer; background-image:none; border:1px solid transparent;
    white-space:nowrap; padding:5px 10px; font-size:14px; line-height:1.428571429;
    border-radius:4px; -webkit-user-select:none; color:#4d4d4d;
}
#user-nav > a:hover { text-decoration:none; color:#51269a; }
.header-nav li a { color:#4d4d4d; }
#page-links { display:inline-block; }
#page-links a { display:inline-block; padding:5px 10px; font-size:14px; color:#4d4d4d; }
#page-links a:hover, .btn-link:hover, .btn-link { color:#51269a; }
#page-links .piped-list>li:after { content:"|"; color:#4d4d4d; }
#app-header .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; }



/* --- HOME PAGE FEATURE --- */
#home-page .feature-region {
    height: 400px; background-repeat: no-repeat;
    background-image: url('https://i.postimg.cc/90rtxDDP/Large-Banner-Photo-3.png');
    background-size: cover; background-position: top 40% center;
}
#home-page #feature div { max-width: 1000px; padding-top: 48px; margin: auto; color: #fff; }
#home-page #feature h3 { text-align: center; font-size: 2.3em; margin-top: 1em; line-height: 1; }
#home-page #feature h4 { text-align: center; font-size: 1.9em; }

/* --- SEARCH BAR --- */
#search-form.callout-region { background-color: #51269a; }
.search-form .search-label { line-height: 1.5; font-size: 26px; font-weight: 500; color: #0899D3; }
.search-form .search-box-wrapper { margin: 0 auto; display: block; width: 50%; padding: 0; }
.search-form .search-box { border-radius: 4px; border: 1px solid black; height: 44px; }
.search-form .search-submit { color: #0899D3; width: 30px; height: 30px; top: 8px; }

/* --- LISTINGS & TEXT COLORS --- */
#product-page #feature { background: #51269a; padding-top: 20px; }
.product-tile .product-account-logo { height: 20px; margin-bottom: 10px; margin-top: 10px; }
#main { min-height: 150px; }

/* THE COLOR FIX: Overrides the blue text in main areas */
#main h1, 
.product-title, 
.home-page-tile-browse-text,
.product-dates {
    color: #4d4d4d !important;
}

/* --- BUTTON & FILTER LOGIC --- */

/* 1. Hide the Refine button EVERYWHERE */
#search-refine-button--refine {
    display: none !important;
}

/* 2. Hide the entire Filter bar ONLY on the Home Page */
.ic-catalog-home #search-refine-button--categories,
.ic-catalog-home .search-filter-wrapper {
    display: none !important;
}

/* 3. Ensure Categories (Filter) shows up in sub-catalogs */
#search-refine-button--categories {
    display: inline-block !important;
}

/* Rename Categories to Filter */
#search-refine-button--categories .search-refine-button__text { visibility: hidden; }
#search-refine-button--categories .search-refine-button__text::after {
    content: "Filter"; visibility: visible;
}

/* --- CARD IMAGE STRETCH FIX --- */
.image-wrapper {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* --- FOOTER & MISC --- */
#app-footer { background-color: #ffffff; padding-top: 30px; font-size: 14px; }
.small { font-size: 12px; color: #8e99a0 !important; }

@media (max-width: 1200px) { #home-page #feature div { max-width: 800px; } }
@media (max-width: 768px) { #home-page #feature { height: 200px; text-align: center; padding: 0 2em; } }
.alert-top { margin-bottom: 0; }