/* 1. Resetare și Setări Globale */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Previne mărirea automată a textului pe iOS la schimbarea orientării */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.5;
    /* Îmbunătățește randarea fonturilor pe macOS/iOS */
    -webkit-font-smoothing: antialiased;
}

/* 2. Navigație (Mobile-First: Stivă verticală) */
nav {
    background: #002d52;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
}

nav .logo a {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem; /* Zonă de atingere mai mare */
}

/* 3. Hero Section */
.hero {
    height: 200px; /* Mai mic pe mobil pentru a vedea conținutul imediat */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1519708227418-c8fd9a32b7a2?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.hero h1 {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* 4. Layout Containere */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.section-title h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 5. Grid Produse (Implicit 1 coloană pe mobil) */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* 6. Card Produs */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    /* Elimină highlight-ul albastru la atingere pe Android/iOS */
    -webkit-tap-highlight-color: transparent;
}

.product-image img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
}

.product-info {
    padding: 1.25rem;
}

.order-btn {
    background-color: #002d52;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    /* Aspect nativ butoane pe iOS */
    appearance: none;
    -webkit-appearance: none;
}

/* 7. Media Queries pentru Ecrane Mari (Tablete și Desktop) */
@media (min-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 5%;
    }

    .hero {
        height: 350px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .product-card:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }
}

/* 8. Footer */
footer {
    padding: 2rem 1rem;
    background: #fff;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid #eee;
    color: #666;
}

/* Stiluri pentru Banner Cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #002d52; /* Albastru închis asortat cu meniul tau */
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner button {
    background: #fff;
    color: #002d52;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.cookie-banner button:hover {
    background: #f0f0f0;
}

/* Ascunde bannerul când este acceptat */
.cookie-banner.hidden {
    display: none;
}