/**
 * Online Ordering Frontend Styles
 *
 * Premium mobile-first design with smooth animations
 * Brandable via CSS variables
 *
 * @package Online_Ordering
 */

/* ============================
   CSS VARIABLES - THEMING
   ============================ */

:root {
    /* Primary brand colors - Caribbean vibes */
    --oo-primary: #1a1a2e;
    --oo-primary-hover: #16213e;
    --oo-accent: #ff6b35;
    --oo-accent-hover: #e55a2b;
    --oo-accent-light: rgba(255, 107, 53, 0.1);

    /* Status colors */
    --oo-success: #10b981;
    --oo-success-light: rgba(16, 185, 129, 0.1);
    --oo-warning: #f59e0b;
    --oo-warning-light: rgba(245, 158, 11, 0.1);
    --oo-error: #ef4444;
    --oo-error-light: rgba(239, 68, 68, 0.1);

    /* Text colors */
    --oo-text: #1f2937;
    --oo-text-light: #6b7280;
    --oo-text-muted: #9ca3af;
    --oo-text-inverse: #ffffff;

    /* Background colors */
    --oo-bg: #ffffff;
    --oo-bg-light: #f9fafb;
    --oo-bg-warm: #fef7f4;
    --oo-bg-dark: #f3f4f6;
    --oo-border: #e5e7eb;
    --oo-border-light: #f3f4f6;

    /* Effects */
    --oo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --oo-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --oo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --oo-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --oo-radius-sm: 6px;
    --oo-radius: 12px;
    --oo-radius-lg: 16px;
    --oo-radius-full: 9999px;

    /* Transitions */
    --oo-transition-fast: 0.15s ease;
    --oo-transition: 0.2s ease;
    --oo-transition-slow: 0.3s ease;

    /* Font */
    --oo-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================
   BASE RESET
   ============================ */

.oo-menu-wrap *,
.oo-cart-sidebar *,
.oo-checkout-wrap *,
.oo-tracking-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.oo-menu-wrap,
.oo-tracking-wrap {
    font-family: var(--oo-font);
    color: var(--oo-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================
   CLOSED NOTICE
   ============================ */

.oo-closed-notice {
    background: linear-gradient(135deg, var(--oo-warning-light) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--oo-radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.oo-closed-notice p {
    margin: 0;
    color: var(--oo-text);
}

.oo-closed-notice p:first-child {
    font-size: 16px;
    margin-bottom: 8px;
}

.oo-closed-notice p:last-child {
    font-size: 14px;
    color: var(--oo-text-light);
}

/* ============================
   CATEGORY NAVIGATION
   ============================ */

.oo-category-nav {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--oo-bg);
    border-bottom: 1px solid var(--oo-border-light);
    margin-bottom: 24px;
}

.oo-category-nav::-webkit-scrollbar {
    display: none;
}

.oo-category-nav.oo-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    margin: 0 -20px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--oo-shadow);
    border-bottom: none;
}

.oo-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--oo-bg-light);
    color: var(--oo-text);
    text-decoration: none;
    border-radius: var(--oo-radius-full);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--oo-transition);
    border: 2px solid transparent;
}

.oo-category-nav a:hover {
    background: var(--oo-accent-light);
    color: var(--oo-accent);
    border-color: var(--oo-accent);
    transform: translateY(-1px);
}

.oo-category-nav a.active {
    background: var(--oo-accent);
    color: var(--oo-text-inverse);
    border-color: var(--oo-accent);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ============================
   MENU DISPLAY
   ============================ */

.oo-menu-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    background: var(--oo-bg);
}

.oo-menu-category {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.oo-menu-category h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--oo-primary);
    letter-spacing: -0.02em;
}

.oo-category-description {
    font-size: 15px;
    color: var(--oo-text-light);
    margin: 0 0 24px;
}

.oo-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .oo-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .oo-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* ============================
   MENU ITEM CARD
   ============================ */

.oo-menu-item {
    display: flex;
    flex-direction: column;
    background: var(--oo-bg);
    border-radius: var(--oo-radius-lg);
    overflow: hidden;
    transition: all var(--oo-transition);
    border: 1px solid var(--oo-border-light);
    position: relative;
}

.oo-menu-item:hover {
    box-shadow: var(--oo-shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.oo-menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--oo-bg-light) 0%, var(--oo-bg-dark) 100%);
    transition: transform var(--oo-transition-slow);
}

.oo-menu-item:hover .oo-menu-item-image {
    transform: scale(1.05);
}

/* Image wrapper for hover zoom effect */
.oo-menu-item-image-wrap {
    overflow: hidden;
    position: relative;
}

.oo-menu-item-image-wrap.oo-no-image {
    background: linear-gradient(135deg, var(--oo-bg-light) 0%, var(--oo-bg-dark) 100%);
}

.oo-menu-item-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.oo-menu-item-placeholder::after {
    content: '';
    width: 64px;
    height: 64px;
    background: var(--oo-bg-dark);
    border-radius: 50%;
    opacity: 0.5;
}

.oo-menu-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.oo-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.oo-menu-item-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--oo-text);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.oo-menu-item-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--oo-accent);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.oo-menu-item-description {
    font-size: 14px;
    color: var(--oo-text-light);
    margin: 0 0 16px;
    flex: 1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================
   DIETARY TAGS
   ============================ */

.oo-dietary-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.oo-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--oo-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.oo-tag-v {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.oo-tag-vg {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    color: #14532d;
}

.oo-tag-gf {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.oo-tag-halal {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* ============================
   SPICE LEVEL
   ============================ */

.oo-spice-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--oo-text-light);
    margin-bottom: 16px;
    padding: 6px 12px;
    background: var(--oo-bg-warm);
    border-radius: var(--oo-radius-full);
    width: fit-content;
}

/* ============================
   ADD TO CART BUTTON
   ============================ */

.oo-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--oo-primary);
    color: var(--oo-text-inverse);
    border: none;
    border-radius: var(--oo-radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--oo-transition);
    text-align: center;
    margin-top: auto;
}

.oo-add-to-cart:hover {
    background: var(--oo-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.25);
}

.oo-add-to-cart:active {
    transform: translateY(0);
}

.oo-add-to-cart.oo-added {
    background: var(--oo-success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.oo-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.oo-add-price {
    opacity: 0.9;
    font-weight: 600;
}

.oo-out-of-stock {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--oo-bg-dark);
    color: var(--oo-text-muted);
    border-radius: var(--oo-radius);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
}

/* ============================
   CART TOGGLE BUTTON (FAB)
   ============================ */

.oo-cart-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--oo-accent) 0%, #ff8c42 100%);
    color: var(--oo-text-inverse);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--oo-transition);
}

.oo-cart-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5);
}

.oo-cart-toggle:active {
    transform: scale(0.98);
}

.oo-cart-toggle svg {
    width: 26px;
    height: 26px;
}

.oo-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    background: var(--oo-primary);
    color: var(--oo-text-inverse);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 2px solid var(--oo-bg);
    animation: oo-pop 0.3s ease;
}

@keyframes oo-pop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================
   CART OVERLAY
   ============================ */

.oo-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--oo-transition-slow);
}

.oo-cart-overlay.oo-cart-open {
    opacity: 1;
    visibility: visible;
}

/* ============================
   CART SIDEBAR
   ============================ */

.oo-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--oo-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--oo-transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
}

.oo-cart-sidebar.oo-cart-open {
    transform: translateX(0);
}

.oo-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--oo-primary);
    color: var(--oo-text-inverse);
}

.oo-cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.oo-cart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--oo-text-inverse);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--oo-transition);
}

.oo-cart-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.oo-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--oo-bg-light);
}

/* ============================
   CART ITEMS
   ============================ */

.oo-cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.oo-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius);
    box-shadow: var(--oo-shadow-sm);
    transition: all var(--oo-transition);
}

.oo-cart-item:hover {
    box-shadow: var(--oo-shadow);
}

.oo-cart-item-info {
    flex: 1;
    min-width: 0;
}

.oo-cart-item-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--oo-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oo-cart-item-price {
    font-size: 14px;
    color: var(--oo-accent);
    font-weight: 600;
}

.oo-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--oo-bg-light);
    border-radius: var(--oo-radius-full);
    padding: 4px;
}

.oo-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--oo-bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--oo-transition);
    color: var(--oo-text);
    box-shadow: var(--oo-shadow-sm);
}

.oo-qty-btn:hover {
    background: var(--oo-accent);
    color: var(--oo-text-inverse);
    transform: scale(1.1);
}

.oo-qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.oo-cart-item-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--oo-text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--oo-transition);
}

.oo-cart-item-remove:hover {
    background: var(--oo-error-light);
    color: var(--oo-error);
}

/* ============================
   CART TOTALS
   ============================ */

.oo-cart-subtotals {
    padding: 20px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius);
    margin-bottom: 16px;
}

.oo-cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--oo-text-light);
}

.oo-cart-row:last-child {
    margin-bottom: 0;
}

.oo-cart-total {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-size: 20px;
    font-weight: 800;
    background: var(--oo-bg);
    border-radius: var(--oo-radius);
    color: var(--oo-text);
    letter-spacing: -0.02em;
}

.oo-cart-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--oo-text-muted);
}

.oo-cart-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
    color: var(--oo-border);
}

.oo-cart-empty p {
    font-size: 17px;
    font-weight: 600;
    color: var(--oo-text);
    margin: 0 0 8px;
}

.oo-cart-empty span {
    font-size: 14px;
    color: var(--oo-text-muted);
}

/* ============================
   PROMO CODE SECTION
   ============================ */

.oo-promo-section {
    margin-bottom: 16px;
}

.oo-promo-input {
    display: flex;
    gap: 8px;
}

.oo-promo-input input {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid var(--oo-border);
    border-radius: var(--oo-radius);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--oo-bg);
    transition: all var(--oo-transition);
}

.oo-promo-input input:focus {
    outline: none;
    border-color: var(--oo-accent);
}

.oo-promo-input input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.oo-promo-input button {
    padding: 12px 18px;
    background: var(--oo-primary);
    color: var(--oo-text-inverse);
    border: none;
    border-radius: var(--oo-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--oo-transition);
    white-space: nowrap;
}

.oo-promo-input button:hover {
    background: var(--oo-primary-hover);
}

.oo-promo-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.oo-promo-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--oo-radius-sm);
    font-size: 13px;
    display: none;
}

.oo-promo-message.oo-show {
    display: block;
}

.oo-promo-message.oo-success {
    background: var(--oo-success-light);
    color: #065f46;
}

.oo-promo-message.oo-error {
    background: var(--oo-error-light);
    color: #991b1b;
}

.oo-promo-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--oo-success-light);
    border-radius: var(--oo-radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.oo-promo-tag {
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    background: rgba(16, 185, 129, 0.15);
    padding: 4px 10px;
    border-radius: var(--oo-radius-sm);
}

.oo-promo-saving {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--oo-success);
}

.oo-promo-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #065f46;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--oo-transition);
}

.oo-promo-remove:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--oo-error);
}

.oo-cart-discount {
    color: var(--oo-success);
    font-weight: 600;
}

/* ============================
   CART FOOTER
   ============================ */

.oo-cart-footer {
    padding: 20px 24px;
    background: var(--oo-bg);
    border-top: 1px solid var(--oo-border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.oo-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--oo-accent) 0%, #ff8c42 100%);
    color: var(--oo-text-inverse);
    border: none;
    border-radius: var(--oo-radius);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--oo-transition);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.oo-cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    color: var(--oo-text-inverse);
}

.oo-cart-checkout:active {
    transform: translateY(0);
}

/* ============================
   CHECKOUT - DELIVERY TOGGLE
   ============================ */

.oo-delivery-toggle {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow-sm);
}

.oo-delivery-toggle h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--oo-text);
}

.oo-toggle-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.oo-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--oo-bg-light);
    border: 2px solid var(--oo-border);
    border-radius: var(--oo-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--oo-transition);
    color: var(--oo-text);
}

.oo-toggle-btn:hover {
    border-color: var(--oo-accent);
    background: var(--oo-accent-light);
}

.oo-toggle-btn.active {
    border-color: var(--oo-accent);
    background: linear-gradient(135deg, var(--oo-accent) 0%, #ff8c42 100%);
    color: var(--oo-text-inverse);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.oo-toggle-btn .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

/* ============================
   POSTCODE CHECKER
   ============================ */

.oo-postcode-checker {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow-sm);
}

.oo-postcode-checker h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--oo-text);
}

.oo-postcode-field {
    display: flex;
    gap: 12px;
}

.oo-postcode-field input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--oo-border);
    border-radius: var(--oo-radius);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--oo-transition);
    background: var(--oo-bg-light);
}

.oo-postcode-field input:focus {
    outline: none;
    border-color: var(--oo-accent);
    background: var(--oo-bg);
    box-shadow: 0 0 0 4px var(--oo-accent-light);
}

.oo-postcode-field button {
    padding: 14px 24px;
    background: var(--oo-primary);
    color: var(--oo-text-inverse);
    border: none;
    border-radius: var(--oo-radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--oo-transition);
    white-space: nowrap;
}

.oo-postcode-field button:hover {
    background: var(--oo-primary-hover);
    transform: translateY(-2px);
}

.oo-postcode-result {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: var(--oo-radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oo-postcode-result.oo-success {
    background: var(--oo-success-light);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.oo-postcode-result.oo-error {
    background: var(--oo-error-light);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================
   TIMESLOT PICKER
   ============================ */

.oo-timeslot-picker {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow-sm);
}

.oo-timeslot-picker h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--oo-text);
}

.oo-timeslot-loading {
    text-align: center;
    padding: 32px;
    color: var(--oo-text-muted);
}

.oo-timeslot-loading .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--oo-border);
    border-top-color: var(--oo-accent);
    border-radius: 50%;
    animation: oo-spin 0.8s linear infinite;
    margin-right: 10px;
}

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

.oo-timeslot-days {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.oo-timeslot-days::-webkit-scrollbar {
    display: none;
}

.oo-day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
    background: var(--oo-bg-light);
    border: 2px solid var(--oo-border);
    border-radius: var(--oo-radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--oo-transition);
    min-width: 90px;
}

.oo-day-btn:hover {
    border-color: var(--oo-accent);
    background: var(--oo-accent-light);
}

.oo-day-btn.active {
    border-color: var(--oo-accent);
    background: var(--oo-accent);
    color: var(--oo-text-inverse);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.oo-day-name {
    font-weight: 700;
    font-size: 14px;
}

.oo-timeslot-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.oo-time-btn {
    padding: 14px 12px;
    background: var(--oo-bg-light);
    border: 2px solid var(--oo-border);
    border-radius: var(--oo-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--oo-transition);
    text-align: center;
}

.oo-time-btn:hover {
    border-color: var(--oo-accent);
    background: var(--oo-accent-light);
}

.oo-time-btn.active {
    background: var(--oo-accent);
    border-color: var(--oo-accent);
    color: var(--oo-text-inverse);
}

.oo-time-btn.oo-asap {
    background: linear-gradient(135deg, var(--oo-success) 0%, #34d399 100%);
    border-color: var(--oo-success);
    color: var(--oo-text-inverse);
    grid-column: span 2;
    font-size: 15px;
}

.oo-no-slots {
    text-align: center;
    padding: 32px;
    color: var(--oo-text-muted);
    font-size: 15px;
}

/* ============================
   ORDER TRACKING
   ============================ */

.oo-tracking-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: var(--oo-font);
}

/* Tracking Header */
.oo-tracking-header {
    text-align: center;
    margin-bottom: 40px;
}

.oo-tracking-header h1 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
    color: var(--oo-text);
    letter-spacing: -0.02em;
}

.oo-tracking-order-number {
    font-size: 18px;
    color: var(--oo-text-light);
    font-weight: 500;
}

/* Progress Bar */
.oo-tracking-progress {
    margin-bottom: 40px;
    padding: 32px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow);
}

.oo-progress-bar {
    height: 8px;
    background: var(--oo-bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 32px;
}

.oo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--oo-success) 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.oo-progress-steps {
    display: flex;
    justify-content: space-between;
}

.oo-progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.oo-progress-step-icon {
    width: 48px;
    height: 48px;
    background: var(--oo-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--oo-text-muted);
    font-weight: 700;
    font-size: 16px;
    transition: all var(--oo-transition-slow);
    border: 3px solid transparent;
}

.oo-progress-step.active .oo-progress-step-icon {
    background: var(--oo-success);
    color: var(--oo-text-inverse);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1);
    animation: oo-pulse 2s infinite;
}

.oo-progress-step.completed .oo-progress-step-icon {
    background: var(--oo-success);
    color: var(--oo-text-inverse);
}

@keyframes oo-pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.2); }
}

.oo-progress-step-label {
    font-size: 12px;
    color: var(--oo-text-muted);
    font-weight: 500;
}

.oo-progress-step.active .oo-progress-step-label {
    color: var(--oo-text);
    font-weight: 700;
}

/* Status Message */
.oo-tracking-status {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--oo-success-light);
    border-radius: var(--oo-radius);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.oo-status-message {
    font-size: 17px;
    font-weight: 600;
    color: #065f46;
    margin: 0;
}

/* Order Details */
.oo-tracking-details {
    background: var(--oo-bg);
    padding: 28px;
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow-sm);
    margin-bottom: 24px;
}

.oo-tracking-details h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--oo-text);
}

.oo-tracking-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--oo-border-light);
    gap: 16px;
}

.oo-tracking-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oo-tracking-detail-row span {
    color: var(--oo-text-light);
    font-size: 14px;
}

.oo-tracking-detail-row strong {
    font-weight: 600;
    color: var(--oo-text);
    text-align: right;
}

/* Order Items */
.oo-tracking-items {
    background: var(--oo-bg);
    padding: 28px;
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow-sm);
    margin-bottom: 24px;
}

.oo-tracking-items h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--oo-text);
}

.oo-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oo-items-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--oo-border-light);
}

.oo-items-list li:last-child {
    border-bottom: none;
}

.oo-item-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--oo-accent-light);
    color: var(--oo-accent);
    border-radius: var(--oo-radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.oo-item-name {
    flex: 1;
    font-weight: 500;
    color: var(--oo-text);
}

.oo-item-total {
    font-weight: 600;
    color: var(--oo-text);
}

/* Contact Info */
.oo-tracking-contact {
    background: var(--oo-bg-light);
    padding: 24px 28px;
    border-radius: var(--oo-radius-lg);
    text-align: center;
}

.oo-tracking-contact h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--oo-text);
}

.oo-tracking-contact p {
    margin: 0;
    color: var(--oo-text-light);
}

.oo-tracking-contact a {
    color: var(--oo-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.oo-tracking-contact a:hover {
    text-decoration: underline;
}

/* Tracking Lookup Form */
.oo-tracking-lookup {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: var(--oo-bg);
    border-radius: var(--oo-radius-lg);
    box-shadow: var(--oo-shadow);
    text-align: center;
}

.oo-tracking-lookup h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 800;
    color: var(--oo-text);
}

.oo-tracking-lookup > p {
    margin: 0 0 28px;
    color: var(--oo-text-light);
}

.oo-tracking-form {
    text-align: left;
}

.oo-form-field {
    margin-bottom: 20px;
}

.oo-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--oo-text);
}

.oo-form-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--oo-border);
    border-radius: var(--oo-radius);
    font-size: 16px;
    transition: all var(--oo-transition);
    background: var(--oo-bg-light);
}

.oo-form-field input:focus {
    outline: none;
    border-color: var(--oo-accent);
    background: var(--oo-bg);
    box-shadow: 0 0 0 4px var(--oo-accent-light);
}

.oo-tracking-form button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--oo-accent) 0%, #ff8c42 100%);
    color: var(--oo-text-inverse);
    border: none;
    border-radius: var(--oo-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--oo-transition);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.oo-tracking-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
}

/* ============================
   NOTIFICATIONS / TOAST
   ============================ */

.oo-notice {
    position: fixed;
    bottom: 100px;
    right: 24px;
    max-width: 340px;
    padding: 18px 24px;
    background: var(--oo-text);
    color: var(--oo-text-inverse);
    border-radius: var(--oo-radius);
    box-shadow: var(--oo-shadow-xl);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.oo-notice.oo-notice-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.oo-notice-success {
    background: var(--oo-success);
}

.oo-notice-error {
    background: var(--oo-error);
}

/* ============================
   SPINNER
   ============================ */

.oo-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--oo-text-inverse);
    border-radius: 50%;
    animation: oo-spin 0.7s linear infinite;
}

/* ============================
   UTILITIES
   ============================ */

.oo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================
   MOBILE ADJUSTMENTS
   ============================ */

@media (max-width: 640px) {
    .oo-cart-sidebar {
        max-width: 100%;
    }

    .oo-menu-wrap {
        padding: 16px;
    }

    .oo-menu-category h2 {
        font-size: 24px;
    }

    .oo-menu-item-image {
        height: 180px;
    }

    .oo-toggle-buttons {
        grid-template-columns: 1fr;
    }

    .oo-timeslot-times {
        grid-template-columns: repeat(3, 1fr);
    }

    .oo-time-btn.oo-asap {
        grid-column: span 3;
    }

    .oo-cart-toggle {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
    }

    .oo-tracking-wrap {
        padding: 24px 16px;
    }

    .oo-tracking-header h1 {
        font-size: 26px;
    }

    .oo-progress-step-icon {
        width: 40px;
        height: 40px;
    }

    .oo-progress-step-label {
        font-size: 11px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    .oo-category-nav a {
        padding: 8px 14px;
        font-size: 13px;
    }

    .oo-menu-item-content {
        padding: 16px;
    }

    .oo-add-to-cart {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ============================
   PRINT STYLES
   ============================ */

@media print {
    .oo-cart-toggle,
    .oo-cart-sidebar,
    .oo-cart-overlay,
    .oo-category-nav {
        display: none !important;
    }

    .oo-menu-wrap {
        padding: 0;
    }

    .oo-menu-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================
   REDUCED MOTION
   ============================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
