
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fffaf6;
    color: #49352d;
}

header {
    background: #6b4035;
    color: white;
    padding: 22px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

header h1 {
    font-size: 25px;
}

button {
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.cart-button {
    background: white;
    color: #6b4035;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 65px 20px;
    background: #f4e3d8;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.hero p {
    font-size: 17px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 45px auto;
}

/* CATEGORIAS EXPANSÍVEIS */

.category-section {
    margin-bottom: 22px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 12px #00000012;
    overflow: hidden;
}

.category-toggle {
    width: 100%;
    padding: 22px 24px;
    background: white;
    color: #49352d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: background 0.2s;
}

.category-toggle:hover {
    background: #fff5ef;
}

.category-toggle strong {
    display: block;
    font-size: 21px;
    margin-bottom: 6px;
}

.category-toggle small {
    display: block;
    color: #8b756b;
    font-size: 13px;
    font-weight: normal;
}

.category-arrow {
    font-size: 30px;
    color: #8b5545;
    transition: transform 0.3s ease;
}

.category-toggle.active .category-arrow {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding: 0 22px 22px;
}

.category-content.open {
    display: block;
    animation: showCategory 0.25s ease;
}

@keyframes showCategory {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PRODUTOS */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px #00000012;
    border: 1px solid #f0e8e3;
}

.product img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #eadbd2;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    margin-bottom: 8px;
}

.product-info p {
    margin-bottom: 10px;
    color: #705d55;
    line-height: 1.4;
}

.product-info strong {
    display: block;
    margin-bottom: 12px;
    color: #6b4035;
}

.product-info select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* PERSONALIZAÇÃO */

.customization {
    margin: 5px 0 14px;
    padding: 12px;
    background: #fff8f4;
    border: 1px solid #eadbd2;
    border-radius: 8px;
}

.customization > label:first-child {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
}

.theme-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.topper-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.topper-option input {
    width: 17px;
    height: 17px;
    accent-color: #8b5545;
    cursor: pointer;
    flex-shrink: 0;
}

.topper-price {
    display: block;
    margin-top: 7px;
    color: #705d55;
    font-size: 12px;
}

.add-button {
    width: 100%;
    background: #8b5545;
    color: white;
    padding: 12px;
    border-radius: 7px;
}

.add-button:hover {
    background: #6b4035;
}

/* CARRINHO LATERAL */

.overlay {
    position: fixed;
    inset: 0;
    background: #00000070;
    z-index: 1000;
    display: none;
}

.overlay.show {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: white;
    z-index: 1001;
    padding: 22px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer.show {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.close-button {
    background: none;
    font-size: 27px;
    color: #49352d;
}

.cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.cart-item h4 {
    margin-bottom: 6px;
}

.cart-item p {
    margin: 5px 0;
    color: #705d55;
    line-height: 1.4;
}

.remove-button {
    background: #f8e5e1;
    color: #9b352b;
    padding: 7px 10px;
    border-radius: 5px;
    margin-top: 7px;
}

.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 18px;
    padding-bottom: env(safe-area-inset-bottom);
    flex-shrink: 0;
    background: white;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-button {
    width: 100%;
    background: #287c49;
    color: white;
    padding: 14px;
    border-radius: 7px;
}

.empty-cart {
    color: #777;
    text-align: center;
    margin-top: 30px;
}

/* FORMULÁRIO */

.order-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px #00000010;
    margin-bottom: 50px;
    margin-top: 55px;
}

.order-section h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 15px;
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: #705d55;
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.send-button {
    width: 100%;
    background: #287c49;
    color: white;
    padding: 15px;
    border-radius: 7px;
    font-weight: bold;
}

.notice {
    background: #f4e3d8;
    padding: 13px;
    border-radius: 7px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* RODAPÉ */

footer {
    text-align: center;
    background: #6b4035;
    color: white;
    padding: 25px;
}

/* RESPONSIVIDADE */

@media (max-width: 600px) {
    header {
        padding: 18px 4%;
    }

    header h1 {
        font-size: 19px;
    }

    .cart-button {
        padding: 10px;
        font-size: 13px;
    }

    .hero {
        padding: 45px 18px;
    }

    .hero h2 {
        font-size: 25px;
    }

    .hero p {
        font-size: 15px;
    }

    .container {
        width: 92%;
        margin: 30px auto;
    }

    .category-toggle {
        padding: 18px;
    }

    .category-toggle strong {
        font-size: 18px;
    }

    .category-content {
        padding: 0 14px 16px;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .drawer {
        width: 100%;
        max-width: none;
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .drawer-header {
        margin-bottom: 12px;
    }

    .cart-footer {
        padding-top: 12px;
    }

    .order-section {
        padding: 18px;
    }
}
.dough-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.dough-option input {
    margin: 0;
}

.topper-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.customization > p {
    margin-top: 18px;
    margin-bottom: 12px;
}