/* =========================================
   RESET E CONFIGURAÇÕES GERAIS
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7025a8;
    --primary-dark: #54177f;
    --bg: #DCCFF2;
    --white: #fff;
    --text: #2d2633;
    --muted: #777;
    --green: #16a34a;
    --red: #dc2626;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 115px;
}

/* =========================================
   CABEÇALHO
========================================= */
.header {
    .header {
  text-align: center;
  background-image: url('logo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 15px;
}
}






.logo {
    font-size: 40px;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    margin: 5px 0;
}

/* =========================================
   CONTEÚDO
========================================= */
.container {
    max-width: 850px;
    margin: 25px auto;
    padding: 0 15px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 18px;
}

/* =========================================
   LISTAGEM DE PRODUTOS
========================================= */
#product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.product-img-box {
    width: 115px;
    height: 115px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--green);
}

.btn-add {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.btn-add:hover {
    background: var(--primary-dark);
}

/* =========================================
   CARRINHO FIXO
========================================= */
#cart-bar {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: 850px;
    margin: 0 auto;
    background: var(--primary);
    color: white;
    padding: 15px 18px;
    border-radius: 15px;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 5000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.cart-bar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#cart-bar button {
    border: none;
    background: white;
    color: var(--primary);
    padding: 10px 15px;
    border-radius: 9px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   MODAIS
========================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 6000;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 18px;
    position: relative;
    margin: auto;
}

.close-btn {
    position: sticky;
    float: right;
    top: 0;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.65);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    margin-bottom: -38px;
}

.modal-image-box {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    background: #eee;
    margin-bottom: 18px;
}

#modal-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

#modal-title {
    font-size: 23px;
    margin-bottom: 8px;
}

#modal-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.custom-group {
    margin-top: 22px;
}

.custom-group h3 {
    font-size: 17px;
    margin-bottom: 5px;
}

.group-hint {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.group-count {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: bold;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 5px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}

.option-row input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.option-label {
    flex: 1;
}

.option-price {
    color: var(--green);
    font-weight: bold;
    font-size: 13px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.quantity-control button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;
}

#modal-qty {
    font-size: 18px;
    font-weight: bold;
}

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 16px;
}

.modal-total strong {
    font-size: 20px;
    color: var(--green);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    width: 100%;
    background: #eee;
    color: var(--text);
    border: none;
    padding: 13px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 15px;
    cursor: pointer;
}

.cart-content h2 {
    margin-bottom: 20px;
}

.cart-item {
    background: #f8f6fa;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.cart-item p {
    font-size: 14px;
    color: var(--muted);
    margin: 5px 0;
    line-height: 1.5;
}

.cart-item-price {
    font-weight: bold;
    color: var(--green);
    margin-top: 10px;
}

.remove-item {
    background: var(--red);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 20px;
}

.cart-total strong {
    color: var(--green);
}

.delivery-section {
    margin-top: 25px;
}

.delivery-section h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.delivery-option {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 15px 10px;
    background: #f8f6fa;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.delivery-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.delivery-option span {
    font-weight: bold;
}

.delivery-option small {
    display: block;
    font-weight: normal;
    margin-top: 4px;
    color: var(--muted);
}

#delivery-address-box,
#table-number-box {
    margin-top: 15px;
}

#delivery-address-box label,
#table-number-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

#delivery-address,
#table-number,
#customer-name,
#customer-phone {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
}

.hidden {
    display: none;
}

#whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 100px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    z-index: 4500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

#whatsapp-float:hover {
    transform: scale(1.08);
}

#whatsapp-float svg {
    width: 33px;
    height: 33px;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 23px;
    }

    .product-card {
        gap: 10px;
        padding: 11px;
    }

    .product-img-box {
        width: 100px;
        height: 100px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .product-info p {
        font-size: 12px;
    }

    .btn-add {
        width: 38px;
        height: 38px;
    }

    .modal {
        padding: 7px;
    }

    .modal-content {
        max-height: 96vh;
        padding: 14px;
    }

    .modal-image-box {
        height: 300px;
    }

    .option-row {
        padding: 12px 3px;
    }

    #cart-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    #whatsapp-float {
        bottom: 95px;
        right: 14px;
    }
}

.modal-footer-fixed {
    position: sticky;
    bottom: -14px;
    background: white;
    padding: 12px 0 14px;
    margin-top: 15px;
    z-index: 20;
    box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.95);
}

.modal-footer-fixed .modal-total {
    margin-top: 0;
}

.modal-footer-fixed .btn-primary {
    margin-top: 12px;
}

.modal-footer-fixed .btn-secondary {
    margin-top: 8px;
}