@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --card-bg: rgba(20, 20, 27, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #dd2c00 100%);
    --primary-color: #ff6b35;
    --primary-hover: #e05a2b;
    --accent-color: #ffb703;
    --text-main: #ffffff;
    --text-muted: #9fa0aa;
    --text-dark: #121214;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-input: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.3);
    --hero-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(10,10,15,1));
    --categories-bg: rgba(10, 10, 15, 0.85);
    --nav-bg: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] {
    --bg-dark: #f5f6fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.08);
    --text-main: #1e2022;
    --text-muted: #5e606a;
    --bg-input: rgba(0, 0, 0, 0.03);
    --border-input: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
    --hero-overlay: linear-gradient(rgba(255,255,255,0.45), rgba(245,246,250,1));
    --categories-bg: rgba(245, 246, 250, 0.9);
    --nav-bg: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Premium Header Banner */
.hero-banner {
    position: relative;
    height: 280px;
    background: var(--hero-overlay), url('../headerp.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 5%;
    border-bottom: 1px solid var(--card-border);
}

.hero-logo {
    position: absolute;
    top: 20px;
    left: 5%;
    height: 70px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.customer-nav {
    position: absolute;
    top: 20px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.customer-nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.customer-nav-link:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: #fff;
}

.customer-welcome {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}


.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #ffb703 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-badge {
    background: rgba(255, 183, 3, 0.15);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Category Slider */
.categories-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--categories-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 15px 5%;
}

.categories-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.categories-wrapper::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.category-tab {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.category-tab:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.2);
}

.category-tab.active {
    background: var(--primary-gradient);
    color: var(--text-main);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Mobile Cart Backdrop overlay */
.cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px 4%;
    }
    /* Slide-over cart is handled globally on all viewports */
}


/* Grid of Menu Items */
.items-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Card Styling */
.item-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.item-image-wrapper {
    position: relative;
    height: 180px;
    background: #181824;
    overflow: hidden;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.item-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-badge {
    background: rgba(10,10,15,0.75);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.badge-spicy { color: #ff3333; border: 1px solid rgba(255, 51, 51, 0.3); }
.badge-veg { color: #39e75f; border: 1px solid rgba(57, 231, 95, 0.3); }

.item-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

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

.item-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
}

.add-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.5);
}

.add-btn i {
    font-size: 1.2rem;
}

/* Sidebar Cart styling (Slide-over Drawer) */
.cart-sidebar {
    background: #111116 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    padding: 30px 24px 24px 24px !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    z-index: 1005;
    max-height: 100vh;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-toggle-header {
    display: none;
}

.cart-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.cart-count-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
}

.cart-items-list {
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 20px;
    max-height: 350px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.cart-item-info {
    flex-grow: 1;
    padding-right: 15px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 2px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(255,255,255,0.15);
}

.qty-val {
    font-size: 0.95rem;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.cart-totals {
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.total-row.final {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 12px;
}

.checkout-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 16px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Form Styles (Checkout Page) */
.checkout-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.checkout-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
}

.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.type-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.type-btn.active {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

textarea.form-control {
    resize: none;
    height: 100px;
}

/* Payment Method Cards */
.payment-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.payment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.payment-card.active {
    background: rgba(255, 183, 3, 0.08);
    border-color: var(--accent-color);
}

.payment-card i {
    font-size: 2.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.payment-card.active i {
    color: var(--accent-color);
}

.payment-card-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Success Page Styling */
.success-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(57, 231, 95, 0.1);
    color: #39e75f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 25px;
    border: 2px solid rgba(57, 231, 95, 0.3);
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.receipt-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: left;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.receipt-title {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.receipt-divider {
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    margin: 15px 0;
}

/* Animations */
@keyframes scaleUp {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Search Box styling */
.search-container {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 16px 25px 16px 55px;
    color: white;
    font-size: 1.05rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Mobile-specific visual enhancements */
@media (max-width: 768px) {
    .hero-banner {
        height: auto;
        padding: 75px 4% 25px 4%;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero-logo {
        position: absolute;
        top: 15px;
        left: 4%;
        height: 36px;
        margin-bottom: 0;
    }
    .customer-nav {
        position: absolute;
        top: 15px;
        right: 4%;
        gap: 8px;
    }
    .customer-nav-link {
        font-size: 0.8rem;
        padding: 6px 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .customer-welcome {
        display: none; /* Hide welcome text to save space on mobile */
    }
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }
    .hero-subtitle {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    .categories-container {
        padding: 10px 4%;
    }
    .category-tab {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .search-container {
        margin-bottom: 20px;
    }
    .search-input {
        padding: 12px 20px 12px 45px;
        font-size: 0.95rem;
    }
    .search-icon {
        left: 18px;
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    /* Two-column grid layout for menu items on mobile */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .item-card {
        border-radius: 12px;
    }
    .item-image-wrapper {
        height: 110px;
    }
    .item-details {
        padding: 10px;
    }
    .item-name {
        font-size: 0.95rem;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .item-desc {
        font-size: 0.75rem;
        height: 32px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    .item-price {
        font-size: 1rem;
    }
    .add-btn {
        width: 32px;
        height: 32px;
        box-shadow: 0 2px 6px rgba(255, 107, 53, 0.25);
    }
    .add-btn i {
        font-size: 0.9rem;
    }
    .card-badge {
        padding: 2px 6px;
        font-size: 0.65rem;
        border-radius: 4px;
    }
    .item-badges {
        top: 8px;
        right: 8px;
    }
}

/* Order History specific styling */
.history-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 30px;
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
}

.order-row {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--bg-input);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.order-row:hover {
    background: var(--nav-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.order-header {
    padding: 15px 20px;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 10px;
}

.order-body {
    padding: 20px;
}

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

.order-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--card-border);
    font-size: 0.9rem;
}

.order-total-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: var(--nav-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-right: 5px;
    outline: none;
}

.theme-toggle-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: #ffffff;
    transform: scale(1.05);
}

.theme-toggle-btn i {
    transition: transform 0.5s ease;
}

.theme-toggle-btn:active i {
    transform: rotate(30deg) scale(0.9);
}

/* Responsive adjustments for narrow phone screens */
@media (max-width: 600px) {
    .nav-text {
        display: none;
    }
    .customer-nav-link {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        margin-right: 0px;
    }
    .customer-nav {
        gap: 6px;
    }
}

/* Options Modal styling */
.modal-options {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-options-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-options-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.close-options {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-options:hover {
    color: var(--primary-color);
}

.modal-options-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.options-section {
    margin-bottom: 25px;
}

.options-section h4 {
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.option-badge-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-main);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.option-badge-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.option-badge-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.modal-options-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-confirm {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Categories Grid View Layout */
.categories-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 24px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.category-card-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.category-card:hover .category-card-image {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.category-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.3px;
}

/* Back to Categories Button */
.back-categories-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-categories-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Floating Basket Bar styling */
.floating-basket-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    background: var(--primary-gradient);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.45);
    border-radius: 30px;
    padding: 16px 24px;
    display: none; /* Controlled dynamically by JS */
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-basket-bar:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
}

.floating-basket-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.floating-basket-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.floating-basket-total {
    font-weight: 800;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 15px;
}

.floating-basket-btn {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Edit Pen button in Qty controls */
.edit-item-btn {
    border-color: rgba(255, 183, 3, 0.2) !important;
}

.edit-item-btn:hover {
    background: rgba(255, 183, 3, 0.1) !important;
}

@media (max-width: 768px) {
    .categories-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 15px 0;
    }
    .category-card {
        padding: 16px 10px;
    }
    .category-card-image {
        width: 80px;
        height: 80px;
    }
    .category-card-name {
        font-size: 0.95rem;
    }
}

/* Close cart drawer button style */
.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition);
}

.close-cart-btn:hover {
    color: var(--primary-color);
}

/* Checkout Page Specific Layout & Sidebar */
.main-content.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.checkout-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
    .main-content.checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* Offline Banner */
.offline-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.05);
    animation: fadeIn var(--transition);
}

.offline-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.offline-icon {
    font-size: 2.2rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 15px;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.offline-text-group {
    flex: 1;
}

.offline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fca5a5;
}

.offline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.offline-desc-ku {
    font-size: 1rem;
    color: var(--text-main);
    margin-top: 10px;
    border-top: 1px dashed rgba(239, 68, 68, 0.2);
    padding-top: 10px;
    line-height: 1.8;
}

/* Light theme override */
html[data-theme="light"] .offline-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.03);
}

html[data-theme="light"] .offline-title {
    color: #b91c1c;
}

html[data-theme="light"] .offline-desc {
    color: #4b5563;
}

html[data-theme="light"] .offline-desc-ku {
    color: #1f2937;
    border-top-color: #fee2e2;
}

.disabled-add-btn {
    opacity: 0.4;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
}

.disabled-add-btn:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
}
