@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('header.css');
@import url('home.css');
@import url('menu.css');
@import url('testimonials.css');
@import url('address.css');
@import url('footer.css');

/* =========================
        ROOT COLORS
========================= */
:root {
    --color-primary-1: #000000;
    --color-primary-2: #ffe8b4;
    --color-primary-3: #f8d477;
    --color-primary-4: #ffe100;
    --color-primary-5: #CBB78C;
    --color-primary-6: #E4D2AA;

    --color-neutral-0: #fff;
    --color-neutral-1: #1d1d1d;
}

/* =========================
        RESET
========================= */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-primary-1);
}

section {
    padding: 28px 8%;
}

/* =========================
        BUTTONS
========================= */
.btn-default {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-5);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color .3s ease;
}

.btn-default:hover {
    background-color: var(--color-primary-3);
}

/* =========================
        SOCIAL BUTTONS
========================= */
.social-media-buttons {
    display: flex;
    gap: 18px;
}

.social-media-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 40px;
    background-color: var(--color-neutral-0);
    font-size: 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-neutral-1);
    box-shadow: 0px 0px 12px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow .3s ease;
}

.social-media-buttons a:hover {
    box-shadow: 0px 0px 12px 8px rgba(0, 0, 0, 0.1);
}

/* =========================
        TITLES
========================= */
.section-title {
    color: var(--color-primary-6);
    font-size: 1.563rem;
}

.section-subtitle {
    font-size: 2.1875rem;
}

/* =========================
        BACKGROUND VIDEO
========================= */
.caixa-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.caixa-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1.1);
}

.mascara {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* =========================
        CART SIDEBAR
========================= */
#cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 999;
}

#cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: calc(100% - 40px);
    height: 100%;
    background: var(--color-neutral-0);
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: right .3s ease;
    z-index: 1000;
}

#cart[aria-hidden="false"] {
    right: 0;
}

#cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* HEADER */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LISTA DE ITENS */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.02);
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-actions {
    display:flex;
    align-items:center;
    gap:8px;
}

.qty-btn {
    border: none;
    background: transparent;
    font-weight: 700;
    padding: 6px 8px;
    cursor: pointer;
}

.remove-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #d23f3f;
    font-size: 0.95rem;
}

/* RESUMO */
.cart-summary {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display:flex;
    justify-content: space-between;
    align-items:center;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.05rem;
    margin-top: 6px;
}

/* FORM */
#checkout-form {
    display:flex;
    flex-direction: column;
    gap:8px;
    margin-top: 6px;
}

#checkout-form input[type="text"],
#checkout-form input[type="tel"] {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    outline: none;
}

.payment-methods {
    display:flex;
    gap:12px;
    margin: 6px 0;
}

.pix-info {
    font-size: 0.85rem;
    padding: 8px;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

/* =========================
        RESPONSIVO
========================= */

/* 📱 MOBILE */
@media (max-width: 600px) {
    section {
        padding: 22px 6%;
    }

    .section-subtitle {
        font-size: 1.7rem;
    }

    .social-media-buttons a {
        width: 40px;
        height: 36px;
        font-size: 1rem;
    }

    #cart {
        width: 100%;
        right: -100%;
    }

    #cart[aria-hidden="false"] {
        right: 0;
    }
}

/* 🟧 TABLET */
@media (min-width: 601px) and (max-width: 1024px) {
    section {
        padding: 26px 7%;
    }

    .section-subtitle {
        font-size: 2rem;
    }

    #cart {
        width: 320px;
    }
}

/* 🖥 DESKTOP GRANDE */
@media (min-width: 1400px) {
    section {
        padding: 40px 12%;
    }

    .section-subtitle {
        font-size: 2.4rem;
    }
}
