:root {
    --bg-color: #f4f6f9;
    --surface-color: #ffffff;
    --primary-color: #006633;
    --accent-color: #db2400;
    --hover-color: var(--primary-color);
    --text-dark: #1f2937;
    --text-light: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
}

.status-banner-open {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 8px;
}

.top-status-open {
    position: static;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 20px;
    box-sizing: border-box;
}

.status-banner-closed {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 12px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 8px;
}

.bottom-status-closed {
    position: sticky;
    bottom: 0;
    max-width: 1100px;
    width: 100%;
    margin: 24px auto 0;
    z-index: 1000;
    box-sizing: border-box;
}

.business-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--surface-color);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    text-align: left;
    font-size: 13px;
    z-index: 999;
    width: auto;
    box-sizing: border-box;
    clear: both;
}

.business-info img {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.business-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--primary-color);
}

.business-info address {
    font-style: normal;
    margin-bottom: 8px;
}

.business-info a {
    color: var(--primary-color);
}

.sc-options-box {
    position: fixed;
    top: 390px;
    left: 20px;
    width: 260px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 410px);
    overflow-y: auto;
    background: var(--surface-color);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    text-align: left;
    z-index: 95;
    box-sizing: border-box;
    clear: both;
}

.sc-fav-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
}

.sc-fav-lookup-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.sc-fav-lookup-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
}

.sc-fav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
    width: 100%;
}

.sc-fav-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
}

.sc-fav-link {
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.sc-fav-link:hover {
    color: #ff5f15;
}

.sc-fav-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4b5563;
}

.sc-fav-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
}

.sc-fav-del {
    background: none;
    border: none;
    color: #64748b;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.sc-fav-del:hover {
    color: #b91c1c;
}

.sc-fav-empty {
    margin: 0;
    font-size: 12px;
    color: #4b5563;
}

.sc-fav-status {
    margin: 6px 0 0;
    font-size: 12px;
    min-height: 1.2em;
    word-break: break-word;
}

.sc-fav-warning {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    text-align: left;
}

.sc-fav-warning ul {
    margin: 4px 0 0 16px;
    padding: 0;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 30px auto;
    box-sizing: border-box;
}

.product-container {
    max-width: 850px;
}

.card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    text-align: left;
}

.price {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.section {
    margin-top: 25px;
}

.option {
    margin: 10px 0;
}

.qty {
    width: 80px;
    padding: 10px;
}

.cart-item {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: block;
}

.cart-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.cart-item-left {
    text-align: left;
}

.cart-item-right {
    text-align: right;
}

.item-name {
    font-size: 22px;
    font-weight: bold;
}

.modifiers {
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.total-box {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    margin-top: 20px;
}

.grand-total {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
}

.total-box-estimates {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 15px;
    color: #444;
}

.total-box-actions {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 14px 25px;
    border-radius: 10px;
    margin-top: 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    opacity: .9;
}

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.product-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 25px;
}

.btn-accent {
    background: #ff5f15;
    color: #fff;
}

.remove-btn {
    background: #ff5f15;
    margin-top: 0;
    padding: 8px 16px;
    font-size: 14px;
}

.empty {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.price-breakdown {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.category-card {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    text-decoration: none;
    background: var(--surface-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    transition: .3s;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
    text-align: center;
    padding: 15px;
}

.category-card:hover {
    transform: translateY(-5px);
    background: var(--hover-color);
    color: var(--text-light);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: bold;
    color: var(--primary-color);
}

.menu-heading {
    margin: 0 0 18px;
    color: var(--primary-color);
    font-size: 24px;
}

.order-type-banner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 14px;
    padding: 10px 14px;
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    font-size: 14px;
    box-sizing: border-box;
}

.order-type-banner a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Checkout Page Styles */
.checkout-grid {
    max-width: 1100px;
    width: 100%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    box-sizing: border-box;
}

.checkout-box {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    text-align: left;
    box-sizing: border-box;
}

.checkout-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.checkout-btn {
    background: #ff5f15;
    color: var(--text-light);
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0;
}

.checkout-btn:hover {
    opacity: .92;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.checkout-total {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

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

.radio-group label {
    margin-right: 20px;
    font-weight: bold;
}

.radio-group label.disabled {
    color: #9ca3af;
    opacity: 0.6;
    cursor: not-allowed;
}

.delivery-fields {
    display: none;
}

.fav-order-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.fav-order-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    cursor: pointer;
}

.fav-order-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ff5f15;
    cursor: pointer;
}

.fav-order-input {
    margin-bottom: 8px;
    font-size: 14px;
}

.fav-save-status {
    margin: 6px 0 0;
    font-size: 13px;
    min-height: 1.2em;
}
.open-banner,
.status-banner.is-open {
    background-color: var(--open-banner-color, var(--primary-color));
}
@media(max-width: 1300px) {
    body {
        padding-left: 20px;
    }
    .business-info {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 16px;
        width: 100%;
        max-width: 400px;
        clear: both;
    }
    .sc-options-box {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100%;
        max-width: 400px;
        max-height: none !important;
        margin: 0 auto 20px;
        clear: both;
    }
}

@media(max-width: 1000px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 750px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 500px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}