/* SIPO API Dynamic Component Styles */
:root {
    --primary: #E8430A;
    --red: #ef4444;
    --green: #22c55e;
    --gold: #e5b96a;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 16px;
}

/* Status Strip */
.status-strip {
    background: #16213e;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1100;
    transition: all 0.3s ease;
}
.status-strip.closed { background: #7f1d1d; }
.status-strip.open { background: #064e3b; }
.status-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.status-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Base Modal */
.sipo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.sipo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.sipo-modal {
    background: #16213e;
    color: white;
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.sipo-modal-overlay.active .sipo-modal {
    transform: translateY(0);
}
.sipo-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
}
.sipo-modal-close:hover { opacity: 1; }
.sipo-modal-icon { margin-bottom: 1.5rem; }
.sipo-modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: white; }
.sipo-modal-text { font-size: 1rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; line-height: 1.6; }
.sipo-modal-btn { width: 100%; }

/* Special Offer Modal Styles */
.offer-modal { border: 2px solid var(--gold); }
.offer-modal .sipo-modal-title { color: var(--gold); }

/* Popular Items Grid Integration */
.popular-items .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.item-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.item-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.item-card-img img { width: 100%; height: 100%; object-fit: cover; }
.item-card-img .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.item-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.item-card-body h3 { font-size: 1.2rem; margin-bottom: 10px; color: #16213e; }
.item-card-body p { font-size: 0.9rem; color: #666; margin-bottom: 15px; }

/* Ordering Disabled State */
body.ordering-disabled .nav-order-btn,
body.ordering-disabled .floating-order-btn,
body.ordering-disabled .btn-primary {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.5);
}
