/* ==================== FONTES ==================== */
:root {
    --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ==================== RESET ==================== */
html, body {
    margin: 0;
    padding: 0;
}
html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font: 16px/24px var(--font-body);
    background: #fff;
    color: #0f172a;
}

h1, h2, h3, h4, h5, h6,
.public-header__brand,
.landing-intro__title {
    font-family: var(--font-heading);
}

/* ==================== HEADER PÚBLICO ==================== */
.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.public-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-header__brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
}

.public-header__logo {
    height: 34px;
    width: auto;
    display: block;
}

@media (max-width: 480px) {
    .public-header__logo { height: 28px; }
}

.public-header__hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #0f172a;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.public-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .public-header__hamburger {
        display: block;
    }

    .public-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        z-index: 200;
    }

    .public-header__nav--open {
        display: flex;
    }

    .public-header__nav .public-header__link {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .public-header__nav .public-header__cart-btn {
        margin: 8px 24px 12px;
        align-self: flex-start;
    }
}

.public-header__link {
    padding: 8px 16px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.public-header__link:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.public-header__link--active {
    color: #2563eb;
    font-weight: 600;
}

.public-header__btn {
    padding: 8px 20px;
    background: #0f172a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
    margin-left: 8px;
}

.public-header__btn:hover {
    background: #1e293b;
}

/* ==================== MAIN ==================== */
.public-main {
    flex: 1;
}

/* ==================== FOOTER PÚBLICO ==================== */
.public-footer {
    background: #f8fafc;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 56px;
}

.public-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.public-footer__brand strong {
    font-size: 1.2rem;
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
}

.public-footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
}

.public-footer__links h4 {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.public-footer__links a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.15s;
}

.public-footer__links a:hover {
    color: #0062fc;
}

/* Atendimento (contato) */
.public-footer__contact h4 {
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.public-footer__contact-item {
    margin-bottom: 14px;
    font-size: 0.88rem;
    line-height: 1.55;
}

.public-footer__contact-item:last-child {
    margin-bottom: 0;
}

.public-footer__contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.public-footer__contact-item span {
    color: #475569;
}

.public-footer__bottom {
    border-top: 1px solid #e2e8f0;
    text-align: center;
    padding: 20px 24px;
    font-size: 0.8rem;
    color: #64748b;
}

/* ==================== BOTÕES FLUTUANTES ==================== */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9000;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.floating-btn--whatsapp {
    background: #25d366;
}

.floating-btn--email {
    background: #0062fc;
}

/* ==================== SIDEBAR CARRINHO ==================== */
.cart-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.cart-sidebar--open {
    display: flex;
    justify-content: flex-end;
}

.cart-sidebar__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.cart-sidebar__panel {
    position: relative;
    width: 400px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    animation: cartSlideIn 0.25s ease-out;
    z-index: 1;
}

@keyframes cartSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.cart-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.cart-sidebar__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cart-sidebar__close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.cart-sidebar__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.cart-sidebar__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-sidebar__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    color: #94a3b8;
    text-align: center;
}

.cart-sidebar__empty p {
    font-size: 0.95rem;
    margin: 0;
}

/* Item do carrinho */
.cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.3;
}

.cart-item__variation {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.cart-item__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.cart-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item__qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.cart-item__qty-btn:hover {
    background: #e2e8f0;
}

.cart-item__qty-value {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.cart-item__remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.cart-item__remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Footer do carrinho */
.cart-sidebar__footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #fafbfc;
}

.cart-sidebar__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.cart-sidebar__total-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.cart-sidebar__checkout {
    width: 100%;
    padding: 14px 20px;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #15803d;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.cart-sidebar__checkout:hover {
    background: #15803d;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

/* Header cart button */
.public-header__cart-btn {
    position: relative;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    margin-left: 8px;
}

.public-header__cart-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.public-header__cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

/* Toast de notificação */
.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 10000;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ==================== MODAL TELEFONE ==================== */
.phone-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.phone-modal--open {
    display: flex;
}

.phone-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.phone-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: phoneModalIn 0.25s ease-out;
}

@keyframes phoneModalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.phone-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.phone-modal__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.phone-modal__icon {
    margin-bottom: 16px;
}

.phone-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.phone-modal__desc {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0 0 28px;
    line-height: 1.55;
}

.phone-modal__form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phone-modal__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-align: left;
    margin-bottom: 2px;
}

.phone-modal__input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.phone-modal__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #fff;
}

.phone-modal__input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.phone-modal__error {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    text-align: left;
    font-weight: 500;
    margin-bottom: 4px;
}

.phone-modal__submit {
    margin-top: 12px;
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid #1d4ed8;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.phone-modal__submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.phone-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.phone-modal__input--code {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    padding: 16px;
}

.phone-modal__link-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    margin-top: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.phone-modal__link-btn:hover {
    color: #1d4ed8;
}

/* PIX QR Code */
.pix-modal__qr-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.pix-modal__qr {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    display: inline-block;
}

.pix-modal__qr img,
.pix-modal__qr canvas {
    display: block;
}

.pix-modal__amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin: 8px 0;
    letter-spacing: -0.02em;
}

.pix-modal__hint {
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
    margin: 0 0 16px;
}

.pix-modal__paid-btn {
    background: #16a34a !important;
    border-color: #15803d !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25) !important;
}

.pix-modal__paid-btn:hover {
    background: #15803d !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
    .public-header__inner { padding: 0 16px; }
    .public-header__link { padding: 8px 10px; font-size: 0.85rem; }
    .public-header__btn { padding: 8px 14px; font-size: 0.8rem; }

    .public-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 16px 32px;
    }

    .phone-modal__dialog {
        padding: 32px 24px 28px;
        width: 94%;
    }

    .cart-sidebar__panel {
        width: 100%;
        max-width: 100vw;
    }

    .cart-toast {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .phone-modal__dialog {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    .phone-modal__title {
        font-size: 1.15rem;
    }
}
