.grg-foods-shopping-lists {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.grg-foods-shopping-lists__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grg-foods-shopping-lists__actions a {
    background-color: rgb(245, 145, 32);
    color: #fff;
    border-radius: 45px;
}

/* Tabs Navigation */
.lists-tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.lists-tab-nav li {
    margin: 0;
}

.lists-tab-nav a {
    display: block;
    padding: 1em 1.5em;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.lists-tab-nav a:hover {
    color: #2271b1;
}

.lists-tab-nav a.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Tab Content */
.list-tab-content {
    display: none;
}

.list-tab-content.active {
    display: block;
}

/* Bulk Actions */
.bulk-actions {
    margin-bottom: 2em;
    display: flex;
    gap: 1em;
    align-items: center;
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
}

.bulk-actions select {
    min-width: 200px;
}

.shopping-lists-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.list-summary {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.list-summary h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.list-summary p {
    color: #666;
    margin: 0 0 15px 0;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.list-actions .button {
    flex: 1;
    text-align: center;
}

.grg-foods-products-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.grg-foods-products-table th,
.grg-foods-products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.grg-foods-products-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.grg-foods-products-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.bulk-actions,
.order-actions {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.bulk-actions select,
.bulk-actions button,
.order-actions button {
    margin-right: 10px;
}

.product-quantity {
    width: 80px;
    padding: 5px;
}

.proceed-to-order {
    padding: 10px 20px;
    font-size: 16px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2em;
}

.product-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1em;
    position: relative;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-select {
    position: absolute;
    top: 1em;
    left: 1em;
    z-index: 1;
}

.product-image {
    text-align: center;
    margin-bottom: 1em;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-details {
    margin-bottom: 1em;
}

.product-details h4 {
    margin: 0 0 0.5em;
    font-size: 1.1em;
}

.product-details h4 a {
    color: #333;
    text-decoration: none;
}

.product-details h4 a:hover {
    color: #2271b1;
}

.product-price {
    color: #2271b1;
    font-weight: bold;
    font-size: 1.1em;
}

.product-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

.product-actions .button {
    flex: 1;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .shopping-lists-summary {
        grid-template-columns: 1fr;
    }

    .list-actions {
        flex-direction: column;
    }

    .grg-foods-products-table {
        display: block;
        overflow-x: auto;
    }
}

/* Notifications */
.grg-foods-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1em 1.5em;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.grg-foods-notification.success {
    background: #4CAF50;
    color: #fff;
}

.grg-foods-notification.error {
    background: #f44336;
    color: #fff;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.delete-list-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #cc0000;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-list-btn:hover {
    opacity: 1;
}

.grg-foods-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.grg-foods-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.grg-foods-popup h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.grg-foods-popup-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grg-foods-popup input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.grg-foods-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.create-list-btn {
    background-color: rgb(245, 145, 32);
    color: #fff;
    border-radius: 45px;
    padding: 8px 20px;
    text-decoration: none;
}

.create-list-btn:hover {
    background-color: rgb(225, 125, 12);
    color: #fff;
}

button.delete-list-btn {
    background-color: red;
    color: #fff;
    width: 35px;
    padding: 5px !important;
}

.list-actions .edit {
    background-color: rgb(245, 145, 32);
    color: #fff;
    border-radius: 45px;
}

.list-actions .order {
    background-color: #4CAF50;
    color: #fff;
    border-radius: 45px;
}