/* VARIÁVEIS DE CORES */
:root {
    --primary-color: #8E44AD;
    --primary-light: #9b59b6;
    --secondary-color: #6C3483;
    --accent-color: #F39C12;
    --accent-light: #f8c471;
    --text-color: #fff;
    --light-text: #f5f5f5;
    --dark-text: #2c3e50;
    --background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --promo-color: #e74c3c;
    --promo-light: #e67e22;
    --success-color: #2ecc71;
    --instagram-color: #E1306C;
    --instagram-dark: #C13584;
    --border-color: #e9ecef;
    --placeholder-color: #adb5bd;
    --error-color: #ff6b6b;
    --ifood-red: #ea1d2c;
    --ifood-dark-red: #c31826;
    --open-color: #27ae60;
    --closed-color: #c0392b;
    --unavailable-color: #95a5a6;
}

/* RESET E CONFIGURAÇÕES GERAIS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* LAYOUT PRINCIPAL */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CABEÇALHO */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    padding: 25px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    width: 70px;
    height: 70px;
}

h1 {
    margin: 10px 0 5px;
    font-size: 1.8em;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header p {
    margin: 0;
    font-size: 1em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* SEÇÕES */
.section {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section:last-child {
    border-bottom: none;
    padding-bottom: 30px;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.1em;
}

/* OPÇÕES SELECIONÁVEIS */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.option,
.ingredient {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    font-weight: 500;
    flex: 1 0 calc(50% - 10px);
    min-width: 0;
    text-align: center;
    font-size: 0.95em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 3px 0;
}

.option:hover,
.ingredient:hover:not(.max-selected) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-light);
}

.option.selected,
.ingredient.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.4);
    transform: translateY(-3px);
    font-weight: 600;
}

.option.selected::after,
.ingredient.selected::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--primary-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* PROMOÇÃO */
.option.promo {
    background: linear-gradient(135deg, #fff9f9, #fff0f0);
    border: 2px solid var(--promo-light);
    animation: pulse 2s infinite;
}

.option.promo::before {
    content: "PROMOÇÃO";
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--promo-color), var(--promo-light));
    color: white;
    font-size: 0.7em;
    padding: 4px 12px;
    border-bottom-left-radius: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option.promo.selected {
    background: linear-gradient(135deg, var(--promo-color), var(--promo-light));
    border-color: #d35400;
    color: white;
}

/* ITENS DESABILITADOS */
.ingredient.max-selected:not(.selected) {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--border-color) !important;
    pointer-events: none;
}

/* FORMULÁRIO DO CLIENTE */
.customer-info {
    margin-top: 15px;
}

.customer-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.customer-info input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
}

.customer-info input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

.customer-info input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* CAMPOS OBRIGATÓRIOS */
.required-field {
    border-left: 3px solid var(--promo-color);
    background-color: #fff9f9;
}

.customer-info input:invalid:not(:focus):not([readonly]) {
    border-color: #ffdddd;
}

/* OPÇÃO DE ENDEREÇO DA LOJA */
.address-options {
    margin-top: 15px;
}

#same-address {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
}

#same-address.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-light);
}

#same-address i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* HORÁRIOS DE FUNCIONAMENTO */
.opening-hours {
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-service {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.hour-service i {
    margin-right: 10px;
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.hour-time {
    font-weight: 600;
    color: var(--dark-text);
}

/* STATUS DE ABERTURA */
.status {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9em;
}

.status i {
    margin-right: 8px;
    font-size: 0.6em;
}

.status.open {
    background: rgba(46, 204, 113, 0.2);
    color: var(--open-color);
}

.status.closed {
    background: rgba(231, 76, 60, 0.2);
    color: var(--closed-color);
}

/* BOTÃO DO IFOOD */
.ifood-btn {
    display: block;
    text-align: center;
    background: var(--ifood-red);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(234, 29, 44, 0.3);
}

.ifood-btn:hover {
    background: var(--ifood-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 29, 44, 0.4);
}

.ifood-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* CARROSSEL DE IMAGENS */
.image-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 33.333%;
    height: 300px;
    object-fit: cover;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* RODAPÉ MELHORADO */
.footer {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    color: var(--light-text);
    width: 100%;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    color: var(--accent-light);
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.footer-section h3 i {
    margin-right: 10px;
}

.footer-section p {
    margin: 8px 0;
    line-height: 1.6;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9em;
}

.developer-credit {
    font-size: 0.8em;
    opacity: 0.8;
}

.developer-credit a {
    color: var(--accent-light);
    text-decoration: none;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* RESUMO DO PEDIDO */
.summary {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    margin-top: 20px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.summary-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95em;
}

.summary-item:last-child {
    border-bottom: none;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed var(--accent-color);
}

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

/* BOTÕES */
button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 25px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

button.instagram-btn {
    background: linear-gradient(135deg, var(--instagram-color), var(--instagram-dark));
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.3);
    margin-top: 15px;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
}

button.instagram-btn:hover {
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
    transform: translateY(-3px);
}

button:active {
    transform: translateY(1px);
}

button i {
    margin-right: 10px;
    font-size: 1.2em;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* EFEITO DE ONDA NOS BOTÕES */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* ENDEREÇO DA LOJA */
.address {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    margin: 15px;
    border-radius: 10px;
    font-size: 0.95em;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.address:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.address i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        border-radius: 15px;
    }

    .option,
    .ingredient {
        flex: 1 0 100%;
    }

    button {
        padding: 14px 20px;
        font-size: 1em;
    }

    .carousel-slide img {
        height: 250px;
    }

    .footer-section {
        flex: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-section h3 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    h1 {
        font-size: 1.5em;
    }

    .section {
        padding: 15px;
    }

    .option,
    .ingredient {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .option.selected::after,
    .ingredient.selected::after {
        right: 10px;
        width: 18px;
        height: 18px;
    }

    button {
        padding: 12px 18px;
        font-size: 0.95em;
    }

    button i {
        margin-right: 8px;
    }

    .customer-info input {
        padding: 10px 12px;
    }

    #same-address {
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .address {
        margin: 10px;
        font-size: 0.85em;
    }

    .ifood-btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .hour-service,
    .hour-time {
        font-size: 0.9em;
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
}