:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo img {
    height: 60px;
}

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

.ifood-btn {
    background-color: #ea1d2c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.ifood-btn:hover {
    background-color: #c21624;
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Destaque Marguerita */
.featured-pizza {
    border: 3px solid #ffc107;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.featured-pizza .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.featured-pizza .add-to-cart-btn {
    background: #ffc107;
    color: #000;
    font-size: 1.1rem;
    padding: 15px;
}

.featured-pizza .add-to-cart-btn:hover {
    background: #e0a800;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/images/pizza_4.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #c1121f;
}

.container {
    padding: 3rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--secondary-color);
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Monte sua Pizza */
.custom-pizza-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.instruction {
    margin-bottom: 1rem;
    font-weight: 600;
}

.flavor-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}

.flavor-item {
    display: flex;
    align-items: center;
    background: var(--light-bg);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.flavor-item:hover {
    background: #e2e2e2;
}

.flavor-item input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.custom-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Listas de Bebidas e Sobremesas */
.item-grid-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.item-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Animação de Vibração */
@keyframes vibrate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0eg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.vibrate {
    animation: vibrate 0.3s linear infinite;
}

.btn-vibrate {
    animation: vibrate 0.5s linear infinite;
    animation-delay: 2s;
}

/* Seleção de Tamanhos */
.size-selection {
    margin-bottom: 1rem;
}

.size-selection select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

.item-row {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.item-details p {
    font-size: 0.85rem;
    color: #777;
}

.item-price-action {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-price-action .price {
    font-size: 1.1rem;
}

.item-price-action .add-to-cart {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: 50%;
}

.pizza-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

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

.pizza-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pizza-info {
    padding: 1.5rem;
}

.pizza-info h3 {
    margin-bottom: 0.5rem;
}

.pizza-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    height: 3rem;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.add-to-cart {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Modal Carrinho */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: right;
}

.checkout-btn {
    display: block;
    width: 100%;
    background-color: #25d366;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 1rem;
    font-weight: bold;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .container { padding: 2rem 5%; }
}
