/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #2D3436;
    --primary-dark: #1A1E1F;
    --accent: #00B894;
    --accent-dark: #00A085;
    --accent-soft: #e0f7f0;
    --light: #ffffff;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --gray-light: #ADB5BD;
    --border: #E9ECEF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(145deg, #f9fbfd 0%, #ffffff 100%);
    color: var(--primary);
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 80px;
    font-size: 15px;
}
/*  */
.cafe-brand {
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-logo {
        /* adjust size */
    height: 60px;    /* adjust size */
    object-fit: contain;
}


/*  */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,184,148,0.2);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,184,148,0.1);
}

.header-content {
    display: flex;
    /* justify-content: space-between; */
    justify-content:center;
    align-items: center;
}

.cafe-brand {
    display: flex;
    align-items: center;
    /* gap: 12px; */
}

.cafe-brand i {
    font-size: 24px;
    color: var(--accent);
}

.header-left h1 {
    font-size: 34px;
    font-weight: bold;
    margin: 0;
    /* color: var(--primary); */
    background: linear-gradient(90deg, #ffcc00, #ff7a00, #ff1e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
   
}

.tagline {
    font-size: 14px;
    color: var(--gray);
    margin-top: 2px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent);
}

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    color: var(--gray);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,184,148,0.2);
    z-index: 1001;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
}

.mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    gap: 4px;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    position: relative;
}

.mobile-nav-tab i {
    font-size: 18px;
    margin-bottom: 2px;
}

.mobile-nav-tab.active {
    color: var(--accent);
    background: rgba(0, 184, 148, 0.08);
}

/* Mobile Cart Badge - only on cart tab */
.mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 15%;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,184,148,0.4);
}

/* Main Container */
.main-container {
    padding: 20px 0;
    min-height: calc(100vh - 160px);
}

.mobile-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mobile-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Menu Tab */
.menu-header {
    margin-bottom: 24px;
}

.search-container {
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.search-box i {
    position: absolute;
    left: 16px;
    color: var(--gray);
    font-size: 16px;
}

#menuSearch {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--primary);
}

#menuSearch:focus {
    outline: none;
}

#menuSearch::placeholder {
    color: var(--gray-light);
}

.clear-search {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.clear-search:hover {
    color: var(--accent);
}

/* Category Tabs */
.category-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 8px;
    white-space: nowrap;
}

.category-tab {
    background: var(--light-gray);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}

.category-tab:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(0,184,148,0.2);
}

.category-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Menu Items Grid */
.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.menu-item {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    box-shadow:5px 10px 10px grey;
}
/* Stock indicators */
.out-of-stock {
    color: red;
    padding: 5px;
   
    font-size: 12px;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 4px;
}

.few-left {
    color: #fd7e14;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}
.menu-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,184,148,0.15);
}

.item-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: var(--light-gray);
    transition: var(--transition);
}

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

.item-content {
    padding: 16px;
}

.item-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-title span:first-child {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
}

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

.item-description {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    background: var(--light-gray);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.05);
}

.quantity-display {
    font-weight: 600;
    min-width: 36px;
    text-align: center;
    font-size: 16px;
}

/* Empty States */
.empty-order, .no-results, .no-orders {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-order i, .no-results i, .no-orders i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray-light);
}

.empty-order h3, .no-results h3, .no-orders h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.empty-order p, .no-results p, .no-orders p {
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-browse-menu {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,184,148,0.2);
}

.btn-browse-menu:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,184,148,0.3);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 80px 20px;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--gray-light);
}

.error-message .bold {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

.error-message .subtext {
    color: var(--gray);
    font-size: 14px;
}

/* Cart Tab */
.cart-container {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.cart-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}

.item-count {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,184,148,0.2);
}

.cart-content {
    padding: 0;
}

.order-items-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--light-gray);
}

.order-items-container::-webkit-scrollbar {
    width: 6px;
}

.order-items-container::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.order-items-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.order-item:hover {
    border-color: var(--accent);
    background: white;
}

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

.order-item-name {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}

.order-item-quantity {
    font-size: 13px;
    color: var(--gray);
}

.order-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-item-price {
    font-weight: 600;
    color: var(--accent);
    font-size: 15px;
}

.remove-item-btn {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.remove-item-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    transform: scale(1.05);
}

/* Coupon Section */
.coupon-section {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.coupon-header {
    margin-bottom: 16px;
}

.coupon-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.optional {
    font-size: 12px;
    color: var(--gray);
}

.coupon-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

#couponInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

#couponInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.apply-coupon-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.apply-coupon-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.apply-coupon-btn:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
    transform: none;
}

.coupon-error {
    color: #ff6b6b;
    font-size: 13px;
    min-height: 20px;
    margin-top: 4px;
}

.applied-coupon {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid var(--accent);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

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

.applied-coupon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-code {
    font-weight: 600;
    color: var(--accent);
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.coupon-discount {
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
}

.remove-coupon-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.remove-coupon-btn:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Discount Breakdown */
.discount-breakdown {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0,184,148,0.02);
}

.discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.discount-amount {
    color: var(--accent);
    font-weight: 600;
}

/* Order Summary */
.order-summary-card {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.grand-total {
    border-top: 2px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Clear Order */
.clear-order-container {
    padding: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.clear-order-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.clear-order-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.05);
}

/* Mobile Number Field */
.mobile-section {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: rgba(0,184,148,0.02);
}

.mobile-input-container {
    margin-top: 8px;
}

.mobile-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    background: white;
}

.mobile-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.mobile-input.error {
    border-color: #ff6b6b;
}

.mobile-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.mobile-error.show {
    display: block;
}

/* Delivery Options */
.delivery-options-section {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.delivery-option:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,184,148,0.1);
}

.delivery-option input[type="radio"] {
    display: none;
}

.delivery-option label {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    gap: 16px;
}

.option-icon {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-icon i {
    font-size: 18px;
    color: var(--accent);
}

.delivery-option input[type="radio"]:checked + label .option-icon {
    background: var(--accent);
}

.delivery-option input[type="radio"]:checked + label .option-icon i {
    color: white;
}

.option-details {
    flex: 1;
}

.option-title {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.option-desc {
    display: block;
    font-size: 13px;
    color: var(--gray);
}

.delivery-option input[type="radio"]:checked + label {
    background: rgba(0, 184, 148, 0.08);
    border-color: var(--accent);
}

/* Address Sections */
.delivery-section, .pickup-section {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.address-input-container {
    margin-bottom: 16px;
}

.address-input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
    transition: var(--transition);
}

.address-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.address-input.error {
    border-color: #ff6b6b;
}

.address-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

.address-error.show {
    display: block;
}

.address-tips {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0, 184, 148, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-dark);
}

.pickup-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--gray);
}

.detail-item i {
    color: var(--accent);
    margin-top: 2px;
}

.detail-item strong {
    color: var(--primary);
    font-weight: 600;
}

/* Order Button */
.order-action {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.whatsapp-btn {
    display: block;
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.whatsapp-btn:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.whatsapp-btn i {
    font-size: 20px;
}

.order-note {
    text-align: center;
    color: var(--gray);
    font-size: 13px;
}

/* Track Tab */
.track-container {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.track-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.track-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.track-subtitle {
    color: var(--gray);
    font-size: 14px;
}

.track-content {
    padding: 20px;
}

.track-input-section {
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    background: var(--light);
}

.input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.input-icon {
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--accent);
}

#trackOrderId {
    flex: 1;
    padding: 14px 0;
    border: none;
    font-size: 15px;
    background: transparent;
}

#trackOrderId:focus {
    outline: none;
}

.track-order-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 24px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.track-order-btn:hover {
    background: var(--accent-dark);
}

.tracking-note {
    color: var(--gray);
    font-size: 13px;
    text-align: center;
}

/* Order Details */
.order-details {
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-bottom: 1px solid var(--border);
}

.order-details-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.close-order-details {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-order-details:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.05);
}

.order-info {
    padding: 20px;
}

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

.order-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.order-status {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    color: white;
    background: var(--gray);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-label {
    font-weight: 500;
    color: var(--primary);
}

.info-value {
    color: var(--gray);
    text-align: right;
}

.order-items-section {
    margin: 24px 0;
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.order-items-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}

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

.item-name {
    color: var(--primary);
    font-weight: 500;
}

.item-quantity, .item-price, .item-total {
    text-align: center;
    color: var(--gray);
}

.order-summary {
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 20px;
}

.order-summary h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    border-bottom: none;
    padding-top: 16px;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.order-actions {
    margin-top: 24px;
    text-align: center;
}

.btn-refresh {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(45,52,54,0.2);
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45,52,54,0.3);
}

/* Info Section */
.info-section {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-step:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.step-number {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,0.3);
}

.step-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.step-content p {
    margin: 0;
    color: var(--gray);
    font-size: 13px;
}

/* Orders Tab */
.orders-container {
    background: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.orders-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.orders-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.orders-subtitle {
    color: var(--gray);
    font-size: 14px;
}

.orders-content {
    padding: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}

.btn-clear-history {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--gray);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.btn-clear-history:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255,107,107,0.05);
}

.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.recent-orders-list::-webkit-scrollbar {
    width: 6px;
}

.recent-orders-list::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.recent-orders-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.history-item:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,184,148,0.1);
}

.history-info {
    flex: 1;
}

.history-id {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 14px;
}

.history-date {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
}

.history-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 50px;
    display: inline-block;
}

.history-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.history-status.preparing {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.history-status.out-for-delivery {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.history-status.delivered {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.history-total {
    font-weight: 600;
    color: var(--accent);
    font-size: 15px;
    margin: 0 12px;
}

.history-item i {
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition);
}

.history-item:hover i {
    color: var(--accent);
    transform: translateX(3px);
}

/* Status Info */
.status-info {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    margin-top: 24px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-item.pending .status-dot {
    background: #ffc107;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.2);
}

.status-item.preparing .status-dot {
    background: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23,162,184,0.2);
}

.status-item.out-for-delivery .status-dot {
    background: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111,66,193,0.2);
}

.status-item.delivered .status-dot {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.2);
}

.status-text {
    flex: 1;
}

.status-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.status-text p {
    margin: 0;
    color: var(--gray);
    font-size: 12px;
}

/* Footer */
.footer {
    background: linear-gradient(145deg, #f0f3f5, #ffffff);
    padding: 40px 0 24px;
    border-top: 1px solid rgba(0,184,148,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-section p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 13px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.loading-content p {
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    max-width: 320px;
    width: auto;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

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

.toast i {
    font-size: 16px;
}

.toast.success {
    background: var(--accent);
}

.toast.error {
    background: #ff6b6b;
}

.toast.info {
    background: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .menu-items {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .item-image {
        height: 160px;
    }
    
    .mobile-nav {
        padding: 12px;
    }
    
    .mobile-nav-tab {
        font-size: 10px;
        padding: 8px 2px;
    }
    
    .mobile-nav-tab i {
        font-size: 16px;
    }
    
    .header-content {
        gap: 16px;
    }
    
    .cafe-brand i {
        font-size: 20px;
    }
    
    .header-left h1 {
        font-size: 26px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .cart-header, .track-header, .orders-header {
        padding: 16px;
    }
    
    .cart-content, .track-content, .orders-content {
        padding: 16px;
    }
    
    .order-items-container {
        max-height: 250px;
        padding: 12px;
    }
    
    .order-item {
        padding: 12px;
    }
    
    .coupon-section, .delivery-options-section,
    .delivery-section, .pickup-section,
    .order-action, .mobile-section {
        padding: 16px;
    }
    
    .whatsapp-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .input-group {
        flex-direction: column;
        border: none;
        gap: 12px;
    }
    
    .input-icon {
        display: none;
    }
    
    #trackOrderId {
        padding: 14px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--light);
    }
    
    .track-order-btn {
        padding: 14px;
        border-radius: var(--radius-sm);
        justify-content: center;
    }
    
    .info-step {
        flex-direction: row;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 32px 0 20px;
    }
    
    .toast {
        bottom: 90px;
        width: calc(100% - 32px);
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .menu-items {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-tab span {
        font-size: 10px;
    }
    
    .mobile-nav-tab i {
        font-size: 16px;
    }
    
    .mobile-cart-badge {
        top: -5px;
        right: 20%;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
    }
    
    .coupon-input-container {
        flex-direction: column;
    }
    
    .apply-coupon-btn {
        width: 100%;
    }
    
    .delivery-option label {
        padding: 12px;
        gap: 12px;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
    }
    
    .option-icon i {
        font-size: 16px;
    }
    
    .address-input {
        padding: 14px;
        font-size: 14px;
    }
    
    .whatsapp-btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .history-total {
        align-self: flex-start;
        margin: 0;
    }
    
    .history-item i {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .quantity-btn:hover,
    .remove-item-btn:hover,
    .apply-coupon-btn:hover,
    .clear-order-btn:hover,
    .whatsapp-btn:hover,
    .track-order-btn:hover,
    .btn-browse-menu:hover,
    .btn-refresh:hover,
    .btn-clear-history:hover,
    .history-item:hover,
    .info-step:hover,
    .delivery-option:hover {
        transform: none;
    }
    
    .menu-item:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .mobile-nav,
    .header,
    .footer,
    .order-action,
    .btn-refresh,
    .btn-clear-history {
        display: none !important;
    }
    
    body {
        padding: 20px;
        background: white;
    }
}