/* Variables & Reset */
:root {
    --primary-color: #2E4F2F;
    /* Forest green */
    --secondary-color: #666666;
    /* Medium gray */
    --accent-color: #1a1a1a;
    /* Deep charcoal accent */
    --bg-color: #FFFFFF;
    /* Pure white */
    --text-color: #1a1a1a;
    --light-text: #666666;
    --white: #FFFFFF;
    --surface: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);

    --transition: all 0.2s ease;

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-logo: 'Aref Ruqaa', serif;
}

[data-theme='dark'] {
    --bg-color: #0f1110;
    --text-color: #e2f1e5;
    --light-text: #a8d7b0;
    --surface: #1a1d1a;
    --border-color: #2a2d2a;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Space for sticky cart + Safe Area */
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3 {
    color: #e0f8e4;
}

/* Utilities */
.container {
    max-width: 800px;
    /* Narrower for menu readability */
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    padding-top: max(16px, env(safe-area-inset-top));
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-logo);
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: normal;
}

[data-theme='dark'] .logo-text {
    color: #e0f8e4;
}

/* Hero */
.hero {
    text-align: center;
    padding: 32px 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--light-text);
    font-size: 0.95rem;
}



/* Menu List */
.menu-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--secondary-color);
}

.menu-grid {
    display: grid;
    gap: 24px;
}

.menu-item {
    display: flex;
    gap: 20px;
    /* More breathing room */
    background: var(--surface);
    padding: 20px;
    /* Generous padding */
    border-radius: 20px;
    /* Softer corners */
    box-shadow: var(--shadow);
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle definition */
}

.item-thumb {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    background: #eee;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

[data-theme='dark'] .item-price {
    color: #a8d7b0;
}

.add-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    touch-action: manipulation;
}

.add-btn:active {
    transform: scale(0.9);
    background: var(--secondary-color);
}

/* Mobile Inputs */
input,
select,
textarea {
    font-size: 16px !important;
    /* Prevent zoom */
}

/* Sticky Bottom Cart */
.floating-cart {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    /* Safe area respect */
    left: 20px;
    right: 20px;
    margin: 0 auto;
    max-width: 500px;
    background: var(--primary-color);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(46, 79, 47, 0.4);
    z-index: 500;
    text-decoration: none;
    transform: translateY(150%);
    /* Hidden by default */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart.visible {
    transform: translateY(0);
}

/* Admin / Status Styles */
.item-thumb.sold-out {
    filter: grayscale(100%);
    opacity: 0.6;
}

.thumb-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.item-thumb {
    width: 100%;
    height: 100%;
}

.badge-sold-out {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
}

.add-btn.sold-out {
    background: #ccc;
    cursor: not-allowed;
    width: auto;
    padding: 0 12px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.add-btn.sold-out:active {
    transform: none;
}

.admin-note {
    display: inline-block;
    background: #FFF4E5;
    color: #B45309;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
}

.cart-count {
    background: white;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 8px;
}

.cart-total {
    font-weight: 600;
}

/* ===== BREAKFAST SETS STYLES ===== */

/* Breakfast Set Card */
.breakfast-set-card {
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.breakfast-set-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.breakfast-set-header {
    display: flex;
    gap: 20px;
    padding: 24px;
    cursor: pointer;
    align-items: center;
    transition: var(--transition);
}

.breakfast-set-header:hover {
    background: #FAFAFA;
}

.breakfast-set-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    background: #F5F5F5;
    border: 1px solid var(--border-color);
}

.breakfast-set-info {
    flex: 1;
}

.breakfast-set-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.breakfast-set-description {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.breakfast-set-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.expand-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.breakfast-set-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Breakfast Set Content (Expandable) */
.breakfast-set-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.breakfast-set-card.expanded .breakfast-set-content {
    max-height: 3500px;
}

.breakfast-set-body {
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--border-color);
}

/* Included Items Section */
.included-items-section {
    margin-bottom: 24px;
    margin-top: 20px;
}

.section-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.included-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.included-item {
    background: #FAFAFA;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.included-item:hover {
    background: #F5F5F5;
    border-color: var(--accent-color);
}

.included-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.included-item-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.info-icon {
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.info-icon:hover {
    background: #E5E5E5;
    color: var(--accent-color);
}

/* Choice Options (Radio buttons styled) */
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.choice-option:hover {
    background: #F5F5F5;
}

.choice-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.choice-option-label {
    flex: 1;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Checkbox for included items */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-wrapper:hover {
    background: #F5F5F5;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-label {
    flex: 1;
    cursor: pointer;
    font-weight: 400;
}

/* Add-ons Section */
.addons-section {
    margin-bottom: 24px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.addon-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.addon-item:hover {
    border-color: var(--accent-color);
    background: #FAFAFA;
}

.addon-item.selected {
    border-color: var(--accent-color);
    background: #F5F9F5;
    border-width: 2px;
}

.addon-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.addon-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-color);
}

.addon-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.addon-info-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 10;
}

.addon-info-icon:hover {
    background: #E5E5E5;
    color: var(--primary-color);
}

.addon-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    justify-content: center;
}

.addon-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0;
}

.addon-qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.addon-qty-display {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
    color: var(--primary-color);
}

/* Add to Cart Button for Sets */
.add-set-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.add-set-to-cart-btn:hover {
    background: #000000;
}

.add-set-to-cart-btn:active {
    transform: scale(0.98);
}

/* Item Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.item-detail-modal {
    background: var(--surface);
    border-radius: 12px;
    padding: 28px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-overlay.active .item-detail-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    padding-right: 16px;
}

.modal-close {
    background: #F5F5F5;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: #E5E5E5;
    color: var(--primary-color);
}

.modal-description {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-info-grid {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #FAFAFA;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.info-value {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Allergen Badges */
.allergen-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.allergen-badge {
    background: #FEE2E2;
    color: #991B1B;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #FCA5A5;
}

.calorie-info {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Customization Summary in Cart */
.customization-summary {
    background: rgba(46, 79, 47, 0.04);
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.customization-summary-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.customization-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.customization-list li {
    padding: 4px 0;
    color: var(--text-color);
}

.customization-list li::before {
    content: "• ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 6px;
}

.removed-item {
    text-decoration: line-through;
    color: var(--light-text);
}

.addon-item-cart {
    color: var(--primary-color);
    font-weight: 500;
}

/* Edit Button in Cart */
.edit-customization-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
}

.edit-customization-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .breakfast-set-header {
        flex-direction: column;
        text-align: center;
    }

    .breakfast-set-image {
        width: 100%;
        height: 180px;
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}