/* PizzaBite QR Menu — Frontend Styles
   Scoped to .pbm-wrap to avoid conflicts with the active theme.
   ------------------------------------------------------------------ */

.pbm-wrap {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F7F3EE;
    color: #1C1410;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

/* ── HEADER ── */
.pbm-header {
    background: #1C1410;
    padding: 28px 20px 22px;
    text-align: center;
}
.pbm-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 6px !important;
    line-height: 1.2 !important;
    border: none !important;
    padding: 0 !important;
}
.pbm-subtitle {
    font-size: 0.7rem !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4) !important;
    margin: 0 !important;
}

/* ── CATEGORIES WRAPPER ── */
.pbm-categories {
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── CATEGORY BLOCK ── */
.pbm-cat-block {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* ── CATEGORY HEADER ── */
.pbm-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}
.pbm-cat-header:hover,
.pbm-cat-header:active { background: #fdfaf6; }
.pbm-cat-header:focus   { outline: 2px solid #E8832A; outline-offset: -2px; }

.pbm-emoji    { font-size: 1.35rem; flex-shrink: 0; line-height: 1; }
.pbm-cat-name { font-size: 0.97rem; font-weight: 600; flex: 1; }
.pbm-cat-count {
    font-size: 0.7rem;
    color: #bbb;
    background: #f5f1ec;
    border-radius: 20px;
    padding: 2px 7px;
}

.pbm-arrow {
    width: 18px; height: 18px;
    color: #ccc;
    transition: transform 0.22s, color 0.22s;
    flex-shrink: 0;
}
.pbm-cat-header.pbm-open .pbm-arrow {
    transform: rotate(180deg);
    color: #E8832A;
}

/* ── ITEMS LIST ── */
.pbm-cat-items {
    border-top: 1px solid #f2ece4;
}

.pbm-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f7f3ee;
}
.pbm-item:last-child { border-bottom: none; }

.pbm-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.pbm-item--pizza .pbm-item-top { margin-bottom: 7px; }

.pbm-item-left { flex: 1; min-width: 0; }

.pbm-item-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: #1C1410;
}
.pbm-item-desc {
    display: block;
    font-size: 0.74rem;
    color: #aaa;
    margin-top: 2px;
    line-height: 1.4;
}
.pbm-item-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: #E8832A;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 1px;
}

/* ── SIZE / VARIANT PILLS ── */
.pbm-sizes {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.pbm-size-pill {
    background: #F7F3EE;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.71rem;
    color: #555;
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.pbm-size-pill b {
    color: #E8832A;
    font-weight: 600;
}

/* ── FOOTER ── */
.pbm-footer {
    text-align: center;
    padding: 16px 16px 24px;
    font-size: 0.68rem !important;
    color: #bbb !important;
    letter-spacing: 0.08em;
    margin: 0 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .pbm-wrap { border-radius: 0; }
}
