/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    /* Light grey/blue background */
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 480px;
    /* Constrain for mobile app feel */
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    height: 220px; /* Refined height for better visual balance */
    background-image: url('Src/img/hero-new.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Sophisticated radial gradient for focus and depth */
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    width: 95%;
    max-width: 500px; /* Slightly wider for horizontal layout */
    
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    justify-content: flex-start;
    gap: 24px;

    /* Premium Glassmorphism */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    
    margin: 0 auto;
    text-align: left; /* Left align text */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out;
}

.hero-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Premium Logo Badge Wrapper */
.logo-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px; /* Slightly larger for side-by-side */
    height: 100px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.logo-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}

#hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px; /* Slightly smaller for horizontal balance */
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.hero-address-text {
    font-size: 12px !important;
    opacity: 0.8 !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
    color: #fca311; /* Gold accent for address */
}

.main-content {
    padding: 24px 20px;
}

/* Premium Notice Banner */
.notice-banner {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    text-align: center;
    padding: 10px 20px;
    border-radius: 50px; /* Modern Pill Shape */
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid #fde68a;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    animation: fadeInUp 1.2s ease-out;
}

.notice-banner strong {
    color: #b45309;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    background: rgba(180, 83, 9, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 5px;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-btn i {
    font-size: 12px;
}

.filter-btn.active {
    background-color: #1e293b;
    color: #fff;
    border-color: #1e293b;
}

/* Menu Cards */
.menu-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

.card-header {
    background-color: #1e293b;
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 0;
}

/* Menu Items */
.menu-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    gap: 15px;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.item-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-price {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.portion-selector {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.portion-selector label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.portion-selector input[type="radio"] {
    cursor: pointer;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #f1f5f9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-150%) skewX(-30deg);
    }
    100% {
        transform: translateX(150%) skewX(-30deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .hero {
        height: 200px;
        padding: 16px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 13px;
        max-width: 240px;
    }

    .logo-badge {
        width: 75px;
        height: 75px;
    }
}

/* Sold Out State */
.menu-item.sold-out .item-title,
.menu-item.sold-out .item-desc,
.menu-item.sold-out .item-price {
    color: #94a3b8;
}

.menu-item.sold-out .item-image {
    filter: grayscale(100%);
    opacity: 0.7;
}

.badge-sold-out {
    background-color: #f1f5f9;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 30px 20px 40px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

.copyright {
    margin-top: 15px;
    margin-bottom: 10px;
}

.admin-link {
    color: #6b21a8;
    /* Purple tint from screenshot */
    text-decoration: underline;
    font-weight: 600;
}

.admin-link i {
    margin-right: 4px;
}

/* Dashboard Specific Styles */
.dashboard-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.btn-primary {
    background-color: #1e293b;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.w-100 {
    width: 100%;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 12px;
}

.text-center {
    text-align: center;
}

.back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: #1e293b;
}

.dashboard-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.list-header {
    display: grid;
    grid-template-columns: 50px 100px 60px 45px 50px 25px;
    padding: 15px 12px;
    font-weight: 700;
    color: #475569;
    font-size: 12px;
    border-bottom: 1px solid #f1f5f9;
    gap: 15px;
    align-items: center;
}

.list-item {
    display: grid;
    grid-template-columns: 50px 100px 60px 45px 50px 25px;
    padding: 15px 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    gap: 15px;
}

.list-item:last-child {
    border-bottom: none;
}

.item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.item-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.3;
}

.item-category {
    color: #64748b;
    font-size: 11px;
}

.item-price-col {
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.item-status .badge {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
}

.item-status .badge.active {
    background-color: #e2e8f0;
    color: #475569;
}

.item-status .badge.sold-out {
    background-color: #f1f5f9;
    color: #94a3b8;
}

/* Reviews Grid Responsiveness */
.reviews-list-grid {
    display: grid !important;
    grid-template-columns: 45px 1fr 70px 80px 60px 65px;
    gap: 10px;
    align-items: center;
}

@media (max-width: 480px) {
    .reviews-list-grid {
        grid-template-columns: 40px 1fr 45px 40px 65px !important;
        gap: 6px !important;
    }

    .reviews-list-grid .col-date {
        display: none !important;
    }

    .reviews-list-grid .col-rating {
        font-size: 9px !important;
        text-align: center;
    }
}

.item-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.action-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    padding: 8px;
    /* Large invisible touch area */
    margin: -4px;
    /* Maintain grid alignment */
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Specific UX Colors for Safety */
.action-btn[title="Delete"] {
    color: #ef4444;
}

.action-btn[title="Delete"]:hover {
    background: #fef2f2;
    color: #dc2626;
}

.action-btn[title="Edit"]:hover {
    background: #e0e7ff;
    color: #4f46e5;
}

.settings-section {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    overflow: hidden;
}

.settings-header {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-body {
    padding: 20px;
}

.settings-body label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.image-upload-card {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff;
}

.hero-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.close-modal {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}

.close-modal:hover {
    color: #1e293b;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #94a3b8;
    background: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.image-upload-area {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f8fafc;
}

.upload-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #e2e8f0;
}

.upload-btn {
    flex: 1;
    margin: 0;
    background-color: #fff;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Orders List Grid */
.orders-list-grid {
    display: grid;
    grid-template-columns: 60px 100px 1fr 100px 100px;
    gap: 15px;
    align-items: center;
}

/* Mobile optimizations for Table and Orders */
@media (max-width: 480px) {
    .dashboard-container {
        max-width: 100%;
        margin: 0;
    }

    .main-content {
        padding: 10px;
    }

    /* Squeeze table columns and reduce horizontal gaps for items */
    .list-header,
    .list-item {
        grid-template-columns: 30px 1fr 45px 40px 40px 85px;
        gap: 6px;
        padding: 10px 5px;
    }

    /* Orders specific mobile layout */
    .orders-list-grid {
        grid-template-columns: 40px 60px 1fr 70px 45px;
        gap: 5px;
        padding: 10px 5px !important;
    }

    .orders-list-grid div,
    .orders-list-grid span {
        font-size: 11px !important;
    }

    #orders-list-header {
        font-size: 9px !important;
    }

    .complete-order-btn {
        width: 35px !important;
        height: 35px !important;
    }

    .item-thumb {
        width: 35px;
        height: 35px;
    }

    /* Reduce font sizes inside table elements */
    .list-header {
        font-size: 10px;
    }

    .item-name {
        font-size: 11px;
    }

    .dashboard-list .item-desc {
        display: none;
        /* Hide description text in table to save vertical space! */
    }

    .item-category,
    .item-price-col {
        font-size: 9px;
    }

    .item-status .badge {
        font-size: 9px;
        padding: 3px 4px;
    }

    .item-actions {
        gap: 4px;
        /* Gap can be smaller since padding handles separation */
    }

    .action-btn {
        font-size: 14px;
        padding: 10px 8px;
        /* Giant touch hit-box */
    }

    /* Hero Mobile Refinements */
    .hero {
        height: 220px; /* Reduced mobile height */
        padding: 10px;
    }

    .hero-content {
        width: 90%;
        max-width: 90%;
        padding: 15px 10px;
        border-radius: 20px;
    }

    .hero-content h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .hero-content p {
        font-size: 13px;
        line-height: 1.5;
        max-width: 100%;
        margin-top: 10px;
    }

    .logo-badge {
        width: 75px;
        height: 75px;
        padding: 8px;
        margin-bottom: 0px;
        border-radius: 20px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Login Custom Styles */
.login-modal {
    max-width: 380px;
    text-align: center;
    padding: 30px;
}

.login-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.login-instruction {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    text-align: left;
}

.form-control.text-center {
    text-align: center;
    font-size: 18px;
    letter-spacing: 2px;
}

.w-100 {
    width: 100%;
}

/* Reviews Redesign: Horizontal Slider */
.reviews-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin-top: 5px;
    padding-bottom: 15px;
    padding-left: 2px;
    /* scroll-snap-type: x mandatory; removed for smoother auto-scroll loop control */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    cursor: grab;
}

.reviews-grid:active {
    cursor: grabbing;
}

.reviews-grid::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 230px;
    scroll-snap-align: center;
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.review-card:active {
    transform: scale(0.98);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 4px;
}

.review-info {
    flex: 1;
}

.review-name {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-stars {
    display: flex;
    gap: 1px;
}

.review-stars i.star-filled {
    color: #f59e0b;
}

.review-stars i.star-empty {
    color: #cbd5e1;
}

.review-stars i {
    font-size: 9px;
}

.review-date {
    font-size: 9px;
    color: #94a3b8;
    white-space: nowrap;
}

.review-text {
    font-size: 11px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.review-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Tweak for very small screens */
@media (max-width: 340px) {
    .review-card {
        flex: 0 0 85vw;
    }
}

/* --- Cart System Styles --- */
.cart-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-float:hover {
    transform: translateY(-5px);
    background: #334155;
}

.cart-icon-wrapper {
    position: relative;
    font-size: 20px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e293b;
}

.cart-text {
    font-weight: 700;
    font-size: 14px;
}

.cart-preview-toast {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: #0f172a;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-preview-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-preview-toast::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: #0f172a;
    transform: rotate(45deg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: #94a3b8;
    margin-top: 50px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
}

.cart-item-info p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.btn-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
    transition: transform 0.2s;
}

.btn-remove:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.cart-total span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

#cart-total-price {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

/* Add to Cart Icon Button */
.btn-icon-add {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1e293b;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.btn-icon-add:hover {
    background: #334155;
    transform: scale(1.15) rotate(90deg);
}

.btn-icon-add:active {
    transform: scale(0.95);
}

.btn-icon-add i {
    font-size: 14px;
}

/* Quantity Button Base (used in cart) */
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Cart Quantity Control */
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.cart-qty-control .qty-btn {
    width: 22px;
    height: 22px;
    background: #f1f5f9;
    color: #475569;
    font-size: 9px;
}

.cart-qty-control .qty-btn:hover {
    background: #e2e8f0;
}

.cart-qty-control span {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.menu-item {
    position: relative;
    /* Ensure the plus button is positioned relative to the card */
}

/* Mobile Tweak for Sidebar */
@media (max-width: 480px) {
    .cart-sidebar {
        max-width: 100%;
    }
}

/* Gallery Section Styles */
.gallery-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 2px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:nth-child(3n) {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.gallery-item .item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 10px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .item-caption {
    opacity: 1;
}

/* Modal Enhancements */
#gallery-upload-area:hover {
    border-color: #6366f1 !important;
    background: #eef2ff !important;
}

.image-upload-area img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}