@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;700&family=League+Spartan:wght@700&display=swap');

:root {
    /* Zamów Teraz - Brand Palette (Aligned with Admin) */
    --primary-color: #0063F4; /* Admin Accent Blue */
    --primary-hover: #0052CC;
    --accent-color: #0063F4;
    --bg-color: #FFFFFF;
    --body-bg: #F8FAFC;
    --text-main: #1E293B;
    --text-heading: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --input-bg: #F1F5F9;
}

[data-theme="dark"],
body[data-theme="dark"] {
    --bg-color: #020617;
    --body-bg: #020617;
    --header-bg: #0F172A;
    --card-bg: #1E293B;
    --text-main: #F1F5F9;
    --text-heading: #FFFFFF;
    --text-muted: #94A3B8;
    --primary-color: #3B82F6;
    --primary-hover: #60A5FA;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --input-bg: rgba(0, 0, 0, 0.3);
    scrollbar-color: #3B82F6 #020617;
}

body[data-theme="dark"]::-webkit-scrollbar-track {
    background: #020617;
}

body[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--body-bg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

body {
    font-family: 'Karla', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--body-bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'League Spartan', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
}

/* ===========================
   HEADER
   =========================== */
.header {
    background: var(--header-bg);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-logo {
    width: 120px;
    display: block;
}

.search-container-header {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input-header {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--input-bg);
    border: 1px solid transparent;
    color: var(--text-main);
    border-radius: 16px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.search-input-header:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 99, 244, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-size: 18px;
}

.theme-toggle:hover {
    transform: scale(1.05);
    background: var(--border-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    font-family: 'League Spartan', sans-serif;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 99, 244, 0.2);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-family: 'League Spartan', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--input-bg);
}

.btn-back:hover {
    background: var(--border-color);
    transform: translateX(-5px);
}

/* ===========================
   RESTAURANT LISTING
   =========================== */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.restaurant-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.card-cover-wrapper {
    width: 100%;
    height: 180px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-cover-placeholder {
    width: 120px;
    height: auto;
    opacity: 0.5;
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-logo-wrapper {
    width: 54px;
    height: 54px;
    background: white;
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 130px;
}

.card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-delivery {
    background: rgba(0, 99, 244, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* ===========================
   RESTAURANT PAGE
   =========================== */
.restaurant-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1650px;
    margin: 0 auto;
    padding: 20px;
}

.restaurant-main-content {
    min-width: 0;
}

.restaurant-header-container {
    margin-bottom: 40px;
    position: relative;
}

.restaurant-banner-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.restaurant-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--input-bg);
}

.restaurant-banner-placeholder {
    object-fit: contain;
    padding: 40px;
    background: var(--card-bg);
}

.restaurant-info-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 20;
    padding: 0 20px;
}

.restaurant-logo-wrapper-new {
    width: 120px;
    height: 120px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.restaurant-logo-wrapper-new img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.restaurant-header-details {
    flex: 1;
    padding-top: 45px;
    display: flex;
    align-items: baseline;
    gap: 40px;
    flex-wrap: wrap;
}

.restaurant-title {
    font-size: 36px;
    margin-bottom: 0;
    color: var(--text-heading);
}

.restaurant-meta {
    display: flex;
    gap: 30px;
    align-items: center;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {   
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.meta-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    justify-content: center;
    gap: 7px;
}

.menu-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding-bottom: 80px;
}

.menu-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.menu-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav-item {
    padding: 14px 20px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 12px;
    margin-bottom: 4px;
    list-style: none;
}

.menu-nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.menu-nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 99, 244, 0.2);
}

.category-block {
    margin-bottom: 60px;
}

.category-name {
    font-size: 28px;
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    max-width: 800px;
}

.category-block {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.category-block:last-child {
    border-bottom: none;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.menu-item-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    align-items: center;
}

.menu-item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: 'League Spartan', sans-serif;
    color: var(--text-heading);
}

.item-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    font-family: 'League Spartan', sans-serif;
}

.item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    background: var(--input-bg);
    flex-shrink: 0;
}

.item-image-placeholder {
    object-fit: contain;
    padding: 20px;
    background: var(--card-bg);
}

.add-icon-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--input-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
    font-weight: 700;
}

.menu-item-card:hover .add-icon-btn {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   CART
   =========================== */
.cart-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 35px;
    position: sticky;
    top: 120px;
    height: fit-content;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.cart-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'League Spartan', sans-serif;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-qty {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 10px;
}

.checkout-btn-brand {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'League Spartan', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.checkout-btn-brand:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 20px rgba(0, 99, 244, 0.2);
}

/* ===========================
   MODALS
   =========================== */
.modal-brand {
    background: var(--card-bg);
    border-radius: 28px;
    max-width: 550px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--input-bg);
    padding: 4px;
    border-radius: 12px;
}

.qty-btn-modal {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: var(--bg-color);
    color: var(--text-heading);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn-modal:hover {
    background: var(--primary-color);
    color: white;
}

.extra-qty-display {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-main);
}

.variant-row, .extra-row {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-top: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    background: var(--card-bg);
    color: var(--text-main);
}

.variant-row.selected, .extra-row.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .variant-row.selected, 
[data-theme="dark"] .extra-row.selected {
    background: rgba(59, 130, 246, 0.2);
}

/* ===========================
   UTILITIES & COMMON
   =========================== */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-15 { gap: 15px; }
.w-100 { width: 100%; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.badge-pickup {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.status-closed {
    color: #EF4444;
    font-weight: 700;
}

.alert-emergency {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    font-weight: 700;
}

.alert-closed {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* ===========================
   CHECKOUT & FORMS
   =========================== */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-section {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.checkout-section-title {
    margin-bottom: 25px;
    font-size: 22px;
    font-family: 'League Spartan', sans-serif;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 99, 244, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-address-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.grid-address-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option.selected {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    cursor: pointer;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-weight: 700;
    font-size: 24px;
    border-top: 2px solid var(--border-color);
    padding-top: 25px;
    font-family: 'League Spartan', sans-serif;
}

/* ===========================
   SUCCESS PAGE
   =========================== */
.success-card {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.order-number-box {
    background: var(--input-bg);
    padding: 30px;
    border-radius: 20px;
    border: 2px dashed var(--primary-color);
    margin-bottom: 40px;
}

.order-number-badge {
    background: var(--input-bg);
    padding: 12px 25px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.order-number-badge span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.order-number-badge strong {
    color: var(--primary-color);
    margin-left: 8px;
}

/* ===========================
   TRACKING PAGE
   =========================== */
.track-container {
    max-width: 800px;
    margin: 0 auto;
}

.track-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.status-hero {
    background: var(--primary-color);
    color: white;
    padding: 50px;
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: 0 15px 30px rgba(0, 99, 244, 0.2);
}

.status-hero h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
}

.status-hero p {
    opacity: 0.8;
    font-weight: 600;
}

.status-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
}

.timeline-container {
    text-align: left;
    background: var(--input-bg);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    padding-left: 45px;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    padding: 15px;
    left: -45px;
    top: 7px;
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-heading);
}

.timeline-content-time {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===========================
   MOBILE CATEGORY NAV
   =========================== */
.mobile-category-nav {
    display: none;
    position: sticky;
    top: 70px;
    background: var(--body-bg);
    z-index: 900;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-category-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.mobile-nav-item.active {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   FLOATING CART BUTTON & MOBILE DRAWER
   =========================== */
.floating-cart-btn {
    font-size: 18px;
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 16px 24px;
    border-radius: 20px;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-family: 'League Spartan', sans-serif;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 99, 244, 0.4);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.floating-cart-btn.visible {
    display: none; /* Still hidden on desktop even if has items */
}

.mobile-cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    z-index: 2001;
    border-radius: 32px 32px 0 0;
    padding: 30px 20px 20px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-cart-drawer.active {
    transform: translateY(0);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-drawer {
    background: var(--input-bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-main);
}

/* Custom Modal Styles */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-backdrop.active {
    display: flex !important;
    opacity: 1;
}

.custom-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--card-shadow);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.custom-modal-backdrop.active .custom-modal {
    transform: scale(1);
}

.custom-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.custom-modal-title {
    font-family: 'League Spartan', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.custom-modal-message {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-modal-btn {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 1200px) {
    .restaurant-page-wrapper {
        grid-template-columns: 1fr;
    }
    .cart-sidebar {
        display: none; /* Hide sidebar cart on mobile/tablet */
    }
    .floating-cart-btn.visible {
        display: flex;
    }
}

@media (max-width: 992px) {
    .menu-container {
        grid-template-columns: 1fr;
    }
    .menu-sidebar {
        display: none;
    }
    .mobile-category-nav {
        display: block;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
    .track-card {
        padding: 30px 20px;
    }
    .status-hero {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    .status-hero h2 {
        font-size: 28px;
    }
    .status-icon-large {
        font-size: 60px;
    }
    .timeline-container {
        padding: 25px 20px;
    }
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 10px 15px;
        height: 70px;
    }
    .header-left {
        gap: 15px;
    }
    .search-container-header {
        display: none;
    }
    .restaurant-title {
        font-size: 28px;
    }
    .restaurant-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -60px;
        gap: 15px;
    }
    .restaurant-header-details {
        padding-top: 0;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .restaurant-meta {
        gap: 15px;
        justify-content: center;
        width: 100%;
    }
    .meta-value {
        font-size: 16px;
    }
    .grid-2, .grid-address-1, .grid-address-2, .delivery-options-grid {
        grid-template-columns: 1fr;
    }
    .checkout-section {
        padding: 25px 20px;
    }
    .success-card {
        padding: 40px 20px;
    }
    
    .menu-item-card {
        padding: 15px;
    }
    .btn-primary {
        padding: 10px 16px;
        font-size: 14px;
    }
    .item-image {
        width: 80px;
        height: 80px;
    }
    .item-image-placeholder {
        padding: 15px;
    }
    .item-name {
        font-size: 16px;
    }
}
/* Search Results Dropdown */
.search-container-header {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input-header {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--input-bg);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
}

.search-input-header:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 99, 244, 0.1);
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    margin-top: 8px;
    z-index: 1000;
}

.search-results-list {
    padding: 8px 0;
}

.search-section {
    padding: 0;
}

.search-section-title {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background-color: var(--input-bg);
}

.search-result-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.search-result-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-image-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--input-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.search-result-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 4px;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Scrollbar dla dropdown'u */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}