/* ===========================================
   Pizza Rossini Frontend — Clean & Light
   =========================================== */

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

:root {
    --primary: #E53935;
    --primary-dark: #C62828;
    --primary-light: #FFEBEE;
    --green: #2E7D32;
    --green-light: #E8F5E9;
    --orange: #F57C00;
    --text: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --white: #fff;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --header-height: 64px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pr-app { flex: 1; }

/* ===========================================
   HEADER
   =========================================== */
.pr-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green);
    border-bottom: 1px solid #333;
    height: var(--header-height);
}

.pr-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.pr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.pr-logo-img { height: 40px; width: auto; }
.pr-logo-icon { font-size: 28px; }
.pr-logo-text { font-size: 20px; font-weight: 700; }

.pr-start-logo { max-width: 250px; height: auto; margin-bottom: 16px; }

.pr-delivery-area-text {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

.pr-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pr-header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.pr-cart-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    opacity: 0.5;
    transition: opacity 0.2s, background 0.2s;
    border-radius: 8px;
}
.pr-cart-toggle.has-items {
    opacity: 1;
    background: rgba(255,255,255,0.15);
}
.pr-cart-toggle.has-items:hover {
    background: rgba(255,255,255,0.25);
}

.pr-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e53935;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    border: 2px solid var(--green);
}

.pr-cart-badge-pop { transform: scale(1.3); }

/* ===========================================
   SCREENS
   =========================================== */
.pr-screen { display: none; }
.pr-screen-active { display: block; }

/* ===========================================
   START SCREEN — Italian Theme
   =========================================== */
#screen-start {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #C62828 50%, #B71C1C 100%);
    min-height: calc(100vh - var(--header-height));
    position: relative;
}

#screen-start::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.pr-start-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.pr-start-hero {
    text-align: center;
    margin-bottom: 40px;
}

.pr-start-logo { max-width: 280px; height: auto; margin-bottom: 16px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.pr-start-emoji { font-size: 64px; display: block; margin-bottom: 16px; }
.pr-start-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.pr-start-subtitle { color: rgba(255,255,255,0.85); font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.pr-start-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.pr-start-btn {
    background: rgba(255,255,255,0.95);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 32px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.pr-start-btn:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.pr-start-btn-icon { font-size: 40px; }
.pr-start-btn-title { font-size: 20px; font-weight: 700; color: var(--text); }
.pr-start-btn-desc { font-size: 13px; color: var(--text-light); }

.pr-delivery-area-text {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Postcode check */
.pr-postcode-check {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.pr-postcode-check h3 { margin-bottom: 12px; }

.pr-postcode-input-wrap {
    display: flex;
    gap: 8px;
}

.pr-postcode-input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    text-transform: uppercase;
    outline: none;
}

.pr-postcode-input-wrap input:focus { border-color: var(--primary); }

.pr-postcode-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-light);
}

.pr-success { color: var(--green); font-weight: 500; }
.pr-error { color: var(--primary); font-weight: 500; }
.pr-loading { color: var(--text-muted); }

/* ===========================================
   BUTTONS
   =========================================== */
.pr-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

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

.pr-btn-primary:hover { background: var(--primary-dark); }
.pr-btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.pr-btn-full { width: 100%; }

/* ===========================================
   MENU LAYOUT
   =========================================== */
.pr-menu-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 100px;
}

/* Category nav */
.pr-cat-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 0;
    position: sticky;
    top: var(--header-height);
    background: var(--bg);
    z-index: 50;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pr-cat-nav::-webkit-scrollbar { display: none; }

.pr-cat-nav-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all 0.15s;
}

.pr-cat-nav-item:hover,
.pr-cat-nav-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Discount banner */
.pr-discount-banner {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-light);
    border: 1px solid #C8E6C9;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--green);
}

.pr-discount-banner-icon { font-size: 24px; }

/* ===========================================
   PRODUCT CARDS
   =========================================== */
.pr-category {
    grid-column: 1 / 2;
    margin-bottom: 16px;
}

.pr-category-header {
    margin-bottom: 12px;
    padding-top: 8px;
}

.pr-category-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.pr-category-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 2px;
}

.pr-products-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.pr-product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.pr-product-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.pr-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pr-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pr-product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pr-product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 4px;
}

.pr-product-ingredients {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pr-product-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.pr-add-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    align-self: stretch;
}

.pr-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pr-price { font-weight: 700; font-size: 15px; }
.pr-price-original { text-decoration: line-through; color: var(--text-muted); font-size: 13px; }
.pr-price-discount { font-weight: 700; font-size: 15px; color: var(--green); }

.pr-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.pr-add-btn:hover { background: var(--primary-dark); }

/* ===========================================
   CART SIDEBAR
   =========================================== */
.pr-cart-sidebar {
    grid-column: 2 / 3;
    grid-row: 2 / 100;
    position: sticky;
    top: calc(var(--header-height) + 60px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: calc(100vh - var(--header-height) - 80px);
    max-height: calc(100vh - var(--header-height) - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pr-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.pr-cart-header h3 { font-size: 16px; margin-bottom: 4px; }

.pr-badge-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.pr-badge-pickup { background: #E3F2FD; color: #1565C0; }
.pr-badge-delivery { background: #FFF3E0; color: #E65100; }

.pr-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.pr-cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

.pr-cart-item {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-light);
}

.pr-cart-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pr-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.pr-cart-item-extras {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.pr-cart-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pr-cart-item-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 12px;
}

.pr-cart-item-price {
    font-weight: 600;
    font-size: 14px;
}

.pr-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.pr-cart-item-remove:hover { color: var(--primary); }

.pr-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.pr-cart-totals { margin-bottom: 12px; }

.pr-cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    color: var(--text-light);
}

.pr-cart-discount { color: var(--green); }
.pr-cart-discount span { color: var(--green); }

.pr-cart-total-final {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
    margin-top: 4px;
}

.pr-free { color: var(--green); font-weight: 600; }
.pr-cart-discount-row { color: #2E7D32; font-weight: 600; }
.pr-cart-discount-row span:last-child { color: #2E7D32; }

/* ===========================================
   PRODUCT MODAL
   =========================================== */
.pr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pr-modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.pr-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 1;
}

.pr-modal-product {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}

.pr-modal-product h2 { font-size: 22px; margin-bottom: 4px; }
.pr-modal-ingredients { color: var(--text-light); font-size: 14px; margin-bottom: 8px; }
.pr-modal-price { font-size: 18px; font-weight: 700; }

.pr-modal-extras { padding: 0 24px; }

.pr-extra-group {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.pr-extra-group h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.pr-required {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
}

.pr-extra-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.pr-extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
}

.pr-extra-item input { width: 18px; height: 18px; accent-color: var(--primary); }
.pr-extra-item-name { flex: 1; }
.pr-extra-item-price { color: var(--text-light); font-size: 13px; }

.pr-extra-error { background: var(--primary-light); border-radius: var(--radius-sm); padding: 8px; }

.pr-modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--border-light);
    position: sticky;
    bottom: 0;
    background: var(--white);
}

.pr-qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.pr-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg);
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
}

.pr-qty-btn:hover { background: var(--border); }
.pr-qty-value { width: 40px; text-align: center; font-weight: 700; font-size: 16px; }

.pr-btn-add { flex: 1; padding: 12px 16px; font-size: 15px; }

/* ===========================================
   CHECKOUT
   =========================================== */
.pr-checkout-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 100px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.pr-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.pr-back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
}

.pr-checkout-form h2 { font-size: 22px; margin-bottom: 20px; }
.pr-checkout-form h3 { font-size: 16px; margin: 20px 0 12px; }
.pr-checkout-summary h3 { font-size: 16px; margin-bottom: 12px; }

.pr-field { margin-bottom: 14px; }
.pr-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text); }

.pr-field input,
.pr-field textarea,
.pr-field select,
.pr-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.pr-field input:focus,
.pr-field textarea:focus,
.pr-select:focus { border-color: var(--primary); }

.pr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pr-payment-options {
    display: flex;
    gap: 12px;
}

.pr-payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.15s;
}

.pr-payment-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pr-payment-option input { accent-color: var(--primary); }

.pr-payment-fee {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
}

.pr-payment-option:has(input:checked) .pr-payment-fee {
    color: var(--primary);
}

.pr-btn-order { margin-top: 24px; padding: 16px; font-size: 16px; }

.pr-checkout-items { display: flex; flex-direction: column; gap: 4px; }

.pr-checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.pr-checkout-item small { color: var(--text-muted); }

/* ===========================================
   CONFIRMATION
   =========================================== */
.pr-confirmation-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.pr-confirmation-icon { font-size: 64px; margin-bottom: 16px; }
.pr-confirmation-content h1 { font-size: 28px; margin-bottom: 8px; }
.pr-confirmation-subtitle { color: var(--text-light); font-size: 16px; margin-bottom: 32px; }

.pr-confirmation-details {
    text-align: left;
    margin-bottom: 32px;
}

/* Thank-you page badges */
.pr-thankyou-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 24px;
}

.pr-thankyou-paid {
    background: var(--green-light);
    color: var(--green);
}

.pr-thankyou-pending {
    background: #FFF3E0;
    color: var(--orange);
}

/* ===========================================
   MOBILE CART
   =========================================== */
.pr-mobile-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: flex-end;
}

.pr-mobile-cart {
    background: var(--white);
    width: 100%;
    max-height: 80vh;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pr-mobile-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.pr-mobile-cart-header h3 { font-size: 18px; }

.pr-mobile-cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

.pr-mobile-cart-items {
    flex: 1;
    overflow-y: auto;
}

.pr-mobile-cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* Mobile bottom bar */
.pr-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--border);
}

.pr-mobile-bar-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.pr-mobile-bar-total { font-weight: 700; }

/* ===========================================
   LOADING
   =========================================== */
.pr-loading-screen {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.pr-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toast notification */
.pr-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 500;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.pr-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Custom checkbox/radio styling */
.pr-extra-item-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}

input[type="radio"] + .pr-extra-item-check { border-radius: 50%; }

input:checked + .pr-extra-item-check {
    background: var(--primary);
    border-color: var(--primary);
}

input:checked + .pr-extra-item-check::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 700;
}

.pr-extra-item input { display: none; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .pr-menu-layout {
        grid-template-columns: 1fr;
        padding-bottom: 80px;
    }

    .pr-cart-sidebar { display: none; }

    .pr-start-options {
        grid-template-columns: 1fr;
    }

    .pr-start-container { padding: 40px 16px; }
    .pr-start-logo { max-width: 220px; }
    .pr-start-hero h1 { font-size: 24px; }

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

    .pr-product-card { padding: 12px 16px; }
    .pr-product-ingredients { -webkit-line-clamp: 2; }

    .pr-modal {
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius) var(--radius) 0 0;
        align-self: flex-end;
    }

    .pr-header-phone { display: none; }

    .pr-field-row { grid-template-columns: 1fr; }
    .pr-payment-options { flex-direction: column; }
}

@media (min-width: 769px) {
    .pr-mobile-bar { display: none !important; }
    /* cart toggle altijd zichtbaar */
}

/* === QUANTITY STEPPER IN MODAL === */
.pr-extra-qty-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.pr-extra-qty-row:last-child { border-bottom: none; }
.pr-extra-qty-row .pr-extra-item-name { flex: 1; font-size: 15px; }
.pr-extra-qty-row .pr-extra-item-price { color: var(--text-light); font-size: 13px; min-width: 60px; text-align: right; }

.pr-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.pr-qty-step-btn {
    background: var(--surface);
    border: none;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
.pr-qty-step-btn:hover { background: var(--border); }
.pr-qty-step-val {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

/* === OPMERKINGENVELD IN MODAL === */
.pr-modal-notes {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.pr-modal-notes-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text);
}
.pr-modal-notes-hint {
    font-weight: 400;
    color: var(--text-light);
    font-size: 13px;
}
.pr-modal-notes-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.pr-modal-notes-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* === NOTES IN CART === */
.pr-cart-item-notes {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 2px;
}

/* === AFHAAL VERGELIJKING OP STARTSCHERM === */
.pr-pickup-compare {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pr-pickup-compare-tip {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
    margin: 0;
}
.pr-btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    color: white;
}
.pr-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* === ORDERTYPE BAR IN CHECKOUT === */
.pr-ordertype-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
}
.pr-switch-type-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.pr-switch-type-btn:hover { opacity: 0.8; }

/* === BEVESTIGING TIJDSTIP CARD === */
.pr-ready-time-card {
    background: linear-gradient(135deg, var(--green) 0%, #1B5E20 100%);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    margin: 20px 0;
    color: white;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
}
.pr-ready-time-label {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}
.pr-ready-time-clock {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

/* === TOCH AFHALEN KNOP (aanweziger) === */
.pr-toch-afhalen-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light, #888);
    font-size: 13px;
    text-align: center;
    margin: 2px 0;
}
.pr-toch-afhalen-bar::before,
.pr-toch-afhalen-bar::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border, #e0e0e0);
}
.pr-btn-toch-afhalen {
    background: #f5f5f5;
    border: 2px solid var(--green);
    color: var(--green);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: center;
}
.pr-btn-toch-afhalen:hover {
    background: var(--green);
    color: white;
}

/* === AFHAALPRIJS IN WINKELWAGEN === */
.pr-pickup-savings {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0faf0;
    border: 1.5px solid #c8e6c9;
    border-radius: 8px;
    font-size: 13px;
    color: #2E7D32;
    text-align: center;
}

/* === TOCH AFHALEN BLOKJE IN CHECKOUT === */
.pr-toch-afhalen-checkout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f0faf0;
    border: 2px solid var(--green);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.pr-toch-afhalen-checkout-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--text);
}
.pr-toch-afhalen-checkout-info strong {
    font-size: 15px;
    color: var(--green);
}
.pr-besparing {
    color: var(--green);
}
.pr-btn-toch-afhalen-checkout {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    transition: opacity 0.2s;
}
.pr-btn-toch-afhalen-checkout:hover {
    opacity: 0.85;
}

/* === GESLOTEN BANNER === */
#pr-closed-banner {
    background: #b71c1c;
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* === BTW REGEL === */
.pr-btw-row {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
    padding-top: 4px;
}

/* === BESTELHISTORIE === */
.pr-history-block {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}
.pr-history-block h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}
.pr-history-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pr-history-order {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
}
.pr-history-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.pr-history-date {
    font-size: 12px;
    color: #999;
}
.pr-history-total {
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
}
.pr-history-items {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}
.pr-btn-secondary {
    background: white;
    color: var(--green);
    border: 2px solid var(--green);
    border-radius: 8px;
    padding: 7px 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.pr-btn-secondary:hover {
    background: var(--green);
    color: white;
}

/* === HISTORY LINK BUTTON OP STARTSCHERM === */
.pr-start-history-link {
    margin-bottom: 16px;
}
.pr-history-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 20px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.pr-history-link-btn:hover {
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* ============================================================
   HOMEPAGE SECTIES — v2
   ============================================================ */

.pr-homepage-sections {
    background: #f7f7f5;
    overflow: hidden;
}

/* Actie banner */
.pr-promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.pr-promo-icon { font-size: 20px; }

/* Sectie wrapper */
.pr-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 32px;
}

/* Section labels & titles */
.pr-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 6px;
}
.pr-label-light { color: rgba(255,255,255,0.7); }
.pr-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    line-height: 1.2;
}
.pr-title-light { color: #fff; margin-bottom: 10px; }

/* ── OVER ONS ── */
.pr-section-about {
    padding-top: 0;
    padding-bottom: 32px;
}
.pr-about-inner {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    overflow: hidden;
}
.pr-about-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b5e20, #66bb6a, #c8e6c9);
}
@media (max-width: 640px) {
    .pr-about-inner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 24px;
    }
}

.pr-about-text-col {}
.pr-about-para {
    font-size: 14.5px;
    color: #444;
    line-height: 1.8;
    margin: 0 0 14px;
}
.pr-about-slogan {
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    font-style: italic;
    margin: 18px 0 0;
    padding-left: 14px;
    border-left: 3px solid var(--green);
    line-height: 1.5;
}
.pr-about-since {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}
.pr-about-since-year {
    font-size: 15px;
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
}
.pr-about-since-text {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* 4-foto grid */
.pr-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
}

.pr-about-grid-item {
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
.pr-about-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.pr-about-grid-item:hover img { transform: scale(1.05); }

/* Groot: volle breedte, bredere verhouding */
.pr-about-grid-full {
    grid-column: 1 / -1;
    aspect-ratio: 16/7;
}
/* Klein: halve breedte */
.pr-about-grid-half {
    aspect-ratio: 4/3;
}

/* ── INFO: OPENINGSTIJDEN + CONTACT ── */
.pr-section-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 36px;
    padding-bottom: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
}
@media (max-width: 640px) {
    .pr-section-info { grid-template-columns: 1fr; }
}

.pr-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}
.pr-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.pr-info-icon { font-size: 22px; line-height: 1; }
.pr-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}
.pr-info-empty { color: #bbb; font-size: 13px; font-style: italic; }

/* Openingstijden tabel */
.pr-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.pr-hours-table tr + tr td { padding-top: 6px; }
.pr-hours-table td { padding: 0 0 6px; vertical-align: top; }
.pr-hours-day-name {
    font-weight: 600;
    width: 96px;
    color: #333;
}
.pr-hours-today .pr-hours-day-name { color: var(--green); }
.pr-hours-today-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--green);
    color: #fff;
    border-radius: 4px;
    padding: 1px 5px;
    margin-left: 5px;
    vertical-align: middle;
}
.pr-hours-times { color: #555; }
.pr-hours-times span { display: block; line-height: 1.6; }

/* Contact */
.pr-contact-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pr-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #444;
}
.pr-contact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.pr-dot-location { background: #e53935; }
.pr-dot-phone    { background: var(--green); }
.pr-dot-email    { background: #1976d2; }
.pr-contact-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}
.pr-contact-list a:hover { color: var(--green); }

/* Routeknop */
.pr-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 16px;
}
.pr-route-btn:hover { background: #1b5e20; transform: translateY(-1px); }
.pr-route-btn svg { flex-shrink: 0; }

/* Google Maps iframe */
.pr-map-embed {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.pr-map-embed iframe { display: block; width: 100%; max-width: 100%; }

/* ── NIEUWSBRIEF ── */
.pr-section-newsletter {
    padding-top: 0;
    padding-bottom: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.pr-newsletter-inner {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 100%);
    border-radius: 20px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 640px) {
    .pr-newsletter-inner {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 20px;
    }
}
.pr-newsletter-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 4px 0 0;
    line-height: 1.5;
}
.pr-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pr-newsletter-form input {
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    outline: none;
    transition: box-shadow 0.2s;
}
.pr-newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.pr-newsletter-submit {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.3px;
}
.pr-newsletter-submit:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}
#pr-newsletter-msg {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    min-height: 18px;
}

/* ── FOOTER ── */
.pr-footer {
    background: #1a1a1a;
    padding: 18px 24px;
    margin-top: auto;
}
.pr-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12.5px;
    color: #888;
    justify-content: center;
}
.pr-footer-brand {
    font-weight: 700;
    color: #ccc;
}
.pr-footer-sep {
    color: #444;
}
.pr-footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
.pr-footer a:hover {
    color: #fff;
}

/* ── ORDERBEHEER ── */
.pr-header-orders-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.pr-header-orders-btn:hover { background: rgba(255,255,255,0.15); }

#screen-orders {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.pr-orders-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.pr-orders-back {
    background: none;
    border: none;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.pr-orders-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}
.pr-orders-search {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    background: #f7f7f5;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.pr-orders-search input {
    flex: 1;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}
.pr-orders-search input:focus { border-color: var(--green); }
.pr-orders-search select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    outline: none;
}
.pr-orders-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.pr-orders-hint, .pr-orders-loading {
    color: #aaa;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}
.pr-order-row {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}
.pr-order-row:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.pr-order-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.pr-order-row-num { font-weight: 700; color: #1a1a1a; font-size: 15px; }
.pr-order-row-name { flex: 1; font-size: 14px; color: #333; }
.pr-order-row-sub {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    align-items: center;
}
.pr-order-row-total { font-weight: 600; color: #1a1a1a; margin-left: auto; }

/* Type badges */
.pr-type-bezorgen, .pr-type-delivery { background: #e3f2fd; color: #1565c0; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.pr-type-afhalen, .pr-type-pickup   { background: #e8f5e9; color: #1b5e20; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }

/* Status badges */
.pr-status-processing { color: #e65100; font-weight: 600; }
.pr-status-completed  { color: #1b5e20; font-weight: 600; }
.pr-status-cancelled  { color: #b71c1c; font-weight: 600; }
.pr-status-on-hold    { color: #f57f17; font-weight: 600; }

/* Order detail */
.pr-order-detail {
    position: absolute;
    inset: 0;
    background: #f7f7f5;
    overflow-y: auto;
    z-index: 10;
}
.pr-order-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    gap: 10px;
    flex-wrap: wrap;
}
.pr-order-detail-back {
    background: none;
    border: none;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.pr-order-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pr-btn-danger {
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pr-btn-danger:hover { background: #b71c1c; }
.pr-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.pr-btn-secondary:hover { background: #e0e0e0; }
.pr-order-detail-info {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 20px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.pr-detail-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.pr-detail-row strong { width: 90px; flex-shrink: 0; color: #888; font-weight: 600; }
.pr-detail-row a { color: var(--green); text-decoration: none; }
.pr-order-items-table {
    width: calc(100% - 40px);
    margin: 12px 20px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    font-size: 14px;
}
.pr-order-items-table th {
    background: #f5f5f5;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
}
.pr-order-items-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.pr-order-items-table tfoot td { font-weight: 700; background: #f9f9f9; }
.pr-order-extras { color: #888; }
.pr-detail-status-change {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin: 0 20px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    font-size: 14px;
    flex-wrap: wrap;
}
.pr-detail-status-change select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

/* Toast notificatie */
.pr-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1b5e20;
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: opacity 0.5s;
    pointer-events: none;
    white-space: nowrap;
}
.pr-toast-error { background: #c62828; }


/* ── SITE NAVIGATIE IN HEADER ────────────────────────── */
.pr-site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}
.pr-site-nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 14px;
    white-space: nowrap;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pr-site-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
@media (max-width: 900px) {
    .pr-site-nav { display: none; }
}

/* ── CONTACT KNOPPEN ─────────────────────────────────── */
.pr-contact-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.pr-contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c62828;
    color: #fff !important;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
}
.pr-contact-email-btn:hover { background: #b71c1c; transform: translateY(-1px); }
.pr-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.pr-route-btn:hover { background: #1b5e20; transform: translateY(-1px); }

@media (max-width: 640px) {
    .pr-site-nav-link { padding: 10px 12px; font-size: 12.5px; }
    .pr-contact-btns { flex-direction: column; }
}

/* ── ALLERGENEN ──────────────────────────────────────── */
.pr-allergen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #aaa;
    transition: color 0.15s;
}
.pr-allergen-btn:hover {
    color: #555;
}
.pr-allergen-btn svg {
    width: 20px;
    height: 20px;
}
@keyframes pr-popup-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pr-cart-item-qty { display:inline-block; background:#2E7D32; color:white; font-size:11px; font-weight:700; padding:1px 5px; border-radius:4px; margin-right:3px; }

/* ─── Image lightbox ─── */
.pr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: zoom-out;
}
.pr-lightbox.active {
    opacity: 1;
}
.pr-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.pr-lightbox.active img {
    transform: scale(1);
}
.pr-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 4px 12px;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.pr-lightbox-close:hover {
    opacity: 1;
}
.pr-product-img {
    cursor: zoom-in;
}

/* ─── Custom popup overlay ─── */
.pr-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: pr-popup-fade-in 0.2s ease;
}

@keyframes pr-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pr-popup-box {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 12px 48px rgba(0,0,0,0.2);
    text-align: center;
    animation: pr-popup-slide-up 0.3s ease;
}

@keyframes pr-popup-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pr-popup-icon {
    font-size: 56px;
    margin-bottom: 16px;
    line-height: 1;
}

.pr-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.pr-popup-message {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pr-popup-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.pr-popup-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.pr-popup-btn:active {
    transform: translateY(0);
}

