:root {
    --primary-orange: #ffb459;
    /* Colore arancione basato sull'immagine */
    --text-dark: #121212;
    --bg-white: #ffffff;
}

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

body {
    font-family: 'Baloo 2', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.main-header {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-right: auto;
}

.logo-container .logo {
    height: 80px;
    max-height: 80px;
    width: auto;
    max-width: 150px;
    display: block;
}

/* Barra di ricerca centrale */
.search-container {
    display: flex;
    align-items: center;
    background-color: var(--primary-orange);
    border-radius: 50px;
    padding: 10px 20px;
    width: 350px;
    margin-right: 30px;
}

.search-icon {
    height: 24px;
    width: 24px;
    margin-right: 10px;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-dark);
}

.user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.icon-btn img {
    height: 35px;
    max-height: 35px;
    width: auto;
    max-width: 35px;
    display: block;
}

/* Barra di navigazione inferiore */
.main-nav {
    background-color: var(--primary-orange);
    border-radius: 50px;
    padding: 15px 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.7;
}

/* --- Banner Home Page --- */
.hero-banner {
    width: 100%;
    /* Assumiamo un'altezza proporzionata come nell'immagine, o usiamo un padding */
    min-height: 400px; 
    background-image: url('Banner-definitivo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    border-radius: 10px; /* Se vogliamo stondare leggermente gli angoli, toglilo se dev'essere squadrato */
}

.hero-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 6rem;
    /* Molto grande, come nell'immagine */
    font-weight: 800;
    /* Extra bold */
    text-transform: uppercase;
    display: flex;
    letter-spacing: 2px;
    line-height: 1;
    /* Opzionale: aggiunta di una leggera ombra per staccare dal fondo complesso */
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
}

.text-solid {
    color: #df4e8b;
    /* Colore rosa solido */
}

.text-outline {
    color: #ffffff;
    /* Riempimento bianco */
    -webkit-text-stroke: 4px #df4e8b;
    /* Contorno rosa spessorato */
    text-stroke: 4px #df4e8b;
}

/* --- Cards Section --- */
.cards-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    flex: 1;
    height: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(223, 78, 139, 0.95) 0%, rgba(223, 78, 139, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
}

.card-overlay h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
}

.menu-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-menu {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-orange);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 0;
    border-radius: 50px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-menu:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* --- Products Grid Section --- */
.products-grid-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-card {
    display: flex;
    align-items: center;
    border: 2px solid #b3204d;
    /* Colore bordo rosa scuro/rosso */
    border-radius: 30px;
    padding: 15px;
    gap: 20px;
    background-color: var(--bg-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card img {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-dark);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-orange);
    padding: 80px 20px 60px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    align-self: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.contact-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    /* Spinge Instagram in alto e pagamenti in basso */
}

.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    object-fit: contain;
}

.social-section span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.payments-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.payments-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.payment-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.payment-icons img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* ===== CARD COME LINK (a.card, a.product-card) ===== */
a.card,
a.product-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.card {
    display: block;
    flex: 1;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

a.product-card {
    display: flex;
    align-items: center;
    border: 2px solid #b3204d;
    border-radius: 30px;
    padding: 15px;
    gap: 20px;
    background-color: var(--bg-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== CART BADGE ===== */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #df4e8b;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* ===== RESPONSIVE MOBILE ===== */
.search-btn-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Header */
    .header-top {
        flex-wrap: wrap;
    }
    .search-container {
        display: none; /* Hide desktop search bar */
    }
    .search-btn-mobile {
        display: flex;
        background-color: var(--primary-orange);
        border-radius: 50%;
        width: 36px;
        height: 36px;
    }
    .search-btn-mobile img {
        height: 18px;
    }
    .logo-container .logo {
        height: 50px;
    }
    .user-actions {
        gap: 12px;
    }
    .icon-btn img {
        height: 28px;
    }

    /* Nav */
    .main-nav {
        padding: 15px 10px;
        border-radius: 20px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-nav a {
        font-size: 0.85rem;
    }

    /* Banner */
    .hero-banner {
        min-height: 200px;
        margin-top: 15px;
    }

    /* Cards Section */
    .cards-container {
        flex-direction: column;
        gap: 20px;
    }
    .card {
        height: 160px;
        border-radius: 25px;
    }
    .card-overlay h3 {
        font-size: 1.3rem;
    }
    .btn-menu {
        font-size: 1.3rem;
        padding: 15px 0;
    }

    /* Products Grid Section */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .product-card {
        padding: 15px;
        gap: 15px;
        border-radius: 25px;
        border-width: 1px;
    }
    .product-card img {
        width: 110px;
        height: 110px;
        border-radius: 20px;
    }
    .product-info h4 {
        font-size: 1.2rem;
    }
    .product-info h5 {
        font-size: 0.9rem;
    }
    .product-info p {
        font-size: 0.8rem;
    }

    /* Footer */
    .site-footer {
        padding: 40px 20px;
    }
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "logo social"
            "contacts contacts"
            "payments payments";
        gap: 20px;
        justify-items: center;
    }
    .footer-left, .footer-right {
        display: contents;
    }
    .footer-logo {
        grid-area: logo;
        justify-self: start;
        height: 45px;
        margin-bottom: 0;
    }
    .social-section {
        grid-area: social;
        justify-self: end;
        align-items: center;
    }
    .social-icon {
        width: 35px;
        height: 35px;
    }
    .social-section span {
        font-size: 1rem;
    }
    .footer-contacts {
        grid-area: contacts;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 15px 0;
    }
    .contact-item {
        font-size: 1rem;
        gap: 12px;
    }
    .contact-icon {
        width: 22px;
        height: 22px;
    }
    .payments-section {
        grid-area: payments;
        align-items: center;
    }
    .payments-title {
        font-size: 1rem;
    }
    .payment-icons img {
        height: 28px;
    }
}