/* ========================================
   Reset e Variáveis
   ======================================== */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Forçar padding-top via variável CSS (será definida por JS) */
body {
    padding-top: var(--navbar-height, 0px) !important;
}

/* Garantir que nenhum elemento crie gap após navbar */
body > *:not(.navbar):not(script):not(style):not(.mobile-menu-overlay):not(#whatsapp-widget) {
    margin-top: 0 !important;
}

/* Slider sempre colado ao navbar */
.slider-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Remover margens e espaçamentos extras no mobile */
@media (max-width: 768px) {
    body {
        margin: 0 !important;
        padding-top: var(--navbar-height, 0px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Forçar remoção total de gaps no mobile */
    body > *:not(.navbar):not(script):not(style):not(.mobile-menu-overlay):not(#whatsapp-widget) {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .slider-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        top: 0 !important;
    }
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    margin: 0 !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 2rem;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-logout, .btn-register {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.btn-logout:hover, .btn-register:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #d97f0e;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Pizzas Section
   ======================================== */
.pizzas-section {
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .pizzas-section {
        padding: 40px 10px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    .section-header p {
        font-size: 1rem;
    }
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .pizza-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
}

.pizza-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.pizza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .pizza-card {
        margin-bottom: 15px;
    }
    .pizza-card:hover {
        transform: translateY(-2px);
    }
}

.pizza-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pizza-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pizza-card:hover .pizza-image img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .pizza-image {
        height: 180px;
    }
    .pizza-card:hover .pizza-image img {
        transform: scale(1.05);
    }
}

.pizza-category {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}

.badge-salgada {
    background-color: var(--primary-color);
}

.badge-doce {
    background-color: var(--warning-color);
}

.badge-especial {
    background-color: var(--info-color);
}

.pizza-content {
    padding: 20px;
}

.pizza-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.pizza-content p {
    color: #666;
    margin-bottom: 15px;
    min-height: 60px;
}

@media (max-width: 768px) {
    .pizza-content {
        padding: 15px;
    }
    .pizza-content h3 {
        font-size: 1.3rem;
    }
    .pizza-content p {
        font-size: 0.9rem;
        min-height: auto;
        margin-bottom: 12px;
    }
}

.pizza-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.pizza-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.pizza-size {
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .pizza-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
    .pizza-price {
        font-size: 1.5rem;
    }
    .pizza-size {
        font-size: 0.85rem;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background-color: white;
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .features-section {
        padding: 40px 10px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-container {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header h2 {
    color: var(--dark-color);
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .alert {
        padding: 12px 15px;
        margin: 15px 10px;
        flex-direction: column;
        text-align: center;
    }
    .alert i {
        font-size: 1.5rem;
    }
    .alert h3 {
        font-size: 1.1rem;
        margin: 5px 0;
    }
    .alert p {
        font-size: 0.9rem;
        margin: 5px 0;
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ========================================
   Dashboard
   ======================================== */
.dashboard-container {
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.bg-blue { background-color: var(--info-color); }
.bg-orange { background-color: var(--warning-color); }
.bg-purple { background-color: #9b59b6; }
.bg-green { background-color: var(--success-color); }

.stat-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
}

/* ========================================
   Tabs
   ======================================== */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   Tables
   ======================================== */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--dark-color);
    color: white;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.badge-pending, .badge-orange { background-color: #ffeaa7; color: #d63031; }
.badge-confirmed, .badge-info { background-color: #74b9ff; color: #0984e3; }
.badge-preparing, .badge-warning { background-color: #fdcb6e; color: #d63031; }
.badge-in_delivery, .badge-purple { background-color: #a29bfe; color: #6c5ce7; }
.badge-delivered, .badge-success, .badge-available, .badge-active { background-color: #55efc4; color: #00b894; }
.badge-cancelled, .badge-danger, .badge-unavailable, .badge-inactive { background-color: #ff7675; color: #d63031; }
.badge-admin { background-color: #e74c3c; color: white; }
.badge-motoboy { background-color: #3498db; color: white; }
.badge-customer { background-color: #27ae60; color: white; }

/* ========================================
   Orders
   ======================================== */
.orders-list, .orders-history {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.order-header h3 {
    color: var(--dark-color);
    margin: 0;
}

.order-body {
    margin-bottom: 20px;
}

.order-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-info i {
    color: var(--primary-color);
    width: 20px;
}

.order-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========================================
   Pizza Cards Admin
   ======================================== */
.pizza-card-admin {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.pizza-card-admin .pizza-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pizza-card-admin .pizza-info {
    padding: 20px;
}

.pizza-card-admin h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.pizza-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.pizza-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* ========================================
   Shopping Cart
   ======================================== */
.cart-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 999;
}

.cart-fab:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cart-fab {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 10px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.btn-remove {
    background-color: var(--danger-color);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    background-color: #c0392b;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ========================================
   Notification
   ======================================== */
.notification {
    position: fixed;
    top: 80px;
    right: -300px;
    background: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    right: 20px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 15px 15px;
        margin-top: 40px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* ========================================
   Modals
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

.modal-large {
    max-width: 900px;
}

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

.modal-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-form {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Order Details */
.order-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
}

.detail-section h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section p {
    margin-bottom: 10px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.items-table th,
.items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.items-table thead {
    background-color: var(--dark-color);
    color: white;
}

.items-table tfoot {
    background-color: #f8f9fa;
    font-size: 1.1rem;
}

/* Order Info Modal */
.order-info-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-block {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-block h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item-detail:last-child {
    border-bottom: none;
}

.total-amount {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 10px;
}

/* Order Tracking */
.order-tracking {
    margin-bottom: 30px;
}

.tracking-status {
    text-align: center;
    margin-bottom: 30px;
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #ddd;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step i {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.step.active i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.step span {
    font-size: 0.8rem;
    text-align: center;
    color: #666;
}

.step.active span {
    color: var(--dark-color);
    font-weight: bold;
}

/* Order Details Customer */
.order-details-customer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-total {
    font-weight: bold;
    color: var(--primary-color);
}

.order-total-modal {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Checkout Page */
.checkout-container {
    min-height: calc(100vh - 300px);
    padding: 40px 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.checkout-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.checkout-section h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.checkout-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    margin-bottom: 5px;
}

.checkout-item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.payment-method label:hover {
    border-color: var(--primary-color);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pizza-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .tracking-steps {
        flex-direction: column;
        gap: 20px;
    }

    .tracking-steps::before {
        display: none;
    }

    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
}

/* ========================================
   Store Status Control
   ======================================== */
.store-status-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#storeToggleBtn {
    font-weight: bold;
    padding: 10px 20px;
    transition: all 0.3s;
}

#storeToggleBtn:hover {
    transform: scale(1.05);
}

#storeStatusText {
    font-weight: bold;
    padding: 8px 16px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert i {
    font-size: 24px;
}

.alert h3 {
    margin: 10px 0;
}

/* Destacar pedidos pendentes de confirmação */
.highlight-pending {
    background-color: #fff8e1 !important;
    animation: pulse-pending 2s infinite;
}

@keyframes pulse-pending {
    0%, 100% {
        background-color: #fff8e1;
    }
    50% {
        background-color: #ffecb3;
    }
}

.hero-status {
    margin-top: 20px;
}

/* ========================================
   Order Notification System
   ======================================== */

/* Alerta flutuante de novo pedido */
.floating-alert {
    position: fixed;
    top: -200px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 350px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: shake 0.5s;
}

.floating-alert.show {
    top: 80px;
}

.floating-alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-alert-content i.fa-bell {
    font-size: 32px;
    color: #ffd700;
}

.floating-alert-content > div {
    flex: 1;
}

.floating-alert-content strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.floating-alert-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.alert-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.alert-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Badge de notificação */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animação de shake para o ícone */
.fa-shake {
    animation: shake 0.5s;
    animation-iteration-count: 3;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Tornar tab de pedidos relativa para o badge */
.tab-btn {
    position: relative;
}

/* Efeito de pulse no alerta */
@keyframes pulse-alert {
    0% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 10px 60px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
}

.floating-alert.show {
    animation: shake 0.5s, pulse-alert 2s infinite;
}

/* ========================================
   Upload de Imagem - Admin
   ======================================== */
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.form-group input[type="file"]:hover {
    border-color: var(--secondary-color);
    background-color: #fff8f5;
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.image-preview {
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid #e9ecef;
}

.image-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid #ddd;
    transition: var(--transition);
}

.image-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 13px;
}

/* ========================================
   Responsividade - Pizza Customizer Modal
   ======================================== */
@media (max-width: 768px) {
    /* Ajustar layout do modal de customização para mobile */
    .modal, #pizzaCustomizerModal .modal {
        padding: 15px !important;
        margin: 10px !important;
        max-width: 95vw !important;
    }
    
    /* Header section com imagem e info - empilhar verticalmente */
    .pizza-header-section {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    /* Container da imagem - largura total */
    .pizza-image-wrapper {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .pizza-image-wrapper img,
    #pizzaMainImage {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
        object-fit: contain !important;
    }
    
    /* Container de informações */
    .pizza-info-wrapper {
        flex: 1 1 100% !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Título menor no mobile */
    .pizza-info-wrapper h2,
    #pizzaMainName {
        font-size: 22px !important;
    }
    
    /* Descrição menor */
    .pizza-info-wrapper p,
    #pizzaMainDescription {
        font-size: 14px !important;
    }
    
    /* Meta tags - centralizar e ajustar tamanhos */
    .pizza-meta-tags {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .pizza-meta-tags span {
        font-size: 12px !important;
    }
    
    #pizzaPriceDisplay {
        font-size: 20px !important;
    }
    
    /* Grid de tipo de pizza - 1 coluna */
    .flavor-type-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Opções de tipo de pizza */
    .flavor-type-option {
        padding: 12px !important;
    }
    
    /* Seletores de sabor */
    .flavor-selector {
        padding: 12px !important;
    }
    
    /* Título da pizza menor */
    #pizzaMainName,
    .pizza-info-wrapper h2,
    h2[style*="font-size: 28px"] {
        font-size: 20px !important;
    }
    
    /* Preço menor */
    #pizzaPriceDisplay,
    span[style*="font-size: 24px"] {
        font-size: 18px !important;
        padding: 6px 12px !important;
    }
    
    /* Badges de tamanho/categoria */
    #pizzaSizeDisplay,
    span[style*="background: #ecf0f1"] {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    
    /* Labels */
    label {
        font-size: 14px !important;
    }
    
    /* Botões do modal - empilhar */
    div[style*="display: flex; gap: 12px; margin-top: 20px"],
    div[style*="display: flex"][style*="gap: 12px"][style*="margin-top"] {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    /* Botões ocupam largura total */
    .modal button {
        width: 100% !important;
        padding: 12px !important;
    }
    }
}

@media (max-width: 480px) {
    /* Mobile muito pequeno */
    .modal {
        padding: 10px;
        margin: 5px;
        max-width: 98vw;
    }
    
    #pizzaMainName {
        font-size: 18px !important;
    }
    
    #pizzaPriceDisplay {
        font-size: 18px !important;
    }
    
    /* Selects e inputs full width */
    select,
    input,
    textarea {
        font-size: 14px !important;
    }
}

/* ========================================
   Responsividade - Order Cards
   ======================================== */
@media (max-width: 768px) {
    .order-card {
        padding: 15px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }
    
    /* Delivery code - stack vertical */
    p[style*="display:flex"][style*="justify-content:space-between"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    p[style*="display:flex"][style*="justify-content:space-between"] > div {
        width: 100%;
    }
    
    p[style*="display:flex"][style*="justify-content:space-between"] a {
        width: 100%;
        text-align: center;
    }
}
