/* Seller Product Selection View */

/* Page Header */
.seller_products_header {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.seller_products_title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seller_products_subtitle {
    font-size: 1rem;
    color: #9ca3af;
}

/* Stats Bar */
.seller_products_stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .seller_products_stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seller_products_stat_card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.seller_products_stat_card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.seller_products_stat_icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller_products_stat_icon.available {
    background: rgba(59, 130, 246, 0.2);
}

.seller_products_stat_icon.selected {
    background: rgba(16, 185, 129, 0.2);
}

.seller_products_stat_icon.total {
    background: rgba(168, 85, 247, 0.2);
}

.seller_products_stat_icon svg {
    width: 24px;
    height: 24px;
}

.seller_products_stat_icon.available svg {
    color: #3b82f6;
}

.seller_products_stat_icon.selected svg {
    color: #10b981;
}

.seller_products_stat_icon.total svg {
    color: #a855f7;
}

.seller_products_stat_info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.seller_products_stat_info p {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Toolbar */
.seller_products_toolbar {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.seller_products_toolbar_content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .seller_products_toolbar_content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.seller_products_toolbar_left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1;
}

.seller_products_search_wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.seller_products_search_icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.seller_products_search_icon svg {
    width: 18px;
    height: 18px;
}

.seller_products_search {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.seller_products_search:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(55, 65, 81, 0.7);
}

.seller_products_search::placeholder {
    color: #6b7280;
}

.seller_products_filter_group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seller_products_filter_btn {
    padding: 0.5rem 1rem;
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller_products_filter_btn:hover {
    background: #374151;
}

.seller_products_filter_btn.active {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border-color: transparent;
}

.seller_products_toolbar_right {
    display: flex;
    gap: 0.75rem;
}

.seller_products_select_all_btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seller_products_select_all_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.seller_products_select_all_btn svg {
    width: 16px;
    height: 16px;
}

/* Products Grid */
.seller_products_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .seller_products_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .seller_products_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .seller_products_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.seller_product_card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.seller_product_card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.seller_product_card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.seller_product_card.selected:hover {
    border-color: #10b981;
}

/* Selection Overlay */
.seller_product_selection_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.seller_product_card.selected .seller_product_selection_overlay {
    opacity: 1;
}

/* Checkbox */
.seller_product_checkbox_wrapper {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.seller_product_checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin: 10px;
}

.seller_product_checkbox:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.seller_product_card.selected .seller_product_checkbox {
    background: #10b981;
    border-color: #10b981;
}

.seller_product_checkbox svg {
    width: 14px;
    height: 14px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.seller_product_card.selected .seller_product_checkbox svg {
    opacity: 1;
}

/* Product Image */
.seller_product_image_wrapper {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seller_product_image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.seller_product_placeholder {
    width: 80px;
    height: 80px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller_product_placeholder svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.4);
}

/* Stock Badge */
.seller_product_stock_badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.seller_product_stock_badge.in_stock {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.seller_product_stock_badge.low_stock {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.seller_product_stock_badge.out_of_stock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Product Info */
.seller_product_info {
    padding: 1.25rem;
}

.seller_product_category {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seller_product_name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seller_product_sku {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.seller_product_details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seller_product_price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #06b6d4;
}

.seller_product_stock_info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.seller_product_stock_info svg {
    width: 14px;
    height: 14px;
}

/* Floating Action Button */
.seller_products_fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.seller_products_fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.seller_products_fab svg {
    width: 28px;
    height: 28px;
}

.seller_products_fab_badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.375rem;
    border: 2px solid #1e1e2e;
}

/* Empty State */
.seller_products_empty {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
}

.seller_products_empty_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller_products_empty_icon svg {
    width: 40px;
    height: 40px;
    color: #06b6d4;
}

.seller_products_empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.seller_products_empty p {
    font-size: 1rem;
    color: #9ca3af;
}

/* Loading State */
.seller_products_loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.seller_products_spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(6, 182, 212, 0.2);
    border-top-color: #06b6d4;
    border-radius: 50%;
    animation: seller_products_spin 0.8s linear infinite;
}

@keyframes seller_products_spin {
    to { transform: rotate(360deg); }
}

.seller_products_loading_text {
    margin-top: 1rem;
    font-size: 1rem;
    color: #9ca3af;
}

/* Confirmation Modal */
.seller_products_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.seller_products_modal {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.seller_products_modal_header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seller_products_modal_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.seller_products_modal_subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

.seller_products_modal_body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.seller_products_selected_list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seller_products_selected_item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(55, 65, 81, 0.3);
    border-radius: 0.75rem;
}

.seller_products_selected_item_image {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seller_products_selected_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller_products_selected_item_image svg {
    width: 24px;
    height: 24px;
    color: #06b6d4;
}

.seller_products_selected_item_info {
    flex: 1;
}

.seller_products_selected_item_name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.seller_products_selected_item_details {
    font-size: 0.75rem;
    color: #6b7280;
}

.seller_products_modal_footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
}

.seller_products_modal_btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.seller_products_modal_btn_cancel {
    background: rgba(55, 65, 81, 0.5);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seller_products_modal_btn_cancel:hover {
    background: #374151;
}

.seller_products_modal_btn_confirm {
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    border: none;
}

.seller_products_modal_btn_confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.seller_products_modal_btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .seller_products_fab {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .seller_products_fab svg {
        width: 24px;
        height: 24px;
    }
}