:root {
    --coffee-dark: #3b2419;
    --coffee: #6f4530;
    --coffee-light: #a87550;
    --cream: #f8f4ee;
    --cream-dark: #eee6da;
    --gold: #b58b52;
    --text: #33251e;
    --text-light: #76675e;
    --white: #ffffff;
}

/* ============================= */
/* CARRINHO */
/* ============================= */

.cart-page {
    min-height: 700px;
    padding: 82px 0 110px;
}

.cart-header {
    margin-bottom: 38px;
}

.cart-header h1 {
    color: var(--coffee-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.cart-header p {
    color: var(--text-light);
    margin: 0;
}

.cart-success {
    align-items: center;
    background: #e8f4eb;
    border: 1px solid #c8e3cf;
    border-radius: 12px;
    color: #285d35;
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px 20px;
}

.cart-success-icon {
    align-items: center;
    background: #3d8950;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    font-weight: 700;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    align-items: center;
    background: white;
    border: 1px solid #e8ded2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(59, 36, 25, 0.05);
    display: grid;
    gap: 20px;
    grid-template-columns: 72px minmax(150px, 1fr) auto auto;
    padding: 20px;
}

.cart-product-icon {
    align-items: center;
    background: var(--cream-dark);
    border-radius: 12px;
    display: flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.cart-product h2 {
    color: var(--coffee-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    margin: 0 0 5px;
}

.cart-product span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-product small {
    font-size: 0.8rem;
}

.quantity {
    align-items: center;
    background: var(--cream);
    border: 1px solid #e2d5c7;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    padding: 5px;
}

.quantity form,
.cart-subtotal form {
    margin: 0;
}

.quantity button {
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--coffee);
    cursor: pointer;
    font-size: 1.25rem;
    height: 30px;
    line-height: 1;
    width: 30px;
}

.quantity button:hover {
    background: var(--cream-dark);
}

.quantity strong {
    min-width: 16px;
    text-align: center;
}

.cart-subtotal {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 105px;
}

.cart-subtotal strong {
    color: var(--coffee-dark);
    font-size: 1.1rem;
}

.remove-button,
.clear-cart {
    background: none;
    border: 0;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: underline;
}

.remove-button:hover,
.clear-cart:hover {
    color: #9a4f43;
}

.cart-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.back-products {
    color: var(--coffee);
    font-weight: 700;
    text-decoration: none;
}

.back-products:hover {
    color: var(--gold);
}

.cart-summary {
    background: var(--coffee-dark);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(59, 36, 25, 0.15);
    color: white;
    padding: 30px;
    position: sticky;
    top: 24px;
}

.cart-summary h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.summary-line,
.summary-total {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.summary-line {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.cart-summary hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 22px 0;
}

.summary-total {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.summary-total strong {
    color: #f2d3a2;
    font-size: 1.5rem;
}

.checkout-button {
    background: var(--gold);
    border: 0;
    border-radius: 7px;
    color: white;
    cursor: pointer;
    font-weight: 700;
    padding: 14px 18px;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.checkout-button:hover {
    background: #c39b60;
    transform: translateY(-2px);
}

.empty-cart {
    background: white;
    border: 1px solid #e8ded2;
    border-radius: 14px;
    margin: 25px auto 0;
    max-width: 620px;
    padding: 65px 25px;
    text-align: center;
}

.empty-cart-icon {
    align-items: center;
    background: var(--cream-dark);
    border-radius: 50%;
    display: flex;
    font-size: 3rem;
    height: 90px;
    justify-content: center;
    margin: 0 auto 22px;
    width: 90px;
}

.empty-cart h2 {
    color: var(--coffee-dark);
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: 8px;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 25px;
}


/* ============================= */
/* BASE */
/* ============================= */

html {
    font-size: 16px;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
}


/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar-coffee {
    background: var(--coffee-dark);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1000;
}


.brand {
    color: white !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}


    .brand:hover {
        color: #f2dfc4 !important;
    }


.brand-icon {
    font-size: 1.5rem;
}


.navbar-coffee .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}


    .navbar-coffee .nav-link:hover {
        color: white !important;
        background: rgba(255, 255, 255, 0.1);
    }


.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}


/* ============================= */
/* HERO */
/* ============================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 100deg, rgba(59, 36, 25, 0.98) 0%, rgba(59, 36, 25, 0.92) 45%, rgba(59, 36, 25, 0.72) 100% );
}


    .hero::after {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        right: -150px;
        top: -150px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }


.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    padding: 90px 0;
}


.eyebrow,
.section-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
}


.hero h1 {
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 1;
    font-weight: 500;
    margin-bottom: 28px;
}


.hero p {
    max-width: 590px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    margin-bottom: 35px;
}


.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}


/* ============================= */
/* BUTTONS */
/* ============================= */

.btn {
    border-radius: 5px;
    padding: 12px 24px;
    font-weight: 600;
}


.btn-coffee {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: white;
}


    .btn-coffee:hover {
        background: #9e7643;
        border-color: #9e7643;
        color: white;
    }


.btn-outline-light:hover {
    color: var(--coffee-dark);
    background: white;
}


/* ============================= */
/* ABOUT */
/* ============================= */

.about-section {
    padding: 110px 0;
    background: var(--cream);
}


    .about-section h2,
    .features-section h2,
    .products-page h1 {
        font-family: Georgia, "Times New Roman", serif;
        color: var(--coffee-dark);
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 25px;
    }


    .about-section p {
        color: var(--text-light);
        max-width: 620px;
        margin-bottom: 18px;
    }


.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--coffee);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid var(--coffee);
    padding-bottom: 2px;
}


    .text-link:hover {
        color: var(--gold);
    }


/* ============================= */
/* COFFEE BOX */
/* ============================= */

.coffee-box {
    background: var(--coffee-dark);
    color: white;
    min-height: 350px;
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}


    .coffee-box::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        right: -100px;
        bottom: -120px;
    }


.coffee-symbol {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
}


.coffee-box h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    position: relative;
}


.coffee-box p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}


/* ============================= */
/* FEATURES */
/* ============================= */

.features-section {
    background: white;
    padding: 100px 0;
}


.section-heading {
    max-width: 750px;
    margin: 0 auto 55px;
}


.feature-card {
    height: 100%;
    padding: 40px 32px;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px rgba(59, 36, 25, 0.08);
    }


.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
}


.feature-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--coffee-dark);
    font-size: 1.6rem;
}


.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}


/* ============================= */
/* PRODUTOS */
/* ============================= */

.products-page {
    padding: 90px 0 120px;
    min-height: 700px;
}


.products-header {
    margin-bottom: 40px;
}


    .products-header h1 {
        margin-bottom: 10px;
    }


    .products-header p {
        color: var(--text-light);
        max-width: 600px;
    }


/* ============================= */
/* FILTROS */
/* ============================= */

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}


.filter-button {
    border: 1px solid #d7cabb;
    background: transparent;
    color: var(--coffee-dark);
    border-radius: 100px;
    padding: 9px 22px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}


    .filter-button:hover,
    .filter-button.active {
        background: var(--coffee-dark);
        border-color: var(--coffee-dark);
        color: white;
    }


/* ============================= */
/* PRODUCT CARD */
/* ============================= */

.product-card {
    height: 100%;
    min-height: 270px;
    background: white;
    border: 1px solid #e9e0d5;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(59, 36, 25, 0.1);
    }


.product-icon {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-dark);
    font-size: 3rem;
}


.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}


.product-category {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.availability {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 100px;
}


.available {
    color: #32623d;
    background: #e7f1e9;
}


.unavailable {
    color: #8a4c45;
    background: #f5e7e5;
}


.product-info h2 {
    color: var(--coffee-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    margin-bottom: auto;
    padding: 8px 0 25px;
}


.product-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #eee5dc;
    padding-top: 18px;
}


.price {
    color: var(--coffee-dark);
    font-size: 1.35rem;
    font-weight: 800;
}


.order-text {
    color: var(--text-light);
    font-size: 0.75rem;
    text-align: right;
}


/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
    background: var(--coffee-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 45px 0;
}


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


.footer h3 {
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: 5px;
}


.footer p {
    margin: 0;
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    .cart-page {
        padding: 60px 0 80px;
    }

    .cart-item {
        align-items: start;
        grid-template-columns: 58px 1fr;
        padding: 16px;
    }

    .cart-product-icon {
        font-size: 1.6rem;
        height: 58px;
        width: 58px;
    }

    .cart-product h2 {
        font-size: 1.15rem;
    }

    .quantity {
        grid-column: 2;
        justify-content: center;
        width: max-content;
    }

    .cart-subtotal {
        align-items: flex-start;
        flex-direction: row;
        grid-column: 2;
        justify-content: space-between;
        width: 100%;
    }

    .cart-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        min-height: 580px;
    }


    .hero-content {
        padding: 70px 0;
    }


    .hero h1 {
        font-size: 3.2rem;
    }


    .about-section {
        padding: 75px 0;
    }


        .about-section h2,
        .features-section h2,
        .products-page h1 {
            font-size: 2.4rem;
        }


    .coffee-box {
        margin-top: 35px;
        min-height: 300px;
        padding: 40px;
    }


    .features-section {
        padding: 75px 0;
    }


    .products-page {
        padding: 65px 0 90px;
    }


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