:root {
    --primary: #345c43; /* Deep Olive Green from menu */
    --primary-light: #4a7a5c;
    --accent: #d8c39e; /* Golden Beige */
    --bg-color: #f7f5f0; /* Warm off-white */
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-dark: #2c3630;
    --text-muted: #6e7a73;
    --border-radius: 20px;
    --shadow: 0 8px 32px rgba(52, 92, 67, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Soft pattern or gradient background */
    background-image: radial-gradient(circle at top right, rgba(216, 195, 158, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(52, 92, 67, 0.1) 0%, transparent 40%);
}

/* Header */
.app-header {
    text-align: center;
    padding: 24px 20px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 240, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(52, 92, 67, 0.1);
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
    margin-right: 4px;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* Main Container */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 100px 0; /* Space for bottom action bar */
    position: relative;
    overflow: hidden;
}

/* Progress */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(52, 92, 67, 0.1);
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 20%; /* Step 1 default */
    transition: width 0.4s ease;
}

/* Steps */
.step-section {
    padding: 24px 20px;
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(-50px);
    pointer-events: none;
    transition: var(--transition);
    visibility: hidden;
}

.step-section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
}

.step-section.slide-out-left {
    transform: translateX(50px);
    opacity: 0;
}

.step-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optional-badge {
    font-size: 11px;
    background: var(--accent);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.step-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 8px 0;
}

/* Grid & List Options */
.grid-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.list-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card Styling */
.option-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.list-options .option-card {
    flex-direction: row;
    text-align: right;
    justify-content: space-between;
    padding: 16px 20px;
}

.option-card:active {
    transform: scale(0.97);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(52, 92, 67, 0.03);
}

/* Checkmark indicator for selected items */
.option-card::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    opacity: 0;
    transition: var(--transition);
}

.option-card.selected::before {
    opacity: 1;
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.list-options .option-card::before {
    top: 50%;
    transform: translateY(-50%);
}

.option-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.option-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.option-name-en {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.option-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 15px;
    margin-top: 8px;
}

.list-options .option-info {
    display: flex;
    flex-direction: column;
    padding-right: 30px; /* space for checkmark */
}

.list-options .option-price {
    margin-top: 0;
    font-size: 16px;
}

/* Action Bar */
.action-bar {
    margin-top: 32px;
}

.action-bar.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px 24px;
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
}

.primary-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 92, 67, 0.3);
}

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

.primary-btn:not(:disabled):active {
    transform: scale(0.98);
}

.whatsapp-btn {
    background: #25D366; /* WhatsApp Green */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Checkout Form */
.checkout-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(52, 92, 67, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 92, 67, 0.1);
}

.order-summary {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 16px;
    box-shadow: var(--shadow);
}

.order-summary h3 {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-item.sub-item {
    padding-right: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

/* Animations for extra items */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-card {
    animation: slideUpFade 0.4s ease forwards;
    opacity: 0;
}

/* Delay for stagger effect */
.grid-options .option-card:nth-child(1) { animation-delay: 0.05s; }
.grid-options .option-card:nth-child(2) { animation-delay: 0.1s; }
.grid-options .option-card:nth-child(3) { animation-delay: 0.15s; }
.grid-options .option-card:nth-child(4) { animation-delay: 0.2s; }
.grid-options .option-card:nth-child(5) { animation-delay: 0.25s; }
.grid-options .option-card:nth-child(6) { animation-delay: 0.3s; }
.grid-options .option-card:nth-child(7) { animation-delay: 0.35s; }
