/* ═══════════════════════════════════════════════════════════════
   Food Order System – Customer Main Stylesheet
   Lieferando-style design | Orange primary | RTL support
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
    --primary:        #ff6b00;
    --primary-dark:   #e05e00;
    --primary-light:  #ff8c33;
    --primary-bg:     #fff3e6;
    --dark:           #333333;
    --dark-light:     #555555;
    --gray:           #888888;
    --gray-light:     #cccccc;
    --light:          #f5f5f5;
    --white:          #ffffff;
    --success:        #28a745;
    --danger:         #dc3545;
    --warning:        #ffc107;
    --info:           #17a2b8;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:      0 8px 30px rgba(0,0,0,0.12);
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --transition:     0.25s ease;
    --navbar-height:  64px;
    --catnav-height:  52px;
    --font-main:      'Inter', sans-serif;
    --font-arabic:    'Cairo', 'Inter', sans-serif;
}

/* ── Base / Reset ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic font override */
[dir="rtl"] body,
.rtl-body {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Top Navbar ─────────────────────────────────────────────── */
.customer-navbar {
    background: var(--white);
    height: var(--navbar-height);
    box-shadow: var(--shadow-sm);
    z-index: 1050;
    padding: 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Brand */
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    flex-shrink: 0;
}

.brand-link:hover {
    color: var(--primary);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

[dir="rtl"] .brand-text {
    letter-spacing: 0;
}

/* Spacer */
.navbar-inner::after {
    content: '';
    flex: 1;
}

/* Language Switcher */
.lang-switcher {
    flex-shrink: 0;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-lang:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.btn-lang .lang-flag {
    font-size: 16px;
}

.btn-lang .lang-code {
    font-size: 12px;
    font-weight: 600;
}

.lang-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
}

.lang-switcher .dropdown-item.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.lang-switcher .dropdown-item .lang-flag {
    font-size: 18px;
}

/* Cart Button */
.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light);
    border: 1px solid var(--gray-light);
    color: var(--dark);
    font-size: 18px;
    transition: all var(--transition);
    flex-shrink: 0;
}

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

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--white);
    animation: badgePop 0.3s ease;
}

[dir="rtl"] .cart-badge {
    right: auto;
    left: -4px;
}

@keyframes badgePop {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Auth Links */
.auth-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

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

.btn-register {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-register:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* User Dropdown */
.user-dropdown {
    flex-shrink: 0;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-user .fa-user-circle {
    font-size: 20px;
    color: var(--primary);
}

.user-dropdown .dropdown-menu {
    min-width: 200px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.user-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

.user-dropdown .dropdown-item i {
    width: 18px;
    color: var(--gray);
}

/* ── Category Navigation ────────────────────────────────────── */
.category-nav-wrapper {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--white);
    border-bottom: 1px solid #eee;
    height: var(--catnav-height);
}

.category-nav {
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
}

.category-nav::-webkit-scrollbar {
    display: none;                  /* Chrome / Safari */
}

.category-nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    gap: 4px;
    max-width: 1400px;
    margin: 0 auto;
    white-space: nowrap;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-light);
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
    background: var(--light);
    border: 1px solid transparent;
}

.category-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: var(--primary-light);
}

.category-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.category-link i {
    font-size: 14px;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero-section {
    margin-top: calc(var(--navbar-height) + var(--catnav-height));
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 16px;
    text-align: center;
}

.hero-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: var(--white);
    color: var(--primary-dark);
}

/* ── Main Content ───────────────────────────────────────────── */
.main-content {
    margin-top: calc(var(--navbar-height) + var(--catnav-height));
    min-height: 60vh;
    padding: 24px 0 48px;
}

.main-content.no-hero {
    /* When hero is shown, hero adds margin already */
}

/* ── Product Cards ──────────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background: var(--light);
}

.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.08);
}

/* Discount Badge on Product */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

[dir="rtl"] .product-badge {
    left: auto;
    right: 10px;
}

.badge-discount {
    background: var(--danger);
    color: var(--white);
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.badge-popular {
    background: var(--primary);
    color: var(--white);
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: 13px;
    color: var(--gray);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-price-old {
    font-size: 13px;
    color: var(--gray-light);
    text-decoration: line-through;
    margin-right: 6px;
}

[dir="rtl"] .product-price-old {
    margin-right: 0;
    margin-left: 6px;
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* Add to cart fly animation */
.btn-add-cart.added {
    animation: cartAdd 0.5s ease;
}

@keyframes cartAdd {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3) rotate(10deg); }
    60%  { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ── Cart Sidebar ───────────────────────────────────────────── */
.cart-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1070;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

[dir="rtl"] .cart-sidebar {
    right: auto;
    left: 0;
    transform: translateX(-100%);
}

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

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-sidebar-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.btn-close-cart {
    background: var(--light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--dark);
    transition: all var(--transition);
}

.btn-close-cart:hover {
    background: var(--danger);
    color: var(--white);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--gray-light);
}

.cart-empty p {
    font-size: 15px;
    margin: 0;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--gray);
    margin: 0 0 8px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light);
    color: var(--dark);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.qty-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.qty-btn.qty-minus:hover {
    background: #fff0f0;
    color: var(--danger);
}

.qty-value {
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--gray-light);
    border-right: 1px solid var(--gray-light);
}

/* Cart Footer */
.cart-sidebar-footer {
    padding: 16px 20px;
    border-top: 2px solid #eee;
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.cart-grand-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    margin-top: 8px;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ── Variant Selection Modal ────────────────────────────────── */
.variant-modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.variant-modal-content .modal-header {
    background: var(--primary-bg);
    border-bottom: 2px solid var(--primary-light);
    padding: 16px 20px;
}

.variant-modal-content .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.variant-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.variant-option:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.variant-option.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.variant-option input[type="radio"],
.variant-option input[type="checkbox"] {
    accent-color: var(--primary);
    margin-right: 10px;
}

[dir="rtl"] .variant-option input[type="radio"],
[dir="rtl"] .variant-option input[type="checkbox"] {
    margin-right: 0;
    margin-left: 10px;
}

.variant-option-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.variant-option-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.variant-modal-content .modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.variant-modal-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-to-cart {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-add-to-cart:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-brand-section .footer-heading {
    border-bottom: none;
    font-size: 20px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    color: #aaa;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 16px;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

[dir="rtl"] .footer-contact-list li {
    flex-direction: row-reverse;
    text-align: right;
}

.footer-contact-list li i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.footer-contact-list a {
    color: #ccc;
    transition: color var(--transition);
}

.footer-contact-list a:hover {
    color: var(--primary);
}

.footer-hours {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    font-size: 14px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a i {
    font-size: 10px;
    transition: transform var(--transition);
}

[dir="rtl"] .footer-links a i {
    transform: rotate(180deg);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

/* Payment Methods */
.footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.payments-label {
    font-size: 13px;
    color: #888;
    margin-right: 8px;
}

.payment-icons {
    display: flex;
    gap: 14px;
    font-size: 28px;
    color: #aaa;
}

.payment-icons i {
    transition: color var(--transition);
}

.payment-icons i:hover {
    color: var(--white);
}

/* Copyright */
.footer-bottom {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #666;
}

/* ── Order Tracking Timeline ────────────────────────────────── */
.order-timeline {
    position: relative;
    padding: 20px 0;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #eee;
}

[dir="ltr"] .order-timeline::before {
    left: 20px;
}

[dir="rtl"] .order-timeline::before {
    right: 20px;
}

.timeline-step {
    position: relative;
    padding: 12px 0 12px 50px;
    min-height: 50px;
}

[dir="rtl"] .timeline-step {
    padding: 12px 50px 12px 0;
}

.timeline-step .step-dot {
    position: absolute;
    top: 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid var(--white);
    z-index: 1;
}

[dir="ltr"] .timeline-step .step-dot {
    left: 13px;
}

[dir="rtl"] .timeline-step .step-dot {
    right: 13px;
}

.timeline-step.completed .step-dot {
    background: var(--success);
}

.timeline-step.active .step-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,107,0,0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(255,107,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
}

.timeline-step .step-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.timeline-step.completed .step-label {
    color: var(--success);
}

.timeline-step.active .step-label {
    color: var(--primary);
}

.timeline-step .step-time {
    font-size: 12px;
    color: var(--gray);
}

.timeline-step.pending .step-label {
    color: var(--gray-light);
}

/* ── Restaurant Info Section ────────────────────────────────── */
.restaurant-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.restaurant-info-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

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

.info-row i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Form Styling ───────────────────────────────────────────── */
.form-control,
.form-select {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: all var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 24px;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}

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

/* ── Discount / Sale Labels ─────────────────────────────────── */
.sale-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    background: #fff0f0;
    color: var(--danger);
    border: 1px solid #ffcccc;
}

.sale-tag i {
    font-size: 10px;
}

.discount-banner {
    background: linear-gradient(135deg, var(--danger), #ff4757);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

/* ── Section Headings ───────────────────────────────────────── */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    :root {
        --navbar-height: 56px;
        --catnav-height: 46px;
    }

    .brand-text {
        font-size: 16px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .hero-section {
        min-height: 240px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .btn-hero {
        padding: 12px 28px;
        font-size: 14px;
    }

    .product-card-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .variant-modal-content .modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    .variant-modal-price {
        font-size: 18px;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .category-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 399.98px) {
    .navbar-inner {
        gap: 8px;
    }

    .btn-lang .lang-code {
        display: none !important;
    }

    .user-name {
        display: none !important;
    }
}

/* ── Utility Classes ────────────────────────────────────────── */
.text-primary-custom {
    color: var(--primary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.fly-to-cart {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    font-size: 20px;
    color: var(--primary);
    animation: flyToCartAnim 0.6s ease forwards;
}

@keyframes flyToCartAnim {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-80px);
    }
}

/* Scrollbar for cart sidebar */
.cart-sidebar-body::-webkit-scrollbar {
    width: 4px;
}

.cart-sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 2px;
}

/* Category nav shadow on scroll */
.category-nav-wrapper.scrolled {
    box-shadow: var(--shadow-md);
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.toast-notification.error {
    background: var(--danger);
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-circle {
    width: 44px;
    height: 44px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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