/* =====================================================================
   main.css – Estilos GLOBALES del sistema Pizzería Piccola
   ❗ No afecta index.php (eso va en index.css)
===================================================================== */

/* =========================
   FUENTES GLOBALES
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

/* =========================
   BASE GLOBAL
========================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden;
}

/* =========================
   HEADER GLOBAL (header.php)
========================= */
.header {
    background: #b92d2d;
    color: #fff;
    padding: 12px 0;
}

.header-inner {
    max-width: 1250px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header .logo {
    width: 70px;
    border-radius: 6px;
}

.header .title {
    font-size: 30px;
    margin: 0;
}

.welcome {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: .2px;
}

/* =========================
   NAV GLOBAL
========================= */
.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    background: rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: .3px;
    transition: background .2s ease;
}

.nav-link:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* =========================
   FOOTER GLOBAL
========================= */
.footer {
    background: #b92d2d;
    color: #fff;
    text-align: center;
    padding: 12px;
    margin-top: 40px;
}

/* =========================
   FORMULARIOS (login / registro)
========================= */
.form-container {
    max-width: 420px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

/* =========================
   WRAPPER GENERAL
========================= */
.wrap {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* =========================
   PEDIDOS — LAYOUT
========================= */
.pedidos-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* Columna izquierda */
.pedidos-left {
    flex: 2;
    min-width: 0;
    background: #fffdf9;
    border-radius: 14px;
    padding: 12px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

/* Scroll de productos */
.productos-scroll {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 12px;
    background: #fffdf9;
    border-radius: 12px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
    margin-top: 8px;
}

/* Columna derecha */
.pedidos-right {
    flex: 1;
    min-width: 320px;
}

/* Responsive pedidos */
@media (max-width: 900px) {
    .pedidos-layout {
        flex-direction: column;
    }

    .pedidos-right {
        width: 100%;
    }
}

/* =========================
   GUSTOS / EXTRAS
========================= */
.gusto-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px dashed #e5c7c7;
    font-size: 15px;
    cursor: pointer;
}

.gusto-item input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.1);
}

.gusto-nombre {
    flex-grow: 1;
    color: #333;
}

.gusto-precio {
    color: #b33a3a;
    font-weight: 600;
    white-space: nowrap;
}

.gustos-list label {
    cursor: pointer;
}
