/**
 * Frontend menu styles.
 *
 * @package RestaurantOrderingSystem
 */

.ros-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Bar */
.ros-search-bar {
    position: relative;
    margin-bottom: 20px;
}

.ros-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ros-search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.ros-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

/* Category Filters */
.ros-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.ros-filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.ros-filter-btn:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.ros-filter-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Layout Toggle */
.ros-layout-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.ros-layout-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.ros-layout-btn:hover {
    background: #f0f0f0;
}

.ros-layout-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ros-layout-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Products Grid */
.ros-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Products List */
.ros-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Product Card */
.ros-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.ros-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ros-products-list .ros-product-card {
    display: flex;
    flex-direction: row;
}

.ros-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ros-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.ros-products-list .ros-product-image {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.ros-product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ros-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ros-product-description {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.ros-product-nutrition {
    margin-bottom: 10px;
}

.ros-calories {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.ros-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.ros-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.ros-add-to-cart-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.ros-add-to-cart-btn:hover {
    background: #005a87;
}

/* No Products */
.ros-no-products {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* Loading */
.ros-loading {
    text-align: center;
    padding: 20px;
}

.ros-loading .spinner {
    float: none;
    margin: 0 10px 0 0;
}

/* Pagination */
.ros-pagination {
    text-align: center;
    margin-top: 30px;
}

.ros-pagination-info {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .ros-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ros-products-list .ros-product-card {
        flex-direction: column;
    }

    .ros-products-list .ros-product-image {
        width: 100%;
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .ros-products-grid {
        grid-template-columns: 1fr;
    }

    .ros-category-filters {
        justify-content: center;
    }
}
/* Completed interactive states and add-on controls. */
.ros-menu-container [hidden] { display: none !important; }
.ros-products-grid { grid-template-columns: repeat(var(--ros-columns, 3), minmax(0, 1fr)); }
.ros-product-image { display: block; }
.ros-product-extras { margin: 14px 0; padding: 12px; background: #f7f7f7; border-radius: 6px; }
.ros-extra-group { margin: 0 0 12px; padding: 0; border: 0; }
.ros-extra-group:last-child { margin-bottom: 0; }
.ros-extra-group legend { width: 100%; margin-bottom: 6px; font-weight: 600; }
.ros-extra-group legend small { display: block; font-weight: 400; color: #666; }
.ros-extra-option { display: flex; align-items: center; gap: 7px; padding: 5px 0; cursor: pointer; }
.ros-extra-price { margin-inline-start: auto; white-space: nowrap; }
.ros-extra-group-error { padding: 8px; border: 1px solid #b32d2e; border-radius: 4px; }
.ros-extra-group-error legend { color: #b32d2e; }
.ros-product-footer { flex-wrap: wrap; gap: 8px; }
.ros-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; }
.ros-page-info { color: #666; }
.ros-notification { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 99999; max-width: min(360px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 5px; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
.ros-notification-success { background: #1f7a3f; color: #fff; }
.ros-product-video { clear: both; width: 100%; margin-top: 12px; }
.ros-product-video iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; }

@media screen and (max-width: 768px) {
    .ros-products-grid { grid-template-columns: repeat(min(2, var(--ros-columns, 2)), minmax(0, 1fr)); }
}
@media screen and (max-width: 480px) {
    .ros-products-grid { grid-template-columns: 1fr; }
}

.ros-single-product-extras { clear: both; margin: 14px 0; padding: 14px; border: 1px solid #ddd; border-radius: 6px; }
.ros-single-product-extras h3 { margin: 0 0 12px; }
.ros-single-product-extras .ros-extra-group { margin-bottom: 14px; }
