:root {
    --bg: #ffffff;
    --card: #f8f8f8;
    --gold: #FFD700;
    --gold-dark: #ccac00;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

header {
    background: var(--bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-img {
    width: 70px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, .2);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: .3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

#hero {
    text-align: center;
    padding: 7rem 1rem 4rem;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(248, 248, 248, .95)), url('https://i.ibb.co/DfMRR5hz/20251031-173449-1.jpg') center/cover;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
}

#hero p {
    font-size: 1.3rem;
    color: var(--text-light);
}

#hero img {
    max-width: 100%;
    border-radius: 20px;
    margin: 1.5rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
}

.btn {
    background: var(--gold);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, .3);
    transition: .3s;
}

.btn:hover {
    background: var(--gold-dark);
    transform: translateY(-4px);
}

#search-section {
    padding: 1.5rem;
    background: var(--card);
    text-align: center;
}

#menu-search {
    width: 90%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid var(--gold);
    border-radius: 50px;
    background: #ffffff;
    color: var(--text);
    font-size: 1.1rem;
}

#menu-search:focus {
    outline: none;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, .2);
}

section {
    padding: 3rem 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gold);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.menu-item {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    transition: .4s;
    text-align: center;
}

.menu-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 215, 0, .2);
}

.menu-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    cursor: zoom-in;
    transition: .4s;
}

.menu-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.menu-item h3 {
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--gold);
}

.menu-item p {
    padding: 0 1rem 1rem;
    color: var(--text-light);
}

.size-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 8px;
    margin: 10px 0;
}

.size-btn {
    min-width: 110px;
    padding: 14px 16px;
    background: #e8e8e8;
    color: var(--text);
    border: 2px solid #d0d0d0;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}

.size-btn:hover {
    background: #d8d8d8;
    border-color: var(--gold);
}

.size-btn.selected {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, .4);
}

.add-to-cart {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: #000;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .3s;
}

.add-to-cart:hover {
    background: var(--gold-dark);
}

#cart-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 68px;
    height: 68px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(255, 215, 0, .4);
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

#cart-toggle:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    background: #ffffff;
    z-index: 1000;
    transition: right .35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    padding: 1rem 1.5rem;
    background: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text);
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.cart-items:empty::after {
    content: "Carrinho vazio";
    color: #999;
    display: block;
    text-align: center;
    padding: 4rem;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    gap: 10px;
}

.cart-item strong {
    color: var(--gold);
}

.cart-item .qty button {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
}

.cart-scroll-area {
    padding: 1rem;
    background: #f8f8f8;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    max-height: 50vh;
}

.cart-footer-fixed {
    padding: 1rem;
    background: #f8f8f8;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

#checkout-btn {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1.35rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

#checkout-btn:hover {
    background: var(--gold-dark);
}

.delivery-options,
.payment-options {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.delivery-options label,
.payment-options label {
    padding: 10px 14px;
    background: #e8e8e8;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: .3s;
    flex: 1;
    text-align: center;
}

.delivery-options label.active,
.payment-options label.active,
.delivery-options label:hover,
.payment-options label:hover {
    background: var(--gold);
    color: #000;
}

.pix-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-pix-btn {
    background: #ffffff;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.copy-pix-btn:hover {
    background: var(--gold);
    color: #000;
}

#address-fields input,
.troco-field input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    color: var(--text);
    font-size: 1rem;
}

#troco-field {
    display: none;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: bold;
    margin: 15px 0;
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .9);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

#cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}

.image-modal.show {
    display: flex;
}

#modal-image {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 16px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    transition: .4s;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

footer {
    background: #f8f8f8;
    padding: 3rem 1rem;
    text-align: center;
}

.social-links a,
.share-btn {
    background: var(--gold);
    color: #000;
    padding: .8rem 1.8rem;
    margin: .5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: .3s;
}

.social-links a:hover,
.share-btn:hover {
    background: var(--gold-dark);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        display: none;
        padding: 1rem 0;
    }
    .nav-links.active {
        display: flex;
    }
    .cart-modal {
        max-width: none;
    }
}

@media (max-height: 620px) {
    .cart-scroll-area {
        max-height: 40vh;
    }
}
