/* Base Styles */
:root {
    --primary-color: #1e2756;
    --accent-color: #ff0000;
    --text-color: #333;
    --white: #ffffff;
    --gray: #f8f8f8;
    --navbar-bg: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    height: 40px;
}

.quote-btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-link {
    color: var(--white);
    text-decoration: none;
}

.view-orders-container {
    position: absolute;
    top: 100px;
    right: 30px;
    z-index: 100;
}

.view-orders-btn {
    background-color: #8cc63f;
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.view-orders-btn:hover {
    background-color: #7ab32e;
    text-decoration: none;
}


/* Main Content */
.main-content {
    margin-top: 100px;
    padding: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.service-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card p {
    text-align: center;
    flex-grow: 1;
    /* Allows text area to expand, keeping button aligned at the bottom */
    color: #666;
    margin-bottom: 1rem;
}

.service-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;
    /* padding: 0 1rem; */
    padding-left: 6rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.store-hours .hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.helpful-links {
    list-style: none;
}

.helpful-links a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 2rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.payment-methods {
    margin: 1rem 0;
}

.payment-methods img {
    height: 30px;
}

/* Add these styles to your existing style.css */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-text {
    color: #fff;
    font-size: 0.9rem;
}

.logout-link {
    color: #ff4444;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #ff4444;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background-color: #ff4444;
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Upload Overlay - lightweight, theme-matching loader (used during file uploads) */
#globalUploadOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
#globalUploadOverlay.visible {
    display: flex;
}
#globalUploadOverlay .upload-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    display: flex;
    gap: 0.9rem;
    align-items: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
#globalUploadOverlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.18);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: upload-spin 1s linear infinite;
}
#globalUploadOverlay .upload-message {
    font-weight: 600;
    color: var(--white);
}
@keyframes upload-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    #globalUploadOverlay .spinner { animation: none; }
}

@media (max-width: 480px) {
    .nav-right {
        flex-direction: row;
        gap: 1rem;
    }
}

.services-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e2756;
}

.services-desc{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: #1e2756;
}