/* Reset for sticky footer setup */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

header {
    width: 100%;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--forest-green);
    box-shadow: var(--shadow-sm);
    border-radius: 10px;
    height: 120px;
}


.banner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.logo {
    height: 120px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: var(--nav-text);
    font-size: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.sub-nav {
    position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 0 0 20px 20px;
    z-index: 1100;
    
}

.sub-nav ul li.sub-nav-li a {
    color: var(--clay-red); /* Blue color for All Products button text */
    font-weight: bold; /* Make it stand out */
}

/* Add margin to main content to prevent it from going under header */
main {
    margin-top: 60px; /* header height + sub-nav height + some padding */
    flex: 1 0 auto; /* This makes the content expand to push footer down */
}

footer {
    margin-top: auto; /* Push footer to bottom when content is short */
    border-radius: 20px 20px 0 0;
    color: var(--text-light);
    text-align: center;
    padding: 15px 30px;
    width: 100%;
    background: var(--forest-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.footer-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list .nav-links {
    display: flex;
    gap: 20px;
}

.footer-list li {
    margin: 0 10px;
}

.footer-list li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.footer-list li a:hover {
    color: #6495ED;
}


.social-icons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.social-icons a {
    color: white;
    font-size: 20px;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #6495ED;
}

.copyright {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    flex: 1;
    margin: 0 20px;
}
.flash-messages {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}
.alert {
    padding: 15px 40px 15px 15px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.alert-danger {
    background-color: var(--error);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-success {
    background-color: var(--success);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: inherit;
    border: none;
    background: none;
    font-size: 20px;
    padding: 0 5px;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-link i {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--clay-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-link:hover .cart-count {
    background: var(--forest-green);
    transform: scale(1.1);
}