:root {
    --primary: #00b900;
    --primary-dark: #009900;
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #f3f4f6;
    --red: #ef4444;
    --orange: #d97706;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    margin: 0;
    padding-bottom: 140px;
    color: var(--text);
}

/* Header & Nav */
.store-header {
    background-color: #eae8df;
    color: #333;
    padding: 24px 20px;
    position: relative;
}

.store-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.store-logo-wrapper {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 18px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.store-info {
    flex-grow: 1;
}

.store-name {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
    color: #c60f25;
}

.store-subtitle {
    font-size: 14px;
    color: #333;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.store-status {
    background-color: #5ea7ab;
    color: white;
    font-size: 13px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 99px;
    align-self: flex-start;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.store-status.closed {
    background-color: #9ca3af;
}

.store-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.95;
}

.store-detail-row:last-child {
    margin-bottom: 0;
}

.detail-icon {
    font-size: 18px;
    margin-top: -2px;
}

.time-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.sticky-nav::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    padding: 16px 20px;
    white-space: nowrap;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 16px;
}

.nav-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Sections */
.container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-container {
    scroll-margin-top: 70px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--primary);
    border-radius: 4px;
}

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

/* Product Card */
.card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.card-main {
    display: flex;
    gap: 14px;
}

.item-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #f9fafb;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 96px;
    padding: 2px 0;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.3;
}

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

.card-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

/* Badge */
.badge {
    color: #fff;
    background-color: #ef4444;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 900;
}

/* Quantity Controls */
.qty-control {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f3f4f6;
    border-radius: 99px;
    padding: 4px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.qty-text {
    font-size: 16px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
}

.customize-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    background: #fff4e5;
    color: var(--orange);
    padding: 10px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: none;
}

/* Combo drink selector inside card */
.combo-drinks {
    padding: 12px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px dashed #86efac;
}

.combo-drinks strong {
    font-size: 14px;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

/* Forms */
.input-group {
    background: var(--card);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
}

.datetime-row {
    display: flex;
    gap: 12px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    box-sizing: border-box;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 8px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
}

.total-wrap {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.total-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 99px;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
    transition: transform 0.1s;
}

.btn-send:active {
    transform: scale(0.96);
}

.btn-send:disabled {
    background: #d1d5db;
    box-shadow: none;
    cursor: not-allowed;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
    animation: fade 0.2s;
}

.popup-box {
    background: white;
    padding: 24px;
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.close-btn {
    background: #f3f4f6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Custom Alert */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.custom-alert-box {
    background: white;
    width: 85%;
    max-width: 340px;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    animation: alertShow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.custom-alert-header {
    padding: 20px;
    font-weight: 900;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    color: #111;
}

.custom-alert-body {
    padding: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
}

.custom-alert-btn {
    width: 100%;
    padding: 18px;
    border: none;
    background: #fff;
    border-top: 1px solid #eee;
    color: var(--primary);
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes alertShow {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Order-Level Customization Panel styling */
.custom-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

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

.custom-group:last-child {
    margin-bottom: 0;
}

.custom-label {
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    display: block;
    margin-bottom: 10px;
}

.radio-grid, .checkbox-grid-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.radio-label:hover, .checkbox-label:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.radio-label input[type="radio"], .checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.radio-label:has(input:checked), .checkbox-label:has(input:checked) {
    background: #ecfdf5;
    border-color: var(--primary);
    color: var(--primary-dark);
}
