/* QuickBite Frontend Styles - Improved */

/* Container */
.quickbite-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Categories */
.quickbite-categories {
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quickbite-categories::-webkit-scrollbar {
    display: none;
}

.quickbite-category-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    margin-right: 0.5rem;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border: none;
}

.quickbite-category-link:hover, .quickbite-category-link.active {
    background: #2563eb;
    color: #fff;
}

/* Food Items Grid */
.quickbite-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.quickbite-item {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.quickbite-item:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}

.quickbite-item-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.quickbite-item .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quickbite-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.quickbite-item p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.quickbite-item .text-lg {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
}

.quickbite-add-to-basket {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.quickbite-add-to-basket:hover {
    background: #1d4ed8;
}

/* Basket */
.quickbite-basket {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 1100;
    border-radius: 0 1rem 1rem 0;
}

.quickbite-basket.open, .quickbite-basket:not(.transform) {
    transform: translateX(0);
}

.quickbite-basket .p-4 {
    padding: 1.5rem;
}

.quickbite-basket h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
}

.quickbite-basket-items {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.quickbite-basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.quickbite-basket-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.quickbite-checkout {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quickbite-checkout:hover {
    background: #16a34a;
}

.quickbite-close-basket {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Basket Toggle Button */
.quickbite-toggle-basket {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    background: #2563eb;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    font-weight: 600;
    z-index: 1200;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.quickbite-toggle-basket:hover {
    background: #1d4ed8;
}

/* Checkout Modal */
.quickbite-checkout-modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.quickbite-checkout-modal > div {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}

.quickbite-checkout-modal h2 {
    color: #2563eb;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

#quickbite-checkout-form label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
    display: block;
}

#quickbite-checkout-form input,
#quickbite-checkout-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    background: #f1f5f9;
    transition: border 0.2s;
}

#quickbite-checkout-form input:focus,
#quickbite-checkout-form textarea:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
}

#quickbite-checkout-form .quickbite-cancel-checkout {
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

#quickbite-checkout-form .quickbite-cancel-checkout:hover {
    background: #cbd5e1;
}

#quickbite-checkout-form button[type="submit"] {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#quickbite-checkout-form button[type="submit"]:hover {
    background: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 900px) {
    .quickbite-container { max-width: 100%; }
    .quickbite-items { grid-template-columns: 1fr; }
    .quickbite-basket { width: 100vw; border-radius: 0; }
}

@media (max-width: 600px) {
    .quickbite-container { padding: 0.5rem; }
    .quickbite-checkout-modal > div { padding: 1rem; }
} 