/* ========================================
   Modify Storefront  –  Seller Dashboard
   ======================================== */

.sf-editor {
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
.sf-editor__header {
    margin-bottom: 24px;
}
.sf-editor__header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 4px;
}
.sf-editor__header p {
    font-size: 0.88rem;
    color: #777;
    margin: 0;
}

/* ---------- Table ---------- */
.sf-editor__table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    overflow: hidden;
}
.sf-editor__table {
    width: 100%;
    border-collapse: collapse;
}
.sf-editor__table thead {
    background: #4b2e2e;
    color: #fff;
}
.sf-editor__table th {
    padding: 12px 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-align: left;
    font-weight: 600;
}
.sf-editor__table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0ece8;
    vertical-align: middle;
}
.sf-editor__table tbody tr:last-child td {
    border-bottom: none;
}
.sf-editor__table tbody tr:hover {
    background: #faf7f4;
}

/* Row number */
.sf-editor__num {
    width: 36px;
    text-align: center;
    font-weight: 700;
    color: #9e8e7e;
    font-size: 0.85rem;
}

/* Selects */
.sf-editor__select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #fafafa;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
    appearance: auto;
}
.sf-editor__select:focus {
    outline: none;
    border-color: #4b2e2e;
    box-shadow: 0 0 0 3px rgba(75,46,46,.12);
}
.sf-editor__select--tag {
    max-width: 200px;
}

/* Remove button */
.sf-editor__remove {
    background: none;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.sf-editor__remove:hover {
    background: #e74c3c;
    color: #fff;
}

/* Empty state */
.sf-editor__empty {
    text-align: center;
    color: #aaa;
    padding: 32px 16px !important;
    font-size: 0.9rem;
}

/* ---------- Action buttons ---------- */
.sf-editor__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.sf-editor__btn {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: filter .2s, transform .15s;
}
.sf-editor__btn:active {
    transform: scale(.97);
}
.sf-editor__btn--add {
    background: #1abc9c;
    color: #fff;
}
.sf-editor__btn--add:hover {
    filter: brightness(1.1);
}
.sf-editor__btn--save {
    background: #ff6a3d;
    color: #fff;
}
.sf-editor__btn--save:hover {
    filter: brightness(1.1);
}

/* Restore button */
.sf-editor__btn--restore {
    background: #7f8c8d;
    color: #fff;
}
.sf-editor__btn--restore:hover {
    filter: brightness(1.1);
}

/* Source badges */
.sf-editor__source {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sf-editor__source--auto {
    background: rgba(205,186,150,.2);
    color: #8b7355;
}
.sf-editor__source--manual {
    background: rgba(26,188,156,.15);
    color: #1a9c7a;
}

/* Read-only product name (auto rows) */
.sf-editor__readonly {
    font-size: 0.88rem;
    color: #555;
    font-weight: 500;
}

/* Tag badge (auto rows) */
.sf-editor__tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0ece8;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #4b2e2e;
    font-weight: 600;
}