/* The Salvation Army Brand Colors */
:root {
    --sa-red: #C8102E; /* PMS 185 - Primary Red */
    --sa-grey: #53565A; /* SA Grey */
    --sa-black: #000000; /* SA Black */
    --sa-black-70: rgba(0, 0, 0, 0.7); /* Black at 70% opacity for text */
    --sa-navy: #003057; /* SA Navy */
    --sa-header-bg: rgb(0, 52, 80); /* Header background */
    --sa-footer-bg: rgb(239, 55, 62); /* Footer background */
    --sa-blue: #0072CE; /* SA Blue */
    --sa-light-grey: #D0D0CE; /* SA Light Grey */
    --sa-white: #FFFFFF; /* White */
}

/* Typography - Avenir Next LT Pro */
@font-face {
    font-family: 'Avenir Next LT Pro';
    font-style: normal;
    font-weight: 400;
    src: local('Avenir Next LT Pro Regular'), local('AvenirNextLTPro-Regular');
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    font-style: normal;
    font-weight: 500;
    src: local('Avenir Next LT Pro Medium'), local('AvenirNextLTPro-Medium');
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    font-style: normal;
    font-weight: 600;
    src: local('Avenir Next LT Pro Demi'), local('AvenirNextLTPro-Demi');
}

@font-face {
    font-family: 'Avenir Next LT Pro';
    font-style: normal;
    font-weight: 700;
    src: local('Avenir Next LT Pro Bold'), local('AvenirNextLTPro-Bold');
}

body {
    font-family: 'Avenir Next LT Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--sa-black-70);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Avenir Next LT Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--sa-black-70);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Header Styling */
.navbar {
    background-color: var(--sa-header-bg) !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--sa-white) !important;
    font-family: 'Avenir Next LT Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.navbar-nav > li > a {
    color: var(--sa-white) !important;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: rgba(0,0,0,0.1) !important;
    color: var(--sa-white) !important;
}

/* Shopping cart icon - make it white */
.cart-summary img,
.nav-expander-cart img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.cart-summary:hover img,
.nav-expander-cart:hover img {
    opacity: 1;
}

/* Main Content Areas */
.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Alert Boxes */
.alert-info {
    background-color: var(--sa-light-grey);
    border-color: var(--sa-grey);
    color: var(--sa-black-70);
}

.alert-info h3 {
    color: var(--sa-black-70);
    margin-top: 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--sa-red);
    border-color: var(--sa-red);
    color: var(--sa-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #A50034; /* Darker red */
    border-color: #A50034;
    color: var(--sa-white);
}

.btn-default {
    background-color: var(--sa-white);
    border-color: var(--sa-grey);
    color: var(--sa-black-70);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-default:hover,
.btn-default:focus {
    background-color: var(--sa-light-grey);
    border-color: var(--sa-grey);
    color: var(--sa-black-70);
}

/* Links */
a {
    color: var(--sa-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--sa-navy);
    text-decoration: underline;
}

/* Forms */
.form-control {
    border-color: var(--sa-grey);
    border-radius: 0;
}

.form-control:focus {
    border-color: var(--sa-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 206, 0.25);
}

/* Labels */
label {
    color: var(--sa-black-70);
    font-weight: 600;
}

/* Footer */
.tsaep-footer {
    background-color: var(--sa-footer-bg);
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid #d0d0ce;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 150px;
    overflow: hidden;
    z-index: 100;
}

.footer-content {
    font-size: 14px;
    color: white;
}

.footer-item {
    color: white;
    font-weight: 500;
}

.footer-separator {
    color: white;
    margin: 0 15px;
    font-weight: 300;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: white;
        text-decoration: none;
    }

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        font-size: 13px;
    }
    
    .footer-separator {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .tsaep-footer {
        padding: 15px 0;
        max-height: 150px;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.8;
    }

    .footer-separator {
        display: none;
    }

    .footer-item,
    .footer-link {
        display: block;
        margin: 3px 0;
        font-size: 12px;
    }
}

/* Categories Section */
.categories-outer {
    background-color: var(--sa-white);
    padding: 30px 0;
}

.categories-outer h2 {
    color: var(--sa-black-70);
    margin-bottom: 30px;
}

/* Featured Products */
.featured-products-outer {
    background-color: #ffffff;
    padding: 30px 0;
}

.product-item {
    background-color: var(--sa-white);
    border: 1px solid var(--sa-light-grey);
    padding: 15px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Group Buy Section */
.groupbuy-outer {
    padding: 30px 0;
}

/* Banner Section */
.banners-outer {
    background-color: var(--sa-light-grey);
    padding: 20px 0;
    margin-bottom: 30px;
}

/* Logo Styling */
.sa-logo {
    max-height: 60px;
    margin-right: 15px;
}

/* Utility Classes */
.text-sa-red {
    color: var(--sa-red) !important;
}

.text-sa-navy {
    color: var(--sa-navy) !important;
}

.bg-sa-red {
    background-color: var(--sa-red) !important;
}

.bg-sa-navy {
    background-color: var(--sa-navy) !important;
}

.bg-sa-light-grey {
    background-color: var(--sa-light-grey) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 18px;
    }
    
    .sa-logo {
        max-height: 40px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
}

/* Modal Loading - white text */
#ModalLoading .modal-header {
    background-color: var(--sa-header-bg);
    border-bottom: none;
}

#ModalLoading .modal-header h2,
#ModalLoading .h2white {
    color: var(--sa-white) !important;
}

#ModalLoading .modal-content {
    background-color: #f5f5f5;
    border: none;
}

#ModalLoading .modal-body {
    padding: 20px;
}

#ModalLoading .progress {
    height: 25px;
    background-color: #e0e0e0;
}

#ModalLoading .progress-bar {
    background-color: var(--sa-red);
}

footer {
    margin: 0 0 !important;
    background-color: transparent;
    box-shadow: unset;
    color: rgb(239, 55, 62);
    height:55px !important;
    padding:5px !important;
}
.login-main {
    border-top: 0px !important;
    margin-top: 20px;
    padding: 20px;
}