:root {
    --primary-color: #FF4D4D;
    --secondary-color: #333333;
    --background-color: #F5F5F5;
    --text-color: #333333;
    --border-color: #E0E0E0;
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    padding-bottom: 0;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    color: var(--secondary-color);
    transition: background-color 0.2s;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    margin-bottom: 0;
}

.restaurant-info {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: pulse-green 2s infinite;
    font-weight: 600;
    width: fit-content;
}

.status-icon {
    color: #fff !important;
    font-size: 1rem !important;
    animation: blink 1.5s infinite;
}

.status-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.status-time {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

.delivery-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.delivery-options button {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
}

.delivery-options button.active {
    background-color: var(--primary-color);
    color: white;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.delivery-time {
    color: #666;
    line-height: 1.5;
}

.loyalty-program {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.loyalty-program h2 {
    margin-bottom: 0.5rem;
}

.loyalty-program .details-btn {
    margin-top: 1rem;
    color: var(--primary-color);
}

.menu {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.menu h2 {
    margin-bottom: 1.5rem;
}

.menu-items {
    display: grid;
    gap: 1rem;
}

.menu-item {
    border: none;
    border-radius: 16px;
    padding: 0;
    position: relative;
    background-color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px 16px 0 0;
}

.menu-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.08);
}

.menu-item-content {
    padding: 1.5rem;
    position: relative;
}

.menu-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
}

.menu-item p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 0;
}

.price span:first-child {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

.price .value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.price .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
}

.add-btn {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff3333 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-btn:hover::before {
    left: 100%;
}

.add-btn:hover {
    background: linear-gradient(135deg, #ff3333 0%, #e60000 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

.add-btn:active {
    transform: scale(0.95);
}

.add-btn .material-icons {
    font-size: 22px;
    font-weight: bold;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Efeito de pulso para itens em destaque */
.menu-item .badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.cart-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-header-content {
    flex: 1;
}

.minimize-cart {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s ease;
}

.minimize-cart .material-icons {
    font-size: 24px;
}

.minimize-cart:hover {
    color: var(--primary-color);
    background: none;
}

/* Estado minimizado do carrinho */
.cart-sidebar.minimized {
    transform: translateY(calc(100% - 60px));
}

.cart-sidebar.minimized .minimize-cart {
    transform: rotate(180deg);
}

.cart-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cart-items-count {
    color: #666;
    font-size: 0.9rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
    height: 100%;
    text-align: center;
}

.cart-empty .material-icons {
    font-size: 48px;
    color: #999;
    margin-bottom: 1rem;
}

.empty-cart-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-summary {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    background-color: white;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.cart-total {
    margin-bottom: 1rem;
}

.cart-total > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cart-total .total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.checkout-btn:not(:disabled):hover {
    background-color: #ff3333;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Estilos para itens no carrinho */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 0.25rem;
}

.quantity-control button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 4px;
    color: var(--primary-color);
    padding: 0;
}

.quantity-control span {
    min-width: 24px;
    text-align: center;
}

.remove-item {
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        height: auto;
        max-height: 85vh;
        position: fixed;
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        border-radius: 16px 16px 0 0;
        transform: translateY(0);
        transition: transform 0.3s ease;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1000;
    }

    .cart-header {
        border-radius: 16px 16px 0 0;
        padding: 1rem;
        background-color: white;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .cart-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #E0E0E0;
        border-radius: 2px;
    }

    .cart-items {
        max-height: calc(60vh - 180px);
        overflow-y: auto;
        padding: 0.5rem 1rem;
        -webkit-overflow-scrolling: touch;
        background-color: white;
    }

    .cart-item {
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-title {
        font-size: 0.95rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    .cart-empty {
        padding: 2rem 1rem;
        height: auto;
        min-height: 200px;
    }

    .cart-summary {
        padding: 1rem;
        background-color: white;
        border-top: 1px solid var(--border-color);
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    .cart-total {
        margin-bottom: 0.75rem;
    }

    .cart-total > div {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }

    .cart-total .total {
        font-size: 1rem;
        margin-top: 0.4rem;
        padding-top: 0.4rem;
    }

    .checkout-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .quantity-control {
        height: 32px;
    }

    .quantity-control button {
        width: 28px;
        height: 28px;
    }

    .quantity-control .material-icons {
        font-size: 18px;
    }

    .remove-item {
        font-size: 0.85rem;
    }

    /* Ajuste para quando o carrinho está minimizado */
    .cart-sidebar.minimized {
        transform: translateY(calc(100% - 64px));
    }

    .cart-sidebar.minimized .cart-header {
        padding-bottom: 0.75rem;
    }

    /* Overlay escuro quando o carrinho está aberto */
    .cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .cart-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    /* Ajuste do conteúdo principal quando o carrinho está aberto */
    .main-content {
        padding-bottom: 80px;
    }

    .minimize-cart {
        display: block;
    }

    .cart-header {
        border-radius: 16px 16px 0 0;
        padding: 0.75rem 1rem;
        cursor: pointer;
    }

    .cart-items {
        max-height: 40vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-empty {
        padding: 2rem 1rem;
    }

    /* Adiciona uma área de arraste para o carrinho */
    .cart-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background-color: #E0E0E0;
        border-radius: 2px;
    }

    .main-content {
        margin-bottom: 150px;
        padding: 0 0.5rem;
    }

    .nav-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .banner {
        height: 150px;
    }

    .banner img {
        height: 150px;
    }

    .restaurant-info {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .delivery-options {
        flex-wrap: wrap;
    }

    .delivery-options button {
        flex: 1;
        min-width: 120px;
        text-align: center;
        justify-content: center;
    }

    .menu {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .menu-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .menu-item {
        margin: 0;
    }

    .menu-item-image {
        height: 200px;
    }

    .menu-item h3 {
        font-size: 1.1rem;
        padding: 1rem 1rem 0;
    }

    .menu-item p {
        padding: 0 1rem;
        font-size: 0.9rem;
    }

    .price {
        padding: 0 1rem 1rem;
    }

    .loyalty-program {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .cart-total {
        margin-top: 1rem;
    }

    .checkout-btn {
        width: 100%;
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 360px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .quantity-control {
        flex: 1;
        justify-content: center;
        margin-right: 1rem;
    }

    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-actions button {
        width: 100%;
        justify-content: center;
    }

    .menu-item-image {
        height: 180px;
    }

    .price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .add-btn {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Ajustes para telas muito altas */
@media (min-height: 700px) {
    .cart-items {
        max-height: calc(70vh - 180px);
    }
}

@media (min-width: 768px) {
    .menu-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .menu-item-image {
        height: 237px;
    }
}

.banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}

/* Modal Promocional */
.promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.promo-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.promo-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.promo-modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.promo-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.promo-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff3333 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.promo-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.promo-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.promo-emoji {
    font-size: 2rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.promo-body {
    padding: 2rem;
}

.promo-highlight {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: slideShine 2s infinite;
}

@keyframes slideShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.promo-price {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.promo-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.promo-description {
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

.promo-features {
    margin-bottom: 2rem;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.promo-feature .material-icons {
    color: #4CAF50;
    font-size: 24px;
}

.promo-cta {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff3333 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.6);
}

.promo-cta:active {
    transform: translateY(0);
}

.promo-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.free-delivery {
    color: #4CAF50 !important;
    font-weight: 600;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .promo-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .promo-header {
        padding: 1.5rem;
    }

    .promo-header h2 {
        font-size: 1.5rem;
    }

    .promo-body {
        padding: 1.5rem;
    }

    .promo-price {
        font-size: 2.5rem;
    }

    .promo-text {
        font-size: 1rem;
    }

    .promo-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}



.total-line:last-child {
    margin-bottom: 0;
}

.final-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

.finish-order-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff3333 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.finish-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

.finish-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile adjustments for checkout */
@media (max-width: 768px) {

}

/* Improved Menu Cards Styles */
.menu-item {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    gap: 0.5rem;
}

.menu-item:hover .image-overlay {
    opacity: 1;
}

.image-overlay .material-icons {
    font-size: 2rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.item-header h3 {
    margin: 0;
    flex: 1;
}

.item-header .badge {
    position: static;
    margin-left: 1rem;
    flex-shrink: 0;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-info {
    flex: 1;
}

.promo-label {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.price-values {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-values .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-values .old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.hidden {
    display: none !important;
    opacity: 0;
}

.product-modal:not(.hidden) {
    display: flex;
    opacity: 1;
}

.product-modal.hidden {
    opacity: 0;
}

.product-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: productModalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes productModalSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.product-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.product-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.product-modal-body {
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.product-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-details {
    padding: 2rem;
}

.product-details h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.product-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.product-price-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.product-price-section .price-info {
    margin-bottom: 2rem;
}

.product-price-section .promo-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-price-section .price-values {
    gap: 1rem;
}

.product-price-section .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-section .old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 0.5rem;
}

.quantity-selector .quantity-btn {
    background: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-selector .quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.quantity-display {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 2rem;
    text-align: center;
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 77, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive for Product Modal */
@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .product-image-container {
        height: 250px;
        border-radius: 16px 16px 0 0;
    }
    
    .product-details {
        padding: 1.5rem;
    }
    
    .product-details h2 {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .product-price-section .current-price {
        font-size: 1.6rem;
    }
}

/* CEP Loading and Feedback Styles */
.form-group {
    position: relative;
}

.cep-loading {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.form-group.loading .cep-loading {
    display: block;
}

.form-group input.success {
    border-color: #4CAF50 !important;
    background-color: #e8f5e8 !important;
}

.form-group input.error {
    border-color: #ff4444 !important;
    background-color: #ffe8e8 !important;
}

.cep-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    display: none;
}

.cep-info.show {
    display: block;
}

.cep-info.success {
    color: #4CAF50;
}

.cep-info.error {
    color: #ff4444;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #CC0000 0%, #FF0000 50%, #CC0000 100%);
    color: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
    box-shadow: 0 -4px 15px rgba(204, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer h3 {
        font-size: 1.1rem !important;
    }
    
    .footer div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .footer div[style*="background: rgba"] {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .footer p {
        font-size: 0.85rem !important;
    }
}