/* ═══════════════════════════════════════════════════════════════════════════
   KBC Menu Manager — Frontend Styles  v1.0
   File:    assets/css/menu-frontend.css
   Enqueued ONLY on pages that render a [kbc_menu] shortcode — never site-wide.

   Design language: Warm editorial  •  Rich reds & toasted cream  •  Geometric
   Typography: Playfair Display (headings) + DM Sans (body) via Google Fonts
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────────────────────
   Pull in Playfair Display (for category titles / featured names)
   and DM Sans (for all body-copy, prices, badges).
   The @import lives here so it is only loaded when the shortcode fires.      */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
    /* Brand palette */
    --kbc-red:          #c0392b;
    --kbc-red-dark:     #9b2d22;
    --kbc-red-muted:    #e8d5d3;
    --kbc-gold:         #c9a227;
    --kbc-gold-light:   #f5e9c4;

    /* Neutrals */
    --kbc-dark:         #1c1008;
    --kbc-charcoal:     #3d2e1e;
    --kbc-text:         #3a2e26;
    --kbc-muted:        #8a7060;
    --kbc-light:        #fdf8f2;
    --kbc-cream:        #f7efe3;
    --kbc-border:       #e8ddd0;
    --kbc-border-light: #f0e9de;
    --kbc-white:        #ffffff;

    /* Typography */
    --kbc-font-display: 'Playfair Display', Georgia, serif;
    --kbc-font-body:    'DM Sans', system-ui, sans-serif;

    /* Shape */
    --kbc-radius-sm:    4px;
    --kbc-radius:       8px;
    --kbc-radius-lg:    14px;
    --kbc-radius-pill:  100px;

    /* Sizing */
    --kbc-tab-h:        44px;

    /* Shadows */
    --kbc-shadow-xs:    0 1px 3px rgba(28,16,8,.06);
    --kbc-shadow-sm:    0 2px 8px rgba(28,16,8,.09);
    --kbc-shadow-md:    0 6px 24px rgba(28,16,8,.12);
    --kbc-shadow-lg:    0 16px 48px rgba(28,16,8,.16);

    /* Transitions */
    --kbc-ease:         cubic-bezier(.22,.68,0,1.2);
    --kbc-ease-out:     cubic-bezier(.16,1,.3,1);
}

/* ── Global box-model reset (scoped) ────────────────────────────────────── */
.kbc-menu-wrapper *,
.kbc-menu-wrapper *::before,
.kbc-menu-wrapper *::after,
.kbc-featured-item *,
.kbc-featured-item *::before,
.kbc-featured-item *::after,
.kbc-category-list *,
.kbc-pizza-builder * {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════════════════════
   WRAPPER
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-menu-wrapper {
    width: 100%;
    font-family: var(--kbc-font-body);
    color: var(--kbc-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Two-column grid (columns="2") */
.kbc-menu-wrapper.kbc-menu--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
    align-items: start;
}

@media (max-width: 860px) {
    .kbc-menu-wrapper.kbc-menu--two-col {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   TAB NAVIGATION
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 2px;
    margin-bottom: 0;
    padding: 0 0 1px;
    border-bottom: 2px solid var(--kbc-border);
    position: relative;
}

/* Decorative red dot at the far right of the tab bar */
.kbc-menu-tabs::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kbc-red);
    position: absolute;
    right: 0;
    bottom: -5px;
}

.kbc-menu-tab {
    position: relative;
    bottom: -2px;
    padding: 0 20px;
    height: var(--kbc-tab-h);
    line-height: var(--kbc-tab-h);
    font-family: var(--kbc-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    color: var(--kbc-muted);
    background: transparent;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: var(--kbc-radius) var(--kbc-radius) 0 0;
    cursor: pointer;
    transition:
        color        0.18s ease,
        background   0.18s ease,
        border-color 0.18s ease;
    white-space: nowrap;
    user-select: none;
}

.kbc-menu-tab:hover {
    color: var(--kbc-red);
    background: var(--kbc-cream);
}

.kbc-menu-tab:focus-visible {
    outline: 2px solid var(--kbc-red);
    outline-offset: -2px;
    border-radius: var(--kbc-radius) var(--kbc-radius) 0 0;
}

.kbc-menu-tab--active {
    color: var(--kbc-red-dark);
    background: var(--kbc-white);
    border-color: var(--kbc-border);
    border-bottom-color: var(--kbc-white);
    z-index: 1;
}

/* Animated underline on active tab */
.kbc-menu-tab--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--kbc-white);
}

/* ── Tab panels ────────────────────────────────────────────────────────── */

.kbc-menu-panel--hidden  { display: none; }
.kbc-menu-panel--active  { display: block; animation: kbc-panel-in 0.28s var(--kbc-ease-out); }

@keyframes kbc-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════════════
   CATEGORY SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-menu-category {
    margin-bottom: 44px;
    scroll-margin-top: 80px;   /* sticky-nav offset */
}

.kbc-menu-category__title {
    font-family: var(--kbc-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--kbc-charcoal);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    margin: 0 0 18px;
    padding-bottom: 12px;

    /* Decorated rule: a thin red line + a gold dot */
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kbc-menu-category__title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--kbc-red);
    flex-shrink: 0;
}

.kbc-menu-category__title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--kbc-border) 0%, transparent 100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   ITEM CARDS (card layout)
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kbc-menu-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    margin: 0 -14px;
    border-radius: var(--kbc-radius);
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
    position: relative;
}

/* Subtle dotted separator between items */
.kbc-menu-item + .kbc-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--kbc-border-light) 0px,
        var(--kbc-border-light) 4px,
        transparent 4px,
        transparent 10px
    );
}

.kbc-menu-item:hover {
    background: var(--kbc-cream);
    box-shadow: var(--kbc-shadow-xs);
}

.kbc-menu-item:hover + .kbc-menu-item::before,
.kbc-menu-item:hover::before {
    opacity: 0;
}

/* ── Item info column ──────────────────────────────────────────────────── */

.kbc-menu-item__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.kbc-menu-item__name {
    display: block;
    font-family: var(--kbc-font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--kbc-dark);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.kbc-menu-item__desc {
    display: block;
    font-size: 0.8rem;
    color: var(--kbc-muted);
    margin-top: 3px;
    line-height: 1.5;
    font-style: italic;
}

/* ── Item price ────────────────────────────────────────────────────────── */

.kbc-menu-item__price {
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 1px;

    font-family: var(--kbc-font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--kbc-red);
    white-space: nowrap;

    /* Subtle pill background */
    background: var(--kbc-red-muted);
    padding: 2px 10px;
    border-radius: var(--kbc-radius-pill);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   DIETARY BADGES
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-dietary {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.kbc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--kbc-font-body);
    font-size: 0.625rem;       /* 10px */
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--kbc-radius-pill);
    line-height: 1.6;
    white-space: nowrap;
    transition: transform 0.15s var(--kbc-ease);
}

.kbc-badge:hover {
    transform: scale(1.08);
}

/* Vegetarian — green leaf */
.kbc-badge--v {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Vegan — deep green */
.kbc-badge--vegan {
    background: #e0f2f1;
    color: #00695c;
    border: 1px solid #80cbc4;
}

/* Halal — emerald */
.kbc-badge--halal {
    background: #e8f5e4;
    color: #256029;
    border: 1px solid #81c784;
}

/* Gluten-free — purple */
.kbc-badge--gf {
    background: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #ce93d8;
}

/* Spicy — warm amber */
.kbc-badge--spicy {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    font-size: 0.8125rem;      /* emoji needs a little more room */
    padding: 1px 6px;
    letter-spacing: 0;
}

/* Misc / unknown flags */
.kbc-badge--misc {
    background: var(--kbc-cream);
    color: var(--kbc-muted);
    border: 1px solid var(--kbc-border);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICE TABLE  (pizza / sized items)
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-price-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--kbc-radius-lg);
    border: 1px solid var(--kbc-border);
    box-shadow: var(--kbc-shadow-xs);

    /* Fade hint on right edge when scrollable */
    background:
        linear-gradient(to right,  var(--kbc-white) 30%, transparent) left  center / 24px 100% no-repeat,
        linear-gradient(to left,   var(--kbc-white) 30%, transparent) right center / 24px 100% no-repeat,
        var(--kbc-white);
}

.kbc-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    background: var(--kbc-white);
}

/* ── Table head ──────────────────────────────────────────────────────── */

.kbc-price-table thead th {
    padding: 13px 16px;
    font-family: var(--kbc-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--kbc-cream);
    color: var(--kbc-charcoal);
    border-bottom: 2px solid var(--kbc-border);
    white-space: nowrap;
    text-align: left;
}

.kbc-price-table thead th:not(.kbc-price-table__name) {
    text-align: center;
    color: var(--kbc-red);
    min-width: 68px;
}

/* Rounded top corners on the header row */
.kbc-price-table thead tr th:first-child { border-radius: var(--kbc-radius-lg) 0 0 0; }
.kbc-price-table thead tr th:last-child  { border-radius: 0 var(--kbc-radius-lg) 0 0; }

/* ── Table body ──────────────────────────────────────────────────────── */

.kbc-price-table tbody tr {
    transition: background 0.12s ease;
}

.kbc-price-table tbody tr:hover {
    background: var(--kbc-light);
}

.kbc-price-table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--kbc-radius-lg); }
.kbc-price-table tbody tr:last-child td:last-child  { border-radius: 0 0 var(--kbc-radius-lg) 0; }

.kbc-price-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--kbc-border-light);
    vertical-align: top;
}

.kbc-price-table tbody tr:last-child td {
    border-bottom: none;
}

/* Zebra striping on even rows */
.kbc-price-table tbody tr:nth-child(even) {
    background: var(--kbc-light);
}
.kbc-price-table tbody tr:nth-child(even):hover {
    background: var(--kbc-cream);
}

.kbc-price-table__name {
    min-width: 180px;
}

.kbc-price-table__name .kbc-menu-item__name {
    font-size: 0.9rem;
}

.kbc-price-table__price {
    text-align: center;
    vertical-align: middle;
    padding-top: 13px;
}

.kbc-price-table__price span,
.kbc-price-table__price {
    font-weight: 700;
    color: var(--kbc-red);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Null / unavailable price cell */
.kbc-price-table__price:empty::after,
.kbc-price-table__price[data-empty]::after {
    content: '—';
    color: var(--kbc-border);
    font-weight: 400;
}

/* ── Scrollable hint arrow (mobile) ─────────────────────────────────── */
.kbc-price-table-wrapper::before {
    content: '← scroll →';
    display: none;
    text-align: center;
    font-size: 0.7rem;
    color: var(--kbc-muted);
    padding: 4px 0;
    background: var(--kbc-cream);
    border-radius: var(--kbc-radius-lg) var(--kbc-radius-lg) 0 0;
    border-bottom: 1px solid var(--kbc-border);
}

@media (max-width: 520px) {
    .kbc-price-table-wrapper::before {
        display: block;
    }
    .kbc-price-table thead tr th:first-child { border-radius: 0; }
    .kbc-price-table thead tr th:last-child  { border-radius: 0; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FEATURED ITEM CARD  [kbc_menu_item id="…"]
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-featured-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border: 1px solid var(--kbc-border);
    border-radius: var(--kbc-radius-lg);
    background: var(--kbc-white);
    box-shadow: var(--kbc-shadow-sm);
    transition:
        box-shadow 0.2s var(--kbc-ease-out),
        transform  0.2s var(--kbc-ease-out);
    position: relative;
    overflow: hidden;
}

/* Red accent bar on left edge */
.kbc-featured-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--kbc-red);
    border-radius: var(--kbc-radius-lg) 0 0 var(--kbc-radius-lg);
}

.kbc-featured-item:hover {
    box-shadow: var(--kbc-shadow-md);
    transform: translateY(-2px);
}

.kbc-featured-item__body {
    flex: 1;
    min-width: 0;
    padding-left: 6px;
}

.kbc-featured-item__name {
    font-family: var(--kbc-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kbc-dark);
    margin: 0 0 6px;
    line-height: 1.25;
}

.kbc-featured-item__desc {
    color: var(--kbc-muted);
    font-size: 0.85rem;
    margin: 6px 0 0;
    line-height: 1.55;
    font-style: italic;
}

.kbc-featured-item__pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.kbc-featured-item__price {
    font-family: var(--kbc-font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--kbc-red);
    font-variant-numeric: tabular-nums;
}

.kbc-featured-item__size {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kbc-featured-item__size-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--kbc-muted);
    background: var(--kbc-cream);
    padding: 1px 7px;
    border-radius: var(--kbc-radius-pill);
}

.kbc-featured-item__size-price {
    font-weight: 700;
    color: var(--kbc-red);
    font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════════
   CATEGORY ANCHOR NAV  [kbc_category_list]
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-category-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kbc-category-list li a {
    display: inline-block;
    padding: 5px 18px;
    font-family: var(--kbc-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--kbc-red);
    background: var(--kbc-white);
    border: 1.5px solid var(--kbc-red);
    border-radius: var(--kbc-radius-pill);
    text-decoration: none;
    transition:
        background 0.16s ease,
        color      0.16s ease,
        box-shadow 0.16s ease,
        transform  0.16s var(--kbc-ease);
}

.kbc-category-list li a:hover,
.kbc-category-list li a:focus-visible {
    background: var(--kbc-red);
    color: var(--kbc-white);
    box-shadow: 0 4px 12px rgba(192, 57, 43, .28);
    transform: translateY(-1px);
    outline: none;
}

.kbc-category-list li a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   INLINE PRICE  [kbc_price item="…"]
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-inline-price {
    font-family: var(--kbc-font-body);
    font-weight: 700;
    color: var(--kbc-red);
    font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════════
   CREATE YOUR OWN PIZZA — TOPPINGS SECTION
   Markup expected:
     <div class="kbc-pizza-builder">
       <h3 class="kbc-pizza-builder__title">Create Your Own Pizza</h3>
       <p  class="kbc-pizza-builder__note">…</p>
       <div class="kbc-pizza-builder__sizes">
         <div class="kbc-size-card">
           <span class="kbc-size-card__label">9"</span>
           <span class="kbc-size-card__name">Medium</span>
           <span class="kbc-size-card__price">£X.XX</span>
         </div>…
       </div>
       <div class="kbc-toppings-grid">
         <div class="kbc-topping">
           <span class="kbc-topping__name">Pepperoni</span>
           <span class="kbc-topping__badge kbc-badge--halal">Halal</span>
         </div>…
       </div>
     </div>
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-pizza-builder {
    background: var(--kbc-cream);
    border: 1px solid var(--kbc-border);
    border-radius: var(--kbc-radius-lg);
    padding: 28px 28px 24px;
    margin-top: 32px;
}

.kbc-pizza-builder__title {
    font-family: var(--kbc-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--kbc-charcoal);
    margin: 0 0 6px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pizza emoji icon */
.kbc-pizza-builder__title::before {
    content: '🍕';
    font-size: 1.2rem;
}

.kbc-pizza-builder__note {
    font-size: 0.85rem;
    color: var(--kbc-muted);
    margin: 0 0 22px;
    font-style: italic;
    line-height: 1.55;
}

/* ── Size cards row ─────────────────────────────────────────────────── */

.kbc-pizza-builder__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.kbc-size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--kbc-white);
    border: 1.5px solid var(--kbc-border);
    border-radius: var(--kbc-radius);
    padding: 12px 18px;
    min-width: 80px;
    transition:
        border-color 0.15s ease,
        box-shadow   0.15s ease;
}

.kbc-size-card:hover {
    border-color: var(--kbc-red);
    box-shadow: 0 2px 10px rgba(192,57,43,.12);
}

.kbc-size-card__label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--kbc-charcoal);
    line-height: 1;
}

.kbc-size-card__name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--kbc-muted);
}

.kbc-size-card__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--kbc-red);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

/* ── Toppings grid ──────────────────────────────────────────────────── */

.kbc-toppings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.kbc-topping {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: var(--kbc-white);
    border: 1px solid var(--kbc-border-light);
    border-radius: var(--kbc-radius-sm);
    padding: 7px 10px;
    transition: background 0.12s ease;
}

.kbc-topping:hover {
    background: var(--kbc-light);
}

.kbc-topping__name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--kbc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════════════════
   EMPTY / ERROR STATES
   ══════════════════════════════════════════════════════════════════════════ */

.kbc-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: var(--kbc-cream);
    border: 1px dashed var(--kbc-border);
    border-radius: var(--kbc-radius);
    color: var(--kbc-muted);
    font-style: italic;
    font-size: 0.9rem;
}

.kbc-empty::before {
    content: '🍽️';
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   LOADING SKELETON  (while AJAX fetches items)
   Add class .kbc-loading to .kbc-menu-wrapper to show shimmer bars.
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes kbc-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.kbc-skeleton-bar {
    height: 14px;
    border-radius: var(--kbc-radius-sm);
    background: linear-gradient(90deg, var(--kbc-cream) 25%, var(--kbc-border) 50%, var(--kbc-cream) 75%);
    background-size: 600px 100%;
    animation: kbc-shimmer 1.4s infinite linear;
    margin-bottom: 10px;
}

.kbc-skeleton-bar--wide  { width: 80%; }
.kbc-skeleton-bar--med   { width: 55%; }
.kbc-skeleton-bar--short { width: 30%; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile tweaks
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Tighter tab strip on small screens */
    .kbc-menu-tab {
        padding: 0 13px;
        font-size: 0.75rem;
        height: 38px;
        line-height: 38px;
    }

    /* Stack featured item vertically */
    .kbc-featured-item {
        flex-direction: column;
        gap: 14px;
    }

    .kbc-featured-item__pricing {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    /* Full-width toppings on small screens */
    .kbc-toppings-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Pizza builder padding reduction */
    .kbc-pizza-builder {
        padding: 20px 16px 18px;
    }

    .kbc-pizza-builder__sizes {
        justify-content: center;
    }

    /* Category title smaller */
    .kbc-menu-category__title {
        font-size: 1.1rem;
    }

    /* Price pill smaller */
    .kbc-menu-item__price {
        font-size: 0.875rem;
        padding: 1px 8px;
    }
}

@media (max-width: 400px) {
    .kbc-toppings-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════ */

@media print {
    .kbc-menu-tabs { display: none; }

    .kbc-menu-panel--hidden {
        display: block !important;    /* show all panels when printing */
    }

    .kbc-menu-item {
        padding: 8px 0;
        border-bottom: 1px solid #ccc;
    }

    .kbc-menu-item:hover { background: none; }

    .kbc-menu-category__title {
        font-size: 14pt;
        color: #000;
    }

    .kbc-menu-category__title::after {
        background: #000;
        opacity: .2;
    }

    .kbc-price-table-wrapper {
        overflow-x: visible;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .kbc-featured-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .kbc-badge {
        border: 1px solid #999;
        color: #000;
        background: #f0f0f0;
    }
}
