/* ============================================
   Products Page Styles - Redesigned
   ============================================ */

/* ---- Summary Cards ---- */
.products-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.product-stat-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.product-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Accent colors per type */
.product-stat-card.stat-total::before {
    background: var(--accent-primary);
}

.product-stat-card.stat-front-end::before {
    background: #3b82f6;
}

.product-stat-card.stat-bump::before {
    background: #f59e0b;
}

.product-stat-card.stat-oto::before {
    background: #ef4444;
}

.product-stat-card.stat-downsell::before {
    background: #8b5cf6;
}

.product-stat-card.stat-backend::before {
    background: #10b981;
}

.product-stat-card.stat-uncategorized::before {
    background: #6b7280;
}

.product-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-type-select option,
.product-number-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.product-stat-card.stat-total .product-stat-icon {
    background: rgba(102, 126, 234, 0.15);
    color: var(--accent-primary);
}

.product-stat-card.stat-front-end .product-stat-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.product-stat-card.stat-bump .product-stat-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.product-stat-card.stat-oto .product-stat-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.product-stat-card.stat-downsell .product-stat-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.product-stat-card.stat-backend .product-stat-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.product-stat-card.stat-uncategorized .product-stat-icon {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.product-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.product-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide stat cards that have 0 count (except total) */
.product-stat-card.stat-hidden {
    display: none;
}

/* ---- Table Styling ---- */
.products-table {
    border-collapse: separate;
    border-spacing: 0 6px;
}

.products-table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: none;
    background: transparent;
}

.products-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: background 0.15s ease;
}

.products-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.products-table tbody td {
    padding: 12px 12px;
    vertical-align: middle;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.products-table tbody td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px 0 0 8px;
}

.products-table tbody td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
}

/* Product name */
.product-name-text {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    max-width: 100%;
    /* Let it fill the cell */
    line-height: 1.4;
    font-size: 0.9rem;
    white-space: normal;
    /* Allow wrapping */
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    /* Prevent overflow on long words */
}

/* ---- Column Widths ---- */
/* 1. Index */
.products-table th:nth-child(1),
.products-table td:nth-child(1) {
    width: 50px;
    text-align: center;
}

/* 2. Product Name (Takes remaining space) */
.products-table th:nth-child(2),
.products-table td:nth-child(2) {
    width: auto;
    max-width: 300px;
    /* Cap width to prevent massive text */
}

/* 3. Category (Tighter fit) */
.products-table th:nth-child(3),
.products-table td:nth-child(3) {
    width: 280px;
    /* Fixed width to fit dropdowns + inputs tightly */
}

/* 4. Price */
.products-table th:nth-child(4),
.products-table td:nth-child(4) {
    width: 130px;
    text-align: center;
}

/* 5. Sales */
.products-table th:nth-child(5),
.products-table td:nth-child(5) {
    width: 80px;
    text-align: center;
}

/* 6. Platform */
.products-table th:nth-child(6),
.products-table td:nth-child(6) {
    width: 100px;
    text-align: center;
}

/* 7. Last Purchaser */
.products-table th:nth-child(7),
.products-table td:nth-child(7) {
    width: 50px;
    /* Just an icon now */
    text-align: center;
}

/* ---- Category Pill Selects ---- */
/* Tightly packed layout */
.product-category-inline {
    display: flex;
    align-items: center;
    align-content: center;
    column-gap: 6px;
    row-gap: 0;
    /* NO vertical gap */
    flex-wrap: wrap;
    height: fit-content !important;
    width: fit-content;
}

/* Reset margins to prevent gaps */
.product-category-inline>*,
.product-short-name-wrapper {
    margin: 0 !important;
}

.product-short-name-wrapper {
    width: 100%;
    margin-top: 4px !important;
    /* Small, controlled visual gap */
    line-height: 1;
}

.product-short-name-wrapper .product-label-input {
    width: 240px;
    /* Width for ~30 characters */
    max-width: 100%;
    margin: 0;
    /* Ensure input itself doesn't add height */
    line-height: 1.2;
    padding-top: 4px;
    padding-bottom: 4px;
}

.product-label-input.invalid-length {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

.product-type-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 6px;
    padding: 5px 28px 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 110px;
}

/* Type-specific pill colors */
.product-type-select[data-type="front_end"],
.product-type-select.type-front-end {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.product-type-select[data-type="bump"],
.product-type-select.type-bump {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.product-type-select[data-type="oto"],
.product-type-select.type-oto {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.product-type-select[data-type="downsell"],
.product-type-select.type-downsell {
    background-color: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.product-type-select[data-type="backend"],
.product-type-select.type-backend {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.product-type-select[data-type="uncategorized"],
.product-type-select.type-uncategorized {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.product-type-select:hover {
    filter: brightness(1.15);
}

.product-type-select:focus {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Number select pill */
.product-number-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 5px 22px 5px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    width: 48px;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    transition: all 0.2s ease;
}

.product-number-select:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-number-select:focus {
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Backend label input */
.product-label-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 5px 8px;
    font-size: 0.8rem;
    width: 120px;
    outline: none;
    transition: all 0.2s ease;
}

.product-label-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.product-label-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-label-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* ---- Price Input ---- */
.product-price-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0 4px 0 8px;
    transition: all 0.2s ease;
}

.product-price-inline:focus-within {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.price-symbol {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.product-price-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 5px 4px;
    font-size: 0.85rem;
    width: 70px;
    text-align: right;
    outline: none;
    font-weight: 500;
    -moz-appearance: textfield;
}

.product-price-input::-webkit-inner-spin-button,
.product-price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---- Uncategorized Row ---- */
.product-row-uncategorized td {
    opacity: 0.9;
}

.product-row-uncategorized:hover td {
    opacity: 0.85;
}

/* ---- Save Flash ---- */
@keyframes saveFlash {
    0% {
        background-color: rgba(16, 185, 129, 0.15);
    }

    100% {
        background-color: transparent;
    }
}

.row-save-flash td {
    animation: saveFlash 0.8s ease-out;
}

/* ---- Platform Badge ---- */
.platform-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.08);
    /* Default */
    color: var(--text-secondary);
}

.platform-badge.platform-stripe {
    background: #635bff;
    color: white;
}

.platform-badge.platform-paypal {
    background: #003087;
    color: white;
}

.platform-badge.platform-gohighlevel,
.platform-badge.platform-ghl {
    background: #155eef;
    color: white;
}

.platform-badge.platform-clickbank {
    background: #dc2626;
    color: white;
}

.platform-badge.platform-shopify {
    background: #95bf47;
    color: white;
}

.platform-badge.platform-woo,
.platform-badge.platform-woocommerce {
    background: #96588a;
    color: white;
}

.platform-badge.platform-manual {
    background: #64748b;
    color: white;
}

/* ---- Last Purchaser ---- */
.last-purchaser-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

/* ---- Last Updated ---- */
.last-updated-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 8px;
    font-weight: 400;
}

/* ---- Pagination ---- */
.products-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}

.products-pagination .pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-pagination .pagination-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.products-pagination .pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-pagination .pagination-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.products-pagination .pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.products-pagination .pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.products-pagination .pagination-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: center;
}

/* ---- Row number ---- */
.products-table .row-num {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 28px;
}

/* ---- Sales count ---- */
.sales-count {
    font-weight: 600;
    font-size: 0.9rem;
}

.sales-count.has-sales {
    color: var(--text-primary);
}

.sales-count.no-sales {
    color: var(--text-muted);
    font-weight: 400;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .products-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-name-text {
        max-width: 200px;
    }

    .product-type-select {
        min-width: 90px;
        font-size: 0.75rem;
    }
}

/* ---- Clickable Product Name ---- */
.product-name-clickable {
    cursor: pointer;
    transition: color 0.15s ease;
}

.product-name-clickable:hover {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Product Details Popup ---- */
.product-details-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-details-popup.visible {
    opacity: 1;
}

.product-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.product-popup-content {
    position: relative;
    background: var(--bg-secondary, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.product-details-popup.visible .product-popup-content {
    transform: translateY(0);
}

.product-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-popup-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease;
}

.product-popup-close:hover {
    color: var(--text-primary);
}

.product-popup-body {
    padding: 16px 20px;
}

.product-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-popup-row:last-child {
    border-bottom: none;
}

.product-popup-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-popup-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-popup-footer {
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}

.product-hide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.product-hide-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* ---- Combine Button ---- */
.product-combine-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.product-combine-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

/* ---- Combine Panel ---- */
.product-combine-panel {
    padding: 8px 0;
}

.product-combine-panel .combine-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.product-combine-panel .combine-message strong {
    color: var(--text-primary);
}

.product-combine-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
}

.product-combine-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-combine-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.product-combine-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.product-combine-panel .combine-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 10px 0 0 0;
    font-style: italic;
}

.product-popup-footer {
    gap: 8px;
}

.product-combine-confirm {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: white !important;
}

.product-combine-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-combine-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

/* ============================================
   Light Theme Overrides
   ============================================ */

[data-theme="light"] .product-stat-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .product-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

[data-theme="light"] .product-stat-value {
    color: #1e293b;
}

[data-theme="light"] .product-stat-label {
    color: #64748b;
}

/* Adjust icon backgrounds for light theme */
[data-theme="light"] .product-stat-card.stat-total .product-stat-icon {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .product-stat-card.stat-front-end .product-stat-icon {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="light"] .product-stat-card.stat-bump .product-stat-icon {
    background: rgba(245, 158, 11, 0.1);
}

[data-theme="light"] .product-stat-card.stat-oto .product-stat-icon {
    background: rgba(239, 68, 68, 0.1);
}

[data-theme="light"] .product-stat-card.stat-downsell .product-stat-icon {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .product-stat-card.stat-backend .product-stat-icon {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .product-stat-card.stat-uncategorized .product-stat-icon {
    background: rgba(107, 114, 128, 0.1);
}

/* Table overrides */
[data-theme="light"] .products-table tbody tr {
    background: #ffffff;
}

[data-theme="light"] .products-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .products-table tbody td {
    border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .products-table tbody td:first-child {
    border-left-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .products-table tbody td:last-child {
    border-right-color: rgba(0, 0, 0, 0.05);
}

/* Pagination overrides */
[data-theme="light"] .products-pagination {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .products-pagination .pagination-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #475569;
}

[data-theme="light"] .products-pagination .pagination-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.2);
    color: #1e293b;
}

[data-theme="light"] .product-price-inline {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Fix dropdown arrows and backgrounds for light theme */
[data-theme="light"] .product-type-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="light"] .product-number-select {
    background-color: rgba(0, 0, 0, 0.03);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .product-number-select:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Backend label input overrides */
[data-theme="light"] .product-label-input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .product-label-input:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .product-label-input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent-primary);
}