@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    width: 100%;
    height: 100vh;
    background-color: #f4f4f4;
    overflow: hidden;
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: #f4f4f4;
    overflow: hidden;
}

/* ==========================================================================
   1. DESKTOP PADRÃO
   ========================================================================== */
.sidebar {
    width: 22%;
    min-width: 210px;
    max-width: 260px;
    background-color: #9c7558;
    height: 100vh;
    padding: 2.2vw 1.6vw;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    margin-bottom: 2vw;
    padding-left: 0.4vw;
}

.logo-img {
    width: 2vw;
    min-width: 24px;
    max-width: 32px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: clamp(15px, 1.4vw, 22px);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.4vw;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    padding: 0.7vw 0.9vw;
    border-radius: 20px;
    font-size: clamp(12px, 1vw, 15px);
    color: #2c2c2c;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.menu-item.active {
    background-color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.menu-icon {
    width: 1.3vw;
    min-width: 16px;
    max-width: 20px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    background-color: #f4f4f4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.back-btn {
    position: absolute;
    top: 50px;
    left: 70px;
    font-size: 36px;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    line-height: 1;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.product-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cup-image-container {
    width: 260px;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.cup-image {
    width: 240px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(-8px 12px 14px rgba(0, 0, 0, 0.25));
}

.title-section {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.product-title {
    font-size: 30px;
    font-weight: 700;
    color: #5d3b23;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.product-size {
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    color: #e09f67;
    margin-top: 8px;
    margin-left: 135px;
}

/* Coluna Direita (Card + Botão Fixo debaixo dele) */
.right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.info-card {
    background-color: #e8e6e5;
    width: 440px;
    padding: 35px 30px 45px 30px;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.headline {
    font-size: 21px;
    font-style: italic;
    font-weight: 500;
    color: #111111;
    line-height: 1.35;
    margin-bottom: 30px;
}

.ingredients {
    font-size: 13px;
    font-style: italic;
    color: #e09f67;
    line-height: 1.45;
    margin-bottom: 30px;
}

.allergens {
    font-size: 11px;
    font-weight: 600;
    color: #656565;
    letter-spacing: 2.2px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.reference-values {
    font-size: 11px;
    font-weight: 500;
    color: #7d7d7d;
    letter-spacing: 2px;
    text-transform: lowercase;
}

.button-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.btn-add-cart {
    display: inline-block;
    background-color: #b59b87;
    color: #000000;
    text-decoration: none;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 13px;
    border-radius: 18px;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.8px;
    transition: background-color 0.2s;
}

.btn-add-cart:hover {
    background-color: #9c7558;
    color: #ffffff;
}

/* ==========================================================================
   2. MOBILE (< 768px) - IGUAL AO PADRÃO DAS OUTRAS TELAS
   ========================================================================== */
@media (max-width: 768px) {
    .sidebar {
        width: 120px;
        min-width: 120px;
        padding: 15px 0;
        gap: 20px;
        align-items: flex-start;
    }

    .logo {
        padding: 0 10px;
        margin-bottom: 0;
        gap: 6px;
    }

    .logo-img {
        width: 18px;
        min-width: 18px;
    }

    .logo-text {
        font-size: 11px;
    }

    .menu {
        padding: 0 6px;
        gap: 6px;
        width: 100%;
    }

    .menu-item {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 8px;
        gap: 8px;
        border-radius: 10px;
    }

    .menu-item.active {
        border-radius: 12px;
    }

    .menu-icon {
        width: 16px;
        min-width: 16px;
    }

    .menu-item span {
        display: inline-block;
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Área Principal Mobile */
    .main-content {
        padding: 15px 12px 30px 12px;
        overflow-y: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .back-btn {
        position: relative;
        top: auto;
        left: auto;
        font-size: 24px;
        margin-bottom: 10px;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .product-column {
        align-items: center;
        width: 100%;
    }

    .cup-image-container {
        width: 100%;
        margin-bottom: 10px;
    }

    .cup-image {
        width: 130px;
    }

    .title-section {
        padding-left: 0;
        text-align: center;
    }

    .product-title {
        font-size: 18px;
    }

    .product-size {
        font-size: 14px;
        margin-left: 0;
        margin-top: 2px;
    }

    /* Coluna direita esticada dentro da área do conteúdo */
    .right-column {
        width: 100%;
        align-items: center;
        gap: 15px;
    }

    .info-card {
        width: 100%;
        padding: 16px 12px;
        border-radius: 10px;
    }

    .headline {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .ingredients {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .allergens {
        font-size: 9px;
        margin-bottom: 12px;
    }

    .reference-values {
        font-size: 9px;
    }

    /* Botão posicionado e contido no mobile */
    .button-footer {
        width: 100%;
        justify-content: center;
    }

    .btn-add-cart {
        width: 100%;
        padding: 12px;
        font-size: 11px;
        border-radius: 12px;
    }
}