:root {
    --pb-green: #B5D334;
    --pb-purple: #8B3A88;
    --pb-cream: #FDF9F0;
    --pb-white: #FFFFFF;
    --pb-dark: #333333;
}

/* ===== GLOBAL ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== LAYOUT ===== */
.pb-layout {
    font-family: 'Poppins', sans-serif;
    background: var(--pb-cream);
    min-height: 100vh;
}

.pb-main-content {
    min-height: calc(100vh - 140px);
}

/* ===== NAVBAR ===== */
.pb-navbar {
    background: var(--pb-white);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.pb-logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--pb-purple);
    text-decoration: none;
}

    .pb-logo span {
        color: var(--pb-green);
    }

.pb-nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

    .pb-nav-links a {
        color: var(--pb-dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: 0.2s;
    }

        .pb-nav-links a:hover {
            color: var(--pb-purple);
        }

.pb-btn-order {
    background: var(--pb-green);
    color: var(--pb-dark) !important;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

    .pb-btn-order:hover {
        opacity: 0.9;
    }

/* ===== HERO ===== */
.pb-hero {
    background: linear-gradient(135deg, var(--pb-purple) 0%, #6b2d68 100%);
    color: white;
    padding: 60px 24px;
    text-align: center;
}

    .pb-hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        font-weight: 800;
        margin-bottom: 10px;
    }

    .pb-hero p {
        font-size: clamp(1rem, 3vw, 1.2rem);
        opacity: 0.9;
        margin-bottom: 24px;
    }

/* ===== SECTION ===== */
.pb-section {
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pb-section-title {
    color: var(--pb-purple);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* ===== OPTION CARDS ===== */
.pb-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.pb-option-card {
    background: var(--pb-white);
    border: 2px solid #EEE;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

    .pb-option-card:hover {
        border-color: var(--pb-green);
        transform: translateY(-2px);
    }

    .pb-option-card.selected {
        border-color: var(--pb-green);
        background: #F5FFD6;
        transform: scale(1.03);
    }

    .pb-option-card .pb-card-title {
        font-weight: 700;
        font-size: 14px;
        color: var(--pb-dark);
    }

    .pb-option-card .pb-card-price {
        font-size: 12px;
        color: var(--pb-purple);
        font-weight: 600;
    }

    .pb-option-card .pb-card-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

/* ===== PRODUCT TYPE CARDS ===== */
.pb-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.pb-type-card {
    background: var(--pb-white);
    border: 3px solid #EEE;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .pb-type-card:hover {
        border-color: var(--pb-purple);
    }

    .pb-type-card.selected {
        border-color: var(--pb-purple);
        background: #F9F0FF;
    }

    .pb-type-card h4 {
        color: var(--pb-purple);
        font-weight: 700;
        margin: 8px 0 4px;
    }

    .pb-type-card p {
        font-size: 12px;
        color: #666;
        margin: 0;
    }

/* ===== SUMMARY PANEL ===== */
.pb-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.pb-configurator {
    flex: 1 1 0;
    min-width: 0;
}

.pb-sidebar {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pb-summary-card {
    background: var(--pb-white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 80px;
}

    .pb-summary-card h4 {
        color: var(--pb-purple);
        font-weight: 700;
        margin-bottom: 16px;
    }

.pb-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.pb-summary-total {
    border-top: 2px solid #EEE;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 16px;
}

.pb-btn-primary {
    background: var(--pb-green);
    color: var(--pb-dark);
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    margin-top: 12px;
    transition: opacity 0.2s;
}

    .pb-btn-primary:hover {
        opacity: 0.9;
    }

    .pb-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.pb-promo {
    background: var(--pb-purple);
    color: white;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    font-size: 13px;
}

    .pb-promo strong {
        display: block;
        font-size: 15px;
        margin-bottom: 4px;
    }

/* ===== STEP LABEL ===== */
.pb-step-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--pb-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-step-num {
    background: var(--pb-purple);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== INPUTS ===== */
.pb-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #EEE;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Poppins', sans-serif;
}

    .pb-input:focus {
        border-color: var(--pb-purple);
    }

/* ===== MENU PAGE ===== */
.pb-menu-section {
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.pb-menu-green {
    background: var(--pb-green);
}

.pb-menu-purple {
    background: var(--pb-purple);
}

.pb-menu-cream {
    background: var(--pb-cream);
    border: 2px solid var(--pb-green);
}

.pb-menu-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pb-menu-green h2,
.pb-menu-purple h2 {
    color: white;
}

.pb-menu-cream h2 {
    color: var(--pb-purple);
}

.pb-menu-section p {
    font-size: 14px;
    margin-bottom: 16px;
}

.pb-menu-green p,
.pb-menu-purple p {
    color: white;
}

.pb-menu-price-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    background: rgba(255,255,255,0.3);
    color: white;
}

.pb-menu-cream .pb-menu-price-badge {
    background: var(--pb-purple);
    color: white;
}

.pb-toppings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.pb-toppings-col h4 {
    font-weight: 700;
    color: var(--pb-purple);
    margin-bottom: 8px;
}

.pb-toppings-col li {
    font-size: 13px;
    margin-bottom: 4px;
}

/* ===== CONFIRM PAGE ===== */
.pb-confirm-card {
    background: var(--pb-white);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pb-radio-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.pb-radio-option {
    flex: 1;
    min-width: 100px;
    border: 2px solid #EEE;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .pb-radio-option:hover {
        border-color: var(--pb-purple);
    }

    .pb-radio-option.selected {
        border-color: var(--pb-purple);
        background: #F9F0FF;
    }

    .pb-radio-option label {
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
    }

.pb-whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    transition: opacity 0.2s;
    font-family: 'Poppins', sans-serif;
}

    .pb-whatsapp-btn:hover {
        opacity: 0.9;
    }

    .pb-whatsapp-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ===== FOOTER ===== */
.pb-footer {
    background: var(--pb-purple);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 13px;
}

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--pb-purple);
    color: white;
    padding: 20px;
    flex-shrink: 0;
}

.admin-logo {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 28px;
}

    .admin-logo span {
        color: var(--pb-green);
    }

.admin-subtitle {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-link {
    color: white;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
}

    .admin-link:hover {
        background: rgba(255,255,255,0.1);
    }

.admin-link-active {
    background: rgba(255,255,255,0.14);
    font-weight: 700;
}

.admin-divider {
    border-color: rgba(255,255,255,0.3);
    margin: 8px 0;
}

.admin-content {
    flex: 1;
    overflow-x: hidden;
    background: #f8fafc;
}

.admin-topbar {
    background: white;
    padding: 12px 24px;
    border-bottom: 1px solid #EEE;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.admin-user {
    font-size: 13px;
    color: #666;
}

.admin-main {
    padding: 24px;
}

/* ===== ADMIN HEADER ===== */
.pb-admin-header {
    background: var(--pb-purple);
    color: white;
    padding: 20px 28px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== ADMIN STAT CARDS ===== */
.pb-stat-card {
    border-radius: 16px;
    padding: 20px;
    font-weight: 700;
}

.pb-stat-green {
    background: var(--pb-green);
    color: var(--pb-dark);
}

.pb-stat-purple {
    background: var(--pb-purple);
    color: white;
}

/* ===== ESTADO BADGES ===== */
.pb-badge-pending {
    background: #FFF3CD;
    color: #856404;
}

.pb-badge-preparing {
    background: #D1ECF1;
    color: #0C5460;
}

.pb-badge-ready {
    background: #D4EDDA;
    color: #155724;
}

.pb-badge-delivered {
    background: #C3E6CB;
    color: #155724;
}

.pb-badge-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

/* ===== MOBILE MENU ===== */
.pb-menu-toggle {
    display: none;
}

.pb-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--pb-purple);
    background: none;
    border: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pb-navbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .pb-menu-btn {
        display: block;
    }

    .pb-nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 16px;
    }

        .pb-nav-links a {
            width: 100%;
            text-align: center;
        }

    .pb-menu-toggle:checked ~ .pb-nav-links {
        display: flex;
    }

    .pb-hero h1 {
        font-size: 1.8rem;
    }

    .pb-wrapper {
        padding: 16px;
    }

    .pb-section {
        padding: 24px 16px;
    }

    .pb-summary-card {
        position: static;
    }

    .pb-sidebar {
        flex: 1 1 100%;
    }

    .pb-type-grid {
        grid-template-columns: 1fr;
    }

    .pb-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pb-toppings-grid {
        grid-template-columns: 1fr;
    }

    .pb-option-card,
    .pb-type-card {
        padding: 14px;
    }

    .pb-btn-primary,
    .pb-whatsapp-btn {
        width: 100%;
    }

    .pb-menu-section {
        padding: 24px 16px;
    }

    .pb-confirm-card {
        padding: 20px 16px;
    }

    .pb-radio-group {
        flex-direction: column;
    }

    .pb-radio-option {
        min-width: unset;
    }

    /* Admin mobile */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .admin-topbar {
        padding: 12px 16px;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .pb-admin-header {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pb-options-grid {
        grid-template-columns: 1fr;
    }

    .pb-hero h1 {
        font-size: 1.5rem;
    }

    .pb-logo {
        font-size: 18px;
    }

    .pb-summary-card {
        padding: 16px;
    }

    .pb-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HOME PAGE — clases extra ===== */
.pb-product-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.pb-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.pb-extra-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.pb-total-price {
    color: var(--pb-purple);
    font-size: 18px;
}

/* ===== MENU PAGE — clases extra ===== */
.pb-menu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.pb-menu-header {
    text-align: center;
    margin-bottom: 32px;
}

.pb-menu-main-title {
    color: var(--pb-purple);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 8px;
}

.pb-menu-subtitle {
    color: #666;
    font-size: 14px;
}

.pb-menu-description {
    color: #666;
}

.pb-extra-toppings {
    background: var(--pb-cream);
    border-radius: 20px;
    padding: 24px;
    margin-top: 8px;
    border: 2px solid #EEE;
}

.pb-extra-title {
    color: var(--pb-purple);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.pb-toppings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .pb-toppings-list li {
        font-size: 13px;
        margin-bottom: 4px;
    }

.pb-menu-button-container {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 16px;
}

.pb-menu-order-btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
}

/* ===== RESPONSIVE extra ===== */
@media (max-width: 768px) {
    .pb-two-columns {
        grid-template-columns: 1fr 1fr;
    }

    .pb-menu-container {
        padding: 16px;
    }

    .pb-menu-main-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .pb-two-columns {
        grid-template-columns: 1fr;
    }
}