:root {
    --primary-dark: #293D67;
    --primary-medium: #6887C5;
    --accent-red: #E20000;
    --footer-blue: #83A9F7;
    --bg-light: #f7fafc;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
}

.navbar {
    background-color: var(--primary-dark) !important;
}

main {
    flex: 1 0 auto;
}

.logo-placeholder {
    width: 140px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e2d4d 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

    .hero-section h1 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .hero-section p {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 0;
    }

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
}

.category-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(41, 61, 103, 0.2);
    }

    .category-card:active {
        transform: translateY(-2px);
    }

.category-img-placeholder {
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e0 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-medium);
    font-size: 2.5rem;
}

.category-card .card-body {
    padding: 1rem;
}

.category-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.category-card .card-text {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0;
}

.category-card .arrow-icon {
    color: var(--accent-red);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-card:hover .arrow-icon {
    opacity: 1;
}

.btn-accent {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

    .btn-accent:hover {
        background-color: var(--primary-medium);
        border-color: var(--primary-medium);
        color: white;
    }

.cart-badge {
    background-color: var(--accent-red) !important;
}

/* Mobile optimizations */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

        .hero-section h1 {
            font-size: 1.5rem;
        }

    .category-img-placeholder {
        height: 100px;
    }

    .category-card .card-body {
        padding: 0.875rem;
    }

    .logo-placeholder {
        width: 120px;
        height: 40px;
    }
}

/* Tablet and up */
@media (min-width: 768px) {
    .hero-section {
        padding: 3rem 2rem;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .category-img-placeholder {
        height: 140px;
    }
}

.footer {
    background-color: var(--footer-blue);
    color: white;
    padding: 1.5rem 0;
}


    .footer a {
        color: var(--primary-dark);
        text-decoration: none;
        font-weight: 500;
    }

        .footer a:hover {
            color: white;
        }








/* ===== Login Popup Overlay ===== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* ===== Login Modal ===== */
.login-modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}


.login-modal {
    animation: popupFadeIn 0.25s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.visitor-modal {
    background: #fff;
    padding: 24px;
    max-width: 420px;
    border-radius: 8px;
    text-align: center;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}
