/* Food List Grid */
.flp-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 24px;
    padding: 20px 0;
}

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

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

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

/* Food Item Card */
.flp-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.flp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Food Item Image */
.flp-card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: #f8f9fa;
}

.flp-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flp-card:hover .flp-card-image img {
    transform: scale(1.05);
}

/* Food Item Content */
.flp-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.flp-card-category {
    display: inline-block;
    font-size: 12px;
    color: #bd9c5c;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flp-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.flp-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

/* Detail Button */
.flp-detail-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: #bd9c5c;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.flp-detail-btn:hover {
    background: #a8894d;
}

/* Modal Styles */
.flp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.flp-modal.flp-active {
    display: block;
}

.flp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.flp-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.flp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.flp-modal-close:hover {
    background: #ffffff;
}

.flp-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Header */
.flp-modal-header {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.flp-modal-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.flp-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flp-modal-title-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flp-modal-category {
    font-size: 14px;
    color: #bd9c5c;
    font-weight: 600;
    margin-bottom: 8px;
}

.flp-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .flp-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .flp-modal-image {
        width: 150px;
        height: 150px;
    }
    
    .flp-modal-title {
        font-size: 22px;
    }
}

/* Modal Body */
.flp-modal-body {
    padding: 24px;
}

.flp-modal-section {
    margin-bottom: 24px;
}

.flp-modal-section:last-child {
    margin-bottom: 0;
}

.flp-modal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #bd9c5c;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.flp-modal-section .flp-section-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    white-space: pre-line;
}

/* Info Table */
.flp-info-table {
    margin-top: 24px;
    border: 1px solid #e9ecef;
    border-radius: 0;
    overflow: hidden;
}

.flp-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.flp-info-table tr {
    border-bottom: 1px solid #e9ecef;
}

.flp-info-table tr:last-child {
    border-bottom: none;
}

.flp-info-table th,
.flp-info-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.flp-info-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    width: 140px;
    white-space: nowrap;
}

.flp-info-table td {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .flp-info-table th,
    .flp-info-table td {
        display: block;
        width: 100%;
    }
    
    .flp-info-table th {
        padding-bottom: 4px;
    }
    
    .flp-info-table td {
        padding-top: 4px;
        padding-bottom: 16px;
    }
}

/* No Items Message */
.flp-no-items {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Animation */
@keyframes flpModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.flp-modal.flp-active .flp-modal-container {
    animation: flpModalFadeIn 0.3s ease;
}

/* Detail Image in Modal */
.flp-modal-detail-image {
    margin: 24px 0;
    text-align: center;
}

.flp-modal-detail-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e9ecef;
}
