:root {
    --bg-color: #050505;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --primary-gradient: linear-gradient(90deg, #ff0000, #ff4500, #ffcc00);
    --hover-gradient: linear-gradient(90deg, #cc0000, #cc3700, #cca300);
    --accent-color: #ff4500;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Header & Nav */
header {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    /* Imagem genérica de pizza */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 10px rgba(255, 69, 0, 0.3);
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta,
.btn-checkout {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: #fff;
    /* Texto branco no botão */
    text-decoration: none;
    font-weight: 900;
    border-radius: 50px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.btn-cta:hover,
.btn-checkout:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
}

.sticky-nav {
    position: sticky;
    top: 0;
    background: #000;
    padding: 1rem;
    z-index: 1000;
    border-bottom: 2px solid #333;
}

.sticky-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.sticky-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.sticky-nav a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* Menu Grid & Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 5px;
    position: sticky;
    top: 65px;
    /* Altura da sticky-nav */
    background: var(--bg-color);
    z-index: 900;
    scrollbar-width: none;
    /* Firefox */
}

.category-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
    border: 1px solid #333;
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.menu-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-info {
    padding: 1.5rem;
}

.menu-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.menu-info p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    height: 40px;
    /* Limita altura da descrição */
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.btn-add {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: var(--accent-color);
    color: #000;
}

/* Cart */
.cart-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #444;
}

.cart-item-title {
    font-weight: bold;
}

.cart-controls button {
    background: #333;
    border: none;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
}

.total-row {
    font-size: 1.5rem;
    font-weight: 900;
    text-align: right;
    margin: 2rem 0;
    color: var(--accent-color);
}

.btn-checkout {
    width: 100%;
    font-size: 1.2rem;
}

.payment-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }

    .sticky-nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    /* GRID DE 2 COLUNAS MOBILE */
    .menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .menu-item {
        border-radius: 8px;
    }

    .menu-img {
        height: 120px;
    }

    .menu-info {
        padding: 10px;
    }

    .menu-info h3 {
        font-size: 0.95rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-info p {
        font-size: 0.75rem;
        height: 32px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .price {
        font-size: 1rem;
    }

    .btn-add {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .category-tabs {
        justify-content: flex-start;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ============================================ */
/* SISTEMA DE LICENÇAS - ESTILOS */
/* ============================================ */

/* Trial Banner */
.trial-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ff4500, #ff6600);
    color: #fff;
    padding: 12px 20px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.trial-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.trial-upgrade-btn {
    background: #fff;
    color: #ff4500;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.trial-upgrade-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
}

/* License Modal */
.license-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.license-modal-content {
    background: var(--card-bg);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(255, 69, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.license-header {
    text-align: center;
    margin-bottom: 30px;
}

.license-header h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.license-header p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.license-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-option {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-option:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.05);
}

.license-input {
    width: 100%;
    padding: 15px;
    background: #050505;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: inherit;
}

.license-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

.license-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-primary {
    flex: 1;
    background: var(--primary-gradient);
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    flex: 1;
    background: transparent;
    border: 2px solid #666;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-secondary:hover {
    border-color: #fff;
    background: #222;
}

.license-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.license-message .success {
    color: #28a745;
}

.license-message .error {
    color: #dc3545;
}

.license-message .info {
    color: #17a2b8;
}

/* Blocked State */
.blocked {
    pointer-events: none;
    opacity: 0.3;
    filter: blur(3px);
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    .license-modal-content {
        padding: 30px 20px;
    }

    .license-header h2 {
        font-size: 1.5rem;
    }

    .license-header p {
        font-size: 1rem;
    }

    .btn-option {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .license-buttons {
        flex-direction: column;
    }

    .trial-content {
        flex-direction: column;
        text-align: center;
    }
}