:root {
    --primary-blue: #003366;
    --accent-amber: #FFB300;
    --text-dark: #333333;
    --bg-light: #ffffff;
    --border-gray: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    flex: 1;
}

.navbar {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    height: 70px;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand img {
    height: 35px;
    width: auto;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-search {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    overflow: hidden;
}

.nav-search select {
    padding: 0.6rem;
    border: none;
    background-color: #f5f5f5;
    border-right: 1px solid var(--border-gray);
    outline: none;
    cursor: pointer;
    font-weight: 500;
}

.nav-search input {
    padding: 0.6rem;
    border: none;
    min-width: 350px;
    outline: none;
}

.nav-search button {
    padding: 0.6rem 1rem;
    background-color: var(--primary-blue);
    color: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-blue);
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}
.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #003366;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-mobile-actions {
    display: none;
    align-items: center;
}

.mobile-user-icon {
    color: #003366;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    .nav-mobile-actions {
        display: flex;
    }
    .nav-actions.auth-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .nav-actions.auth-links.active {
        display: flex;
    }
    .desktop-login-btn {
        display: inline-block !important;
    }
}

@media (min-width: 769px) {
    .nav-mobile-actions {
        display: none !important;
    }
}

.btn-primary {
    background-color: var(--accent-amber);
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    background-color: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-image {
    height: 200px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.countdown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #d32f2f; 
    color: #fff !important;
    text-align: center;
    padding: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.format-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    color: #fff !important;
    text-align: center;
    padding: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}
#product-slider .product-card {
    min-width: 280px;
    max-width: 280px;
}

.global-footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 4rem 2rem 1.5rem 2rem;
    margin-top: auto;
    border-top: 1px solid var(--border-gray);
}

.footer-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.brand-col {
    gap: 0;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    color: var(--primary-blue);
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-col p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
    font-size: 0.85rem;
    color: var(--text-dark);
}

.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.8rem;
}

.mobile-user-icon {
    display: none;
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .brand-text, .desktop-login-btn { display: none !important; }
    
    .mobile-user-icon { 
        display: flex; 
        align-items: center;
    }

    .nav-mobile-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-search {
        margin: 0 0.5rem;
        flex: 1;
        max-width: none;
    }

    .nav-search select {
        display: none;
    }

    .nav-search input {
        min-width: auto;
    }

    .nav-actions {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-actions.active {
        height: auto;
        padding: 1.5rem 0;
    }

    .nav-actions .nav-link {
        color: var(--primary-blue);
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .brand-col {
        align-items: center;
    }
}

.mobile-login-link {
    display: none;
}

@media (max-width: 768px) {
    .mobile-login-link {
        display: block !important;
    }
    .product-card {
        min-width: auto;
    }
}
