/* Restaurant Menu Widget Styles */

.dinopack-restaurant-menu {
    width: 100%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 1px 1px 5px 1px rgba(178.5, 178.5, 178.5, 0.2);
    padding: 20px;
    transition: all 0.3s ease;
}

/* Menu Title */
.dinopack-menu-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #6F9C50;
}

/* Menu Items Container */
.dinopack-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dinopack-menu-layout-grid .dinopack-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0;
}

/* Menu Item */
.dinopack-menu-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.dinopack-menu-item:last-child {
    border-bottom: none;
}

.dinopack-menu-layout-grid .dinopack-menu-item {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
}

/* Remove right border from last column items (approximate) */
.dinopack-menu-layout-grid .dinopack-menu-item:nth-child(3n) {
    border-right: none;
}

.dinopack-menu-layout-grid .dinopack-menu-item:last-child {
    border-right: none;
    border-bottom: none;
}

.dinopack-menu-item:hover {
    background-color: transparent;
}

/* Menu Item Image */
.dinopack-menu-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.dinopack-menu-layout-grid .dinopack-menu-item-image {
    width: 100%;
    height: 200px;
}

.dinopack-menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Menu Item Content */
.dinopack-menu-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* When there's no image, align content to the left (list layout only) */
.dinopack-menu-item-no-image .dinopack-menu-item-content {
    margin-left: 0;
    text-align: left;
}

.dinopack-menu-item-no-image .dinopack-menu-item-header {
    justify-content: space-between;
}

.dinopack-menu-item-no-image .dinopack-menu-item-badges {
    justify-content: flex-start;
}

/* Grid layout - same as list when no image */
.dinopack-menu-layout-grid .dinopack-menu-item-no-image .dinopack-menu-item-content {
    margin-left: 0;
    text-align: left;
}

.dinopack-menu-layout-grid .dinopack-menu-item-no-image .dinopack-menu-item-header {
    justify-content: space-between;
}

.dinopack-menu-layout-grid .dinopack-menu-item-no-image .dinopack-menu-item-badges {
    justify-content: flex-start;
}

/* Menu Item Header */
.dinopack-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.dinopack-menu-item-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.dinopack-menu-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #6F9C50;
    white-space: nowrap;
}

/* Menu Item Description */
.dinopack-menu-item-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Menu Item Badges */
.dinopack-menu-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.dinopack-menu-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 4px;
}

.dinopack-menu-badge-spicy {
    background-color: #ff4444;
}

.dinopack-menu-badge-vegetarian {
    background-color: #6F9C50;
}

.dinopack-menu-badge-gluten-free {
    background-color: #4a90e2;
}

/* Responsive */
@media (max-width: 768px) {
    .dinopack-restaurant-menu {
        padding: 25px 20px;
    }
    
    .dinopack-menu-layout-grid .dinopack-menu-items {
        grid-template-columns: 1fr;
    }
    
    .dinopack-menu-layout-grid .dinopack-menu-item {
        border-right: none;
        border-bottom: none;
    }
    
    .dinopack-menu-item {
        flex-direction: column;
    }
    
    .dinopack-menu-item-image {
        width: 100%;
        height: 200px;
    }
    
    .dinopack-menu-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

