@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --red: #9f1014;
    --wine: #5f0b0d;
    --cream: #fff6ea;
    --beige: #ead8c2;
    --ink: #211714;
    --gold: #c99a42;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(33, 23, 20, .12);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 246, 234, .94);
    border-bottom: 1px solid rgba(95, 11, 13, .12);
    backdrop-filter: blur(10px);
}
.brand { font-family: "Playfair Display", Georgia, serif; font-weight: 700; color: var(--wine); line-height: 1; }
.brand span { display: block; font-family: Inter, Arial, sans-serif; font-size: 11px; letter-spacing: 0; color: var(--gold); }
nav { display: flex; gap: 12px; font-size: 14px; font-weight: 700; }

.hero {
    min-height: 72vh;
    display: grid;
    align-items: end;
    padding: 36px 18px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(33,23,20,.28), rgba(33,23,20,.78)), url('../img/fundosite.png') center/cover, var(--wine);
}
.hero-copy {
    max-width: 760px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .7);
}
.hero-copy p {
    max-width: 640px;
    font-weight: 700;
}
.hero-logo {
    width: min(220px, 58vw);
    padding: 12px;
    margin: 6px 0 16px;
    background: rgba(255, 255, 255, .92);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.overline, .tag {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 10px; line-height: 1.08; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
h1 { font-size: clamp(36px, 8vw, 68px); }
h2 { font-size: 30px; }
p { line-height: 1.55; }
.actions, .filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn, button, .filters a {
    border: 1px solid rgba(95, 11, 13, .18);
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--white);
    color: var(--wine);
    font-weight: 800;
    cursor: pointer;
}
.btn.primary, button, .filters a.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn.disabled, button:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}
.full { width: 100%; text-align: center; display: block; }

.brand-grid, .section, .page, .product-detail {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
}
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-grid article, .product-card, .totals, .success {
    background: var(--white);
    border: 1px solid rgba(95, 11, 13, .10);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.brand-grid article { padding: 24px; }
.brand-grid a { color: var(--red); font-weight: 800; }
.section-title { margin-bottom: 18px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { overflow: hidden; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--beige); }
.product-card div { padding: 16px; }
.product-card strong { display: block; margin: 12px 0; font-size: 18px; color: var(--wine); }
.menu-group { margin-top: 30px; }
.cart-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    padding: 14px 18px;
    background: var(--wine);
    color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 800;
}
.narrow { max-width: 720px; }
.cart-row {
    display: grid;
    grid-template-columns: 76px 1fr 86px auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(95, 11, 13, .12);
}
.cart-row img { width: 76px; height: 64px; object-fit: cover; border-radius: 8px; }
.btn.danger {
    background: #fff0f0;
    color: var(--red);
    border-color: rgba(159, 16, 20, .24);
}
.btn.small {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
}
.cart-actions, .cart-clear {
    margin-top: 14px;
}
input, textarea, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(95, 11, 13, .22);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: var(--white);
}
.checkout-form { display: grid; gap: 14px; }
.checkout-form label { font-weight: 800; display: grid; gap: 6px; }
.form-title { margin: 0 0 4px; font-weight: 800; }
.muted { color: #705f5a; font-size: 13px; margin: 0 0 10px; }
.accompaniments-box {
    border: 1px solid rgba(95, 11, 13, .10);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: var(--white);
}
.modifier-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: rgba(234, 216, 194, .42);
    border-bottom: 1px solid rgba(95, 11, 13, .08);
}
.modifier-header h2 {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    font-size: 17px;
    color: var(--ink);
}
.modifier-header p {
    margin: 2px 0 0;
    color: #705f5a;
    font-size: 12px;
    line-height: 1.3;
}
.modifier-header > span {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--white);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.modifier-header.secondary {
    margin-top: 10px;
    background: rgba(255, 246, 234, .9);
    border-top: 1px dashed rgba(95, 11, 13, .18);
}
.modifier-helper {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    background: rgba(255, 246, 234, .6);
    border-bottom: 1px solid rgba(95, 11, 13, .08);
}
.modifier-helper strong {
    color: var(--wine);
    font-size: 13px;
}
.modifier-helper small {
    color: #705f5a;
    line-height: 1.35;
}
.accompaniments-list { display: grid; gap: 0; }
.combo-options { display: grid; gap: 0; }
.section-caption {
    margin: 12px 0 8px;
    color: var(--wine);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.check-card {
    display: grid;
    grid-template-columns: 18px auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid rgba(95, 11, 13, .08);
    border-radius: 0;
    background: var(--white);
}
.combo-card {
    grid-template-columns: auto 1fr auto;
}
.option-thumb {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(95, 11, 13, .10);
    background: var(--beige);
}
.modifier-option {
    cursor: pointer;
}
.check-card input { width: auto; min-height: auto; }
.check-card small { color: var(--wine); font-weight: 800; }
.check-card.paid-extra {
    border-color: rgba(201, 154, 66, .35);
    background: #fffaf1;
}
.check-card.has-extra-qty {
    border-color: rgba(201, 154, 66, .75);
}
.check-card.paid-extra small::before { content: "+ "; }
.check-card.is-disabled {
    color: #8d7c77;
    background: rgba(234, 216, 194, .32);
}
.check-card.is-disabled small { color: #8d7c77; }
.extra-qty {
    display: inline-grid;
    grid-template-columns: auto 58px;
    align-items: center;
    gap: 6px;
    color: #705f5a;
    font-size: 12px;
    font-weight: 800;
}
.extra-qty input {
    width: 58px;
    min-height: 36px;
    padding: 6px 8px;
    text-align: center;
}
.paid-extras-box {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.delivery-options {
    display: grid;
    gap: 8px;
}
.payment-options {
    display: grid;
    gap: 8px;
}
.cart-notes {
    display: block;
    margin-top: 4px;
    color: #705f5a;
    line-height: 1.35;
}
.totals { padding: 16px; margin: 18px 0; }
.totals p { display: flex; justify-content: space-between; margin: 8px 0; }
.totals .grand { font-size: 20px; color: var(--wine); }
.checkout-summary {
    padding: 14px;
    border: 1px solid rgba(95, 11, 13, .12);
    border-radius: 8px;
    background: var(--white);
}
.checkout-summary p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 0;
}
.checkout-summary .grand {
    padding-top: 8px;
    border-top: 1px solid rgba(95, 11, 13, .12);
    font-size: 18px;
    color: var(--wine);
}
.loyalty-box {
    padding: 16px;
    border: 1px solid rgba(201, 154, 66, .35);
    border-radius: 8px;
    background: #fffaf1;
    box-shadow: 0 10px 24px rgba(33, 23, 20, .08);
}
.loyalty-box strong {
    color: var(--wine);
}
.loyalty-box p {
    margin: 8px 0;
}
.alert { padding: 12px; border-radius: 8px; background: #fff0f0; color: var(--red); }
.success-alert { padding: 12px; border-radius: 8px; background: #edf8ef; color: #176b32; }
.approved-box {
    display: grid;
    gap: 4px;
    margin: 10px 0 16px;
    border: 1px solid rgba(23, 107, 50, .18);
}
.approved-box p { margin: 0; }
.status-note {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 246, 234, .94);
    color: var(--wine);
    text-shadow: none;
}
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.product-detail > img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.product-info { min-width: 0; }
.product-price { display: block; margin: 14px 0 4px; color: var(--wine); font-size: 20px; }
.product-form { margin-top: 10px; }
.quantity-field input { max-width: 160px; }
.accompaniments-summary {
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid rgba(95, 11, 13, .08);
    border-radius: 0;
    background: #fff6ea;
    color: var(--wine);
    font-size: 13px;
    font-weight: 800;
}
.success { padding: 26px; }
.ticket-auto-frame {
    position: fixed;
    width: 1px;
    height: 1px;
    right: 0;
    bottom: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.payment-page { display: grid; gap: 16px; }
.payment-message { margin: 0; }
#paymentBrick_container {
    background: var(--white);
    border: 1px solid rgba(95, 11, 13, .10);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow);
}
#paymentBrick_container .mp-payment-method-blocked,
#paymentBrick_container [data-payment-method-id="caixa" i],
#paymentBrick_container [data-testid*="caixa" i],
#paymentBrick_container input[value="caixa" i] {
    display: none !important;
}
.pix-result {
    background: var(--white);
    border: 1px solid rgba(95, 11, 13, .10);
    border-radius: 8px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.pix-result img {
    width: min(260px, 100%);
    margin: 10px auto 14px;
    border: 1px solid rgba(95, 11, 13, .12);
    border-radius: 8px;
}
.pix-result textarea {
    font-family: Consolas, monospace;
    font-size: 13px;
    resize: vertical;
}

@media (max-width: 780px) {
    body { padding-bottom: 86px; }
    .site-header { align-items: center; padding: 10px 14px; }
    nav { flex-direction: column; gap: 6px; text-align: right; }
    .brand-grid, .products, .product-detail { grid-template-columns: 1fr; }
    .brand-grid, .section, .page, .product-detail {
        width: min(100% - 24px, 720px);
        margin: 18px auto;
    }
    .hero { min-height: 66vh; }
    .product-detail {
        gap: 14px;
    }
    .product-detail > img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
    .product-info h1 {
        font-size: clamp(34px, 12vw, 48px);
    }
    .product-info > p:not(.overline) {
        margin: 8px 0;
    }
    .product-price {
        font-size: 22px;
    }
    .quantity-field {
        grid-template-columns: 1fr 116px;
        align-items: center;
        padding: 12px;
        border: 1px solid rgba(95, 11, 13, .12);
        border-radius: 8px;
        background: rgba(255,255,255,.76);
    }
    .quantity-field input {
        max-width: none;
        text-align: center;
        font-weight: 900;
    }
    .accompaniments-box {
        margin-left: -2px;
        margin-right: -2px;
        padding: 0;
        background: var(--white);
    }
    .accompaniments-box .form-title {
        font-size: 17px;
    }
    .accompaniments-list,
    .combo-options {
        gap: 10px;
    }
    .cart-row { grid-template-columns: 64px 1fr 72px; }
    .cart-row .btn.small { grid-column: 2 / -1; }
    .check-card {
        grid-template-columns: 18px 28px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 15px 12px;
        min-height: 64px;
        border-color: rgba(95, 11, 13, .08);
    }
    .combo-card {
        grid-template-columns: 28px minmax(0, 1fr) auto;
    }
    .check-card input[type="checkbox"],
    .check-card input[type="radio"] {
        width: 22px;
        height: 22px;
        accent-color: var(--red);
    }
    .check-card > span:not(.extra-qty) {
        font-size: 15px;
        line-height: 1.25;
    }
    .check-card small {
        justify-self: end;
        font-size: 13px;
    }
    .check-card.is-selected {
        box-shadow: inset 4px 0 0 rgba(159, 16, 20, .85);
    }
    .check-card.is-included-choice {
        background: #fff;
    }
    .check-card.is-included-choice::after {
        content: "Incluso";
        grid-column: 3 / 4;
        justify-self: start;
        margin-top: -2px;
        padding: 3px 8px;
        border-radius: 999px;
        background: #edf8ef;
        color: #176b32;
        font-size: 11px;
        font-weight: 900;
    }
    .extra-qty {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 10px;
        margin-top: 2px;
        border-top: 1px dashed rgba(95, 11, 13, .16);
    }
    .extra-qty input {
        width: 76px;
        min-height: 42px;
        font-weight: 900;
    }
    .paid-extras-box {
        margin-top: 14px;
        padding-top: 10px;
    }
    .accompaniments-summary {
        box-shadow: none;
    }
    .product-form > button[type="submit"] {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 8;
        width: calc(100% - 24px);
        min-height: 54px;
        box-shadow: 0 12px 30px rgba(95, 11, 13, .25);
    }
}
