/* ============================================================
   TATI LANCHES — LAYOUT UPGRADE
   ============================================================ */

:root {
    --navy: #073b6b;
    --navy-dark: #052d52;
    --yellow: #fdbb00;
    --yellow-light: #fff3bf;
    --red: #e4493d;
    --green: #2fb765;
    --cream: #fff6df;
    --white: #ffffff;
    --ink: #12223d;
    --muted: #6f675f;
    --line: #e8ded2;
    --shadow: 0 18px 45px rgba(44, 31, 20, .12);
    --shadow-hover: 0 28px 70px rgba(44, 31, 20, .18);
    --font-body: 'DM Sans', sans-serif;
    --font-title: 'Fraunces', serif;
    --font-script: 'Pacifico', cursive;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
}

body.drawer-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    box-shadow: 0 8px 30px rgba(7, 59, 107, .22);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-avatar {
    width: 74px;
    height: 74px;
    padding: 4px;
    overflow: hidden;
    border: 4px solid var(--yellow);
    border-radius: 50%;
    background: white;
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

.brand-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    color: white;
    font-family: var(--font-script);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.brand-copy small {
    margin-top: 8px;
    color: var(--yellow);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-link,
.cart-trigger {
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

.panel-link {
    color: rgba(255,255,255,.84);
}

.cart-trigger {
    border: 0;
    background: var(--yellow);
    color: var(--navy-dark);
    box-shadow: 0 12px 28px rgba(253,187,0,.25);
}

.cart-trigger b {
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--red);
    color: white;
    font-size: .7rem;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 54px;
    background:
        radial-gradient(circle at 85% 15%, rgba(253,187,0,.25), transparent 24%),
        linear-gradient(180deg, #fff1cf, #fff8e9);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: center;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
}

.shape-red {
    width: 290px;
    height: 290px;
    left: -170px;
    bottom: -120px;
    background: var(--red);
}

.shape-blue {
    width: 420px;
    height: 420px;
    right: -210px;
    bottom: -260px;
    background: var(--navy);
}

.shape-yellow {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -110px;
    background: var(--yellow);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero h1 {
    min-height: 190px;
    margin: 0 0 18px;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: clamp(3.4rem, 6.8vw, 6.4rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.hero h1 span {
    display: inline-block;
    transition: opacity .25s ease, transform .25s ease;
}

.hero h1 span.out {
    opacity: 0;
    transform: translateY(12px);
}

.hero p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    font-weight: 800;
    transition: .2s ease;
}

.btn-primary {
    background: var(--navy);
    color: white;
    box-shadow: 0 14px 30px rgba(7,59,107,.24);
}

.btn-secondary {
    border: 1px solid rgba(7,59,107,.18);
    background: white;
    color: var(--navy);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

.hero-logo-card {
    position: relative;
    z-index: 2;
    padding: 22px;
    border-radius: 28px;
    background: var(--navy);
    color: white;
    text-align: center;
    box-shadow: 0 24px 60px rgba(7,59,107,.28);
}

.hero-logo-card img {
    width: 220px;
    height: 220px;
    margin: 0 auto 18px;
    display: block;
    border: 6px solid var(--yellow);
    border-radius: 50%;
    object-fit: cover;
}

.hero-logo-card span {
    display: block;
    color: var(--yellow);
    font-family: var(--font-script);
    font-size: 1.3rem;
}

.hero-logo-card strong {
    margin-top: 8px;
    display: block;
    font-family: var(--font-title);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* CATEGORIAS */
.category-section {
    padding: 22px 0;
    background: var(--cream);
}

.category-scroll {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-chip {
    min-height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(44,31,20,.06);
}

.category-chip.active,
.category-chip:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

/* MENU */
.menu-section {
    padding: 30px 0 70px;
    background: var(--cream);
}

.menu-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-kicker {
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.menu-heading h2 {
    margin: 7px 0 5px;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.menu-heading p {
    margin: 0;
    color: var(--muted);
}

.search-box {
    width: min(100%, 320px);
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 30px rgba(44,31,20,.08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover {
    transform: translateY(-9px) scale(1.015);
    box-shadow: var(--shadow-hover);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f3eadf;
}

.product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.07);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--navy);
    font-size: .68rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.product-content {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-category {
    color: var(--red);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-content h3 {
    margin: 8px 0;
    color: var(--navy);
    font-family: var(--font-title);
    font-size: 1.42rem;
    line-height: 1.08;
}

.product-content p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.5;
    flex: 1;
}

.product-footer {
    padding-top: 15px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
}

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

.product-price small {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .62rem;
}

.product-price strong {
    color: #aa211c;
    font-family: var(--font-title);
    font-size: 1.32rem;
}

.add-button {
    min-height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: white;
    font-size: .74rem;
    font-weight: 800;
}

.add-button:hover {
    background: var(--navy-dark);
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state.hidden {
    display: none;
}

/* BENEFÍCIOS */
.benefits-section {
    padding: 0 0 30px;
    background: var(--cream);
}

.benefits-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.benefits-grid article {
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits-grid article + article {
    border-left: 1px solid var(--line);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: white;
    font-size: 1.25rem;
}

.benefit-icon.red { background: var(--red); }
.benefit-icon.blue { background: var(--navy); }
.benefit-icon.yellow { background: var(--yellow); color: var(--navy); }
.benefit-icon.green { background: var(--green); }

.benefits-grid article > div {
    display: flex;
    flex-direction: column;
}

.benefits-grid strong {
    font-size: .86rem;
}

.benefits-grid small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .74rem;
}

/* FOOTER */
.site-footer {
    padding: 24px 0;
    background: var(--navy);
    color: white;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-whatsapp > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--green);
    font-size: 1.3rem;
}

.footer-whatsapp span {
    display: flex;
    flex-direction: column;
}

.footer-whatsapp small {
    font-size: .67rem;
    text-transform: uppercase;
}

.footer-whatsapp strong {
    margin-top: 2px;
    font-size: 1.1rem;
}

.footer-message {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--yellow);
}

.footer-message strong {
    font-family: var(--font-script);
    font-size: 1.2rem;
    font-weight: 400;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social span {
    font-size: .72rem;
    text-transform: uppercase;
}

.footer-social a {
    font-size: 1.2rem;
}

/* CARRINHO */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(7, 23, 39, .56);
    opacity: 0;
    visibility: hidden;
    transition: .22s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    width: min(100%, 460px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: white;
    box-shadow: -20px 0 60px rgba(7,59,107,.22);
    transform: translateX(100%);
    transition: transform .25s ease;
}

.cart-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: white;
}

.drawer-header span {
    color: var(--yellow);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.drawer-header h2 {
    margin: 4px 0 0;
    font-family: var(--font-title);
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: white;
}

.drawer-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.cart-empty {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.cart-empty.hidden {
    display: none;
}

.cart-empty i {
    color: var(--yellow);
    font-size: 2.2rem;
}

.cart-empty h3 {
    margin: 12px 0 5px;
    font-family: var(--font-title);
}

.cart-empty p {
    margin: 0;
    color: var(--muted);
}

.cart-item {
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.cart-item h3 {
    margin: 0 0 5px;
    font-size: .92rem;
}

.cart-item-price {
    color: var(--red);
    font-size: .8rem;
    font-weight: 700;
}

.quantity-control {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
}

.remove-item {
    border: 0;
    background: transparent;
    color: var(--red);
}

.drawer-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--line);
    background: #fffdf8;
}

.customer-field {
    margin-bottom: 13px;
    display: block;
}

.customer-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.customer-field input,
.customer-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    resize: vertical;
}

.cart-summary {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
}

.cart-summary strong {
    color: var(--red);
    font-family: var(--font-title);
    font-size: 1.45rem;
}

.whatsapp-checkout {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;

    border: 0;
    border-radius: 12px;

    background: var(--green);
    color: #fff;

    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;

    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;

    transition: background-color .2s ease, transform .15s ease;
}

.whatsapp-checkout:hover:not(:disabled) {
    background: #259c55;
}

.whatsapp-checkout:active:not(:disabled) {
    transform: scale(.98);
}

.whatsapp-checkout:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 300;

    padding: 12px 16px;

    display: flex;
    align-items: center;
    gap: 9px;

    border-radius: 999px;

    background: var(--navy);
    color: white;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 20px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    pointer-events: none;

    transform: translate(-50%, 0);
}
/* RESPONSIVO */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo-card {
        width: min(100%, 480px);
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .benefits-grid article:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1240px);
    }

    .brand-avatar {
        width: 56px;
        height: 56px;
    }

    .brand-copy strong {
        font-size: 1.45rem;
    }

    .brand-copy small,
    .panel-link span,
    .cart-trigger span {
        display: none;
    }

    .panel-link,
    .cart-trigger {
        width: 44px;
        min-height: 44px;
        padding: 0;
        justify-content: center;
    }

    .hero {
        padding-top: 48px;
    }

    .hero h1 {
        min-height: 150px;
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .category-scroll {
        justify-content: flex-start;
    }

    .menu-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 250px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid article,
    .benefits-grid article:nth-child(3) {
        padding: 15px 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .benefits-grid article:first-child {
        border-top: 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
