/**
 * Order Create Page Styles
 * Moderní design systém pro objednávkový formulář
 * Verze: 1.0
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */
:root {
    /* Primary colors */
    --order-primary: #D01313;
    --order-primary-dark: #B01010;
    --order-primary-light: #ff4444;

    /* Semantic colors */
    --order-success: #198754;
    --order-success-light: #d1e7dd;
    --order-danger: #dc3545;
    --order-danger-light: #f8d7da;
    --order-warning: #ffc107;
    --order-warning-light: #fff3cd;
    --order-info: #0dcaf0;
    --order-info-light: #cff4fc;
    --order-white: #ffffff;

    /* Neutral colors */
    --order-gray-50: #f8f9fa;
    --order-gray-100: #f1f3f5;
    --order-gray-200: #e9ecef;
    --order-gray-300: #dee2e6;
    --order-gray-400: #ced4da;
    --order-gray-500: #adb5bd;
    --order-gray-600: #6c757d;
    --order-gray-700: #495057;
    --order-gray-800: #343a40;
    --order-gray-900: #212529;

    /* Border & Shadow */
    --order-border: #dee2e6;
    --order-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --order-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --order-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --order-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);

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

    /* Spacing */
    --order-spacing-xs: 0.25rem;
    --order-spacing-sm: 0.5rem;
    --order-spacing-md: 1rem;
    --order-spacing-lg: 1.5rem;
    --order-spacing-xl: 2rem;

    /* Transitions */
    --order-transition: 0.2s ease;
    --order-transition-slow: 0.3s ease;
}

/* ==========================================================================
   ORDER PAGE LAYOUT
   ========================================================================== */
.order-page {
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Override overflow pro sticky sidebar - #custom_body má overflow-y: auto v app.blade.php což blokuje sticky */
.order-page#custom_body {
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Main white card container - like profile page */
.order-content-card {
    background: white;
    border-radius: var(--order-radius-lg);
    box-shadow: var(--order-shadow-lg);
    margin: 0 1rem 2rem 1rem;
    padding: 1.5rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .order-content-card {
        margin: 0 2rem 2rem 2rem;
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .order-content-card {
        max-width: 1400px;
        margin: 0 auto 2rem auto;
        padding: 2rem;
    }
}

.order-page-content {
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}

/* ==========================================================================
   ORDER HEADER SECTION
   ========================================================================== */
.order-header {
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    padding: 2rem 1rem;
    margin-top: 20px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--order-radius);
}

/* Decorative pattern overlay (optional) */
.order-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/order_header_bg.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.order-header-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.order-header-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   ORDER STEPPER
   ========================================================================== */
.order-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.order-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--order-transition);
}

.order-step-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 576px) {
    .order-step-label {
        display: block;
    }
}

.order-step.active .order-step-number {
    background: white;
    color: var(--order-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.order-step.active .order-step-label {
    color: white;
    font-weight: 600;
}

.order-step.complete .order-step-number {
    background: var(--order-success);
    color: white;
}

.order-step.complete .order-step-label {
    color: rgba(255, 255, 255, 0.9);
}

.order-step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

@media (min-width: 576px) {
    .order-step-line {
        width: 60px;
    }
}

.order-step.complete + .order-step-line {
    background: var(--order-success);
}

/* ==========================================================================
   DATE PICKER SECTION
   ========================================================================== */
.order-date-section {
    background: var(--order-gray-50);
    border-radius: var(--order-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--order-gray-200);
}

.order-date-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--order-gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-date-section-title i {
    color: var(--order-primary);
}

.order-date-picker {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-date-input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.order-date-input-label {
    display: block;
    font-size: 0.85rem;
    color: var(--order-gray-600);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.order-date-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    border: 2px solid var(--order-gray-200);
    border-radius: var(--order-radius);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--order-transition);
    background: white;
    color: var(--order-gray-800);
}

.order-date-input:focus {
    outline: none;
    border-color: var(--order-primary);
    box-shadow: 0 0 0 3px rgba(208, 19, 19, 0.1);
}

.order-date-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--order-gray-500);
    pointer-events: none;
    margin-top: 0.75rem;
}

.order-date-btn {
    align-self: flex-end;
    padding: 0.875rem 1.5rem;
    background: var(--order-primary);
    color: white;
    border: none;
    border-radius: var(--order-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--order-transition);
    white-space: nowrap;
}

.order-date-btn:hover {
    background: var(--order-primary-dark);
}

/* Flatpickr custom theme */
.flatpickr-calendar {
    border-radius: var(--order-radius) !important;
    box-shadow: var(--order-shadow-lg) !important;
    border: none !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--order-primary) !important;
    border-color: var(--order-primary) !important;
}

.flatpickr-day.inRange {
    background: rgba(208, 19, 19, 0.1) !important;
    border-color: transparent !important;
}

.flatpickr-months .flatpickr-month {
    background: var(--order-primary) !important;
    color: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--order-primary) !important;
}

.flatpickr-weekday {
    color: var(--order-gray-800) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT
   ========================================================================== */
.order-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .order-main-layout {
        grid-template-columns: 1fr 350px;
        align-items: start;
    }
}

/* ==========================================================================
   MENU SECTION
   ========================================================================== */
.order-menu-section {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.order-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--order-gray-200);
}

.order-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--order-gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-menu-title i {
    color: var(--order-primary);
}

.order-allergen-note {
    font-size: 0.85rem;
    color: var(--order-gray-600);
    text-align: center;
    padding: 0.75rem;
    background: var(--order-gray-50);
    border-radius: var(--order-radius-sm);
    margin-bottom: 1.5rem;
}

.order-allergen-note i {
    color: var(--order-info);
    margin-right: 0.5rem;
}

/* ==========================================================================
   DAY GROUPS
   ========================================================================== */
.order-day-group {
    margin-bottom: 1.5rem;
}

.order-day-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--order-gray-800), var(--order-gray-900));
    border-radius: var(--order-radius);
    color: white;
}

.order-day-date {
    font-size: 1.1rem;
    font-weight: 700;
}

.order-day-name {
    font-size: 0.95rem;
    opacity: 0.85;
    text-transform: capitalize;
}

.order-day-header.closed {
    background: linear-gradient(135deg, var(--order-gray-500), var(--order-gray-600));
}

.order-day-closed-badge {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--order-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   MENU ITEM CARD
   ========================================================================== */
.order-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--order-gray-50);
    border-radius: var(--order-radius);
    margin-bottom: 0.35rem;
    transition: var(--order-transition);
    border: 2px solid transparent;
}

.order-menu-item:hover {
    background: white;
    box-shadow: var(--order-shadow);
}

.order-menu-item.selected {
    background: white;
    border-color: var(--order-primary);
    box-shadow: var(--order-shadow);
}

.order-counter {
    order: 1;
    flex-shrink: 0;
}

.order-menu-item-info {
    order: 2;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.order-menu-item-category {
    font-weight: 600;
    color: var(--order-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.order-menu-item-name {
    font-size: 0.85rem;
    color: var(--order-gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.order-menu-item-price {
    order: 3;
    font-weight: 700;
    color: var(--order-gray-900);
    font-size: 1rem;
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-menu-item-price.free {
    color: var(--order-success);
}

/* ==========================================================================
   COUNTER COMPONENT
   ========================================================================== */
.order-counter {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--order-gray-100);
    border-radius: var(--order-radius-full);
    padding: 0.25rem;
}

.order-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--order-primary);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--order-transition);
    box-shadow: var(--order-shadow-sm);
}

.order-counter-btn:hover {
    background: var(--order-primary);
    color: white;
}

.order-counter-btn:active {
    transform: scale(0.95);
}

.order-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-counter-value {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--order-gray-700);
}

.order-counter-value.has-value {
    color: var(--order-primary);
}

/* Free item (soup) counter */
.order-counter.free .order-counter-btn {
    color: var(--order-success);
}

.order-counter.free .order-counter-btn:hover {
    background: var(--order-success);
    color: white;
}

.order-counter.free .order-counter-value.has-value {
    color: var(--order-success);
}

/* Polévka - zakázat tlačítka (přidává se automaticky) */
.order-counter.free .order-counter-btn {
    pointer-events: none;
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================================================
   SIDEBAR / CART (Desktop)
   ========================================================================== */
.order-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    background: var(--order-gray-50);
    border-radius: var(--order-radius);
    border: 1px solid var(--order-gray-200);
    overflow: hidden;
}

.order-sidebar-header {
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    padding: 1.25rem 1.5rem;
}

.order-sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.order-sidebar-body {
    padding: 1.5rem;
}

.order-cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--order-gray-500);
}

.order-cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.order-cart-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.order-cart-items {
    margin-bottom: 1rem;
}

.order-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--order-gray-100);
}

.order-cart-item:last-child {
    border-bottom: none;
}

.order-cart-item-name {
    font-size: 0.95rem;
    color: var(--order-gray-700);
}

.order-cart-item-qty {
    font-weight: 700;
    color: var(--order-primary);
    margin-right: 0.5rem;
}

.order-cart-item-price {
    font-weight: 600;
    color: var(--order-gray-900);
}

.order-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 2px solid var(--order-gray-200);
    margin-top: 0.5rem;
}

.order-cart-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--order-gray-800);
}

.order-cart-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--order-primary);
}

.order-btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    border: none;
    border-radius: var(--order-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--order-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 19, 19, 0.3);
}

.order-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   FLOATING ACTION BUTTON (Mobile)
   ========================================================================== */
.order-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(208, 19, 19, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: var(--order-transition);
}

.order-fab:hover {
    transform: scale(1.1);
}

.order-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    background: white;
    color: var(--order-primary);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--order-shadow);
}

.order-fab.pulse {
    animation: fabPulse 0.5s ease;
}

@keyframes fabPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@media (max-width: 991.98px) {
    .order-sidebar {
        display: none;
    }

    .order-fab {
        display: flex;
    }
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.order-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--order-transition);
    z-index: 1001;
}

.order-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--order-radius-lg) var(--order-radius-lg) 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.order-drawer.active {
    transform: translateY(0);
}

.order-drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--order-gray-300);
    border-radius: 2px;
    margin: 0.75rem auto;
    flex-shrink: 0;
}

.order-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--order-gray-200);
    flex-shrink: 0;
}

.order-drawer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--order-gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-drawer-title i {
    color: var(--order-primary);
}

.order-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--order-gray-100);
    border: none;
    color: var(--order-gray-600);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--order-transition);
}

.order-drawer-close:hover {
    background: var(--order-gray-200);
    color: var(--order-gray-800);
}

.order-drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.order-drawer-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--order-gray-200);
    background: var(--order-gray-50);
    flex-shrink: 0;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.order-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: var(--order-radius-lg);
    box-shadow: var(--order-shadow);
}

.order-empty-state i {
    font-size: 4rem;
    color: var(--order-gray-300);
    margin-bottom: 1.5rem;
}

.order-empty-state h3 {
    font-size: 1.25rem;
    color: var(--order-gray-700);
    margin-bottom: 0.5rem;
}

.order-empty-state p {
    color: var(--order-gray-500);
    margin: 0;
}

/* ==========================================================================
   SUCCESS PAGE STYLES
   ========================================================================== */
.order-success-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 100px;
    background: var(--order-gray-50);
}

.order-success-icon {
    width: 120px;
    height: 120px;
    background: var(--order-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.order-success-icon i {
    font-size: 3rem;
    color: white;
}

.order-success-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--order-gray-900);
    margin-bottom: 0.5rem;
    text-align: center;
}

.order-success-subtitle {
    font-size: 1.1rem;
    color: var(--order-gray-600);
    margin-bottom: 2rem;
    text-align: center;
}

.order-success-card {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: var(--order-radius-lg);
    box-shadow: var(--order-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-success-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--order-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--order-gray-200);
}

.order-success-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.order-success-label {
    color: var(--order-gray-600);
}

.order-success-value {
    font-weight: 600;
    color: var(--order-gray-900);
}

.order-success-email-intro {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--order-gray-700);
    margin-bottom: 0.5rem;
}

.order-success-email-intro i {
    color: var(--order-primary);
}

.order-success-email-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.order-success-email-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--order-gray-700);
}

.order-success-email-list li i {
    color: var(--order-success);
}

.order-success-email-highlight {
    background: var(--order-gray-100);
    padding: 0.75rem 1rem;
    border-radius: var(--order-radius);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-success-email-highlight i {
    color: var(--order-primary);
}

.order-success-payment-info {
    background: var(--order-warning-light);
    border-left: 4px solid var(--order-warning);
    padding: 1rem;
    border-radius: 0 var(--order-radius) var(--order-radius) 0;
}

.order-success-qr {
    text-align: center;
    padding: 1rem;
}

.order-success-qr p {
    color: var(--order-gray-600);
    margin-bottom: 1rem;
}

.order-success-qr img {
    max-width: 180px;
    border-radius: var(--order-radius);
    box-shadow: var(--order-shadow);
}

.order-success-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.order-success-btn {
    padding: 0.875rem 1.5rem;
    border-radius: var(--order-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--order-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-success-btn-primary {
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
}

.order-success-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 19, 19, 0.3);
    color: white;
}

.order-success-btn-outline {
    background: transparent;
    border: 2px solid var(--order-gray-300);
    color: var(--order-gray-700);
}

.order-success-btn-outline:hover {
    border-color: var(--order-primary);
    color: var(--order-primary);
}

/* Success page responsive */
@media (max-width: 575.98px) {
    .order-success-page {
        padding: 1rem;
    }

    .order-success-icon {
        width: 100px;
        height: 100px;
    }

    .order-success-icon i {
        font-size: 2.5rem;
    }

    .order-success-title {
        font-size: 1.5rem;
    }

    .order-success-subtitle {
        font-size: 1rem;
    }

    .order-success-card {
        padding: 1rem;
    }

    .order-success-actions {
        flex-direction: column;
        width: 100%;
    }

    .order-success-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.order-hidden {
    display: none !important;
}

.order-visible-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .order-visible-mobile {
        display: block;
    }

    .order-hidden-mobile {
        display: none !important;
    }
}

/* Loading state */
.order-loading {
    opacity: 0.6;
    pointer-events: none;
}

.order-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--order-gray-200);
    border-top-color: var(--order-primary);
    border-radius: 50%;
    animation: orderSpin 0.8s linear infinite;
}

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

/* ==========================================================================
   ADDRESS PAGE (FAZE 2)
   ========================================================================== */
.order-address-page {
    min-height: 100vh;
    padding-bottom: 100px;
}

.order-address-page#custom_body {
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Form Card */
.order-form-card {
    background: white;
    border-radius: var(--order-radius-lg);
    box-shadow: var(--order-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.order-form-card-header {
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-form-card-header i {
    font-size: 1.1rem;
}

.order-form-card-body {
    padding: 1.5rem;
}

/* Toggle Buttons (Fyzická osoba / Firma, Rodinný dům / Byt / Firma) */
.order-toggle-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.order-toggle-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: var(--order-gray-100);
    border: 2px solid var(--order-gray-200);
    border-radius: var(--order-radius);
    color: var(--order-gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--order-transition);
    text-align: center;
}

.order-toggle-btn:hover {
    border-color: var(--order-primary);
    color: var(--order-primary);
}

.order-toggle-btn.active,
.order-toggle-input:checked + .order-toggle-btn {
    background: var(--order-primary);
    border-color: var(--order-primary);
    color: white;
}

.order-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Form Group */
.order-form-group {
    margin-bottom: 1.25rem;
}

.order-form-label {
    display: block;
    font-weight: 600;
    color: var(--order-gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.order-form-label .required {
    color: var(--order-primary);
}

.order-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--order-gray-200);
    border-radius: var(--order-radius);
    font-size: 1rem;
    transition: var(--order-transition);
    background: white;
}

.order-form-input:focus {
    outline: none;
    border-color: var(--order-primary);
    box-shadow: 0 0 0 3px rgba(208, 19, 19, 0.1);
}

.order-form-input::placeholder {
    color: var(--order-gray-400);
}

.order-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Form Row */
.order-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .order-form-row {
        grid-template-columns: 1fr;
    }
}

/* Conditional Fields */
.order-conditional-fields {
    display: none;
    animation: slideDown 0.3s ease;
}

.order-conditional-fields.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Address Layout */
.order-address-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 991.98px) {
    .order-address-layout {
        grid-template-columns: 1fr;
    }
}

/* Submit Section */
.order-submit-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--order-gray-200);
}

.order-btn-next {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    border: none;
    border-radius: var(--order-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--order-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 19, 19, 0.3);
}

.order-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   SUMMARY PAGE (FAZE 3)
   ========================================================================== */
.order-summary-page {
    min-height: 100vh;
    padding-bottom: 100px;
}

.order-summary-page#custom_body {
    overflow-y: visible !important;
    overflow-x: visible !important;
}

/* Summary Layout */
.order-summary-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .order-summary-layout {
        grid-template-columns: 1fr;
    }
}

/* Summary Section */
.order-summary-section {
    background: white;
    border-radius: var(--order-radius-lg);
    box-shadow: var(--order-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.order-summary-section-header {
    background: var(--order-gray-50);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--order-gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-summary-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--order-gray-800);
    margin: 0;
}

.order-summary-section-title i {
    color: var(--order-primary);
}

.order-summary-section-body {
    padding: 1.5rem;
}

/* Payment Methods */
.order-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-payment-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--order-gray-50);
    border: 2px solid var(--order-gray-200);
    border-radius: var(--order-radius);
    cursor: pointer;
    transition: var(--order-transition);
}

.order-payment-option:hover {
    border-color: var(--order-primary);
}

.order-payment-option.selected {
    background: rgba(208, 19, 19, 0.05);
    border-color: var(--order-primary);
}

.order-payment-radio {
    position: absolute;
    opacity: 0;
}

.order-payment-radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--order-gray-300);
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    flex-shrink: 0;
    transition: var(--order-transition);
}

.order-payment-option.selected .order-payment-radio-custom {
    border-color: var(--order-primary);
}

.order-payment-option.selected .order-payment-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--order-primary);
    border-radius: 50%;
}

.order-payment-info {
    flex: 1;
}

.order-payment-name {
    font-weight: 600;
    color: var(--order-gray-800);
    margin-bottom: 0.25rem;
}

.order-payment-desc {
    font-size: 0.85rem;
    color: var(--order-gray-500);
}

.order-payment-badge {
    padding: 0.25rem 0.75rem;
    background: var(--order-success);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--order-radius-full);
    margin-left: auto;
}

.order-payment-icon {
    font-size: 1.5rem;
    color: var(--order-gray-400);
    margin-left: 1rem;
}

.order-payment-option.selected .order-payment-icon {
    color: var(--order-primary);
}

/* Address Summary */
.order-address-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 575.98px) {
    .order-address-summary {
        grid-template-columns: 1fr;
    }
}

.order-address-summary-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.order-address-summary-label {
    font-size: 0.8rem;
    color: var(--order-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.order-address-summary-value {
    font-weight: 500;
    color: var(--order-gray-800);
}

/* Items Table */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--order-gray-100);
}

.order-items-table th {
    font-size: 0.8rem;
    color: var(--order-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: var(--order-gray-50);
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.order-item-date {
    font-weight: 600;
    color: var(--order-gray-800);
}

.order-item-day {
    font-size: 0.85rem;
    color: var(--order-gray-500);
}

.order-item-name {
    color: var(--order-gray-700);
}

.order-item-qty {
    font-weight: 600;
    color: var(--order-primary);
}

.order-item-price {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

/* Delivery Info Alert */
.order-delivery-alert {
    background: rgba(52, 168, 83, 0.1);
    border: 1px solid var(--order-success);
    border-radius: var(--order-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.order-delivery-alert-title {
    font-weight: 600;
    color: var(--order-success);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-delivery-alert-text {
    color: var(--order-gray-700);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.order-delivery-alert-days {
    font-size: 0.85rem;
    color: var(--order-gray-500);
}

/* Order Total Sidebar */
.order-total-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: var(--order-radius-lg);
    box-shadow: var(--order-shadow-lg);
    overflow: hidden;
}

.order-total-header {
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    padding: 1.25rem 1.5rem;
}

.order-total-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-total-title i {
    color: white;
}

.order-total-body {
    padding: 1.5rem;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--order-gray-600);
}

.order-total-row.delivery {
    border-bottom: 1px solid var(--order-gray-100);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.order-total-row.grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--order-gray-900);
    border-top: 2px solid var(--order-gray-200);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.order-total-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-total-value {
    font-weight: 600;
}

/* Checkboxes */
.order-checkbox-group {
    margin: 1.5rem 0;
}

.order-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.order-checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 0.1rem;
    accent-color: var(--order-primary);
    cursor: pointer;
}

.order-checkbox-label {
    color: var(--order-gray-700);
    cursor: pointer;
}

.order-checkbox-label a {
    color: var(--order-primary);
    text-decoration: none;
}

.order-checkbox-label a:hover {
    text-decoration: underline;
}

/* Survey Select */
.order-survey-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--order-gray-200);
    border-radius: var(--order-radius);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--order-transition);
}

.order-survey-select:focus {
    outline: none;
    border-color: var(--order-primary);
}

.order-survey-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--order-gray-200);
    border-radius: var(--order-radius);
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    margin-top: 1rem;
    transition: var(--order-transition);
}

.order-survey-textarea:focus {
    outline: none;
    border-color: var(--order-primary);
}

/* Submit Button */
.order-btn-submit-large {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--order-primary), var(--order-primary-dark));
    color: white;
    border: none;
    border-radius: var(--order-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--order-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.order-btn-submit-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 19, 19, 0.35);
}

.order-btn-submit-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Back Button */
.order-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--order-gray-600);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--order-transition);
    margin-bottom: 1rem;
}

.order-btn-back:hover {
    color: var(--order-primary);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .order-total-sidebar {
        position: relative;
        top: 0;
    }
}

/* ==========================================================================
   SYSTEM CATEGORY ITEMS
   ========================================================================== */
.order-menu-item.system-item {
    background-color: var(--order-gray-100);
    border-left: 3px solid var(--order-gray-400);
    cursor: default;
}

.order-menu-item.system-item:hover {
    background-color: var(--order-gray-100);
    transform: none;
    box-shadow: var(--order-shadow-sm);
}

.order-system-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    color: var(--order-gray-500);
    font-size: 1.25rem;
}

.order-menu-item.system-item .order-menu-item-name {
    color: var(--order-gray-600);
    font-style: italic;
}

.order-menu-item.system-item .order-menu-item-category {
    color: var(--order-gray-500);
}
