@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #FF4500; /* Vibrant Orange/Red for food apps */
    --primary-light: #FFE8E0;
    --primary-dark: #E03E00;
    --secondary: #FF8C00;
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --border: #F3F4F6;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(255, 69, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding-bottom: 90px; /* space for floating cart */
    line-height: 1.5;
}

/* Beautiful Hero Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px 20px 25px;
    border-radius: 0 0 20px 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.2);
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(20px);
}

.header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.header p {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 600px;
    margin: 20px auto 0; /* Add gap from header */
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.section-title {
    margin: 15px 0 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Premium Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow-card);
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.8);
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-info {
    flex: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-color);
    padding: 4px;
    border-radius: 30px;
}

.btn-qty {
    background: white;
    color: var(--primary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.btn-qty:active {
    background: var(--primary);
    color: white;
    transform: scale(0.9);
}

.qty-display {
    font-weight: 600;
    font-size: 14px;
    min-width: 14px;
    text-align: center;
}

/* Floating Glassmorphism Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: calc(100% - 40px);
    max-width: 560px;
    background: rgba(255, 69, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.cart-bar.active {
    transform: translateX(-50%) translateY(0);
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-total-items {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

.cart-total-price {
    font-size: 18px;
    font-weight: 700;
}

.btn-checkout {
    background: white;
    color: var(--primary);
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.btn-checkout:active {
    transform: scale(0.95);
}

/* Modern Bottom Sheet Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Drag Handle for Bottom Sheet */
.modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #E5E7EB;
    border-radius: 4px;
    margin: -10px auto 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.btn-close {
    background: #F3F4F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-dark);
}

.order-summary-item.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 1px dashed #D1D5DB;
    padding-top: 16px;
    margin-top: 16px;
    color: var(--primary);
}

.btn-wa {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
}

.btn-wa:active {
    transform: scale(0.98);
}
