/* Кнопка "В подборку" на карточках товаров */
.b-shopping-list-add {
    cursor: pointer;
    padding: 1px;
}
.b-shopping-list-add a {
    cursor: pointer;
    display: inline-block;
    line-height: 0;
}
.shopping-list-svg-icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    stroke: #000;
    opacity: .7;
    transition: stroke 0.2s, fill 0.2s;
}
.shopping-list-svg-icon:hover {
    stroke: #FF7920;
    fill: none;
    opacity: .7;
}
/* Размер иконки на детальной странице */
.b-control-elements-detail .shopping-list-svg-icon {
    width: 24px;
    height: 24px;
}
a[data-fancybox] {
    cursor: pointer !important;
}

/* Модалка добавления */
.shopping-list-modal {
    padding: 24px;
    min-width: 320px;
    max-width: 420px;
    font-family: "Arial", sans-serif;
}
.shopping-list-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.shopping-list-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.shopping-list-modal-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}
.shopping-list-modal-product-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.shopping-list-modal-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.shopping-list-modal-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}
.shopping-list-modal-field {
    margin-bottom: 16px;
}
.shopping-list-modal-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}
.shopping-list-modal-field select,
.shopping-list-modal-field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}
.shopping-list-modal-field select:focus,
.shopping-list-modal-field input[type="text"]:focus {
    border-color: #f47920;
}
.shopping-list-modal-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #e53935;
    min-height: 16px;
}
.shopping-list-modal-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    margin-top: 8px;
    background: #f47920;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.shopping-list-modal-btn:hover {
    background: #d9691a;
}
.shopping-list-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.shopping-list-modal-empty {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Список подборок */
.b-shopping-list {
    margin: 20px 0;
}

.shopping-list-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
}

.shopping-list-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.shopping-list-item:last-child {
    border-bottom: none;
}

.list-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.list-name {
    flex: 1;
    min-width: 200px;
}

.list-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.list-name a:hover {
    color: #f47920;
}

.list-count {
    color: #666;
    font-size: 14px;
    min-width: 80px;
}

.list-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.list-actions a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.list-actions a:hover {
    color: #f47920;
}

.product-cat-action-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Кнопка удаления из подборки */
.delete-from-list-btn {
    cursor: pointer !important;
    transition: color 0.2s;
}
.delete-from-list-btn:hover {
    color: #f47920 !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .list-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .list-actions {
        width: 100%;
        justify-content: space-between;
    }

    .shopping-list-item {
        padding: 12px 16px;
    }
}
